/* ===================================
   ABOUT PAGE - Civic Blueprint
   The vision and philosophy
   =================================== */

.about-page {
  min-height: 100vh;
  padding-top: 64px;
}

/* ===================================
   HERO SECTION - Dramatic Entry
   =================================== */
.about-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-20) 0;
}

/* Subtle flat background tint */
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-accent-soft);
  opacity: 0.5;
}

@keyframes hero-morph {
  0% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
  100% { opacity: 0.4; transform: scale(1); }
}

/* Convergence visualization */
.hero-convergence {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
  opacity: 0.3;
}

.convergence-ring {
  position: absolute;
  border: 1px solid var(--c-accent);
  border-radius: 50%;
  animation: ring-pulse 4s ease-in-out infinite;
}

.convergence-ring:nth-child(1) { inset: 0; animation-delay: 0s; }
.convergence-ring:nth-child(2) { inset: 60px; animation-delay: 0.5s; }
.convergence-ring:nth-child(3) { inset: 120px; animation-delay: 1s; }
.convergence-ring:nth-child(4) { inset: 180px; animation-delay: 1.5s; }
.convergence-ring:nth-child(5) { inset: 240px; border-color: var(--c-converge); animation-delay: 2s; }

@keyframes ring-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--c-accent);
  margin-bottom: var(--space-6);
  animation: fade-in var(--duration-slow) var(--ease-out) forwards;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--c-accent);
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  animation: slide-up var(--duration-slow) var(--ease-out) 100ms forwards;
  opacity: 0;
}

.hero-title .text-gradient {
  display: block;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--c-text-soft);
  line-height: 1.6;
  margin-bottom: var(--space-2);
  animation: slide-up var(--duration-slow) var(--ease-out) 200ms forwards;
  opacity: 0;
}

.hero-tagline {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--c-accent);
  animation: slide-up var(--duration-slow) var(--ease-out) 300ms forwards;
  opacity: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--c-text-muted);
  font-size: var(--text-xs);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===================================
   SECTION STYLES
   =================================== */
.about-section {
  padding: var(--space-24) 0;
  position: relative;
}

.about-section.alt {
  background: var(--c-depth);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-accent);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--c-accent-soft);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--c-text-soft);
  max-width: none;
}

/* ===================================
   MISSION SECTION
   =================================== */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.mission-content p {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.mission-content strong {
  color: var(--c-text);
}

.mission-content em {
  color: var(--c-accent);
  font-style: normal;
  font-weight: 600;
}

/* Flow visualization */
.flow-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  position: relative;
}

.flow-visual::before {
  content: '';
  position: absolute;
  left: 40px;
  top: var(--space-12);
  bottom: var(--space-12);
  width: 2px;
  background: linear-gradient(180deg, var(--c-idea) 0%, var(--c-converge) 50%, var(--c-reality) 100%);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  position: relative;
  z-index: 1;
}

.flow-step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-abyss);
  border: 2px solid var(--step-color, var(--c-border));
  font-size: 24px;
  flex-shrink: 0;
}

.flow-step:nth-child(1) { --step-color: var(--c-idea); }
.flow-step:nth-child(2) { --step-color: var(--c-accent); }
.flow-step:nth-child(3) { --step-color: var(--c-converge); }
.flow-step:nth-child(4) { --step-color: var(--c-reality); }

.flow-step-content h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--step-color);
  margin-bottom: var(--space-1);
}

.flow-step-content p {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  max-width: 300px;
}

/* ===================================
   CORE CONCEPTS GRID
   =================================== */
.concepts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.concept-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.concept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--concept-color, var(--c-accent));
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.concept-card:hover {
  border-color: var(--c-border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.concept-card:hover::before {
  opacity: 1;
}

.concept-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-abyss);
  border-radius: var(--radius-lg);
  font-size: 24px;
  margin-bottom: var(--space-4);
}

.concept-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.concept-card p {
  font-size: var(--text-sm);
  color: var(--c-text-soft);
  line-height: 1.7;
}

/* ===================================
   HOW IT WORKS - FLYWHEEL
   =================================== */
.flywheel-container {
  display: flex;
  justify-content: center;
  padding: var(--space-12) 0;
}

.flywheel {
  position: relative;
  width: 500px;
  height: 500px;
}

.flywheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: var(--c-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.flywheel-center span {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--c-on-accent);
  text-align: center;
  line-height: 1.2;
}

