:root{
  --paper: #f6f4fb;
  --surface: #ffffff;
  --surface-2: #eeecf7;
  --line: #e3e0ef;
  --border-strong: rgba(20,19,31,0.16);
  --ink: #14131f;
  --muted: #5c5975;
  --body-text: #33313f;
  --indigo: #4a47e0;
  --indigo-strong: #3733c4;
  --copper: #c97a43;
  --teal: #0f9488;
  --radius: 14px;
  --radius-lg: 28px;

  --net-line: 74,71,224;
  --net-node: 15,148,136;
  --net-fire: 201,122,67;
  --net-glow: rgba(74,71,224,0.16);
  --ring-rgb: 20,19,31;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

:root[data-theme="dark"]{
  --paper: #08080f;
  --surface: #121220;
  --surface-2: #181829;
  --line: #262638;
  --border-strong: rgba(243,242,251,0.18);
  --ink: #f3f2fb;
  --muted: #a3a0bd;
  --body-text: #c7c5db;
  --indigo: #9089ff;
  --indigo-strong: #b0a8ff;
  --copper: #e3a06b;
  --teal: #63e6d8;

  --net-line: 144,137,255;
  --net-node: 99,230,216;
  --net-fire: 227,160,107;
  --net-glow: rgba(144,137,255,0.22);
  --ring-rgb: 243,242,251;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body{ transition: background-color 0.2s ease, color 0.2s ease; }

.container{
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

a{ color: inherit; }

:focus-visible{
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */

.nav{
  padding: 24px 0;
}

.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 23px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo{
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.theme-toggle{
  width: 38px;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover{
  border-color: var(--border-strong);
  color: var(--ink);
}

.icon-moon{ display: none; }
:root[data-theme="dark"] .icon-sun{ display: none; }
:root[data-theme="dark"] .icon-moon{ display: block; }

/* ---------- Hero ---------- */

.hero{ padding: 32px 0 56px; }

.hero-panel{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero-content{
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 64px 56px;
}

.hero-brand{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
}

.hero-brand-logo{
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.badge{
  margin: 0 0 36px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.headline{
  margin: 0 0 32px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.headline em{
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 700;
  color: var(--indigo);
}

.subtext{
  margin: 0 0 52px;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.cta-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary{
  background: var(--indigo);
  color: #ffffff;
  border: 1px solid var(--indigo);
}

.btn-primary:hover{
  background: var(--indigo-strong);
  border-color: var(--indigo-strong);
  transform: translateY(-1px);
}

.btn-secondary{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  padding: 12.5px 21.5px;
}

.btn-secondary:hover{
  background: var(--surface);
  border-color: var(--ink);
}

.btn-ghost{
  padding: 12.5px 21.5px;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line);
}

.btn-ghost:hover{
  border-color: var(--border-strong);
  background: var(--surface);
}

.btn .arrow{
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover .arrow{ transform: translate(2px, -2px); }

/* ---------- Hero visual ---------- */

.hero-visual{
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 88% 6%, var(--net-glow), transparent 62%),
    var(--surface);
}

.hero-visual canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, var(--surface) 8%, color-mix(in srgb, var(--surface) 55%, transparent) 42%, transparent 72%);
}

.wip-tag{
  position: absolute;
  z-index: 3;
  left: 56px;
  bottom: 28px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: 0.01em;
}

/* ---------- About ---------- */

.about{
  padding: 88px 0 64px;
}

.about-inner{ max-width: 760px; }

.eyebrow{
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.about h2{
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.about-copy{
  margin: 0;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-text);
}

.specs{
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 24px;
  margin: 44px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.spec dt{
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec dd{
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer{
  border-top: 1px solid var(--line);
}

.footer-inner{
  padding: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.dot{ opacity: 0.5; }

/* ---------- Responsive ---------- */

@media (max-width: 900px){
  .hero-panel{ min-height: 440px; }
  .hero-content{ max-width: 100%; padding: 48px 28px; }
  .wip-tag{ left: 28px; bottom: 20px; }
  .hero-scrim{
    background: linear-gradient(180deg,
      var(--surface) 34%,
      color-mix(in srgb, var(--surface) 55%, transparent) 58%,
      transparent 84%);
  }
  .specs{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px){
  .container{ padding: 0 20px; }
  .hero{ padding: 24px 0 40px; }
  .hero-panel{ min-height: 400px; border-radius: var(--radius); }
  .hero-content{ padding: 36px 22px; }
  .wip-tag{ left: 22px; bottom: 16px; }
  .badge{ font-size: 11.5px; }
  .btn{ font-size: 14px; padding: 12px 18px; }
  .footer-inner{ padding: 20px; flex-direction: column; gap: 2px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
