/* Moony — shared site stylesheet. Palette mirrors the mobile app exactly
   (src/theme/colors.ts) so the website and the app read as one product. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark;
  --bg-deep:     #03112A; /* colors.backgroundDeep */
  --bg:          #0B1E3D; /* colors.background */
  --surface:     #152B4E; /* colors.surface */
  --surface-2:   #1C3B66; /* colors.surfaceElevated */
  --bezel:       #1B2F52; /* phone frames */
  --gold:        #E8CA92; /* colors.accent */
  --gold-light:  #F2DFB8;
  --gold-dim:    rgba(232,202,146,0.12);
  --text:        #FFFFFF; /* colors.title / colors.body */
  --text-muted:  #A9BBD6; /* lightened colors.muted for AA contrast on dark bg */
  --text-sub:    #5D7DA5; /* colors.muted */
  --border:      rgba(93,125,165,0.35); /* colors.border, dimmed */
  --danger:      #E8778B; /* colors.danger */
  --button-text: #122545; /* colors.buttonText — dark navy on gold buttons */
  --radius:      16px;
  --radius-lg:   28px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, blockquote, .section-sub, .page-desc, .step p, .usecase-card p { text-wrap: balance; }
section[id] { scroll-margin-top: 80px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Line icons — same lucide set the app uses, inlined via an SVG sprite */
.icon {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(3,17,42,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.logo-icon {
  width: 34px; height: 34px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon .icon { width: 18px; height: 18px; stroke: var(--button-text); fill: var(--button-text); stroke-width: 1.6; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a:not(.btn-gold) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:not(.btn-gold):hover { color: var(--text); }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--button-text) !important;
  padding: 11px 24px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-gold:hover { background: var(--gold-light) !important; transform: translateY(-2px); }
.btn-gold:disabled { opacity: 0.6; cursor: default; transform: none; }

.store-row { display: flex; gap: 14px; flex-wrap: wrap; }

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 22px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.store-btn:hover { background: var(--surface-2); border-color: rgba(232,202,146,0.45); transform: translateY(-2px); }
.store-btn svg { width: 24px; height: 24px; flex-shrink: 0; fill: var(--gold); }
.store-btn-text small { display: block; font-size: 0.68rem; color: var(--text-muted); line-height: 1.3; }
.store-btn-text strong { font-size: 0.98rem; font-weight: 700; line-height: 1.3; }

/* ── PHONE FRAME (real app screens) ──────────────────── */
.phone {
  position: relative;
  border-radius: 40px;
  border: 7px solid var(--bezel);
  background: var(--bg-deep);
  overflow: hidden;
  box-shadow:
    0 50px 100px rgba(0,0,0,0.55),
    0 0 0 1px rgba(232,202,146,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}
.phone img { display: block; width: 100%; height: auto; }
/* slim "island" sitting in the blank status-bar band of the screens */
.phone::after {
  content: '';
  position: absolute;
  top: 1.7%;
  left: 50%;
  transform: translateX(-50%);
  width: 27%;
  height: 2.6%;
  background: #000;
  border-radius: 999px;
  opacity: 0.92;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 138px 48px 84px;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-text { flex: 1 1 0; max-width: 560px; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge .icon { width: 14px; height: 14px; fill: var(--gold); }

.hero h1 {
  font-size: clamp(2.3rem, 4.3vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--gold); }

.hero-lede {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--gold); }

/* Hero visual: the real Player screen over a softly pulsing "sound aura" */
.hero-visual {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 600px;
}

.aura { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

.aura-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232,202,146,0.22);
  animation: pulse 6s ease-in-out infinite;
}
.aura-ring.r1 { width: 340px; height: 340px; animation-delay: 0s; }
.aura-ring.r2 { width: 420px; height: 420px; animation-delay: 0.6s; border-color: rgba(232,202,146,0.15); }
.aura-ring.r3 { width: 500px; height: 500px; animation-delay: 1.2s; border-color: rgba(232,202,146,0.09); }

.aura-glow {
  position: absolute;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(232,202,146,0.26) 0%, rgba(232,202,146,0.05) 55%, transparent 75%);
  animation: breathe 5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 0.45; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-phone { position: relative; z-index: 2; width: 270px; animation: float 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aura-ring, .aura-glow, .hero-phone { animation: none; }
}

/* ── SECTION COMMON ──────────────────────────────────── */
.section { padding: 96px 48px; }
.section-alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 56px;
}

/* ── USE CASES ───────────────────────────────────────── */
.usecases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.usecase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.22s;
}
.usecase-card:hover { border-color: rgba(232,202,146,0.35); background: var(--surface-2); transform: translateY(-4px); }
.usecase-icon {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.usecase-icon .icon { width: 24px; height: 24px; }
.usecase-card h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.usecase-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; }

/* ── HOW IT WORKS (steps paired with the real screens) ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 40px;
  margin-top: 8px;
}

.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step .phone { width: min(100%, 250px); }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  margin-top: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--button-text);
  font-weight: 800;
  font-size: 0.95rem;
}

.step h3 { font-size: 1.15rem; font-weight: 800; margin: 16px 0 10px; letter-spacing: -0.01em; }
.step p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; max-width: 310px; }

/* ── FEATURES ────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: all 0.22s;
}
.feature-card:hover {
  border-color: rgba(232,202,146,0.3);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(3,17,42,0.5);
}

.feature-icon {
  width: 48px; height: 48px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
}
.feature-icon .icon { width: 22px; height: 22px; }

.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; }

/* ── QUOTE ───────────────────────────────────────────── */
.quote-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }

.quote-mark {
  font-size: 5.5rem;
  line-height: 0.4;
  color: var(--gold);
  opacity: 0.3;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 26px;
}

blockquote {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 22px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.quote-attr { font-size: 0.78rem; font-weight: 700; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; }

/* ── TESTIMONIALS ────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; text-align: left; }

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}

.stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 16px; }
.stars .icon { width: 16px; height: 16px; fill: var(--gold); }
.testimonial-card p.body { flex: 1; font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.testimonial-name { font-size: 0.85rem; font-weight: 700; color: var(--text); }

/* ── CTA ─────────────────────────────────────────────── */
.cta-section { position: relative; text-align: center; overflow: hidden; }
.cta-section::before {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: 900px; height: 520px;
  max-width: 100%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(28,59,102,0.6), transparent);
  pointer-events: none;
}
.cta-section .section-inner { position: relative; }
.cta-mascot { width: 130px; height: auto; margin: 0 auto 26px; }
.cta-section h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 18px; }
.cta-section p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; margin-bottom: 36px; }
.cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── FOOTER ──────────────────────────────────────────── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 48px; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.78rem; color: var(--text-sub); }

