:root {
  --bg: #050713;
  --bg-soft: #0b1023;
  --card: rgba(255, 255, 255, 0.07);
  --card-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f7ff;
  --muted: #aeb8d8;
  --cyan: #55e6ff;
  --violet: #9d62ff;
  --pink: #ff4fd8;
  --green: #75ffba;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #172554 0, transparent 32%),
              radial-gradient(circle at top right, #3b0764 0, transparent 30%),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  z-index: 2;
}

.aurora {
  position: fixed;
  width: 520px;
  height: 520px;
  filter: blur(80px);
  opacity: 0.36;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  animation: floatAura 12s ease-in-out infinite alternate;
}
.aurora-one { background: var(--cyan); left: -220px; top: 10%; }
.aurora-two { background: var(--pink); right: -240px; top: 35%; animation-delay: -4s; }

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #111a3a 0, #050713 70%);
  z-index: 1000;
  transition: opacity .55s ease, visibility .55s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-card {
  width: min(420px, 88vw);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.07);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(24px);
}
.loader-logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 9vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  text-shadow: 0 0 30px rgba(85,230,255,.55);
}
.loader-line {
  height: 8px;
  margin: 24px 0 14px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
}
.loader-line span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  animation: loadMove 1.2s ease-in-out infinite;
}
.loader p { color: var(--muted); margin: 0; }

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 19, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  z-index: 50;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #020617;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.08em;
}
.brand-text { font-family: "Space Grotesk", sans-serif; letter-spacing: -0.05em; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
  transition: .22s ease;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255,255,255,.08); }
.nav-cta { background: linear-gradient(135deg, rgba(85,230,255,.18), rgba(157,98,255,.18)); color: var(--text) !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: #fff; border-radius: 2px; }

.section {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 110px 0;
}
.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  grid-template-columns: 1.05fr .85fr;
  gap: 42px;
  padding-top: 150px;
}
.hero-grid {
  position: absolute;
  inset: 100px -20vw 0;
  opacity: .26;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .16em;
}
.eyebrow span { width: 36px; height: 2px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), transparent); }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; margin: 0; letter-spacing: -0.055em; }
h1 { font-size: clamp(3rem, 8vw, 7rem); line-height: .88; max-width: 820px; }
h2 { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: .95; }
h3 { font-size: 1.35rem; }
p { color: var(--muted); line-height: 1.72; }
.hero-text { max-width: 690px; font-size: 1.15rem; }
.hero-actions, .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid var(--line);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn.primary { background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #020617; box-shadow: 0 18px 42px rgba(85,230,255,.20); }
.btn.ghost { background: rgba(255,255,255,.06); color: var(--text); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
  max-width: 680px;
}
.hero-stats div, .vision-cards article, .os-card, .project-card, .timeline-item, .cta, .hero-panel {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}
.hero-stats div { padding: 18px; border-radius: 22px; }
.hero-stats strong { display: block; font-size: 1.6rem; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 22px;
  border-radius: var(--radius);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 50% 38%, rgba(85,230,255,.30), transparent 34%), radial-gradient(circle at 80% 20%, rgba(255,79,216,.20), transparent 32%);
  pointer-events: none;
}
.panel-top { position: relative; display: flex; gap: 8px; align-items: center; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.dot.active { background: var(--green); box-shadow: 0 0 20px var(--green); }
.panel-top p { margin: 0 0 0 auto; font-size: .85rem; }
.system-core {
  position: relative;
  display: grid;
  place-items: center;
  height: 330px;
}
.core-ring {
  position: absolute;
  width: 245px;
  height: 245px;
  border-radius: 50%;
  border: 1px solid rgba(85,230,255,.55);
  box-shadow: inset 0 0 34px rgba(85,230,255,.15), 0 0 70px rgba(85,230,255,.18);
  animation: spin 14s linear infinite;
}
.core-ring::before, .core-ring::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: inherit;
  border: 1px dashed rgba(255,255,255,.35);
}
.core-ring::after { inset: -34px; border-color: rgba(157,98,255,.35); animation: spin 9s linear infinite reverse; }
.core-center {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #020617;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.12em;
}
.terminal {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(0,0,0,.27);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.terminal p { margin: 8px 0; font-size: .86rem; color: #c6d3ff; }
.terminal span { color: var(--cyan); }
.terminal b { color: var(--green); }

.logos {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 35px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: rgba(255,255,255,.44);
  font-weight: 900;
  letter-spacing: .16em;
}
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: center; }
.section-copy p { max-width: 600px; }
.vision-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vision-cards article { padding: 24px; border-radius: 24px; }

.section-head { text-align: center; max-width: 820px; margin: 0 auto 44px; }
.os-grid, .project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.os-card, .project-card { padding: 26px; border-radius: 26px; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.os-card:hover, .project-card:hover { transform: translateY(-7px); border-color: rgba(85,230,255,.45); background: var(--card-strong); }
.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 18px;
  background: rgba(85,230,255,.12);
  color: var(--cyan);
  font-weight: 900;
}
.project-card.featured { background: linear-gradient(135deg, rgba(85,230,255,.14), rgba(157,98,255,.13)); }
.project-badge {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--cyan);
  font-weight: 900;
  font-size: .78rem;
}
.project-card a { color: var(--text); font-weight: 900; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timeline-item { position: relative; padding: 24px; border-radius: 24px; }
.timeline-item span { color: var(--cyan); font-weight: 900; font-size: .8rem; }
.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(85,230,255,.14), rgba(255,79,216,.10));
}
.cta p { max-width: 720px; }
.footer {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 50px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.footer p { margin: 0; }
.footer div { display: flex; gap: 18px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(28px); transition: .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@keyframes loadMove { 0% { transform: translateX(-110%); } 100% { transform: translateX(270%); } }
@keyframes floatAura { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(60px,-40px,0) scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 135px; }
  .hero-panel { min-height: 500px; }
  .os-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .vision-cards { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .site-header { top: 12px; height: 64px; border-radius: 24px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5,7,19,.94);
    backdrop-filter: blur(22px);
  }
  .nav.open { display: flex; }
  .nav a { text-align: center; padding: 14px; }
  .brand-text { display: none; }
  .section { width: min(100% - 24px, 1180px); padding: 78px 0; }
  h1 { font-size: clamp(3rem, 18vw, 5rem); }
  .hero-stats, .os-grid, .project-grid, .timeline { grid-template-columns: 1fr; }
  .hero-panel { min-height: 460px; }
  .core-ring { width: 205px; height: 205px; }
  .logos { justify-content: center; text-align: center; }
  .footer { flex-direction: column; }
}
