:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-elevated: #161616;
  --border: #222222;
  --border-hover: #333333;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #eab308;
  --accent-bright: #facc15;
  --accent-dim: rgba(234, 179, 8, 0.12);
  --accent-border: rgba(250, 204, 21, 0.35);
  --emerald: #22c55e;
  --emerald-dim: rgba(34, 197, 94, 0.12);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(234, 179, 8, 0.11), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
}

.brand-footer img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 26px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.status-pill:hover {
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--text);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.75);
  transition: background 0.2s, box-shadow 0.2s;
}

.status-dot.checking {
  background: var(--accent-bright);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.7);
}

.status-dot.offline {
  background: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.75);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.2s, background 0.2s, color 0.2s;
}

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

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

.btn-sm {
  padding: 7px 13px;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent-bright);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #0a0a0a;
}

.btn-outline-accent {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent-bright);
}

.btn-outline-accent:hover {
  background: rgba(234, 179, 8, 0.2);
  border-color: var(--accent-bright);
}

/* Hero */
.hero {
  padding: 76px 0 64px;
}

.hero-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent-bright);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 630px;
  margin: 0 auto 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.release-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* Interactive Bridge Demo */
.demo-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.demo-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-bright);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.device-card {
  background: #0c0c0c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
  width: 100%;
}

.device-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1b1b1b;
}

.device-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--emerald-dim);
  padding: 3px 8px;
  border-radius: 999px;
}

.media-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.album-art {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 9px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.35s ease;
}

.album-art-badge {
  position: relative;
  z-index: 1;
}

.album-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.album-art img.is-active {
  opacity: 1;
}

.track-meta {
  min-width: 0;
  flex: 1;
}

.track-source {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  margin-bottom: 2px;
}

.track-title {
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.84rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-wrap {
  margin-bottom: 14px;
}

.progress-bar {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 999px;
  background: #242424;
  outline: none;
  cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-bright);
  cursor: pointer;
}

.progress-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--accent-bright);
  cursor: pointer;
}

.progress-times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 5px;
}

.pc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.pc-stat {
  background: var(--surface);
  border: 1px solid #1d1d1d;
  border-radius: 7px;
  padding: 8px 10px;
  min-width: 0;
}

.pc-stat-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.pc-stat-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  margin-top: 2px;
}

/* Center Relay Pipe */
.relay-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 155px;
}

.relay-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 6px 12px;
}

.relay-packet {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-dim);
  background: #0b0b0b;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  max-width: 165px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.relay-packet.flash {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.relay-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Android Controls */
.android-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.transport-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ctrl-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent-bright);
}

.ctrl-btn-play {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-color: var(--accent-bright);
  color: #0a0a0a;
}

.ctrl-btn-play:hover {
  background: var(--accent-bright);
  color: #0a0a0a;
}

.vol-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 155px;
}

.vol-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 32px;
  text-align: right;
}

/* Sections */
.section {
  padding: 68px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 36px;
  max-width: 640px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Security Strip */
.security-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.security-box > * {
  min-width: 0;
}

.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.security-list li strong {
  color: var(--text);
}

.check-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}

.code-card {
  background: #080808;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-muted);
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
}

.code-card .k {
  color: var(--accent-bright);
}

.code-card .g {
  color: var(--emerald);
}

.code-card .d {
  color: var(--text-dim);
}

/* Download Section */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.download-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.platform-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 999px;
}

.download-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.download-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.download-notes {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

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

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

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

/* Responsive */
@media (max-width: 920px) {
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .relay-node {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    background: #0c0c0c;
    border: 1px dashed var(--border);
    border-radius: 10px;
    gap: 8px 12px;
  }

  .relay-packet {
    max-width: 100%;
  }

  .grid-3,
  .steps-grid,
  .security-box,
  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-inner {
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    height: 60px;
    gap: 12px;
  }

  .brand img {
    height: 28px;
  }

  .nav-links {
    display: none;
  }

  .status-pill {
    padding: 7px 9px;
  }

  .status-pill span.status-text {
    display: none;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero-header {
    margin-bottom: 32px;
  }

  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    margin-bottom: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .demo-shell {
    padding: 14px;
    border-radius: 12px;
  }

  .demo-topbar {
    padding-bottom: 12px;
    margin-bottom: 14px;
    gap: 6px;
  }

  .device-card {
    padding: 14px;
  }

  .security-box {
    padding: 18px;
    gap: 20px;
    border-radius: 12px;
  }

  .code-card {
    padding: 14px;
    font-size: 0.72rem;
  }

  .download-card {
    padding: 20px;
  }

  .footer {
    padding: 28px 0 36px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 14px 18px;
  }
}

@media (max-width: 520px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn,
  .download-actions .btn {
    width: 100%;
  }

  .media-row {
    gap: 12px;
  }

  .album-art {
    width: 50px;
    height: 50px;
  }

  .android-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .transport-group {
    justify-content: center;
    gap: 14px;
  }

  .ctrl-btn {
    width: 40px;
    height: 40px;
  }

  .ctrl-btn-play {
    width: 44px;
    height: 44px;
  }

  .vol-group {
    max-width: none;
    width: 100%;
  }

  .progress-bar {
    height: 6px;
  }

  .progress-bar::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
  }

  .progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
  }
}
