/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:       #07071c;
  --bg-d:     #040412;
  --bg-card:  rgba(255, 255, 255, 0.04);
  --border:   rgba(255, 255, 255, 0.07);
  --text:     #d8daf0;
  --muted:    #666888;
  --accent:   #38bef8;
  --accent2:  #f59e0b;
  --glow:     rgba(56, 190, 248, 0.13);
  --ring:     rgba(56, 190, 248, 0.1);
  --max:      1060px;
  --vgap:     clamp(80px, 10vw, 140px);
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { max-width: 100%; display: block; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPE ────────────────────────────────────────────────────── */
h1, h2, h3, .vision-quote {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #eef0ff;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
}
h1 em { font-style: normal; color: var(--accent); }

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-weight: 600;
  margin-bottom: 32px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #dde0f2;
}

p { color: var(--muted); font-size: 1.05rem; line-height: 1.85; }
p + p { margin-top: 16px; }
strong { color: var(--accent); font-weight: 500; }

/* ─── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px 12px;
  display: flex; justify-content: center; align-items: center;
  background: linear-gradient(to bottom, rgba(4, 4, 18, 0.85) 0%, transparent 100%);
  transition: background 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
  background: rgba(4, 4, 18, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 18px 8px;
  border-bottom: 1px solid var(--border);
}
.nav-logo { height: 120px; }

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 120px 48px 90px;
}

/* perception rings */
.hero-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--ring);
  animation: pulse-ring 8s ease-in-out infinite;
}
.r1 { width: 140px;  height: 140px;  animation-delay:  0s; }
.r2 { width: 300px;  height: 300px;  animation-delay: -2s; }
.r3 { width: 490px;  height: 490px;  animation-delay: -4s; }
.r4 { width: 700px;  height: 700px;  animation-delay: -6s; }
.r5 { width: 940px;  height: 940px;  animation-delay: -1s; border-color: rgba(56, 190, 248, 0.04); }

@keyframes pulse-ring {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%       { opacity: 0.18; transform: scale(1.025); }
}

/* hero content */
.hero-body {
  position: relative; z-index: 10;
  text-align: center; max-width: 900px;
}
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 38px;
  line-height: 1;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--muted);
  margin-top: 30px;
  font-weight: 300;
  line-height: 1.9;
}

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 44px; left: 50%;
  transform: translateX(-50%);
}
.scroll-dot {
  display: block;
  width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(12px); }
}

/* ─── SECTION SHELL ──────────────────────────────────────────── */
.section { padding: var(--vgap) 48px; }
.section-dark { background: var(--bg-d); }
.section-apps { background: var(--bg-d); }
.section-vision { text-align: center; }

.container { max-width: var(--max); margin: 0 auto; }

.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 18px;
}

/* ─── REVEAL ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── GAP SECTION ────────────────────────────────────────────── */
.gap-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.gap-text blockquote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #eef0ff;
  border-left: 3px solid var(--accent);
  padding: 14px 0 14px 24px;
  margin-top: 32px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* gap visualization */
.gap-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 16px;
}
.viz-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.viz-linear {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.viz-linear span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted); opacity: 0.35;
  flex-shrink: 0;
}
.viz-linear span:nth-child(odd)  { opacity: 0.65; }
.viz-linear span:nth-child(3)    { opacity: 1; background: var(--muted); }

.viz-vs {
  font-size: 12px; color: var(--muted); opacity: 0.45;
  font-family: 'Inter', sans-serif;
}

.viz-spatial {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  padding: 22px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(56, 190, 248, 0.22);
  border-radius: 8px;
  transform: perspective(280px) rotateX(14deg) rotateY(-8deg);
  box-shadow: 0 0 32px rgba(56, 190, 248, 0.06);
}
.viz-spatial span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  animation: sp-blink 3s ease-in-out infinite;
}
.viz-spatial span:nth-child(even)  { animation-delay: -1.5s; opacity: 0.5; }
.viz-spatial span:nth-child(3n)    { animation-delay: -0.9s; }
.viz-spatial span:nth-child(5)     { background: var(--accent2); animation-delay: -2.2s; }
.viz-spatial span:nth-child(9)     { background: var(--accent2); opacity: 0.7; }
@keyframes sp-blink {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ─── SOLUTION SECTION ───────────────────────────────────────── */
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.88;
}

.arch-showcase {
  margin-top: 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.arch-img {
  width: 80%;
  display: block;
  margin: 0 auto;
  opacity: 0.88;
  mask-image: linear-gradient(to bottom, transparent 0%, black 7%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 7%, black 88%, transparent 100%);
}
.arch-cap {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
  margin-top: 16px;
  padding-bottom: 16px;
}

/* ─── ADVANTAGE SECTION ──────────────────────────────────────── */
.advantage-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.advantage-body > p {
  font-size: 1.1rem;
  line-height: 1.88;
  margin-bottom: 32px;
}
.pillars {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pillars li {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.85;
}
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 10px var(--accent);
}

/* ─── APPLICATIONS ───────────────────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 32px;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}
.app-card:hover {
  border-color: rgba(56, 190, 248, 0.35);
  background: rgba(56, 190, 248, 0.04);
  transform: translateY(-4px);
}
.app-icon {
  width: 38px; height: 38px;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 24px;
}
.app-icon svg { width: 100%; height: 100%; }
.app-card p { font-size: 0.95rem; }

/* ─── VISION ─────────────────────────────────────────────────── */
.vision-quote {
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  font-weight: 500;
  color: #e8eaff;
  line-height: 1.42;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto;
}
.vision-quote::before {
  content: '';
  display: block;
  width: 48px; height: 2px;
  background: var(--accent);
  margin: 0 auto 52px;
  opacity: 0.5;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-d);
}
.footer-logo { height: 26px; opacity: 0.45; }
.footer-note {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}
.footer-contact a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #666888 !important;
  -webkit-text-fill-color: #666888;
  text-decoration: none !important;
}
.footer-contact a:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

/* ─── UTILITIES ──────────────────────────────────────────────── */
.br-md { display: none; }
@media (min-width: 860px) { .br-md { display: inline; } }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 22px 24px; }
  .nav.scrolled { padding: 16px 24px; }

  .section { padding: clamp(60px, 8vw, 100px) 24px; }
  .hero { padding: 100px 24px 72px; }

  .gap-layout { grid-template-columns: 1fr; gap: 48px; }
  .gap-viz { display: none; }

  .advantage-layout { grid-template-columns: 1fr; gap: 28px; }
  .advantage-layout > div:first-child h2 { margin-bottom: 0; }

  .app-grid { grid-template-columns: 1fr; gap: 14px; }
  .app-card { padding: 28px 24px; }

  .footer { flex-direction: column; gap: 14px; padding: 32px 24px; text-align: center; }
}

@media (max-width: 560px) {
  .ring.r4, .ring.r5 { display: none; }
  h1 { letter-spacing: -0.02em; }
}
