/* ============================================================
   Audiola — documentation / landing site
   Dark, premium, modern. No build step, no external deps.
   ============================================================ */

:root {
  --accent: #5B8CFF;
  --accent-2: #6BD6FF;
  --accent-3: #B56BFF;
  --bg: #0E0E13;
  --bg-2: #15151B;
  --surface: #191921;
  --surface-2: #1F1F29;
  --border: #2A2A37;
  --text: #EDEDF2;
  --text-2: #B4B4C4;
  --text-3: #7E7E92;
  --grad: linear-gradient(100deg, #3F8CFF 0%, #6BD6FF 50%, #B56BFF 100%);
  --grad-soft: linear-gradient(100deg, rgba(63,140,255,.18), rgba(107,214,255,.14), rgba(181,107,255,.18));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(0,0,0,.7);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

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

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.02em; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Background decoration ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 75% -8%, rgba(91,140,255,.20), transparent 60%),
    radial-gradient(700px 500px at 10% 0%, rgba(181,107,255,.14), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(14,14,19,.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta {
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 22px -8px rgba(91,140,255,.7);
}
.nav-cta:hover { filter: brightness(1.08); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; margin-left: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, filter .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -12px rgba(91,140,255,.65); }
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: #3a3a4c; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 70px; text-align: center; }
.hero-logo { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 26px; box-shadow: var(--shadow); }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 18px; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); max-width: 720px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; color: var(--text-3); font-size: 13.5px; }
.hero-meta strong { color: var(--text-2); font-weight: 600; }

/* equalizer bars decoration */
.eq-bars { display: flex; gap: 4px; align-items: flex-end; height: 22px; justify-content: center; margin: 30px auto 0; }
.eq-bars span {
  width: 5px; border-radius: 3px; background: var(--grad);
  animation: eq 1.1s ease-in-out infinite;
}
@keyframes eq { 0%,100% { height: 6px; } 50% { height: 22px; } }
.eq-bars span:nth-child(1){animation-delay:0s}.eq-bars span:nth-child(2){animation-delay:.12s}
.eq-bars span:nth-child(3){animation-delay:.24s}.eq-bars span:nth-child(4){animation-delay:.36s}
.eq-bars span:nth-child(5){animation-delay:.18s}.eq-bars span:nth-child(6){animation-delay:.30s}
.eq-bars span:nth-child(7){animation-delay:.06s}.eq-bars span:nth-child(8){animation-delay:.40s}
.eq-bars span:nth-child(9){animation-delay:.22s}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 17px; margin: 0; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 14px;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s, border-color .18s, background .18s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .2s;
}
.card:hover { transform: translateY(-4px); border-color: #38384a; background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--grad-soft); border: 1px solid var(--border);
  margin-bottom: 16px; color: var(--accent-2);
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.card ul { color: var(--text-2); font-size: 14px; margin: 12px 0 0; padding-left: 18px; }
.card ul li { margin: 4px 0; }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  color: var(--accent-2); background: rgba(107,214,255,.08);
  border: 1px solid rgba(107,214,255,.2);
  padding: 2px 9px; border-radius: 999px; margin: 2px 4px 0 0;
}

/* ---------- Detail rows ---------- */
.detail {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding: 36px 0; border-top: 1px solid var(--border);
}
.detail:first-of-type { border-top: 0; }
.detail.reverse { direction: rtl; }
.detail.reverse > * { direction: ltr; }
.detail h3 { font-size: 26px; margin-bottom: 14px; }
.detail .kicker { color: var(--accent-2); }
.detail p { color: var(--text-2); margin: 0 0 16px; }
.detail ul { color: var(--text-2); padding-left: 20px; margin: 0; }
.detail ul li { margin: 7px 0; }
.detail ul li strong { color: var(--text); font-weight: 600; }
.shot {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface-2); box-shadow: var(--shadow);
  width: 100%; display: block;
}
/* graceful fallback for not-yet-added screenshots */
.shot-frame {
  border-radius: var(--radius); border: 1px solid var(--border);
  background:
    var(--grad-soft),
    repeating-linear-gradient(115deg, var(--surface) 0 16px, var(--surface-2) 16px 32px);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  display: grid; place-items: center; text-align: center; padding: 24px;
  position: relative; overflow: hidden;
}
.shot-frame .shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.shot-frame .placeholder { color: var(--text-3); font-size: 13.5px; z-index: 1; }
.shot-frame .placeholder b { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 4px; }
.shot-frame .placeholder svg { opacity: .5; margin-bottom: 10px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--text-3); font-size: 13px; text-align: center; margin-top: 10px; }

/* ---------- Specs / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat .num { font-size: 30px; font-weight: 800; }
.stat .lbl { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }

/* ---------- Get started ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step .n {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; background: var(--grad); color: #fff; margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14.5px; margin: 0; }
code, pre { font-family: "SFMono-Regular", ui-monospace, "Cascadia Code", Consolas, monospace; }
pre {
  background: #0a0a0f; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; overflow-x: auto; font-size: 13.5px; color: #cdd3e0; margin: 16px 0 0;
}
code:not(pre code) { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 32px;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: var(--text-2); max-width: 560px; margin: 0 auto 28px; font-size: 17px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--text-3); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); }
.note {
  font-size: 13px; color: var(--text-3); background: var(--surface);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 18px;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .detail, .detail.reverse { grid-template-columns: 1fr; direction: ltr; gap: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2);
    border-bottom: 1px solid var(--border); padding: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-radius: 8px; }
  .nav-toggle { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
