@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500&display=swap');

/* ── TOKENS ── */
:root {
  --navy:    #0A0F1E;
  --navy2:   #0D1528;
  --navy3:   #111D35;
  --cyan:    #00C8FF;
  --teal:    #0AFFDA;
  --white:   #E8EEF4;
  --grey:    #6B7A90;
  --grey2:   #3A4558;
  --accent:  #00C8FF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-w: 1100px;
  --section-pad: 7rem 2rem;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--teal); }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,15,30,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,200,255,0.08);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.nav-logo span { color: var(--cyan); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 2rem;
  margin: 0 auto 0 max(2rem, calc((100vw - var(--max-w)) / 2 + 2rem));
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.45s forwards;
}
.hero-title .line2 {
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan);
}
.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  opacity: 0;
  animation: fadeUp 0.7s 0.85s forwards;
}
.hero-cta:hover { background: var(--teal); transform: translateY(-2px); color: var(--navy); }
.hero-badge {
  margin-top: 3rem;
  font-size: 0.78rem;
  color: var(--grey2);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 0.7s 1.05s forwards;
}
.hero-badge strong { color: var(--grey); }

/* ── SECTION SHARED ── */
section { padding: var(--section-pad); }
.section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.section-body {
  font-size: 1rem;
  color: var(--grey);
  max-width: 640px;
  line-height: 1.8;
}

/* ── VISION ── */
#vision {
  background: var(--navy2);
  border-top: 1px solid var(--grey2);
}
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.vision-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--cyan);
  padding-left: 1.5rem;
}
.vision-quote em { color: var(--cyan); font-style: normal; }

/* ── PROBLEM ── */
#problem { background: var(--navy); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--grey2);
}
.problem-card {
  padding: 2rem 1.75rem;
  background: var(--navy);
  border-right: 1px solid var(--grey2);
  transition: background 0.2s;
}
.problem-card:last-child { border-right: none; }
.problem-card:hover { background: var(--navy3); }
.problem-card-icon {
  width: 36px; height: 36px;
  margin-bottom: 1rem;
  color: var(--grey2);
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.problem-card p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.65;
}
.problem-card .badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--grey2);
  color: var(--grey);
}
.problem-gap {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: rgba(0,200,255,0.04);
  border: 1px solid rgba(0,200,255,0.2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cyan);
  max-width: 700px;
}

/* ── TECHNOLOGY ── */
#technology { background: var(--navy2); border-top: 1px solid var(--grey2); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--grey2);
}
.tech-item {
  padding: 2rem;
  border-right: 1px solid var(--grey2);
  border-bottom: 1px solid var(--grey2);
  transition: background 0.2s;
}
.tech-item:nth-child(2n) { border-right: none; }
.tech-item:nth-last-child(-n+2) { border-bottom: none; }
.tech-item:hover { background: rgba(0,200,255,0.03); }
.tech-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--grey2);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.tech-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--teal);
}
.tech-item p {
  font-size: 0.87rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ── MARKET ── */
#market { background: var(--navy); }
.market-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 3rem 0;
  background: var(--grey2);
}
.stat-block {
  background: var(--navy);
  padding: 2rem 1.5rem;
  text-align: left;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-value span { color: var(--cyan); }
.stat-label {
  font-size: 0.78rem;
  color: var(--grey);
  line-height: 1.5;
}
.market-body { color: var(--grey); max-width: 680px; line-height: 1.8; }

/* ── POSITIONING ── */
#positioning { background: var(--navy2); border-top: 1px solid var(--grey2); }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 3rem;
  font-size: 0.87rem;
}
.comp-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid var(--grey2);
  color: var(--grey);
}
.comp-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(58,69,88,0.4);
  color: var(--grey);
  vertical-align: middle;
}
.comp-table tr.demiurge td {
  background: rgba(0,200,255,0.04);
  color: var(--white);
}
.comp-table tr.demiurge td:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cyan);
}
.check { color: var(--teal); font-size: 1rem; }
.cross { color: var(--grey2); }
.partial { color: var(--grey); }

/* ── ROADMAP ── */
#roadmap { background: var(--navy); }
.roadmap-track {
  margin-top: 3.5rem;
  position: relative;
  padding-left: 2rem;
}
.roadmap-track::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
}
.roadmap-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 1.5rem;
}
.roadmap-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.35rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid var(--navy);
  outline: 1px solid var(--cyan);
}
.roadmap-phase {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 0.3rem;
}
.roadmap-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.roadmap-item p {
  font-size: 0.88rem;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.65;
}

/* ── TEAM ── */
#team { background: var(--navy2); border-top: 1px solid var(--grey2); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--grey2);
}
.team-card {
  background: var(--navy2);
  padding: 1.75rem;
  transition: background 0.2s;
}
.team-card:hover { background: var(--navy3); }
.team-role {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  font-family: var(--font-display);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.team-card p {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ── CTA FOOTER ── */
#cta-section {
  background: var(--navy3);
  border-top: 1px solid var(--grey2);
  text-align: center;
  padding: 6rem 2rem;
}
#cta-section .section-title { margin: 0 auto 1rem; max-width: 600px; }
#cta-section .section-body { margin: 0 auto 2.5rem; text-align: center; }
.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); color: var(--navy); }
.btn-ghost {
  display: inline-block;
  border: 1px solid var(--grey2);
  color: var(--grey);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--grey2);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.footer-logo span { color: var(--cyan); }
.footer-meta {
  font-size: 0.78rem;
  color: var(--grey);
}
.footer-links {
  display: flex; gap: 1.5rem; list-style: none;
}
.footer-links a { font-size: 0.78rem; color: var(--grey); }
.footer-links a:hover { color: var(--white); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .vision-grid, .team-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .market-stats { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { border-right: none; border-bottom: 1px solid var(--grey2); }
  .tech-grid { grid-template-columns: 1fr; }
  .tech-item:nth-child(2n) { border-right: 1px solid var(--grey2); }
  .tech-item { border-right: none; }
  .comp-table { display: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  :root { --section-pad: 4.5rem 1.25rem; }
  .market-stats { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { margin-left: 0; padding: 0 1.25rem; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; }
}
