:root {
  --bg: #030508;
  --bg-alt: #0a0f18;
  --neon: #2fd4ff;
  --neon-dim: rgba(47, 212, 255, 0.35);
  --neon-soft: rgba(47, 212, 255, 0.08);
  --text: #e8f4ff;
  --text-dim: #7d8fa3;
  --border: rgba(47, 212, 255, 0.18);
}

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

html { scroll-behavior: smooth; }

#portfolio, #portfolio-about { scroll-margin-top: 90px; }

body {
  background:
    linear-gradient(rgba(47,212,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,212,255,0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto;
  background-position: -1px -1px, -1px -1px, 0 0;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before, body::after {
  content: "";
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

body::before {
  top: -220px;
  left: -180px;
  background: radial-gradient(circle, rgba(47,212,255,0.28), transparent 70%);
  animation: driftA 20s ease-in-out infinite alternate;
}

body::after {
  bottom: -240px;
  right: -180px;
  background: radial-gradient(circle, rgba(99,102,241,0.24), transparent 70%);
  animation: driftB 24s ease-in-out infinite alternate;
}

@keyframes driftA { from { transform: translate(0,0); } to { transform: translate(70px, 50px); } }
@keyframes driftB { from { transform: translate(0,0); } to { transform: translate(-60px, -40px); } }

h1, h2, h3, .logo { font-family: "Space Grotesk", -apple-system, sans-serif; }

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

a { color: var(--neon); }

header {
  border-bottom: 1px solid var(--border);
  background: rgba(3, 5, 8, 0.75);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 10;
}

nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav .logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon), 0 0 20px var(--neon-dim);
}

nav .links { display: flex; align-items: center; }

nav .links a {
  margin-left: 1.75rem;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s;
}

nav .links a:hover { color: var(--neon); }
nav .links a.active { color: var(--neon); }

nav .links a.btn { margin-left: 1.75rem; }
nav .links a.btn-primary { color: #02121a; }
nav .links a.btn-primary:hover { color: #02121a; }

.nav-dropdown {
  position: relative;
  margin-left: 1.75rem;
  display: flex;
  align-items: center;
}

.nav-dropdown .nav-trigger {
  color: var(--text-dim);
  font-size: 0.95rem;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
}

.nav-dropdown .nav-trigger svg { width: 11px; height: 11px; }

.nav-dropdown:hover .nav-trigger,
.nav-dropdown:focus-within .nav-trigger,
.nav-dropdown .nav-trigger.active { color: var(--neon); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.6rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  margin: 0;
}

.nav-dropdown-menu a:hover { background: rgba(47,212,255,0.08); color: var(--neon); }

a:focus-visible, .btn:focus-visible, .card:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--neon);
  color: #02121a;
  box-shadow: 0 0 0 rgba(47,212,255,0);
}

.btn-primary:hover {
  box-shadow: 0 0 24px var(--neon-dim);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5.5rem;
  min-height: 60vh;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text { order: 1; }
.hero .orbit-visual { order: 2; margin-bottom: 0; }

.hero .tag {
  color: var(--neon);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, var(--neon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px var(--neon-dim));
}

.hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-top: 1.1rem;
}

.hero .cta-row {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.orbit-visual { display: flex; justify-content: center; margin-bottom: 1rem; position: relative; }
.orbit-visual::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(47,212,255,0.18), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.orbit-visual svg { width: 100%; max-width: 380px; height: auto; }
.orbit-visual.small svg { max-width: 220px; }

.node { animation: pulse 3s ease-in-out infinite; }
.node.n2 { animation-delay: 0.6s; }
.node.n3 { animation-delay: 1.2s; }
.node.n4 { animation-delay: 1.8s; }
.node.n5 { animation-delay: 2.4s; }

@keyframes pulse {
  0%, 100% { opacity: 0.5; r: 3; }
  50% { opacity: 1; r: 5; }
}

.flow { stroke-dasharray: 6 10; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }

.ring { transform-origin: 200px 200px; }
.ring-a { animation: spin 42s linear infinite; }
.ring-b { animation: spin-rev 30s linear infinite; }
.orbit { transform-origin: 200px 200px; }
.orbit-1 { animation: spin 14s linear infinite; }
.orbit-2 { animation: spin-rev 20s linear infinite; }
.orbit-3 { animation: spin 26s linear infinite; }

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

.panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}

.section-label.center {
  justify-content: center;
  width: fit-content;
  margin: 5rem auto 1.25rem;
}
.section-label.center::after { display: none; }

.section-label {
  color: var(--neon);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 5rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.vision { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--border); text-align: center; }
.vision h2 { font-size: 1.9rem; max-width: 30rem; margin: 0 auto 1rem; }
.vision p { color: var(--text-dim); font-size: 1.05rem; max-width: 40rem; margin: 0 auto 1rem; }

.founder {
  margin: 3rem auto 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 40rem;
  text-align: center;
}

.founder strong { color: var(--text); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover {
  border-color: var(--neon);
  box-shadow: 0 0 28px var(--neon-dim);
  transform: translateY(-3px);
}

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

.card .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  color: var(--neon);
}

.card h3 { color: var(--text); font-size: 1.2rem; margin-bottom: 0.4rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; flex-grow: 1; }

.card .go {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--neon);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.card .go:hover { text-decoration: underline; }

.page { text-align: center; }

.page h1 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 18px var(--neon-dim));
}

