:root {
  --bg: #09090b;
  --bg-band: #0d0d10;
  --surface: #121216;
  --surface-hover: #18181d;
  --border: #222228;
  --border-strong: #32323c;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #1ed760;
  --accent-hover: #25e569;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.mark-sq {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.mark-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mono-ver {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav a:hover {
  color: var(--text);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.link-muted {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.18s ease;
}

.link-muted:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 8px 16px;
}

.btn-lg {
  font-size: 0.92rem;
  padding: 13px 24px;
}

.btn-primary {
  background: var(--accent);
  color: #06120a;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

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

/* Hero */
.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.meta-strip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 24px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(2.35rem, 4.8vw, 3.65rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
  font-size: 1.08em;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 500px;
  margin-bottom: 30px;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.hero-specs dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-specs dd {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

/* Real Dual-Phone Hero Stage */
.hero-stage {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device {
  position: absolute;
}

.device-bezel {
  border-radius: 34px;
  padding: 9px;
  background: #1a1a20;
  border: 1px solid #30303a;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.device-bezel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  background: #0d0d10;
}

.device-front {
  width: 264px;
  z-index: 2;
  transform: translateX(-34px);
}

.device-back {
  width: 236px;
  z-index: 1;
  transform: translate(106px, 24px) rotate(4deg);
  opacity: 0.88;
}

.device-tag {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Shared Section Scaffolding */
.section {
  padding: 88px 0;
}

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

.surface-band {
  background: var(--bg-band);
}

.section-header-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 36px;
  margin-bottom: 48px;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.section-note {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* Interactive Real Screenshot Gallery */
.gallery-stage {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
}

.gallery-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gal-tab {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.gal-tab:hover {
  background: rgba(255, 255, 255, 0.03);
}

.gal-tab.active {
  background: #18181f;
  border-color: var(--border-strong);
}

.gal-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 3px;
}

.gal-tab.active .gal-num {
  color: var(--accent);
}

.gal-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.gal-text span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.gallery-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.viewer-phone {
  width: 278px;
  border-radius: 34px;
  padding: 9px;
  background: #1a1a20;
  border: 1px solid #32323c;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
}

.viewer-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  background: #0d0d10;
  transition: opacity 0.2s ease;
}

.viewer-bar {
  margin-top: 14px;
  text-align: center;
  max-width: 310px;
}

.mono-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(30, 215, 96, 0.1);
  border: 1px solid rgba(30, 215, 96, 0.28);
  padding: 3px 9px;
  border-radius: 6px;
}

.viewer-caption {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 7px;
}

/* 4-Screen Filmstrip */
.filmstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.strip-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
  color: var(--text-secondary);
  transition: border-color 0.18s ease, transform 0.2s ease;
}

.strip-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.strip-item.active {
  border-color: var(--accent);
  color: var(--text);
}

.strip-item img {
  width: 100%;
  aspect-ratio: 9 / 17;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  display: block;
  margin-bottom: 9px;
  background: #0d0d10;
}

.strip-item span {
  font-size: 0.82rem;
  font-weight: 600;
}

/* Studio Audio Rack */
.dsp-rack {
  display: grid;
  grid-template-columns: 320px 1fr;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}

.dsp-left {
  padding: 24px;
  border-right: 1px solid var(--border);
  background: #101014;
}

.rack-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.preset-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preset-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.16s ease;
}

.preset-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.preset-btn.active {
  background: rgba(30, 215, 96, 0.1);
  border-color: var(--accent);
  color: var(--text);
}

.preset-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.preset-code {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.preset-btn.active .preset-code {
  color: var(--accent);
}

.dsp-right {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.tel-k {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.tel-v {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.curve-box {
  background: #0a0a0d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px 10px;
}

.curve-svg {
  width: 100%;
  height: 138px;
  display: block;
}

#dspCurvePath,
#dspCurveArea {
  transition: d 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.curve-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.dsp-chain code {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #d4d4dc;
  background: #0a0a0d;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 9px;
  overflow-x: auto;
}

.dsp-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Spec Index List */
.spec-list {
  border-top: 1px solid var(--border);
}

.spec-row {
  display: grid;
  grid-template-columns: 56px 290px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.spec-index {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 3px;
}

.spec-name {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}

.spec-name svg {
  color: var(--accent);
  flex-shrink: 0;
}

.spec-name h3 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.spec-detail {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

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

.spec-detail code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #e4e4ec;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
}

.inline-role {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 5px;
  vertical-align: middle;
}

.role-dev {
  background: rgba(255, 183, 3, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(255, 183, 3, 0.35);
}

.role-admin {
  background: rgba(192, 132, 252, 0.16);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.35);
}

.role-member {
  background: rgba(30, 215, 96, 0.12);
  color: var(--accent);
  border: 1px solid rgba(30, 215, 96, 0.3);
}

/* Release & Install */
.release-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.release-panel,
.install-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
}

.release-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.release-ver {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.release-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
}

.release-notes li {
  position: relative;
  padding-left: 18px;
  font-size: 0.91rem;
  color: #d4d4dc;
}

.release-notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

.release-notes code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.install-panel h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-n {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(30, 215, 96, 0.1);
  border: 1px solid rgba(30, 215, 96, 0.25);
  padding: 4px 8px;
  border-radius: 7px;
  margin-top: 2px;
}

.steps-list strong {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 3px;
}

.steps-list p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.steps-list code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-left strong {
  font-weight: 800;
  font-size: 0.95rem;
}

.footer-left span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .section-header-split,
  .gallery-stage,
  .dsp-rack,
  .release-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    height: 490px;
    margin-top: 12px;
  }

  .dsp-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .spec-index {
    display: none;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 44px 0 64px;
  }

  .hero-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .device-front {
    width: 220px;
    transform: translateX(-22px);
  }

  .device-back {
    width: 196px;
    transform: translate(74px, 18px) rotate(4deg);
  }

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

  .telemetry-row {
    grid-template-columns: 1fr;
  }

  .link-muted {
    display: none;
  }
}
