:root {
  --bg: #070b10;
  --surface: rgba(16, 23, 31, 0.82);
  --surface-solid: #0f161f;
  --border: rgba(130, 170, 195, 0.22);
  --text: #ecf4f6;
  --dim: #8ea5b3;
  --accent: #35f3a0;
  --accent2: #ffb84d;
  --accent3: #38bdf8;
  --accent4: #c084fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.container {
  position: relative;
  z-index: 2;
  width: min(1140px, calc(100vw - 36px));
  margin: 0 auto;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 11, 16, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font: 700 15px/1 ui-monospace, Menlo, monospace;
  letter-spacing: 0.16em;
}
.logo img { border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(53, 243, 160, 0.14);
  color: var(--accent) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: rgba(53, 243, 160, 0.24); }

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 7vw, 88px) 0 clamp(54px, 7vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font: 700 11px/1 ui-monospace, Menlo, monospace;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
h1 {
  margin: 0 0 18px;
  font: 700 clamp(36px, 5vw, 58px)/1.08 system-ui, -apple-system, sans-serif;
  letter-spacing: -0.025em;
}
.grad {
  background: linear-gradient(95deg, var(--accent), var(--accent3), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 0 0 26px;
  font-size: 17px;
  color: var(--dim);
  max-width: 540px;
}
.lead strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #2be393, #20c4c9);
  color: #05110d;
  box-shadow: 0 10px 30px rgba(53, 243, 160, 0.28);
}
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; margin-top: 8px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 480px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.hero-stats strong {
  display: block;
  font: 700 22px/1.1 ui-monospace, Menlo, monospace;
  color: var(--text);
}
.hero-stats span {
  font-size: 12px;
  color: var(--dim);
}

/* ---- Hero Showcase Frames ---- */
.hero-showcase {
  position: relative;
  padding-bottom: 28px;
}
.frame-desktop {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(53, 243, 160, 0.32);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
  background: #060a0e;
}
.frame-desktop img { display: block; width: 100%; height: auto; }

.frame-phone {
  position: absolute;
  right: -12px;
  bottom: -10px;
  width: 34%;
  max-width: 190px;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(74, 222, 128, 0.55);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.82);
  background: #020804;
}
.frame-phone img { display: block; width: 100%; height: auto; }

/* ---- Sections ---- */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(54px, 7vw, 88px) 0;
}
.section-alt {
  background: rgba(10, 16, 23, 0.76);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 40px;
}
.kicker {
  display: inline-block;
  font: 700 11px/1 ui-monospace, Menlo, monospace;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}
h2 {
  margin: 0 0 12px;
  font: 700 clamp(26px, 3.6vw, 38px)/1.15 system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--dim); font-size: 16px; }

/* ---- Feature Cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.card-tag {
  font: 700 10px/1 ui-monospace, Menlo, monospace;
  letter-spacing: 0.14em;
  color: var(--accent2);
  margin-bottom: 10px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--dim); font-size: 14px; }

/* ---- 3 Sound Worlds ---- */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.world-col {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.world-head {
  font: 700 13px/1 ui-monospace, Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.world-head.calm { color: var(--accent); }
.world-head.flow { color: var(--accent2); }
.world-head.elec { color: var(--accent4); }

.world-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ch-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(7, 11, 16, 0.72);
  border: 1px solid rgba(130, 170, 195, 0.16);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s, transform 0.15s, background 0.18s;
}
.ch-link:hover {
  border-color: var(--accent);
  background: rgba(53, 243, 160, 0.08);
  transform: translateX(3px);
}
.ch-link strong { font-size: 14px; }
.ch-link span { font-size: 12px; color: var(--dim); }

/* ---- Gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--dim);
}
.shot figcaption strong { color: var(--text); }

/* ---- Install Cards ---- */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.install-card {
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.install-card h3 { margin: 0 0 12px; font-size: 18px; color: var(--accent); }
.install-card ol { margin: 0 0 14px; padding-left: 18px; color: var(--dim); font-size: 14px; }
.install-card li { margin-bottom: 6px; }
.install-card a { color: var(--accent); }
.install-card code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 12px;
}
.badge-soon {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 184, 77, 0.14);
  border: 1px solid rgba(255, 184, 77, 0.38);
  color: var(--accent2);
  font: 600 11px/1 ui-monospace, Menlo, monospace;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 2;
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--dim);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid, .worlds-grid, .gallery, .install-grid { grid-template-columns: 1fr; }
  .frame-phone { right: 8px; bottom: -14px; width: 32%; }
  .nav-links a:not(.nav-cta) { display: none; }
}