/* Orbiting items */
.flywheel-orbit {
  position: absolute;
  inset: 0;
  animation: orbit-spin 30s linear infinite;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.flywheel-item {
  position: absolute;
  width: 100px;
  text-align: center;
  animation: counter-spin 30s linear infinite;
}

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.flywheel-item:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.flywheel-item:nth-child(2) { top: 15%; right: 0; }
.flywheel-item:nth-child(3) { bottom: 15%; right: 0; }
.flywheel-item:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); }
.flywheel-item:nth-child(5) { bottom: 15%; left: 0; }
.flywheel-item:nth-child(6) { top: 15%; left: 0; }

.flywheel-item-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto var(--space-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-accent);
}

.flywheel-item-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text);
  display: block;
}

.flywheel-item-sublabel {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
}

/* ===================================
   STAKEHOLDERS SECTION
   =================================== */
.stakeholders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.stakeholder-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.stakeholder-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.stakeholder-card h3 span {
  font-size: 28px;
}

.stakeholder-list {
  list-style: none;
  padding: 0;
}

.stakeholder-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--c-text-soft);
  border-bottom: 1px solid var(--c-border);
}

.stakeholder-list li:last-child {
  border-bottom: none;
}

.stakeholder-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 6px;
  background: var(--c-reality);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===================================
   QUOTE SECTION
   =================================== */
.quote-section {
  padding: var(--space-20) 0;
  background: var(--c-accent-soft);
  position: relative;
}

.quote-section::before,
.quote-section::after {
  content: '"';
  position: absolute;
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 900;
  color: var(--c-accent);
  opacity: 0.1;
  line-height: 1;
}

.quote-section::before { top: var(--space-8); left: var(--space-8); }
.quote-section::after { bottom: var(--space-8); right: var(--space-8); transform: rotate(180deg); }

.quote-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-content blockquote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-text);
  margin-bottom: var(--space-6);
}

.quote-attribution {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--c-accent);
}

/* ===================================
   OPEN SOURCE SECTION
   =================================== */
.opensource-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.opensource-text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.opensource-text p {
  font-size: var(--text-lg);
  color: var(--c-text-soft);
  margin-bottom: var(--space-4);
}

.opensource-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.code-block {
  background: var(--c-abyss);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  overflow-x: auto;
}

.code-block-header {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.code-block-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-block-dot:nth-child(1) { background: var(--c-danger); }
.code-block-dot:nth-child(2) { background: var(--c-idea); }
.code-block-dot:nth-child(3) { background: var(--c-reality); }

.code-block code {
  color: var(--c-text-soft);
}

.code-block .comment { color: var(--c-text-dim); }
.code-block .keyword { color: var(--c-accent); }
.code-block .string { color: var(--c-reality); }
.code-block .function { color: var(--c-converge); }

/* ===================================
   CTA SECTION
   =================================== */
.about-cta {
  padding: var(--space-20) 0;
  background: var(--c-depth);
  border-top: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.about-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-accent-soft);
  opacity: 0.5;
}

.about-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.about-cta h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.about-cta p {
  font-size: var(--text-lg);
  color: var(--c-text-soft);
  margin-bottom: var(--space-8);
  max-width: none;
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--c-abyss);
  border-top: 1px solid var(--c-border);
  padding: var(--space-8) 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-brand-name {
  font-weight: 600;
  color: var(--c-text);
}

.footer-brand-tagline {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  transition: color var(--duration-fast);
}

.footer-link:hover {
  color: var(--c-accent);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .about-hero {
    min-height: 60vh;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-convergence {
    width: 400px;
    height: 400px;
  }

  .mission-grid,
  .opensource-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .concepts-grid,
  .stakeholders-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flywheel {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: var(--space-16) 0;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-tagline {
    font-size: var(--text-lg);
  }

  .hero-convergence {
    display: none;
  }

  .concepts-grid,
  .stakeholders-grid {
    grid-template-columns: 1fr;
  }

  .flywheel-container {
    display: none;
  }

  .quote-content blockquote {
    font-size: var(--text-xl);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===================================
   FOUNDER SECTION (UF-2)
   =================================== */
.founder-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.founder-mark {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  padding: var(--space-3);
  border-radius: 50%;
  border: 1px solid var(--c-border-bright);
  background: var(--c-abyss);
}

.founder-mark .logo-ring {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 1.5;
  opacity: 0.5;
}

.founder-mark .logo-ring-inner {
  fill: none;
  stroke: var(--c-converge);
  stroke-width: 2;
  stroke-dasharray: 60 100;
}

.founder-mark .logo-center {
  fill: var(--c-accent);
}

.founder-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}

.founder-role {
  font-size: var(--text-sm);
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.founder-contact {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--c-text-soft);
}

.founder-contact a {
  color: var(--c-accent);
}

@media (max-width: 640px) {
  .founder-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
