/* ==========================================================================
   MuseDupes — landing page styles
   Luxury-minimal: ink black, warm gold, generous whitespace, serif display.
   No frameworks, no external fonts (system stacks keep first paint instant).
   ========================================================================== */

:root {
  --ink: #0b0b0e;
  --ink-2: #101014;
  --surface: #15151b;
  --surface-2: #1b1b22;
  --line: rgba(212, 175, 106, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f2efe9;
  --text-muted: #a8a29a;
  --gold: #d4af6a;
  --gold-bright: #e8c987;
  --gold-deep: #a8842f;
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Didot", "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

h3 {
  font-size: 1.28rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.container-narrow {
  width: min(820px, 92%);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.lead,
.section-sub {
  color: var(--text-muted);
  font-size: 1.14rem;
  max-width: 34em;
}

em {
  font-style: italic;
  color: var(--gold-bright);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 0.9rem 0;
  transition: box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}

/* Blur lives on a pseudo-element, NOT on the header itself: backdrop-filter
   on an ancestor turns it into the containing block for position:fixed
   descendants, which would shrink the mobile nav overlay to the header box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 14, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line-soft);
  padding: 0.55rem 0;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.nav {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--gold);
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.brand-accent {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-cta {
  border: 1px solid var(--line);
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  color: var(--gold-bright) !important;
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: rgba(212, 175, 106, 0.1);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 120;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
  content: "";
}

.nav-toggle-bar {
  top: 21px;
}

.nav-toggle-bar::before {
  left: 0;
  top: -7px;
}

.nav-toggle-bar::after {
  left: 0;
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  cursor: default;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #191405;
  box-shadow: 0 8px 30px rgba(212, 175, 106, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(212, 175, 106, 0.35);
  color: #191405;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.text-link {
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.text-link:hover {
  border-color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(4rem, 8vh, 7rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 78% 18%, rgba(212, 175, 106, 0.14), transparent 65%),
    radial-gradient(560px 420px at 8% 85%, rgba(212, 175, 106, 0.07), transparent 60%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.1rem 0 2.4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-badges svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

/* Phone mockup (pure CSS) */

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #26262e, #101014 60%);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card), 0 0 90px rgba(212, 175, 106, 0.09);
  transform: rotate(2.5deg);
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 12px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 32px;
  background: var(--ink-2);
  overflow: hidden;
  padding: 44px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scan-photo {
  position: relative;
  border-radius: 16px;
  height: 34%;
  background:
    radial-gradient(120px 90px at 30% 20%, rgba(212, 175, 106, 0.28), transparent 70%),
    linear-gradient(150deg, #2c2c35, #17171d 70%);
  overflow: hidden;
  flex: none;
}

.silhouette {
  position: absolute;
  bottom: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  height: 88%;
  background: #0d0d11;
  border-radius: 46% 46% 12% 12% / 34% 34% 6% 6%;
  opacity: 0.9;
}

.scan-line {
  position: absolute;
  inset-inline: 8%;
  top: 12%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  box-shadow: 0 0 18px rgba(232, 201, 135, 0.8);
  animation: scan 3.2s var(--ease) infinite;
}

@keyframes scan {
  0%, 100% { top: 12%; opacity: 0.4; }
  50% { top: 82%; opacity: 1; }
}

.screen-title {
  margin: 2px 2px 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 0.68rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 106, 0.06);
  color: var(--text);
  white-space: nowrap;
}

.tier-row {
  display: flex;
  gap: 6px;
}

.tier {
  flex: 1;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 8px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid transparent;
}

.tier-active {
  color: #191405;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.product-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 9px;
}

.product-thumb {
  width: 40px;
  height: 44px;
  border-radius: 9px;
  flex: none;
  background: linear-gradient(140deg, #3a3123, #1d1a13);
}

.product-thumb.alt {
  background: linear-gradient(140deg, #23262e, #14161b);
}

.product-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.product-lines i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.product-lines i:last-child {
  width: 55%;
  background: rgba(255, 255, 255, 0.07);
}

.product-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-bright);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4.5rem, 10vh, 7.5rem) 0;
}

.section-alt {
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(212, 175, 106, 0.05), transparent 70%),
    var(--ink-2);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem 1.4rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--line);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 0.9rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: var(--surface-2);
}

.feature-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(212, 175, 106, 0.09);
  border: 1px solid var(--line);
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.why-copy p {
  color: var(--text-muted);
}

.why-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.why-points li {
  display: grid;
  gap: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
}

.why-points strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.why-points span {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ---------- Privacy ---------- */

.privacy-wrap {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.privacy-icon {
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(212, 175, 106, 0.07);
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.privacy-icon svg {
  width: 30px;
  height: 30px;
}

.privacy-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.6rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.4rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.99rem;
}

/* ---------- Contact ---------- */

.contact-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 680px;
  margin-top: 2.2rem;
}

.contact-card {
  display: grid;
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.contact-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-bright);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 3.5rem 0 2rem;
  background: var(--ink-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.6rem;
}

.footer-tagline {
  color: var(--text-muted);
  margin-top: 0.9rem;
  font-size: 0.96rem;
}

.footer-nav ul,
.footer-legal-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-nav a,
.footer-legal-nav a {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.footer-nav a:hover,
.footer-legal-nav a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.6rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Legal pages (privacy.html / terms.html) ---------- */

.legal-main {
  padding: clamp(8rem, 14vh, 10rem) 0 clamp(4rem, 8vh, 6rem);
}

.legal-main h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2.5rem;
}

.legal-main h2 {
  font-size: 1.45rem;
  margin-top: 2.4rem;
}

.legal-main p,
.legal-main li {
  color: var(--text-muted);
}

.legal-main ul {
  padding-left: 1.2rem;
}

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger cards inside grids */
.steps [data-reveal]:nth-child(2),
.feature-grid [data-reveal]:nth-child(3n + 2) {
  transition-delay: 0.08s;
}

.steps [data-reveal]:nth-child(3),
.feature-grid [data-reveal]:nth-child(3n) {
  transition-delay: 0.16s;
}

.steps [data-reveal]:nth-child(4) {
  transition-delay: 0.24s;
}

/* ---------- Motion & accessibility preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(11, 11, 14, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    font-size: 1.3rem;
  }

  .hero-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .phone {
    width: min(250px, 70vw);
    transform: rotate(0deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .steps,
  .feature-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
