/* ═══════════════════════════════════════════════════════════════
   Legally Brief: New York — Landing Page
   Dark editorial luxury · New York gravitas
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:           #07090f;
  --bg-warm:      #0c1018;
  --surface:      #111620;
  --surface-hi:   #171d2b;
  --border:       rgba(148,163,184,0.07);
  --border-hi:    rgba(148,163,184,0.12);
  --text:         #e4e7ef;
  --text-secondary: #c0c5d4;
  --muted:        #8891a8;
  --dim:          #555e74;
  --navy:         #1a2744;
  --navy-light:   #243456;
  --gold:         #c9a84c;
  --gold-bright:  #e0be5a;
  --gold-dim:     rgba(201,168,76,0.10);
  --gold-glow:    rgba(201,168,76,0.25);
  --slate:        #64748b;
  --green:        #22c55e;
  --coral:        #f87171;
  --font:         'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:         'JetBrains Mono', 'SF Mono', monospace;
  --ease:         cubic-bezier(0.16,1,0.3,1);
  --ease-spring:  cubic-bezier(0.34,1.56,0.64,1);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg:    0 10px 30px rgba(0,0,0,0.5);
  --shadow-xl:    0 20px 50px rgba(0,0,0,0.55);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.reveal { opacity: 0; transform: translateY(28px); }

/* ── HERO ───────────────────────────────────────────────────── */

.hero {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(48px + env(safe-area-inset-top,0px)) 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(175deg, #07090f 0%, #0e1420 35%, #111a2e 60%, #0a0f1a 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 80%);
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero__orb--1 {
  width: 500px; height: 500px;
  top: -10%; right: -5%;
  background: radial-gradient(circle, rgba(26,39,68,0.5) 0%, transparent 70%);
  animation: orbFloat1 18s ease-in-out infinite;
}

.hero__orb--2 {
  width: 400px; height: 400px;
  bottom: -5%; left: -8%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  animation: orbFloat2 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-30px, 20px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(20px, -25px); }
}

.hero > *:not(.hero__grid):not(.hero__orb) {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--gold-dim);
  padding: 0.45rem 1.1rem 0.45rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.12);
}

.hero__eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201,168,76,0.45);
  animation: dotPulse 2.2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.75); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.hero__title em {
  font-style: italic;
  font-family: var(--font);
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 40%, #d4a853 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1.6rem;
  letter-spacing: 0.02em;
}

.hero__deck {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  color: var(--dim);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

.hero__signup {
  width: 100%;
  max-width: 460px;
  margin-bottom: 1.6rem;
}

.hero__form {
  display: flex;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  padding: 0.35rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
}

.hero__form:focus-within {
  border-color: rgba(201,168,76,0.3);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(201,168,76,0.06);
}

.hero__input {
  flex: 1;
  min-height: 48px;
  padding: 0 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
}

.hero__input::placeholder { color: var(--dim); }

.hero__submit {
  min-height: 48px;
  padding: 0 1.6rem;
  background: linear-gradient(135deg, var(--gold) 0%, #b8943d 100%);
  color: #0a0908;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 2px 14px rgba(201,168,76,0.2);
  letter-spacing: 0.01em;
}

.hero__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.3);
}

.hero__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.hero__msg { font-size: 0.8rem; margin-top: 0.55rem; text-align: center; }
.hero__msg--ok { color: var(--green); }
.hero__msg--err { color: var(--coral); }

.hero__or {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.8rem;
}

.hero__actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn--primary {
  padding: 0.7rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--gold);
}

.btn--ghost {
  padding: 0.7rem 1.2rem;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  animation: scrollDrift 3.5s ease-in-out infinite;
}

@keyframes scrollDrift {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.25; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 0.55; }
}

/* ── SECTION COMMON ─────────────────────────────────────────── */

.s {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.s__tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold-dim);
  padding: 0.32rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.08);
}

.s__h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 1rem;
  color: var(--text);
}

.s__body {
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  color: var(--muted);
  line-height: 1.72;
  max-width: 580px;
}

/* ── WHAT YOU GET ───────────────────────────────────────────── */

.what-you-get {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .what-you-get { grid-template-columns: 1.4fr 0.6fr; gap: 4rem; align-items: start; }
}

