/* Suave Player — site stylesheet. Self-contained: no external fonts or CDNs. */

:root {
  --bg: #0b0d14;
  --bg-alt: #101322;
  --panel: #151a2c;
  --panel-2: #1b2138;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eaf2;
  --muted: #9aa2b8;
  --accent: #f2b544;      /* warm amber — the "bit-perfect" gold */
  --accent-2: #7c4dff;    /* violet — the gradient partner */
  --green: #3ddc84;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }

code { font-family: var(--mono); font-size: 0.92em; background: var(--panel);
       padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }

::selection { background: rgba(242, 181, 68, 0.3); }

/* ---------- ambient glow ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(124, 77, 255, 0.18), transparent 70%),
    radial-gradient(700px 500px at 10% 10%, rgba(242, 181, 68, 0.10), transparent 70%);
}

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

.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text);
         font-weight: 700; font-size: 1.05rem; letter-spacing: 0.2px; }
.brand em { font-style: normal; color: var(--accent); }
.brand-mark { width: 26px; height: 26px; fill: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #14100a;
  background: linear-gradient(135deg, var(--accent), #ffd57e);
  box-shadow: 0 4px 24px rgba(242, 181, 68, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(242, 181, 68, 0.4); transform: translateY(-1px); }
.btn-ghost {
  color: var(--text) !important;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.nav-links .btn { padding: 8px 16px; }

/* ---------- hero ---------- */
.hero { padding: 96px 24px 48px; text-align: center; }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(242, 181, 68, 0.3); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 22px; background: rgba(242, 181, 68, 0.06);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 22px;
}
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede {
  max-width: 640px; margin: 0 auto 32px; color: var(--muted); font-size: 1.13rem;
}
.lede strong { color: var(--text); }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- hero visual: fake player card ---------- */
.hero-visual { margin-top: 64px; }

