/* ========== Reset & base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { filter: brightness(1.15); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ========== Tokens ========== */
:root {
  --bg-0: #0A0B14;
  --bg-1: #15132A;
  --surface: #12141F;
  --surface-2: rgba(18, 20, 31, 0.6);
  --border: rgba(96, 165, 250, 0.12);
  --border-2: rgba(255, 255, 255, 0.06);
  --accent: #60A5FA;
  --accent-glow: rgba(96, 165, 250, 0.35);
  --success: #34D399;
  --premium: #A78BFA;
  --text: #F0F2F8;
  --text-muted: #8B8FA8;
  --radius-card: 14px;
  --radius-btn: 12px;
  --radius-tile: 10px;
  --section-pad: clamp(48px, 5vw, 88px);
  --container: 1120px;
}

body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(96, 165, 250, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(167, 139, 250, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 60%);
  min-height: 100vh;
}

/* ========== Typography ========== */
h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 200; letter-spacing: -0.02em; line-height: 1.05; }
h1 strong { font-weight: 400; color: var(--text); }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 300; letter-spacing: -0.015em; line-height: 1.15; }
h3 { font-size: 20px; font-weight: 500; line-height: 1.3; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--text); line-height: 1.5; max-width: 720px; }
.subtext { font-size: 16px; color: var(--text-muted); max-width: 620px; }

/* ========== Layout ========== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad) 0; position: relative; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { color: var(--text-muted); margin-top: 12px; font-size: 18px; }

/* ========== Header ========== */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 20, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { font-weight: 300; font-size: 22px; letter-spacing: -0.01em; }
.logo strong { font-weight: 500; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { color: var(--text-muted); font-size: 15px; }
nav a:hover { color: var(--text); }

/* Language picker */
.lang-picker { position: relative; }
.lang-picker-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 15px; padding: 6px 10px;
  border-radius: var(--radius-btn);
}
.lang-picker-btn:hover { color: var(--text); }
.lang-picker-btn svg { width: 16px; height: 16px; }
.lang-picker-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 8px; min-width: 160px;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
}
.lang-picker:hover .lang-picker-dropdown,
.lang-picker:focus-within .lang-picker-dropdown { opacity: 1; pointer-events: auto; transform: none; }
.lang-picker-dropdown a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text-muted); font-size: 15px;
}
.lang-picker-dropdown a:hover, .lang-picker-dropdown a.active {
  background: rgba(96, 165, 250, 0.08); color: var(--text);
}