.what-you-get__content .s__body + .s__body { margin-top: 1rem; }

.what-you-get__pull {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.what-you-get__quote {
  font-family: var(--font);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding: 0.8rem 0 0.8rem 1.5rem;
}

.coverage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.coverage-tag {
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.coverage-tag:hover {
  border-color: var(--gold-glow);
  color: var(--gold);
}

/* ── HOW IT WORKS ───────────────────────────────────────────── */

.how-it-works {
  background: var(--bg-warm);
  padding: 5rem 0;
}

.how-it-works__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201,168,76,0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.15);
}

.step:hover::before { opacity: 1; }

.step__number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step__desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── WAVE DIVIDERS ──────────────────────────────────────────── */

.wave-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 50px;
}

/* ── COMPARISON ─────────────────────────────────────────────── */

.comparison {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.comparison__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.comparison__col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.comparison__col--old::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--dim), transparent);
}

.comparison__col--new {
  border-color: rgba(201,168,76,0.15);
}

.comparison__col--new::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201,168,76,0.3));
}

.comparison__col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.comparison__col--old .comparison__col-title { color: var(--dim); }

.comparison__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.comparison__list li {
  font-size: 0.84rem;
  line-height: 1.55;
  padding-left: 1.4rem;
  position: relative;
  color: var(--muted);
}

.comparison__col--old .comparison__list li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
  font-size: 0.9rem;
}

.comparison__col--new .comparison__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── CTA SECTION ────────────────────────────────────────────── */

.cta-section {
  text-align: center;
  padding: 6rem 2rem calc(4rem + env(safe-area-inset-bottom,0px));
  position: relative;
  overflow: hidden;
}

.cta-section__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 650px; height: 650px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(26,39,68,0.12) 0%, rgba(201,168,76,0.04) 40%, transparent 65%);
  pointer-events: none;
}

.cta-section__card {
  max-width: 480px;
  margin: 2rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-section__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), rgba(26,39,68,0.8), transparent);
  opacity: 0.7;
}

.cta__form { display: flex; gap: 0.4rem; }

.cta__input {
  flex: 1;
  min-height: 48px;
  padding: 0 1rem;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta__input::placeholder { color: var(--dim); }

.cta__input:focus {
  border-color: rgba(201,168,76,0.35);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.06);
}

.cta__submit {
  min-height: 48px;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, #b8943d 100%);
  color: #0a0908;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
  box-shadow: 0 2px 14px rgba(201,168,76,0.18);
}

.cta__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.28);
}

.cta__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.cta__msg { font-size: 0.8rem; margin-top: 0.55rem; }
.cta__msg--ok { color: var(--green); }
.cta__msg--err { color: var(--coral); }

/* ── FOOTER ─────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem calc(2.5rem + env(safe-area-inset-bottom,0px));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
}

.footer__brand {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}

.footer__pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(201,168,76,0.4);
  margin-right: 0.5rem;
  animation: dotPulse 2.5s ease-in-out infinite;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.footer__link:hover { color: var(--gold); }

.footer__tag {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* ── STATS ROW ──────────────────────────────────────────────── */

.stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 3.5rem 2rem;
  max-width: 780px;
  margin: 0 auto;
}

.stat { text-align: center; position: relative; }

.stat + .stat::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--dim);
  opacity: 0.4;
}

.stat__val {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.stat__label {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 0.35rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .comparison__grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 2.5rem; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 0.8rem; }
  .comparison__grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 1.2rem; }
  .stat + .stat::before { display: none; }
  .hero__form { flex-direction: column; padding: 0.5rem; }
  .hero__input { min-height: 48px; }
  .hero__submit { min-height: 50px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .s { padding: 3.5rem 1.5rem; }
  .what-you-get { padding: 3.5rem 1.5rem; }
  .comparison { padding: 3.5rem 1.5rem; }
  .how-it-works { padding: 3.5rem 0; }
  .how-it-works__inner { padding: 0 1.5rem; }
  .cta__form { flex-direction: column; }
  .cta-section { padding: 4rem 1.5rem calc(3rem + env(safe-area-inset-bottom,0px)); }
  .wave-divider svg { height: 30px; }
  .hero { padding-bottom: 5rem; }
}
