:root {
  --navy-900: #0B1E38;
  --navy-800: #0F2440;
  --navy-700: #16345C;
  --ink: #0F2440;
  --muted: #5E6C84;
  --lime: #8FD400;
  --lime-bright: #A6E617;
  --lime-deep: #7CC000;
  --lime-soft: #EDF8D2;
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --line: #E1E7F0;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1240px;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* blueprint grid backdrop */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 36, 64, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 36, 64, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}

main, .footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  background: rgba(246, 248, 251, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand { display: flex; align-items: center; gap: clamp(10px, 1vw, 14px); text-decoration: none; }
.brand-mark { width: clamp(46px, 4.6vw, 66px); height: clamp(42px, 4.2vw, 60px); object-fit: contain; }
.brand-mark .cg-spin { transform-origin: center; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.7vw, 38px);
  letter-spacing: -.03em;
  color: var(--ink);
}
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 36, 64, .18);
}
.btn-primary:hover { background: var(--navy-700); }
.btn-outline {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--navy-800); }
.nav-cta { padding: 14px 30px; font-size: 15px; }
.btn-lime {
  background: var(--lime);
  color: var(--navy-900);
  font-weight: 700;
  padding: 16px 32px;
  font-size: 15.5px;
  box-shadow: 0 10px 30px rgba(143, 212, 0, .28);
}
.btn-lime:hover { background: var(--lime-bright); }
.arrow { font-size: 13px; }

a:focus-visible, .btn:focus-visible {
  outline: 2.5px solid var(--lime);
  outline-offset: 3px;
}

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(143, 212, 0, .18);
}
.eyebrow-light { color: rgba(234, 240, 250, .72); }
.eyebrow-dot-light { box-shadow: 0 0 0 4px rgba(143, 212, 0, .22); }

/* ---------- hero ---------- */
.hero { padding: 176px 32px 0; }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  min-height: 62vh;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
  color: var(--ink);
}
.hero-title-accent {
  position: relative;
  display: inline-block;
}
.hero-title-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .08em;
  height: .16em;
  background: var(--lime);
  opacity: .38;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1s cubic-bezier(.22,1,.36,1) .55s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero-sub {
  margin-top: 26px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-note {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8494AB;
  letter-spacing: .02em;
}

/* ---------- hero visual (signature) ---------- */
.hero-visual { display: flex; justify-content: center; }
.visual-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
}
.circuit-gear { width: 100%; height: 100%; overflow: visible; }

.cg-ring { fill: none; stroke: rgba(15, 36, 64, .10); stroke-width: 1; }
.cg-ring-1 { stroke-dasharray: 3 9; animation: spin 60s linear infinite; transform-origin: 280px 280px; }
.cg-ring-2 { stroke-dasharray: 2 14; animation: spin 40s linear infinite reverse; transform-origin: 280px 280px; }

.cg-gear { transform-origin: 280px 280px; animation: spin 44s linear infinite; }
.cg-teeth rect { fill: var(--surface); stroke: var(--lime-deep); stroke-width: 3; }
.cg-gear-body { fill: var(--surface); stroke: var(--lime-deep); stroke-width: 3; }
.cg-gear-inner { fill: none; stroke: var(--lime-deep); stroke-width: 1.4; stroke-dasharray: 4 8; opacity: .6; }
.cg-gear-hub { fill: none; stroke: var(--lime-deep); stroke-width: 2; stroke-dasharray: 60 40; }
.cg-hub-circuit path { fill: none; stroke: var(--navy-800); stroke-width: 3; stroke-linecap: round; }
.cg-hub-circuit circle { fill: var(--surface); stroke: var(--navy-800); stroke-width: 3; }

@keyframes spin { to { transform: rotate(360deg); } }

.cg-trace {
  fill: none;
  stroke: var(--navy-800);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .28;
}
.cg-node { fill: var(--bg); stroke: var(--navy-800); stroke-width: 2; }
.cg-node-sm { stroke: var(--lime); }
.cg-pulse { fill: var(--lime); filter: drop-shadow(0 0 6px rgba(143, 212, 0, .7)); }

