:root {
  color-scheme: dark;
  --ink: #0d1116;
  --ink-soft: #151a21;
  --ink-raised: #1d2430;
  --paper: #f8f4ec;
  --muted: #aeb6c3;
  --muted-2: #7e8998;
  --violet: #b9a7ff;
  --violet-strong: #7357e8;
  --amber: #f2be73;
  --amber-deep: #d99a43;
  --line: rgba(248, 244, 236, .12);
  --shadow: 0 28px 70px rgba(0, 0, 0, .38);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 86% -4%, rgba(99, 68, 216, .26), transparent 34rem),
    radial-gradient(circle at -12% 46%, rgba(217, 154, 67, .11), transparent 28rem),
    var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; }
.skip-link:focus { left: 16px; padding: 10px 14px; background: var(--paper); color: var(--ink); border-radius: 10px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(13, 17, 22, .72);
  backdrop-filter: blur(18px) saturate(150%);
}
.site-header.scrolled { border-color: var(--line); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .32); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; transition: color .18s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--paper); }
.nav-cta { padding: 10px 16px; border: 1px solid rgba(185, 167, 255, .35); border-radius: 999px; background: rgba(99, 68, 216, .16); }

.hero { min-height: 820px; display: grid; align-items: center; padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 18px; color: var(--amber); font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 650; line-height: 1.04; text-wrap: balance; }
h1 { max-width: 720px; font-size: clamp(3.5rem, 7.6vw, 6.8rem); letter-spacing: -.065em; }
h1 em { color: var(--amber); font-style: normal; }
.hero-copy { max-width: 610px; margin: 28px 0 32px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 760;
}
.button-primary { color: #171a22; background: linear-gradient(135deg, #ffe0a2, var(--amber)); box-shadow: 0 14px 40px rgba(217, 154, 67, .22); }
.button-secondary { border-color: var(--line); background: rgba(248, 244, 236, .045); }
.microcopy { margin: 18px 0 0; color: var(--muted-2); font-size: .82rem; }

.hero-art { position: relative; min-height: 650px; }
.hero-glow { position: absolute; inset: 11% 0 3%; border-radius: 50%; background: rgba(99, 68, 216, .25); filter: blur(70px); }
.phone {
  position: absolute;
  inset: 0 auto 0 16%;
  width: min(72%, 392px);
  padding: 9px;
  border: 1px solid rgba(248, 244, 236, .25);
  border-radius: 52px;
  background: #080b0f;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}
.phone::before { content: ""; position: absolute; z-index: 2; top: 18px; left: 50%; width: 34%; height: 25px; border-radius: 20px; background: #090b0e; transform: translateX(-50%); }
.phone img { width: 100%; height: 100%; border-radius: 43px; object-fit: cover; }
.now-playing {
  position: absolute;
  right: 0;
  bottom: 82px;
  z-index: 3;
  width: 240px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(29, 36, 48, .88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
}
.now-playing small { color: var(--amber); text-transform: uppercase; letter-spacing: .14em; }
.now-playing strong { display: block; margin: 8px 0 4px; font-family: Georgia, serif; font-size: 1.15rem; }
.wave { display: flex; height: 28px; align-items: center; gap: 3px; margin-top: 12px; }
.wave span { width: 3px; height: 35%; border-radius: 8px; background: var(--violet); animation: pulse 1.2s ease-in-out infinite alternate; }
.wave span:nth-child(2n) { height: 78%; animation-delay: -.3s; }
.wave span:nth-child(3n) { height: 50%; animation-delay: -.65s; }
@keyframes pulse { to { height: 95%; opacity: .65; } }

.stats { padding: 0 0 112px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(248, 244, 236, .025); }
.stat { padding: 26px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat strong { display: block; color: var(--amber); font-family: Georgia, serif; font-size: 2rem; }
.stat span { color: var(--muted); font-size: .86rem; }

.section { padding: 112px 0; }
.section-kicker { color: var(--violet); font-weight: 780; letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; }
.section h2 { max-width: 780px; margin-top: 12px; font-size: clamp(2.65rem, 5vw, 4.8rem); letter-spacing: -.045em; }
.section-intro { max-width: 660px; margin: 22px 0 46px; color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 260px; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg, rgba(248,244,236,.055), rgba(248,244,236,.016)); }
.feature-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 46px; border: 1px solid rgba(242,190,115,.28); border-radius: 14px; color: var(--amber); background: rgba(217,154,67,.08); font-size: 1.3rem; }
.feature-card h3 { font-size: 1.55rem; }
.feature-card p { margin: 12px 0 0; color: var(--muted); font-size: .94rem; }

.shelf { background: linear-gradient(180deg, rgba(99, 68, 216, .08), transparent); }
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); align-items: end; }
.cover { position: relative; }
.cover:nth-child(even) { transform: translateY(34px); }
.cover img { aspect-ratio: 2 / 3; width: 100%; border-radius: 17px; object-fit: cover; box-shadow: 0 22px 48px rgba(0,0,0,.4); }
.cover p { margin: 13px 2px 0; color: var(--muted); font-size: .8rem; }

.offline-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 54px; border: 1px solid rgba(185,167,255,.2); border-radius: 34px; background: radial-gradient(circle at 80% 20%, rgba(99,68,216,.22), transparent 50%), var(--ink-soft); box-shadow: var(--shadow); }
.offline-panel h2 { font-size: clamp(2.5rem, 4.7vw, 4.4rem); }
.offline-list { display: grid; gap: 14px; }
.offline-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(13,17,22,.32); }
.offline-item b { display: grid; flex: 0 0 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--amber); }
.offline-item span { color: var(--muted); font-size: .9rem; }

.cta { padding: 92px 0 122px; text-align: center; }
.cta-inner { padding: 72px 24px; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(135deg, rgba(99,68,216,.2), rgba(217,154,67,.1)); }
.cta h2 { font-size: clamp(2.7rem, 5.5vw, 5rem); }
.cta p { max-width: 600px; margin: 22px auto 30px; color: var(--muted); }

.site-footer { padding: 34px 0 42px; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; color: var(--muted-2); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: var(--paper); }

.legal-main { min-height: 70vh; padding: 72px 0 110px; }
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.legal .lede { margin: 26px 0 48px; color: var(--muted); font-size: 1.15rem; }
.legal h2 { margin: 48px 0 15px; font-family: inherit; font-size: 1.35rem; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--paper); }
.legal a { color: var(--amber); }
.legal-note { margin: 30px 0; padding: 20px 22px; border-left: 3px solid var(--violet); border-radius: 0 14px 14px 0; background: rgba(185,167,255,.07); }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 42px; }
.support-card { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--ink-soft); }
.support-card h2 { margin-top: 0; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid, .offline-panel { grid-template-columns: 1fr; }
  .hero-art { min-height: 600px; }
  .phone { left: 10%; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 48px; }
  h1 { font-size: clamp(3.45rem, 18vw, 5rem); }
  .hero-grid { gap: 46px; }
  .hero-art { min-height: 530px; }
  .phone { left: 4%; width: 84%; border-radius: 44px; }
  .phone img { border-radius: 36px; }
  .now-playing { right: 0; bottom: 36px; width: 205px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px; }
  .feature-grid, .support-grid { grid-template-columns: 1fr; }
  .feature-card:last-child { grid-column: auto; }
  .covers { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .cover:nth-child(even) { transform: none; }
  .offline-panel { padding: 30px 22px; gap: 34px; }
  .section { padding: 82px 0; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
