/* ===========================================================
   Neurallia — Landing page styles
   =========================================================== */

:root {
  /* Brand palette (from existing visual identity) */
  --void:        #05090f;
  --bg-base:     #0a1628;
  --bg-elevated: #101d33;
  --bg-elevated-2:#16233f;
  --bg-card:     #0e1a2e;

  --line:        rgba(148, 178, 220, 0.14);
  --line-strong: rgba(94, 200, 232, 0.35);

  --blue-300: #8fb6f2;
  --blue-400: #6fa3ec;
  --blue-500: #4a86e0;
  --blue-600: #3568c6;
  --blue-700: #274d99;

  --cyan-300: #8fe3f7;
  --cyan-400: #5ec8e8;

  --text-primary:   #f4f7fc;
  --text-secondary: #aebedd;
  --text-muted:     #7488a8;

  --grad-hero: radial-gradient(120% 100% at 80% 0%, #16305c 0%, #0d1e38 45%, #060c17 100%);
  --grad-cta:  linear-gradient(135deg, #16305c 0%, #0d1e38 100%);
  --grad-button: linear-gradient(135deg, #5c8ceb 0%, #3f6cd6 100%);
  --grad-text: linear-gradient(100deg, #8fe3f7 0%, #6fa3ec 55%, #5c8ceb 100%);

  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-glow: 0 0 0 1px var(--line), 0 20px 60px -20px rgba(0,0,0,0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue-500); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; border-radius: 4px; }

/* -------------------- Reveal-on-scroll -------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--grad-button);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(74, 134, 224, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(74, 134, 224, 0.7); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-primary);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--line-strong); transform: translateY(-2px); }

.btn--outline {
  border: 1px solid var(--line-strong);
  color: var(--cyan-300);
}
.btn--outline:hover { background: rgba(94, 200, 232, 0.08); }

.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }

/* -------------------- Eyebrow / labels -------------------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 16px;
}
.eyebrow--dot::before { content: '●'; font-size: 8px; margin-right: 8px; color: var(--blue-400); vertical-align: middle; }
.eyebrow--light { color: var(--cyan-300); }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.section-lead { color: var(--text-secondary); font-size: 17px; }

/* ===========================================================
   HEADER
   =========================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(6, 12, 22, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header.is-scrolled {
  background: rgba(6, 12, 22, 0.78);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--bg-elevated-2), var(--bg-base));
  border: 1px solid var(--line-strong);
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  color: var(--cyan-300);
  box-shadow: 0 0 0 1px rgba(94,200,232,0.08), 0 0 18px -4px rgba(94,200,232,0.35);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.logo__tagline { font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--text-secondary);
  position: relative; padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--cyan-400); transition: right 0.25s var(--ease);
}
.nav a:hover { color: var(--text-primary); }
.nav a:hover::after { right: 0; }

.header__actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 8px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--text-primary);
  position: relative; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle::before { position: absolute; transform: translateY(-6px); }
.nav-toggle::after { position: absolute; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(0) rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 88px);
  padding-bottom: 96px;
  min-height: 92vh;
  display: flex; align-items: center;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.75; }
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 100%, rgba(5,9,15,0.65), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 30%, black, transparent 75%);
  opacity: 0.35;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 760px; }
.hero__title { font-size: clamp(38px, 6vw, 64px); margin-bottom: 24px; }
.hero__lead { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.hero__proof { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero__proof li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.hero__proof svg { flex: none; color: var(--cyan-400); }

.hero__scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-full);
  z-index: 2;
}
.hero__scroll-cue span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--cyan-400);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ===========================================================
   ERA COMPARISON
   =========================================================== */
.era { padding: 110px 0; background: var(--bg-base); position: relative; }
.era__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: center;
}
.era__col { text-align: center; }
.era__tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--text-muted);
  margin-bottom: 28px;
}
.era__tag--accent { color: var(--cyan-300); border-color: var(--line-strong); background: rgba(94,200,232,0.08); }

.era__icon { width: 120px; height: 100px; margin: 0 auto 28px; color: var(--text-muted); opacity: 0.7; }
.era__icon svg { width: 100%; height: 100%; }

.era__caption { color: var(--text-muted); font-size: 15px; }
.era__caption--accent { color: var(--cyan-300); font-weight: 500; }

.era__divider { text-align: center; padding: 0 8px; }
.era__quote { font-family: var(--font-head); font-size: 20px; margin-bottom: 18px; color: var(--text-primary); }
.era__quote strong { color: var(--cyan-400); }
.era__arrow { display: inline-flex; color: var(--blue-400); margin-bottom: 18px; }
.era__note { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.era__note em { color: var(--text-secondary); font-style: normal; font-weight: 600; }

.era__orbit { position: relative; width: 240px; height: 200px; margin: 0 auto 28px; }
.era__orbit-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--grad-button);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 10.5px; font-weight: 700; color: #fff;
  box-shadow: 0 0 0 6px rgba(74,134,224,0.12), 0 0 30px -4px rgba(74,134,224,0.6);
}
.era__orbit-node {
  --angle: calc(var(--i) * 72deg);
  position: absolute; top: 50%; left: 50%;
  width: 74px; height: 40px;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translate(108px)
    rotate(calc(-1 * var(--angle)));
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 10.5px; font-weight: 600; color: var(--cyan-300);
  background: rgba(94,200,232,0.07);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
}

/* ===========================================================
   SERVICES
   =========================================================== */
.services { padding: 110px 0; background: var(--bg-base); position: relative; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -24px rgba(74,134,224,0.35);
}
.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: rgba(94,200,232,0.08); border: 1px solid var(--line-strong);
  color: var(--cyan-300); margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 18px; }
