/* ============================================================
   GhostsDeal — landing page custom styles
   Loaded after Tailwind so utilities can still override.
   ============================================================ */

:root {
  --bg-base:      #0A0A0B;
  --bg-panel:     #13131A;
  --bg-panel-2:   #1B1B25;
  --border-subtle:#262633;
  --gold:         #F5C84B;
  --gold-bright:  #FFD86B;
  --gold-deep:    #B8902E;
  --emerald:      #10B981;
  --text-primary: #FEFEFE;
  --text-muted:   #A1A1AA;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* Skip-to-content link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 12px 16px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Hero background ---------- */
.hero-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(245,200,75,0.18) 0%, rgba(245,200,75,0) 70%),
    radial-gradient(40% 40% at 80% 30%, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0) 70%),
    var(--bg-base);
}
.hero-bg::before {
  /* subtle dot grid */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

/* ---------- Gold gradient text ---------- */
.text-gold-gradient {
  background: linear-gradient(180deg, #FFD86B 0%, #F5C84B 55%, #B8902E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(245, 200, 75, 0.25);
}

/* ---------- Glass card ---------- */
.card {
  background: linear-gradient(180deg, rgba(27,27,37,0.7) 0%, rgba(19,19,26,0.7) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 200, 75, 0.35);
  box-shadow: 0 8px 30px -12px rgba(245, 200, 75, 0.25);
}

/* ---------- Primary CTA ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #FFD86B 0%, #F5C84B 50%, #B8902E 100%);
  color: #0A0A0B;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 6px 24px -6px rgba(245, 200, 75, 0.5);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  min-height: 44px;
}
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 30px -6px rgba(245, 200, 75, 0.6); }
.btn-gold:active { transform: translateY(0); filter: brightness(0.95); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 12px;
  transition: background 0.15s ease, border-color 0.2s ease;
  min-height: 44px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(245,200,75,0.4); }

/* ---------- Store badges ---------- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border: 1px solid #2a2a30;
  padding: 10px 18px;
  border-radius: 12px;
  min-width: 180px;
  min-height: 56px;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.store-badge:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(245,200,75,0.4);
}
.store-badge .label-small { font-size: 11px; color: #c8c8d0; line-height: 1.1; }
.store-badge .label-large { font-size: 18px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }

/* ---------- Phone mockup ---------- */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2a35 0%, #14141c 100%);
  padding: 12px;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 120px -20px rgba(245, 200, 75, 0.35);
}
.phone-mockup::after {
  /* notch */
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: #050507;
  border-radius: 14px;
  z-index: 2;
}
.phone-mockup .screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(245,200,75,0.15) 0%, rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #0e0e14 0%, #1a1a24 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.phone-mockup .screen img {
  width: 70%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* ---------- Compliance badges ---------- */
.compliance-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: rgba(19,19,26,0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.compliance-badge:hover { border-color: rgba(245,200,75,0.35); transform: translateY(-2px); }
.compliance-badge .badge-circle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(245,200,75,0.18), rgba(245,200,75,0.04));
  border: 1px solid rgba(245,200,75,0.3);
  color: var(--gold);
}

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 12px;
  border: 1px solid rgba(245,200,75,0.3);
  border-radius: 999px;
  background: rgba(245,200,75,0.06);
}

/* ---------- Reveal-on-scroll animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Focus rings ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Nav scroll state ---------- */
.nav-scrolled {
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
}
.mobile-menu.is-open { display: flex; }

/* ---------- Legal page typography ---------- */
.prose-legal {
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.75;
  color: rgba(254,254,254,0.85);
}
.prose-legal h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.prose-legal h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}
.prose-legal p { margin-bottom: 1rem; }
.prose-legal ul { margin: 0 0 1rem 1.25rem; list-style: disc; }
.prose-legal li { margin-bottom: 0.35rem; }
.prose-legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.legal-banner {
  background: linear-gradient(180deg, rgba(245,200,75,0.12), rgba(245,200,75,0.04));
  border: 1px solid rgba(245,200,75,0.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: #f0e3b8;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