/* ========== Hero ========== */
.hero { padding-top: calc(var(--section-pad) + 32px); padding-bottom: calc(var(--section-pad) + 16px); position: relative; overflow: hidden; }
.hero-backdrop {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-stars  { position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; opacity: 0.6; }
.hero-ridge  {
  position: absolute; bottom: 0; left: 0; right: 0;
  width: 100%; height: 68%;
  object-fit: cover; object-position: center top;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.hero-moonglow {
  position: absolute; top: -40px; left: 0; right: 0; margin: 0 auto;
  width: min(640px, 75vw); height: auto;
  mix-blend-mode: screen; opacity: 0.7;
  /* Soft radial fade kills the JPEG-edge rectangle */
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, black 30%, transparent 78%);
}
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero h1 { margin-bottom: 16px; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero .lead { margin-left: auto; margin-right: auto; margin-bottom: 8px; }
.hero .subtext { margin-left: auto; margin-right: auto; margin-bottom: 28px; }
.hero-note { color: var(--text-muted); font-size: 14px; margin-top: 16px; }
.app-store-badge { display: inline-block; }
.app-store-badge img { height: 54px; width: auto; }
.hero-screenshots {
  display: flex; gap: 24px; justify-content: center;
  margin-top: 64px; padding-bottom: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.hero-screenshots img {
  width: 260px; height: auto; border-radius: 28px;
  scroll-snap-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 60px rgba(96, 165, 250, 0.12);
}

/* ========== Stats bar ========== */
.stats-bar {
  background: var(--surface-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-bar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 44px; font-weight: 200; color: var(--accent); letter-spacing: -0.02em; }
.stat-label { display: block; font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ========== How It Works ========== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step {
  padding: 32px; border-radius: var(--radius-card);
  background: var(--surface-2); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  position: absolute; top: 24px; right: 24px;
  font-size: 14px; font-weight: 400; color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 { margin-bottom: 12px; }
.step p { color: var(--text-muted); }

/* ========== App preview showcase ========== */
.screenshot-showcase {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 24px 0 32px;
}
.screenshot-showcase picture img {
  width: 280px; height: auto; border-radius: 28px; scroll-snap-align: center;
}
.screenshot-showcase .glow-amber img  { box-shadow: 0 0 60px rgba(251, 191, 36, 0.15); }
.screenshot-showcase .glow-blue img   { box-shadow: 0 0 60px rgba(96, 165, 250, 0.18); }
.screenshot-showcase .glow-purple img { box-shadow: 0 0 60px rgba(167, 139, 250, 0.18); }
.screenshot-showcase .glow-teal img   { box-shadow: 0 0 60px rgba(52, 211, 153, 0.15); }
.screenshot-showcase .glow-red img    { box-shadow: 0 0 60px rgba(239, 68, 68, 0.12); }
.screenshot-showcase .glow-green img  { box-shadow: 0 0 60px rgba(52, 211, 153, 0.15); }

/* ========== Features ========== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(96,165,250,0.25); }
.feature-media {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--bg-1);
  overflow: hidden;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,11,20,0.7) 100%);
  pointer-events: none;
}
.feature-media .feature-icon {
  position: absolute; bottom: 12px; left: 12px;
  width: 28px; height: 28px; color: #fff; opacity: 0.9; z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.feature-body { padding: 24px; }
.feature-body h3 { margin-bottom: 10px; }
.feature-body p  { color: var(--text-muted); font-size: 15px; }

/* ========== Use Cases ========== */
.use-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.use-case {
  padding: 28px; border-radius: var(--radius-card);
  background: var(--surface-2); border: 1px solid var(--border-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  text-align: left;
}
.use-case-icon { width: 32px; height: 32px; color: var(--accent); display: block; margin-bottom: 14px; }
.use-case h3 { margin-bottom: 8px; }
.use-case p  { color: var(--text-muted); font-size: 15px; }

/* ========== Sounds ========== */
.sound-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.sound-category {
  padding: 24px; border-radius: var(--radius-card);
  background: var(--surface-2); border: 1px solid var(--border-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.sound-category-tile {
  width: 100%; aspect-ratio: 16/7; border-radius: var(--radius-tile);
  overflow: hidden; margin-bottom: 16px; position: relative;
}
.sound-category-tile img { width: 100%; height: 100%; object-fit: cover; }
.sound-category-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,11,20,0.55) 100%);
}
.sound-category h3 { margin-bottom: 12px; }
.sound-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sound-pill {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(96,165,250,0.06); border: 1px solid var(--border);
  color: var(--text); font-size: 13px;
}

/* ========== Pricing ========== */
.pricing-panel {
  max-width: 760px; margin: 0 auto;
  padding: 40px; border-radius: var(--radius-card);
  background: var(--surface-2); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pricing-panel h3 { margin-bottom: 8px; }
.pricing-panel .pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(167,139,250,0.14); color: var(--premium); margin-bottom: 12px; }
.pricing-panel ul { list-style: none; padding: 0; margin: 20px 0 0; }
.pricing-panel li { padding: 10px 0; color: var(--text-muted); border-bottom: 1px solid var(--border-2); display: flex; gap: 10px; }
.pricing-panel li:last-child { border-bottom: 0; }
.pricing-panel li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); margin-top: 10px; flex-shrink: 0; }

/* Legacy pricing grid (existing markup) */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; align-items: start; }
.pricing-tier {
  padding: 32px; border-radius: var(--radius-card);
  background: var(--surface-2); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pricing-tier.premium { border-color: rgba(167,139,250,0.3); }
.pricing-tier h3 { margin-bottom: 8px; }
.pricing-tier .price { font-size: 32px; font-weight: 200; color: var(--accent); margin: 12px 0; }
.pricing-tier ul { list-style: none; padding: 0; margin: 20px 0 0; }
.pricing-tier li { padding: 8px 0; color: var(--text-muted); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.pricing-tier li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); margin-top: 8px; flex-shrink: 0; }

/* ========== FAQ ========== */
.faq details, details.faq-item {
  border-top: 1px solid var(--border-2);
  padding: 20px 0;
}
.faq details:last-child, details.faq-item:last-of-type { border-bottom: 1px solid var(--border-2); }
.faq summary, details.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 500; gap: 16px;
}
.faq summary::-webkit-details-marker,
details.faq-item summary::-webkit-details-marker { display: none; }
.faq summary svg, details.faq-item summary svg { width: 20px; height: 20px; color: var(--accent); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary svg,
details.faq-item[open] summary svg { transform: rotate(180deg); }
.faq details p, details.faq-item p { color: var(--text-muted); margin-top: 12px; max-width: 680px; }

/* ========== Blog previews ========== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.blog-card {
  display: block;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-card); padding: 20px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .2s, transform .2s;
  color: inherit;
}
.blog-card:hover { border-color: rgba(96,165,250,0.25); transform: translateY(-2px); filter: none; }
.blog-card h3 { margin-bottom: 10px; font-size: 17px; color: var(--text); }
.blog-card p { color: var(--text-muted); font-size: 14px; }

/* ========== Halo button ========== */
.halo-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-btn);
  background: var(--accent); color: #0B1320; font-weight: 500;
  box-shadow: 0 0 32px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: box-shadow .25s;
}
.halo-btn:hover { box-shadow: 0 0 48px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18); filter: none; }