.player-card {
  max-width: 560px; margin: 0 auto; display: flex; gap: 18px; align-items: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.pc-art { flex: 0 0 84px; }
.pc-art svg { width: 84px; height: 84px; display: block; border-radius: 10px; }
.pc-meta { flex: 1; min-width: 0; }
.pc-title { font-weight: 700; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-sub { color: var(--muted); font-size: 0.86rem; margin-bottom: 8px;
          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { opacity: 0.5; }

.waveform { display: flex; align-items: center; gap: 2px; height: 34px; margin: 6px 0 8px; }
.waveform i {
  flex: 1; border-radius: 2px; background: rgba(255, 255, 255, 0.16);
  height: calc(var(--h) * 1%); min-height: 3px;
}
.waveform i.played { background: linear-gradient(180deg, var(--accent), #c98f2b); }

.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-time { color: var(--muted); font-size: 0.82rem; font-family: var(--mono); }

.badge {
  font-size: 0.74rem; font-weight: 600; font-family: var(--mono);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.badge-green { color: var(--green); background: rgba(61, 220, 132, 0.1);
               border: 1px solid rgba(61, 220, 132, 0.35); }

.hero-stats {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 34px;
}
.stat { text-align: center; min-width: 140px; }
.stat b { display: block; font-size: 1.6rem; letter-spacing: -0.01em;
          background: linear-gradient(90deg, var(--accent), var(--accent-2));
          -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 0.85rem; }

/* ---------- sections ---------- */
.section { padding: 88px 24px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt .container { padding: 0 24px; }

.section h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; text-align: center;
}
.section-lede { color: var(--muted); max-width: 620px; margin: 0 auto 48px; text-align: center; font-size: 1.05rem; }

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

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(242, 181, 68, 0.35); }
.card-icon { font-size: 1.5rem; margin-bottom: 12px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.93rem; }
.card p b, .card p em { color: var(--text); }

/* ---------- split (audiophile) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text h2 { text-align: left; }
.split-text > p { color: var(--muted); margin-bottom: 22px; }

.checklist { list-style: none; }
.checklist li {
  padding: 10px 0 10px 32px; position: relative; color: var(--muted);
  border-bottom: 1px solid var(--line); font-size: 0.96rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li b { color: var(--text); }
.checklist li::before {
  content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700;
}

/* report card mock */
.report-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px;
           margin-bottom: 18px; font-weight: 700; font-size: 0.95rem; flex-wrap: wrap; }
.rc-head em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.rc-row { display: grid; grid-template-columns: 110px 1fr 84px; gap: 12px; align-items: center;
          padding: 9px 0; font-size: 0.86rem; color: var(--muted); }
.rc-row b { color: var(--text); font-family: var(--mono); font-weight: 600; text-align: right; }
.meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--v);
           background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }
.rc-foot { margin-top: 16px; font-size: 0.78rem; color: var(--muted); text-align: center;
           border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- architecture ---------- */
.arch { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.arch-core {
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.12), rgba(124, 77, 255, 0.12));
  border: 1px solid rgba(242, 181, 68, 0.35); border-radius: var(--radius);
  padding: 20px 24px;
}
.arch-core b { display: block; font-family: var(--mono); font-size: 1.05rem; margin-bottom: 4px; }
.arch-core span { color: var(--muted); font-size: 0.88rem; }
.arch-arrow { color: var(--muted); letter-spacing: 2.2em; padding: 12px 0 12px 2.2em; font-size: 0.75rem; }
.arch-clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.arch-node {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px;
}
.arch-node b { display: block; font-family: var(--mono); font-size: 0.92rem; margin-bottom: 2px; }
.arch-node span { color: var(--muted); font-size: 0.8rem; }

.arch-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 920px; margin: 0 auto; }
.arch-points div { color: var(--muted); font-size: 0.92rem;
                   border-left: 2px solid var(--accent); padding-left: 14px; }
.arch-points b { color: var(--text); display: block; margin-bottom: 2px; }

/* ---------- get it ---------- */
.get-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 52px 48px; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.get-card h2 { margin-bottom: 12px; }
.get-card > p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot { text-align: center; }
.brand-small { justify-content: center; margin-bottom: 12px; display: flex; }
.foot p { color: var(--muted); font-size: 0.88rem; max-width: 520px; margin: 0 auto; }

/* ---------- screenshots ---------- */
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: #101216;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.shot figcaption {
  color: var(--muted); font-size: 0.9rem; margin: 14px auto 0;
  max-width: 720px; text-align: center;
}
.shot figcaption b, .shot figcaption i { color: var(--text); }
.shot-wide { margin-bottom: 40px; }
.shot-row {
  display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start;
}
.shot-tall img { max-width: 320px; margin: 0 auto; }

/* ---------- contact / email reveal ---------- */
.section-contact { text-align: center; padding-top: 40px; }
.section-contact .section-lede { margin-bottom: 28px; }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.email-reveal { cursor: pointer; font: inherit; font-weight: 600; font-size: 0.95rem; }
.email-link {
  display: inline-block; font-family: var(--mono); font-size: 1.05rem; font-weight: 600;
  color: var(--accent); padding: 11px 22px;
  border: 1px solid rgba(242, 181, 68, 0.3); border-radius: 10px;
  background: rgba(242, 181, 68, 0.06);
}
.email-link:hover { background: rgba(242, 181, 68, 0.12); }
/* No-JS fallback: the address is stored reversed in the markup; this flips it
   back for humans while keeping the source useless to harvesters. */
.email-ns {
  unicode-bidi: bidi-override; direction: rtl;
  font-family: var(--mono); color: var(--accent); font-size: 1.05rem;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 14px; font-size: 0.9rem; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------- footer links ---------- */
.foot-links { display: flex; gap: 22px; justify-content: center; margin-top: 16px; }
.foot-links a { color: var(--muted); font-size: 0.88rem; }
.foot-links a:hover { color: var(--text); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .arch-points { grid-template-columns: 1fr; }
  .shot-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .arch-clients { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .player-card { flex-direction: column; align-items: stretch; text-align: center; }
  .pc-art { margin: 0 auto; }
  .get-card { padding: 36px 22px; }
}
