:root {
  --bg: #07101f;
  --bg-soft: #0c1931;
  --panel: rgba(9, 19, 38, 0.75);
  --panel-solid: #0d1d39;
  --line: rgba(129, 187, 255, 0.25);
  --text: #eaf3ff;
  --muted: #9ab1d1;
  --accent-cyan: #78f7ff;
  --accent-lime: #d4ff7e;
  --accent-peach: #ffb27d;
  --max-width: 1220px;
  --radius: 20px;
  --shadow: 0 30px 80px rgba(1, 5, 15, 0.6);
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  background: radial-gradient(circle at 12% 0%, #13315e 0%, #07101f 42%, #040910 100%);
  color: var(--text);
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: "Outfit", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 82% 8%, rgba(120, 247, 255, 0.18), transparent 28%),
    radial-gradient(circle at 5% 50%, rgba(212, 255, 126, 0.12), transparent 33%),
    radial-gradient(circle at 70% 85%, rgba(255, 178, 125, 0.12), transparent 30%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 15%, black, transparent 70%);
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #040911;
  display: grid;
  place-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-inner {
  width: min(90vw, 980px);
  height: min(78vh, 620px);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(120, 247, 255, 0.26);
  box-shadow: var(--shadow);
  background: radial-gradient(circle at 50% 0%, rgba(130, 215, 255, 0.16), rgba(4, 9, 17, 0.98) 65%);
}

.intro-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.intro-copy {
  position: absolute;
  inset: auto 32px 32px 32px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  pointer-events: none;
}

.intro-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  max-width: 560px;
}

.intro-cta {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #081223;
  background: linear-gradient(135deg, var(--accent-cyan), #9fd8ff);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
}

.site {
  opacity: 0;
  transform: translateY(18px);
}

.site.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(6, 12, 23, 0.76);
  border-bottom: 1px solid rgba(173, 215, 255, 0.18);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--accent-cyan), #79a9ff, var(--accent-peach));
  box-shadow: 0 0 30px rgba(120, 247, 255, 0.7);
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 33, 63, 0.55);
  color: var(--text);
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(120, 247, 255, 0.2);
}

.btn.primary {
  background: linear-gradient(130deg, var(--accent-lime), #b5ffd8);
  color: #05111f;
  border: none;
  font-weight: 700;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 28px;
  min-height: 78vh;
  padding: 25px 0 40px;
}

.kicker {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: "Space Grotesk", sans-serif;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.9vw, 4.2rem);
  line-height: 0.97;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--accent-lime);
}

.hero p {
  color: var(--muted);
  line-height: 1.5;
  max-width: 620px;
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  border: 1px solid rgba(120, 247, 255, 0.25);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #cbe0ff;
  background: rgba(9, 24, 43, 0.65);
}

.hero-stage {
  background: var(--panel);
  border-radius: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  min-height: 470px;
  box-shadow: var(--shadow);
}

#heroCanvas {
  width: 100%;
  height: 470px;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: auto 16px 14px 16px;
  border-radius: 14px;
  background: rgba(2, 8, 16, 0.78);
  border: 1px solid rgba(150, 196, 255, 0.28);
  padding: 12px;
  display: grid;
  gap: 10px;
  font-size: 0.82rem;
}

.status-line {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  gap: 10px;
}

.status-line strong {
  color: var(--text);
  font-weight: 600;
}

section {
  margin-top: 54px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40% 10% auto -40%;
  height: 120%;
  background: radial-gradient(circle, rgba(120, 247, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.card p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.chip {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-cyan);
  border: 1px solid rgba(120, 247, 255, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Space Grotesk", sans-serif;
}

.architecture {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
}

.graph-panel {
  min-height: 350px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: radial-gradient(circle at 20% 20%, rgba(120, 247, 255, 0.08), rgba(7, 16, 31, 0.95));
  position: relative;
  overflow: hidden;
}

.ai-chat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 19, 36, 0.86);
  padding: 14px;
  display: grid;
  gap: 10px;
  min-height: 350px;
}

.chat-log {
  border: 1px solid rgba(147, 178, 226, 0.28);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 250px;
  background: rgba(5, 12, 24, 0.7);
  overflow: auto;
}

.msg {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.38;
}

.msg.user {
  background: rgba(120, 247, 255, 0.1);
  border: 1px solid rgba(120, 247, 255, 0.24);
}

.msg.ai {
  background: rgba(212, 255, 126, 0.1);
  border: 1px solid rgba(212, 255, 126, 0.22);
}

.chat-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-controls input {
  border-radius: 999px;
  border: 1px solid rgba(150, 195, 255, 0.35);
  background: rgba(6, 14, 28, 0.8);
  color: var(--text);
  padding: 9px 14px;
  font-family: "Outfit", sans-serif;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  border: 1px solid rgba(150, 197, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 22, 43, 0.62);
}

.timeline-key {
  border-right: 1px solid rgba(150, 197, 255, 0.2);
  padding: 11px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  color: #b5ceec;
  background: rgba(8, 16, 31, 0.8);
}

.timeline-body {
  padding: 11px;
  color: var(--muted);
  font-size: 0.92rem;
}

.founder {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 16px;
  align-items: stretch;
}

.founder-visual {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(120, 247, 255, 0.15), rgba(12, 24, 48, 0.95));
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.founder-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(220, 236, 255, 0.34);
  border-radius: 18px;
}

.founder-copy {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(11, 22, 42, 0.9);
  padding: 18px;
}

.founder-copy p {
  color: var(--muted);
  line-height: 1.5;
  margin: 10px 0;
}

.footer-cta {
  margin-top: 56px;
  border-radius: 24px;
  border: 1px solid rgba(212, 255, 126, 0.3);
  background: linear-gradient(160deg, rgba(212, 255, 126, 0.1), rgba(120, 247, 255, 0.08));
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 40px;
  color: #8ea5c6;
  font-size: 0.86rem;
}

@media (max-width: 1050px) {
  .hero,
  .architecture,
  .founder {
    grid-template-columns: 1fr;
  }

  .grid.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .grid.cards {
    grid-template-columns: 1fr;
  }

  #heroCanvas {
    height: 380px;
  }

  .hero-stage {
    min-height: 380px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-key {
    border-right: none;
    border-bottom: 1px solid rgba(150, 197, 255, 0.2);
  }
}