/* ========== Footer ========== */
footer { padding: 56px 0 40px; border-top: 1px solid var(--border-2); background: var(--bg-0); color: var(--text-muted); }
footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
footer h4 { color: var(--text); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; font-weight: 500; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { padding: 6px 0; }
footer a { color: var(--text-muted); font-size: 14px; }
footer a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid var(--border-2); padding-top: 24px; font-size: 13px; text-align: center; }

/* ========== Motion ========== */
[data-fade] { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
[data-fade].in-view { opacity: 1; transform: none; }

.breathing-pulse { animation: breathe 7s ease-in-out infinite; transform-origin: center; }
@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.08); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  [data-fade] { opacity: 1; transform: none; transition: none; }
  .hero-moonglow, .hero-stars { transform: none !important; }
  .breathing-pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ========== Backdrop-filter fallback ========== */
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  header, .stats-bar, .step, .feature-card, .use-case, .sound-category, .pricing-panel, .pricing-tier, .blog-card,
  .lang-picker-dropdown { background: rgba(18, 20, 31, 0.9); }
}

/* ========== Responsive ========== */
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .hero-screenshots img { width: 220px; }
}
@media (max-width: 540px) {
  nav a:not(.halo-btn) { display: none; }
  nav .lang-picker, nav .halo-btn { display: inline-flex; }
  .section-header { margin-bottom: 40px; }
}

/* ========== Utilities ========== */
.flex-center-wrap { display: flex; flex-wrap: wrap; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ========== Header extras (nav-logo, nav-links) ========== */
.nav-logo { font-size: 22px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.nav-logo:hover { filter: none; color: var(--text); }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-links li { list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); filter: none; }

/* ========== Comparison table ========== */
.comparison { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.comparison-table th, .comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-2);
}
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(96,165,250,0.04);
}
.comparison-table td:first-child { color: var(--text-muted); }
.comparison-table .drowze-col { color: var(--accent); }
.comparison-table .check { color: var(--success); font-weight: 500; }
.comparison-table .cross { color: #EF4444; opacity: 0.55; }

/* ========== Pricing tier price/note/highlighted ========== */
.pricing-tier h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.pricing-tier .price { font-size: 36px; font-weight: 200; color: var(--accent); letter-spacing: -0.02em; margin: 8px 0 2px; }
.pricing-tier .price-note { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.pricing-tier.highlighted { position: relative; border-color: rgba(167,139,250,0.3); box-shadow: 0 0 48px rgba(167,139,250,0.08); }
.pricing-tier .tier-badge {
  position: absolute; top: -10px; right: 16px;
  background: var(--premium); color: #0B1320;
  font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ========== Accessibility section ========== */
.a11y-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
.a11y-item {
  padding: 24px; text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.a11y-item .icon { color: var(--accent); margin: 0 auto 12px; display: block; }
.a11y-item p { color: var(--text-muted); font-size: 14px; }

/* ========== Blog tags, links, meta ========== */
.section-subtitle { color: var(--text-muted); margin-top: 12px; font-size: 17px; }
.blog-link { display: block; color: inherit; }
.blog-link:hover { filter: none; }
.blog-tag {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(96,165,250,0.1);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.blog-meta { font-size: 12px; color: var(--text-muted); opacity: 0.85; }

/* ========== Section header consistency ========== */
.section-header h2 { line-height: 1.15; }
.section-header .section-subtitle { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ========== Hide main-nav on narrow screens (replaces the old query) ========== */
@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 520px) {
  .nav-links { display: none; }
}

/* ========== Tighten sections further (user feedback: too much space) ========== */
.hero { padding-top: calc(var(--section-pad) + 24px); padding-bottom: var(--section-pad); }
.section-header { margin-bottom: 40px; }
.stats-bar { padding: 28px 0; }
footer { padding: 48px 0 32px; }

/* ========== Hero screenshots tighter under button ========== */
.hero-screenshots { margin-top: 40px; }
.hero-screenshots picture { flex: 0 0 auto; }

/* ========== Honest callout (under pricing) ========== */
.honest-callout {
  max-width: 760px; margin: 32px auto 0;
  padding: 28px 32px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.honest-callout h4 { color: var(--text); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.honest-callout p  { color: var(--text-muted); font-size: 15px; max-width: 620px; margin: 0 auto; }

/* ========== Final CTA ========== */
.cta-section { text-align: center; }
.cta-section h2 { max-width: 720px; margin: 0 auto 14px; }
.cta-section p  { color: var(--text-muted); margin: 0 auto 28px; max-width: 540px; }
.cta-section .app-store-badge { margin: 0 auto; }