.visual-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(15, 36, 64, .09);
  white-space: nowrap;
}
.visual-tag-1 { top: 6%; right: 0; animation: float 6s ease-in-out infinite; }
.visual-tag-2 { bottom: 8%; left: -4%; animation: float 7s ease-in-out infinite .8s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--navy-700); }
.dot-live { background: var(--lime); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- marquee ---------- */
.marquee-wrap {
  max-width: var(--max);
  margin: 90px auto 0;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.marquee-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: #93A1B5;
  flex-shrink: 0;
  padding-left: 4px;
}
.marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  opacity: .75;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.features { padding: 120px 0 40px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -.03em;
  line-height: 1.12;
  font-weight: 700;
  max-width: 660px;
}
.section-lead {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 560px;
}

.feature-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 32px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(15, 36, 64, .10); border-color: #D3DCEA; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--lime-soft);
  color: var(--navy-800);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.feature-card p { font-size: 14.5px; line-height: 1.62; color: var(--muted); }

/* ---------- modules ---------- */
.modules-detail { padding: 110px 0 120px; }
.module-list { margin-top: 52px; border-top: 1px solid var(--line); }
.module-row {
  display: grid;
  grid-template-columns: 68px 1fr 1.15fr;
  align-items: center;
  gap: 20px;
  padding: 22px 12px;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, padding-left .25s ease;
}
.module-row:hover { background: var(--surface); padding-left: 22px; }
.module-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lime);
  font-weight: 600;
  letter-spacing: .08em;
}
.module-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.module-desc { font-size: 14.5px; color: var(--muted); }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(135deg, #0B1E38 0%, #13315B 60%, #0B1E38 100%);
  position: relative;
  overflow: hidden;
  padding: 110px 32px;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000, transparent 75%);
  pointer-events: none;
}
.cta-inner { max-width: 840px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.14;
  letter-spacing: -.03em;
  color: #fff;
  font-weight: 700;
}
.cta-sub {
  margin: 22px auto 38px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(226, 234, 246, .74);
  max-width: 540px;
}

/* ---------- footer ---------- */
.footer { background: var(--navy-900); padding: 32px 32px 24px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-mark {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(143, 212, 0, .55), 0 0 34px rgba(143, 212, 0, .22);
}
.footer-mark img { width: 40px; height: 37px; object-fit: contain; }
.footer-word {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1;
}
.footer-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--lime);
  margin-top: 9px;
}
.footer-tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--lime);
  flex-shrink: 0;
}
.footer-links { display: flex; gap: 26px; margin-left: auto; }
.footer-links a {
  font-size: 14px;
  color: rgba(226, 234, 246, .68);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-contact {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px 64px;
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 20px;
  margin-top: 2px;
}
.footer-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--lime);
  margin-bottom: 5px;
}
.footer-value {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(226, 234, 246, .8);
}
.footer-value a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-value a:hover { color: #fff; }

.footer-copy {
  font-size: 12.5px;
  color: rgba(226, 234, 246, .42);
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 16px;
  margin-top: 4px;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: left; }
  .hero-visual { order: 2; }
  .visual-frame { max-width: 380px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 680px) {
  .hero { padding-top: 132px; }
  .nav-cta { padding: 11px 20px; font-size: 13.5px; }
  .nav-inner { padding: 16px 20px; }
  .section-inner, .hero, .cta-band { padding-left: 20px; padding-right: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .marquee-wrap { margin-top: 64px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .marquee { width: 100%; }
  .module-row { grid-template-columns: 46px 1fr; row-gap: 4px; }
  .module-desc { grid-column: 2; }
  .visual-tag-1 { right: -2%; }
  .visual-tag-2 { left: -2%; }
  .features { padding-top: 90px; }
  .modules-detail { padding: 80px 0 90px; }
  .cta-band { padding: 84px 20px; }
  .footer-links { margin-left: 0; }
  .footer-contact { grid-template-columns: 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-title-accent::after { transform: scaleX(1); }
}