.page p { color: var(--text-dim); max-width: 34rem; margin: 0 auto 1rem; }

.pillars {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 2.5rem auto 0;
  max-width: 40rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 9rem;
}

.pillar .icon-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pillar:hover .icon-ring { box-shadow: 0 0 22px var(--neon-dim); border-color: var(--neon); }
.pillar span { font-size: 0.9rem; color: var(--text-dim); }

.contact-card {
  max-width: 26rem;
  margin: 2rem auto 0;
  padding: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  text-align: center;
}

.contact-card .icon-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 22px var(--neon-dim);
}

.contact-card p { margin-bottom: 1.5rem; }

main.centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60vh;
}

.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-top: 2.5rem;
  text-align: left;
}

.glossary .term {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.glossary .term dt {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--neon);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.glossary .term dd {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}

.timeline {
  max-width: 42rem;
  margin: 2.5rem auto 0;
  text-align: left;
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 1.75rem;
  border-left: 1px solid var(--border);
}

.timeline-item:last-child { border-left: 1px solid transparent; padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon), 0 0 20px var(--neon-dim);
}

.timeline-item .date {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--neon);
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.timeline-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.timeline-item p { color: var(--text-dim); font-size: 0.95rem; }

.empty-note {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 1rem;
  font-style: italic;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

.grid .card:nth-child(1) { transition-delay: 0s; }
.grid .card:nth-child(2) { transition-delay: 0.12s; }
.grid .card:nth-child(3) { transition-delay: 0.24s; }

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

footer a { color: var(--text-dim); text-decoration: none; margin-left: 1.25rem; }
footer a:hover { color: var(--neon); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .orbit-visual { order: -1; margin: 0 auto 1rem; }
  .hero .orbit-visual svg { max-width: 240px; }
  .hero .cta-row { justify-content: center; }
  .hero h1 { font-size: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.section-label.tight { margin-top: 3rem; }
.section-label.flush { margin-top: 0; }
.mt-lg { margin-top: 3rem; }
.center-row { justify-content: center; margin-top: 1.5rem; }
.center-note { text-align: center; margin-top: 2rem; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.status-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.stat-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.stat-row .stat { text-align: center; }
.stat-row .stat .num { font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; color: var(--neon); }
.stat-row .stat .label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 520px) {
  nav {
    flex-wrap: wrap;
    row-gap: 0.6rem;
    padding: 1rem 1.25rem;
  }
  nav .logo { font-size: 0.95rem; white-space: nowrap; }
  nav .links {
    width: 100%;
    justify-content: space-between;
  }
  nav .links a { margin-left: 0; }
  nav .links a.btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
  .nav-dropdown { margin-left: 0; flex-direction: column; align-items: flex-start; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 0 0.9rem;
    margin-top: 0.35rem;
    min-width: 0;
  }
  .nav-dropdown-menu a { padding: 0.3rem 0; font-size: 0.85rem; }
  .nav-dropdown .nav-trigger svg { display: none; }
}
