/* ══ CONTAINER ══════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin:    0 auto;
  padding:   0 var(--sec-h);
}

/* ══ NAV ════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height:  60px;
  background: rgba(6,6,10,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd);
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
#nav.scrolled { background: rgba(6,6,10,0.92); border-color: var(--bd-h); }

.nav-inner {
  max-width: var(--max-w);
  margin:    0 auto;
  padding:   0 var(--sec-h);
  height:    100%;
  display:   flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 22px; }

.nav-actions {
  display:     flex;
  align-items: center;
  gap:         8px;
}

/* ══ HERO ═══════════════════════════════════════════════ */
.s-hero {
  position:   relative;
  min-height: 100svh;
  display:    flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  overflow:   hidden;
}

/* Radial gradient overlay — subtle on mobile */
.hero-grad {
  background:
    radial-gradient(ellipse 60% 50% at 40% 30%, rgba(74,244,200,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 55%, rgba(167,139,250,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 75%, rgba(96,165,250,0.04) 0%, transparent 55%);
}

/* Two-column hero grid */
.hero-inner {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           center;
  padding-top:           80px;   /* explicit — preserves .container's left/right padding */
  padding-bottom:        80px;
  width:                 100%;
}

/* Hero text column — flex-start prevents children stretching full width */
.hero-text {
  display:     flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-headline {
  font-family:    var(--font-disp);
  font-size:      clamp(2.6rem, 7vw, 6rem);
  font-weight:    200;
  line-height:    1.05;
  letter-spacing: -0.03em;
  margin:         28px 0 24px;
}

.hero-sub {
  font-size:     1rem;
  line-height:   1.85;
  color:         var(--t2);
  max-width:     420px;
  margin-bottom: 40px;
  font-weight:   300;
}

.hero-actions {
  display:       flex;
  align-items:   center;
  gap:           12px;
  flex-wrap:     wrap;
  margin-bottom: 48px;
}

/* Three-pillar mini-bar */
.hero-pillars {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  border:                1px solid var(--bd);
  border-radius:         var(--r-md);
  overflow:              hidden;
  width:                 100%;
}
.pillar {
  padding:    20px 16px;
  background: var(--surface);
  text-align: center;
  transition: background var(--dur-fast);
}
.pillar:hover        { background: var(--surface-h); }
.pillar--mid {
  border-left:  1px solid var(--bd);
  border-right: 1px solid var(--bd);
}
.pillar-label {
  font-family:    var(--font-mono);
  font-size:      0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom:  6px;
}
.pillar-name {
  font-size:   0.82rem;
  color:       var(--t2);
  font-weight: 300;
}

/* Scroll hint */
.scroll-hint {
  position:   absolute;
  bottom:     32px;
  left:       50%;
  transform:  translateX(-50%);
  display:    flex;
  flex-direction: column;
  align-items: center;
  gap:         8px;
  opacity:     0.3;
}
.scroll-hint-label {
  font-family:    var(--font-mono);
  font-size:      0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-hint-line {
  width:       1px;
  height:      40px;
  background:  linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* ══ AMBIENT BLOBS ══════════════════════════════════════ */
.blob {
  position:      absolute;
  border-radius: 50%;
  filter:        blur(120px);
  pointer-events: none;
}
/* Hero blobs */
.blob-a { width:600px; height:600px; top:-100px;  left:-200px; background:rgba(74,244,200,0.04); }
.blob-b { width:500px; height:500px; bottom:-50px; right:-100px; background:rgba(167,139,250,0.05); }
/* Feature section blobs */
.blob-feature-a { width:400px; height:400px; top:50%; left:-100px;  transform:translateY(-50%); background:rgba(74,244,200,0.05); }
.blob-feature-b { width:500px; height:500px; top:50%; right:-150px; transform:translateY(-50%); background:rgba(167,139,250,0.05); }
.blob-feature-c { width:450px; height:450px; top:50%; left:-80px;   transform:translateY(-50%); background:rgba(96,165,250,0.05); }

/* ══ FEATURE SECTIONS ════════════════════════════════════ */
.s-feature {
  padding-top:    140px;
  padding-bottom: 140px;
  position:       relative;
  overflow:       hidden;
}

.feature-inner {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   100px;
  align-items:           center;
}

/* Section label, headline, sub — shared */
.s-label {
  font-family:    var(--font-mono);
  font-size:      0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color:          var(--t3);
  margin-bottom:  20px;
}

.s-headline {
  font-family:   var(--font-disp);
  font-size:     clamp(2rem, 4vw, 3.2rem);
  font-weight:   200;
  line-height:   1.1;
  letter-spacing: -0.02em;
  color:         var(--t1);
  margin-bottom: 24px;
}

.s-sub {
  font-size:     0.95rem;
  line-height:   1.9;
  color:         var(--t2);
  max-width:     420px;
  margin-bottom: 36px;
  font-weight:   300;
}

.s-header { margin-bottom: 64px; }

/* Diagram float animation */
.diagram-wrap {
  position:  relative;
  animation: float-y 7s ease-in-out infinite;
}
.diagram-wrap svg { width: 100%; }

/* ══ VALUES SECTION ══════════════════════════════════════ */
.s-section { padding-top: var(--sec-v); padding-bottom: var(--sec-v); }

/* ══ DIVIDER ═════════════════════════════════════════════ */
.div-line {
  height:     1px;
  max-width:  var(--max-w);
  margin:     0 auto;
  background: linear-gradient(90deg, transparent 0%, var(--bd-h) 30%, var(--bd-h) 70%, transparent 100%);
}

/* ══ CTA ═════════════════════════════════════════════════ */
.s-cta {
  padding-top:    100px;
  padding-bottom: 100px;
  background:     linear-gradient(135deg, rgba(74,244,200,0.06) 0%, rgba(167,139,250,0.04) 50%, rgba(96,165,250,0.06) 100%);
  border-top:     1px solid var(--bd);
  border-bottom:  1px solid var(--bd);
}

.s-cta-inner {
  max-width:      var(--max-w);
  margin:         0 auto;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  text-align:     center;
  gap:            24px;
}
.s-cta-inner .hero-actions { margin-bottom: 0; }

/* ══ FOOTER ══════════════════════════════════════════════ */
#footer {
  padding:    32px var(--sec-h);
  border-top: 1px solid var(--bd);
}

.footer-inner {
  max-width:       var(--max-w);
  margin:          0 auto;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             16px;
}

.footer-brand {
  display:     flex;
  align-items: center;
  gap:         20px;
}
.footer-brand img { height: 18px; opacity: 0.5; }
.footer-copy      { font-size: 0.75rem; color: var(--t3); }

.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a {
  font-size:  0.75rem;
  color:      var(--t3);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--t2); }

/* ══ RESPONSIVE ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .feature-inner { gap: 60px; }
  .hero-inner     { gap: 60px; }
}

@media (max-width: 900px) {
  .hero-inner    { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
  .hero-visual   { max-width: 420px; margin: 0 auto; }
  .feature-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-visual { max-width: 480px; margin: 0 auto; }
  .s-feature     { padding-top: 80px; padding-bottom: 80px; }
  /* AI section: text before visual on narrow screens */
  .feature-inner--flip .feature-visual { order: 2; }
  .feature-inner--flip .feature-text   { order: 1; }
}

@media (max-width: 768px) {
  /* Hero */
  .hero-headline  { font-size: 2.6rem; margin: 20px 0 18px; }
  .hero-sub       { font-size: 0.92rem; margin-bottom: 32px; }
  .hero-actions   { margin-bottom: 36px; }
  /* Visual stacks below text — cap width so it doesn't dwarf content */
  .hero-visual    { max-width: 320px; margin: 0 auto; }
  /* Pillars: stack 3×1, fix mid-border */
  .hero-pillars   { grid-template-columns: 1fr; }
  .pillar--mid    {
    border-left:   none;
    border-right:  none;
    border-top:    1px solid var(--bd);
    border-bottom: 1px solid var(--bd);
  }
  /* Feature text */
  .s-headline { font-size: 1.9rem; }
  .s-sub      { max-width: 100%; }
  /* Scroll hint */
  .scroll-hint { display: none; }
  /* Values */
  .s-section  { padding-top: 72px; padding-bottom: 72px; }
}

@media (max-width: 480px) {
  .hero-headline  { font-size: 2.2rem; }
  .hero-actions   { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { text-align: center; justify-content: center; }
  .s-cta-inner .hero-actions { align-items: center; flex-direction: row; flex-wrap: wrap; }
}