/* ── LEGAL / SUPPORT PAGES ───────────────────────────── */
.legal-main { max-width: 760px; margin: 0 auto; padding: 140px 24px 100px; }

.page-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.legal-main h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 12px; }
.last-updated { color: var(--text-sub); font-size: 0.85rem; margin-bottom: 32px; }
.page-desc { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; margin-bottom: 44px; max-width: 560px; }

.highlight-box {
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 34px;
}
.highlight-box p { color: var(--text); font-size: 0.95rem; line-height: 1.7; }

.legal-main h2 { font-size: 1.1rem; font-weight: 800; color: var(--gold); margin: 38px 0 10px; letter-spacing: -0.01em; }
.legal-main p, .legal-main li { color: var(--text-muted); font-size: 0.96rem; line-height: 1.8; }
.legal-main p + p { margin-top: 12px; }
.legal-main ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.legal-main strong { color: var(--text); }
.legal-main a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Support: FAQ accordion (native <details>, no JS) */
.faq { margin-bottom: 56px; }
.faq > h2 { margin-top: 0; margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 9px; height: 9px;
  margin-right: 6px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-answer { padding: 0 4px 22px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }
.faq-answer strong { color: var(--text); }

/* Support: contact form */
.form-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.legal-main .form-block h2 { margin-top: 0; }
.form-block > p { margin-bottom: 26px; }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group textarea {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-sub); }
.hp { display: none; }

.msg { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 0.9rem; line-height: 1.6; }
.msg.show { display: block; }
.msg.success { background: var(--gold-dim); border: 1px solid rgba(232,202,146,0.35); color: var(--gold-light); }
.msg.error { background: rgba(232,119,139,0.1); border: 1px solid rgba(232,119,139,0.4); color: var(--danger); }


/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 960px) {
  nav { padding: 14px 24px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.btn-gold) { display: none; }
  .hero { flex-direction: column; padding: 112px 24px 56px; text-align: center; gap: 36px; }
  .hero-text { max-width: 100%; }
  .hero-lede { max-width: 100%; margin-left: auto; margin-right: auto; }
  .store-row, .cta-row, .hero-meta { justify-content: center; }
  .hero-visual { min-height: 560px; width: 100%; }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 24px; }
  footer { padding: 34px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }
  .legal-main { padding: 116px 20px 80px; }

  /* Steps become a swipeable row so three phones don't stack into a wall */
  .steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    margin: 0 -24px;
    padding: 4px 24px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 min(74%, 280px); scroll-snap-align: center; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .usecase-card { padding: 26px 16px; }
  .store-btn { padding: 11px 16px; gap: 10px; }
  .hero-visual { min-height: 500px; }
  .hero-phone { width: 232px; }
  .aura-ring.r1 { width: 290px; height: 290px; }
  .aura-ring.r2 { width: 340px; height: 340px; }
  .aura-ring.r3 { display: none; }
  .aura-glow { width: 380px; height: 380px; }
  .form-block { padding: 28px 20px; }
}