.card__list { display: flex; flex-direction: column; gap: 9px; }
.card__list li {
  font-size: 13.5px; color: var(--text-muted); padding-left: 20px; position: relative;
}
.card__list li::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-400);
}

/* ===========================================================
   ORBIT / STRATEGY DIAGRAM SECTION
   =========================================================== */
.orbit-section { padding: 110px 0; background: linear-gradient(180deg, var(--bg-base), #0c1a30); }
.orbit-section__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.orbit-section__text h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.orbit-section__text p { color: var(--text-secondary); font-size: 16px; margin-bottom: 16px; }
.orbit-section__note { font-size: 13.5px; color: var(--text-muted); margin-bottom: 28px !important; }

.orbit-diagram { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1; margin-inline: auto; }
.orbit-diagram__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-line {
  stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 5;
  animation: dash 3.5s linear infinite;
  animation-delay: calc(var(--d) * 0.15s);
}
@keyframes dash { to { stroke-dashoffset: -100; } }

.orbit-diagram__center, .orbit-diagram__node {
  position: absolute; top: var(--y); left: var(--x); transform: translate(-50%, -50%);
}
.orbit-diagram__center {
  top: 50%; left: 50%;
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--grad-button);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 0 0 8px rgba(74,134,224,0.1), 0 0 40px -6px rgba(74,134,224,0.7);
  animation: pulse 3.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(74,134,224,0.1), 0 0 40px -6px rgba(74,134,224,0.7); }
  50% { box-shadow: 0 0 0 14px rgba(74,134,224,0.06), 0 0 56px -6px rgba(74,134,224,0.9); }
}
.orbit-diagram__center-label { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: #fff; }
.orbit-diagram__center-sub { font-size: 9.5px; color: rgba(255,255,255,0.8); margin-top: 2px; }

.orbit-diagram__node {
  min-width: 84px; padding: 10px 14px; border-radius: var(--radius-full); text-align: center;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  background: var(--bg-elevated); border: 1px solid var(--line);
}
.orbit-diagram__node--accent {
  color: var(--cyan-300); border-color: var(--line-strong); background: rgba(94,200,232,0.1);
}

/* ===========================================================
   PROCESS TIMELINE
   =========================================================== */
.process { padding: 110px 0; background: #0c1a30; }
.process__timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: step;
  position: relative;
}
.process__step {
  position: relative;
  padding: 28px 22px 0;
  border-top: 2px solid var(--line);
}
.process__step::before {
  content: ''; position: absolute; top: -2px; left: 0; width: 0; height: 2px;
  background: var(--cyan-400); transition: width 0.6s var(--ease);
}
.process__step.is-visible::before { width: 100%; }
.process__num {
  display: block; font-family: var(--font-head); font-size: 26px; font-weight: 700;
  color: var(--blue-400); margin-bottom: 12px;
}
.process__step h3 { font-size: 17px; margin-bottom: 10px; }
.process__step p { font-size: 14px; color: var(--text-secondary); }

/* ===========================================================
   WHY CHOOSE US
   =========================================================== */
.why { padding: 110px 0; background: var(--bg-base); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why__item {
  padding: 26px 22px; border-radius: var(--radius-md);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.why__item:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.02); }
.why__icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(94,200,232,0.08); color: var(--cyan-300); margin-bottom: 18px;
}
.why__icon svg { width: 22px; height: 22px; }
.why__item h3 { font-size: 15.5px; margin-bottom: 8px; }
.why__item p { font-size: 13.5px; color: var(--text-secondary); }

/* ===========================================================
   CONVICTION
   =========================================================== */
.conviction { padding: 100px 0; background: linear-gradient(180deg, var(--bg-base), #0d1f3c); }
.conviction__box { max-width: 780px; margin-inline: auto; text-align: center; }
.conviction__eyebrow { color: var(--cyan-300); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; display: block; }
.conviction__quote { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; color: var(--text-primary); margin-bottom: 24px; }
.conviction__sign { color: var(--text-secondary); font-size: 15.5px; }

/* ===========================================================
   FINAL CTA
   =========================================================== */
.cta-final { padding: 40px 0 120px; background: #0d1f3c; }
.cta-final__card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 32px;
  border-radius: 28px;
  background: var(--grad-cta);
  border: 1px solid var(--line-strong);
}
.cta-final__glow {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94,200,232,0.25), transparent 70%);
  top: -220px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.cta-final__card h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; position: relative; }
.cta-final__card > p:not(.eyebrow):not(.cta-final__note) { color: var(--text-secondary); font-size: 17px; max-width: 520px; margin: 0 auto 32px; position: relative; }
.cta-final__note { margin-top: 18px; font-size: 13px; color: var(--text-muted); position: relative; }
.cta-final .eyebrow { position: relative; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: var(--void); border-top: 1px solid var(--line); padding-top: 56px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 40px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a { font-size: 14px; color: var(--text-secondary); transition: color 0.2s; }
.footer__nav a:hover { color: var(--text-primary); }
.footer__bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer__bottom p { font-size: 13px; color: var(--text-muted); text-align: center; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .process__timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .orbit-section__inner { grid-template-columns: 1fr; gap: 56px; }
  .orbit-section__text { text-align: center; max-width: 560px; margin-inline: auto; }
  .orbit-section__text .btn { margin-inline: auto; }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header__actions .btn--sm { display: none; }

  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(6,12,22,0.97);
    backdrop-filter: blur(14px);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open a { width: 100%; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav.is-open a:last-child { border-bottom: none; }

  .era__grid { grid-template-columns: 1fr; }
  .era__divider { order: 3; padding-top: 24px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .hero { padding-top: calc(var(--header-h) + 56px); min-height: auto; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .process__timeline { grid-template-columns: 1fr; }
  .cta-final__card { padding: 48px 22px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .era__orbit { transform: scale(0.85); }
}
