/* =========================================================================
   ANTE — antehq.com
   Palette: pure black + Ante Gold gradient. No lavender. No filler colors.
   Type: Instrument Serif (display) + Inter (body). Heavy + tight.
   ========================================================================= */

:root {
  /* Brand */
  --bg:           #0B0B0B;
  --bg-2:         #111111;
  --card:         #161616;
  --card-2:       #1A1A1A;
  --line:         #2A2418;
  --line-soft:    #1F1B12;

  --gold:         #C9A24B;
  --gold-light:   #E8C874;
  --gold-deep:    #8F6E22;
  --gold-glow:    rgba(201,162,75,0.35);

  --text:         #F5EFDF;       /* high contrast on near-black */
  --text-muted:   #C9C3B1;       /* WCAG AA on #0B0B0B */
  --text-dim:     #8B8676;
  --white:        #FFFFFF;

  /* Typography */
  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Sizing */
  --maxw: 1180px;
  --pad-x: clamp(20px, 4vw, 48px);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01","cv11";
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle dot grid that breathes */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,162,75,0.07), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(201,162,75,0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(201,162,75,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--gold); color: #0B0B0B; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--gold);
  color: #0B0B0B;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 10000;
}
.skip-link:focus { left: 12px; }

/* Container */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); position: relative; z-index: 1; }

/* ============================ Announcement bar ============================ */
.bar {
  background: linear-gradient(90deg, #0B0B0B 0%, #181308 50%, #0B0B0B 100%);
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.bar .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.bar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); animation: pulse 2.4s ease-in-out infinite; }
.bar a { color: var(--gold-light); border-bottom: 1px solid rgba(232,200,116,0.35); padding-bottom: 1px; transition: color .2s var(--ease); }
.bar a:hover { color: var(--white); border-color: var(--white); }

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: .55; }
}

/* Shimmer sweep on the bar */
.bar::after {
  content:"";
  position:absolute; top:0; bottom:0; left:-30%;
  width:30%;
  background: linear-gradient(90deg, transparent, rgba(232,200,116,0.18), transparent);
  animation: sweep 6s linear infinite;
}
@keyframes sweep { 0% { left:-30%; } 100% { left:130%; } }

/* ================================== Nav ================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,11,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); background: rgba(11,11,11,0.94); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 38px; width: auto; }
.brand:hover .brand-logo { filter: drop-shadow(0 0 8px rgba(201,162,75,0.5)); transition: filter .25s var(--ease); }

.nav-center {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.nav-center a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-center a:hover { color: var(--white); background: rgba(201,162,75,0.08); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: #0B0B0B;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 4px 18px rgba(201,162,75,0.25);
  position: relative;
  overflow: hidden;
}
.nav-cta::after {
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(201,162,75,0.45); }
.nav-cta:hover::after { transform: translateX(100%); }
.nav-cta:active { transform: translateY(0); }

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

/* ================================ Hero =================================== */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(50px, 7vw, 90px);
  overflow: hidden;
  isolation: isolate;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; z-index: 1; }

/* Atmospheric photo backdrop (Prism-inspired) */
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: center left;
  opacity: 0.55;
  filter: saturate(0.85) contrast(1.05);
  animation: heroDrift 38s ease-in-out infinite alternate;
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 50%, rgba(11,11,11,0) 0%, rgba(11,11,11,0.55) 40%, rgba(11,11,11,0.95) 75%, #0B0B0B 100%),
    linear-gradient(180deg, rgba(11,11,11,0.4) 0%, rgba(11,11,11,0) 25%, rgba(11,11,11,0) 70%, rgba(11,11,11,0.85) 100%);
}
.hero-grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(201,162,75,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: 0.7;
}
@keyframes heroDrift {
  0% { transform: scale(1.02) translateX(0); }
  100% { transform: scale(1.08) translateX(-1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; }
}

/* Quick-reserve inline form (Prism-style) */
.quick-reserve {
  margin: 28px 0 14px;
  max-width: 520px;
}
.qr-row {
  display: flex;
  align-items: stretch;
  background: rgba(20,18,14,0.78);
  border: 1px solid rgba(201,162,75,0.28);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.qr-row:focus-within {
  border-color: rgba(201,162,75,0.65);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 4px rgba(201,162,75,0.12);
}
.qr-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 0 18px;
  min-width: 0;
}
.qr-flag {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-right: 10px;
  border-right: 1px solid rgba(201,162,75,0.22);
  flex-shrink: 0;
}
.qr-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-family: var(--f-body);
  padding: 12px 4px;
  outline: none;
  letter-spacing: 0.01em;
}
.qr-field input::placeholder { color: var(--text-dim); }
.qr-submit {
  flex-shrink: 0;
  padding: 12px 22px;
  font-size: 14px;
}
.qr-help {
  margin: 12px 4px 0;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.qr-help a {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(201,162,75,0.4);
  padding-bottom: 1px;
  transition: border-color .2s var(--ease);
}
.qr-help a:hover { border-bottom-color: var(--gold-light); }
.qr-ok, .qr-err {
  margin-top: 10px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  display: none;
}
.qr-ok { background: rgba(201,162,75,0.1); color: var(--gold-light); border: 1px solid rgba(201,162,75,0.3); }
.qr-err { background: rgba(220,80,80,0.08); color: #ff9a9a; border: 1px solid rgba(220,80,80,0.3); }
.qr-ok.show, .qr-err.show { display: block; }
@media (max-width: 520px) {
  .qr-row { flex-direction: column; border-radius: 22px; padding: 8px; gap: 6px; }
  .qr-field { padding: 8px 14px; border: 1px solid rgba(201,162,75,0.15); border-radius: 14px; }
  .qr-flag { border-right: none; padding-right: 8px; }
  .qr-submit { width: 100%; justify-content: center; border-radius: 14px; padding: 14px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow .pip { width: 18px; height: 1px; background: var(--gold); }

.h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 22px;
}
.h1 em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.h1 .gold { color: transparent; background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; font-style: italic; }

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.55;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: #0B0B0B;
  box-shadow: 0 4px 22px rgba(201,162,75,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary::after {
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,162,75,0.5), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(201,162,75,0.08); border-color: var(--gold-deep); color: var(--white); }

.hero-mini {
  display: flex; gap: 14px 18px;
  margin-top: 32px;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 14px;
}
.hero-mini .stat { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.hero-mini .num { font-family: var(--f-display); font-size: 26px; color: var(--gold-light); line-height: 1; }
.hero-mini .lbl { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.14em; }
.hero-mini .sep { width: 1px; height: 22px; background: var(--line); align-self: center; }
/* Mid-width: hide hard separators, draw inline pseudo dividers */
@media (max-width: 1100px) and (min-width: 561px) {
  .hero-mini .sep { display: none; }
  .hero-mini { gap: 10px 22px; }
  .hero-mini .stat { position: relative; padding-right: 22px; }
  .hero-mini .stat:not(:last-child)::after {
    content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 18px; background: var(--line);
  }
}
/* Mobile: clean 3-row stack, no dividers */
@media (max-width: 560px) {
  .hero-mini { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 26px; padding: 16px 18px; background: rgba(20,20,20,0.5); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(4px); }
  .hero-mini .sep { display: none; }
  .hero-mini .stat { padding: 0; gap: 10px; }
  .hero-mini .stat::after { display: none !important; }
  .hero-mini .num { font-size: 22px; min-width: 44px; }
  .hero-mini .lbl { font-size: 10.5px; }
}

/* Hero phone mockup */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.phone-stack { position: relative; width: 100%; max-width: 460px; aspect-ratio: 4/5; }
.phone {
  position: absolute;
  border-radius: 42px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 8px 24px rgba(0,0,0,0.5),
    inset 0 0 0 2px rgba(201,162,75,0.45),
    inset 0 0 0 6px #050505;
  background: #000;
  transition: transform .8s var(--ease);
  will-change: transform;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone-1 {
  width: 58%;
  aspect-ratio: 9/19.5;
  left: 4%; top: 12%;
  transform: rotate(-7deg);
  z-index: 2;
}
.phone-2 {
  width: 58%;
  aspect-ratio: 9/19.5;
  right: 4%; top: 0%;
  transform: rotate(8deg);
  z-index: 1;
}
.phone-1.float { animation: float-a 7s ease-in-out infinite; }
.phone-2.float { animation: float-b 8s ease-in-out infinite; }

@keyframes float-a {
  0%,100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-12px); }
}
@keyframes float-b {
  0%,100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(10px); }
}

.glow-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,0.22), transparent 65%);
  filter: blur(30px);
  z-index: 0;
  animation: glow-pulse 5s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
}

/* =============================== Trust row =============================== */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0));
}
.trust-track {
  display: flex; gap: 56px; align-items: center; justify-content: center;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.trust-track span { display: inline-flex; align-items: center; gap: 10px; }
.trust-track .ico { color: var(--gold); }

/* ============================== Section base ============================= */
section.s {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-light);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 18px;
}
.kicker .pip { width: 22px; height: 1px; background: var(--gold); }

.s-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.s-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 16px;
}
.s-title em { color: var(--gold-light); font-style: italic; }
.s-sub { font-size: 17px; color: var(--text-muted); max-width: 600px; line-height: 1.55; }

/* ============================== How it works ============================= */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.step {
  position: relative;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 28px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden;
}
.step::before {
  content:"";
  position:absolute; inset:-1px;
  border-radius: 23px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--gold) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: var(--gold-deep); box-shadow: 0 22px 40px rgba(0,0,0,0.4); }
.step:hover::before { opacity: 1; }

.step-num {
  font-family: var(--f-display); font-style: italic;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: flex; align-items: baseline; gap: 8px;
}
.step-num::before { content: ""; width: 18px; height: 1px; background: var(--gold); display: inline-block; transform: translateY(-4px); }

.step h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--white);
}
.step p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.step-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,162,75,0.15), rgba(201,162,75,0.05));
  border: 1px solid var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  margin-bottom: 18px;
}

@media (max-width: 820px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ============================== Screens carousel ========================= */
.screens {
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(20,15,5,0.4), rgba(0,0,0,0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.screens-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) 1.6fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.screens-info ul { list-style: none; margin-top: 28px; }
.screens-info li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: flex-start; gap: 14px;
  cursor: pointer;
  transition: padding-left .25s var(--ease), color .25s var(--ease);
}
.screens-info li:hover { padding-left: 8px; }
.screens-info li[aria-current="true"] {
  padding-left: 14px;
  color: var(--white);
}
.screens-info li[aria-current="true"] .sc-num { color: #0B0B0B; background: var(--gold); }
.screens-info .sc-num {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--gold);
  background: rgba(201,162,75,0.1);
  border: 1px solid var(--gold-deep);
  padding: 4px 8px; border-radius: 6px;
  flex-shrink: 0;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.screens-info .sc-title { font-weight: 600; font-size: 16px; color: var(--white); display: block; margin-bottom: 4px; }
.screens-info .sc-desc { font-size: 14px; color: var(--text-muted); }

.screens-frame {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.screen-phone {
  position: absolute;
  top: 50%; left: 50%;
  width: 62%;
  aspect-ratio: 9/19.5;
  transform: translate(-50%, -50%);
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 40px 90px rgba(0,0,0,0.8),
    0 12px 30px rgba(0,0,0,0.6),
    inset 0 0 0 2px rgba(201,162,75,0.45),
    inset 0 0 0 7px #000;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  z-index: 2;
}
.screen-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.screen-phone.is-out { opacity: 0; transform: translate(-50%, -50%) scale(0.94) rotate(-3deg); }

.screen-bg-glow {
  position: absolute; inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,0.25), transparent 65%);
  filter: blur(40px);
  z-index: 1;
  animation: glow-pulse 5s ease-in-out infinite;
}

@media (max-width: 880px) {
  .screens-wrap { grid-template-columns: 1fr; gap: 24px; }
  .screens-frame { max-width: 320px; order: -1; }
  .screens-info ul { margin-top: 8px; }
  .screens-info li { padding: 14px 12px; }
}

/* ============================ Feature breakdown ========================== */
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.feat {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 28px;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.feat:hover { transform: translateY(-4px); border-color: var(--gold-deep); }
.feat h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--white);
  display: flex; align-items: center; gap: 10px;
}
.feat h3 .arrow { color: var(--gold); transition: transform .3s var(--ease); }
.feat:hover h3 .arrow { transform: translateX(4px); }
.feat p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 720px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* =============================== FAQ ===================================== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  width: 100%;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 2.3vw, 26px);
  color: var(--white);
  letter-spacing: -0.005em;
}
.faq-q:hover { color: var(--gold-light); }
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform .35s var(--ease), background .25s var(--ease);
}
.faq-item[aria-expanded="true"] .faq-toggle { background: var(--gold); color: #0B0B0B; transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .45s var(--ease), padding .35s var(--ease);
  color: var(--text-muted); font-size: 16px; line-height: 1.65;
}
.faq-item[aria-expanded="true"] .faq-a {
  max-height: 600px;
  padding-bottom: 24px;
}

/* =============================== Signup CTA ============================== */
.cta-painterly {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) clamp(28px, 5vw, 64px);
  background:
    radial-gradient(800px 400px at 80% 100%, rgba(201,162,75,0.35), transparent 60%),
    radial-gradient(600px 300px at 0% 0%, rgba(143,110,34,0.25), transparent 60%),
    linear-gradient(180deg, #14100A, #0B0B0B);
  border: 1px solid var(--gold-deep);
  text-align: center;
}
.cta-painterly::before {
  content:"";
  position:absolute;
  right: -60px; top: 50%;
  width: 460px; height: 460px;
  transform: translateY(-50%);
  background: url("../img/brand/raccoon-illustrated.png") center / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
@media (max-width: 720px) { .cta-painterly::before { display: none; } }
.cta-painterly .inner { position: relative; z-index: 1; }

.cta-form {
  margin: 32px auto 0;
  max-width: 540px;
  display: grid; gap: 12px;
  text-align: left;
}
.cta-form .field { display: grid; gap: 6px; }
.cta-form label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.cta-form .req { color: var(--gold); }
.cta-form input {
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--white);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.cta-form input::placeholder { color: var(--text-dim); }
.cta-form input:focus {
  border-color: var(--gold);
  background: rgba(0,0,0,0.75);
  outline: none;
  box-shadow: 0 0 0 4px rgba(201,162,75,0.18);
}
.cta-form .check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.cta-form .check > span { letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--text-muted); }
.cta-form .check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.cta-form .submit {
  margin-top: 6px;
  width: 100%;
  padding: 16px;
  font-size: 15px;
  justify-content: center;
}
.cta-form .ok, .cta-form .err {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
}
.cta-form .ok.show, .cta-form .err.show { display: block; }
.cta-form .ok { background: rgba(201,162,75,0.12); border: 1px solid var(--gold-deep); color: var(--gold-light); }
.cta-form .err { background: rgba(220,80,80,0.1); border: 1px solid rgba(220,80,80,0.35); color: #f4a8a8; }

.cta-painterly h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 14px;
}
.cta-painterly h2 em { color: var(--gold-light); font-style: italic; }
.cta-painterly p { color: var(--text-muted); font-size: 17px; max-width: 540px; margin: 0 auto; line-height: 1.55; }
.cta-painterly .verbs-line {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text);
  margin: 18px auto 14px;
  max-width: 620px;
  line-height: 1.6;
}
.cta-painterly .verbs-line .verb {
  position: relative;
  font-style: italic;
  font-family: var(--f-display);
  color: var(--gold-light);
  font-weight: 500;
  padding: 0 2px;
}
.cta-painterly .verbs-line .verb::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: verbUnderline .9s var(--ease-out) forwards;
}
.cta-painterly .verbs-line .verb:nth-child(1)::after { animation-delay: .2s; }
.cta-painterly .verbs-line .verb:nth-child(2)::after { animation-delay: .5s; }
.cta-painterly .verbs-line .verb:nth-child(3)::after { animation-delay: .8s; }
@keyframes verbUnderline {
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-painterly .verbs-line .verb::after { transform: scaleX(1); animation: none; }
}

/* ============================== Footer =================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  margin-top: 80px;
  position: relative;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.foot-brand img { height: 56px; width: auto; margin-bottom: 16px; max-width: 100%; }
.foot-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.55; max-width: 280px; }
.foot-col h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { color: var(--text-muted); font-size: 14px; transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--gold-light); }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: var(--text-dim);
  font-size: 12px;
}
.foot-bottom .legal { max-width: 540px; line-height: 1.5; }
.foot-bottom .legal strong { color: var(--gold-light); font-weight: 700; }

@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============================== Reveal animation ========================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: .01s !important;
    transition-duration: .01s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .phone-1.float, .phone-2.float { animation: none; }
}

/* ============================== Legal pages ============================== */
.legal-page {
  padding: 80px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}
.legal-page h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.legal-page .updated { color: var(--text-dim); font-size: 13px; margin-bottom: 40px; }
.legal-page h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--gold-light);
  margin-top: 40px; margin-bottom: 14px;
}
.legal-page p { color: var(--text-muted); margin-bottom: 16px; font-size: 16px; line-height: 1.65; }
.legal-page a { color: var(--gold-light); border-bottom: 1px solid rgba(232,200,116,0.4); }
.legal-page ul { color: var(--text-muted); padding-left: 22px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 8px; line-height: 1.6; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-light);
  font-size: 14px;
  margin-bottom: 24px;
}
.legal-back:hover { color: var(--white); }

/* =========================================================
   Hero dual CTA (Discord now + Reserve full app)
   ========================================================= */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  align-items: center;
}
.hero-btn-discord {
  background: linear-gradient(180deg, #5865F2 0%, #4752C4 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(88,101,242,0.42), inset 0 1px 0 rgba(255,255,255,0.28);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-btn-discord::after { display: none; } /* override shine on discord btn */
.hero-btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(88,101,242,0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.hero-btn-waitlist {
  padding: 13px 22px;
  font-size: 15px;
  border-radius: 999px;
  font-weight: 600;
}
.hero-cta-help {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 480px;
}
.hero-cta-help a {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,162,75,0.35);
  padding-bottom: 1px;
  transition: border-color .25s ease;
}
.hero-cta-help a:hover { border-bottom-color: var(--gold-light); }
@media (max-width: 720px) {
  .hero-btn-discord, .hero-btn-waitlist { width: 100%; justify-content: center; }
}

/* =========================================================
   CTA dual paths (Now: Discord / Next: Full app reserve)
   ========================================================= */
.cta-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 34px;
  text-align: left;
}
@media (max-width: 880px) {
  .cta-paths { grid-template-columns: 1fr; gap: 18px; }
}
.cta-path {
  background: linear-gradient(180deg, rgba(20,20,20,0.72) 0%, rgba(12,12,12,0.85) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px 26px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.cta-path:hover {
  transform: translateY(-3px);
  border-color: rgba(201,162,75,0.35);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5);
}
.cta-path-now {
  border-color: rgba(88,101,242,0.45);
  box-shadow: 0 0 0 1px rgba(88,101,242,0.18), 0 14px 36px rgba(88,101,242,0.12);
}
.cta-path-now:hover {
  border-color: rgba(88,101,242,0.7);
  box-shadow: 0 0 0 1px rgba(88,101,242,0.3), 0 18px 44px rgba(88,101,242,0.22);
}
.path-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(88,101,242,0.16);
  color: #b9bff9;
  border: 1px solid rgba(88,101,242,0.5);
  margin-bottom: 14px;
}
.path-tag-soon {
  background: rgba(201,162,75,0.12);
  color: var(--gold-light);
  border-color: rgba(201,162,75,0.5);
}
.cta-path h3 {
  font-family: var(--f-display);
  font-size: clamp(24px, 3.4vw, 30px);
  font-style: italic;
  color: var(--white);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.cta-path p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: none;
}
.path-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #5865F2 0%, #4752C4 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(88,101,242,0.4), inset 0 1px 0 rgba(255,255,255,0.28);
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.path-btn::after { display: none; }
.path-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(88,101,242,0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.path-meta {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Tighten the in-card waitlist form so it fits the path card */
.cta-path .cta-form {
  margin-top: 4px;
  gap: 12px;
}
.cta-path .cta-form .submit {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   Sticky nav scroll offset for anchored sections
   ========================================================= */
section[id], main > section { scroll-margin-top: 88px; }
@media (max-width: 820px) {
  section[id], main > section { scroll-margin-top: 76px; }
}

/* =========================================================
   Extra life: animations, hover micro-interactions, glow
   ========================================================= */

/* Subtle aurora drift behind the nav when scrolled */
.nav.is-scrolled::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 100% at 20% 0%, rgba(201,162,75,0.08), transparent 60%),
              radial-gradient(40% 100% at 80% 0%, rgba(88,101,242,0.06), transparent 60%);
  opacity: 0; animation: navAurora 1s ease forwards;
}
@keyframes navAurora { to { opacity: 1; } }

/* Gold word shimmer on hero "edge" */
.h1 .gold {
  position: relative;
  background: linear-gradient(90deg, var(--gold-light) 0%, #fff3c8 50%, var(--gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 6s ease-in-out infinite;
}
@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Magnetic card hover: subtle lift + gold ring sweep */
.step, .feat {
  transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .35s ease, box-shadow .5s ease;
  position: relative;
  overflow: hidden;
}
.step::before, .feat::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--ang, 0deg), transparent 0deg, rgba(201,162,75,0.55) 25deg, transparent 60deg);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude; -webkit-mask-composite: xor;
  padding: 1px;
  z-index: 0;
}
.step:hover, .feat:hover {
  transform: translateY(-6px);
  border-color: rgba(201,162,75,0.5);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,162,75,0.15);
}
.step:hover::before, .feat:hover::before {
  opacity: 1;
  animation: ringSpin 4s linear infinite;
}
@keyframes ringSpin { to { --ang: 360deg; } }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* Step icon: gentle bounce on card hover */
.step:hover .step-ico,
.feat:hover .arrow {
  animation: bounceIco .55s ease;
}
@keyframes bounceIco {
  0% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  70% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

/* Arrow glide on feature cards */
.feat .arrow { display: inline-block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.feat:hover .arrow { transform: translateX(6px); color: var(--gold-light); }

/* Eyebrow pip: pulsing ring */
.eyebrow .pip, .kicker .pip {
  position: relative;
}
.eyebrow .pip::before, .kicker .pip::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  animation: pipPing 2.4s ease-out infinite;
}
@keyframes pipPing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Hero phone: gentle parallax tilt on mouse */
.phone {
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease;
  will-change: transform;
}
.phone-stack:hover .phone-1 { transform: translate(var(--p1x, 0), calc(var(--p1y, 0) + 0px)) rotate(-2deg) scale(1.02); }
.phone-stack:hover .phone-2 { transform: translate(var(--p2x, 0), calc(var(--p2y, 0) + 0px)) rotate(3deg) scale(1.02); }

/* Discord buttons: subtle pulse aura */
.hero-btn-discord, .path-btn {
  position: relative;
}
.hero-btn-discord::before, .path-btn::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(88,101,242,0.6), rgba(110,120,255,0) 35%, rgba(88,101,242,0.6));
  z-index: -1; opacity: 0;
  filter: blur(10px);
  animation: discordGlow 3s ease-in-out infinite;
}
@keyframes discordGlow { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.85; } }
.hero-btn-discord:hover, .path-btn:hover { letter-spacing: 0.005em; }

/* Primary gold button: shine sweep on hover already exists; add gentle idle breathing */
.btn-primary:not(.hero-btn-discord):not(.path-btn) {
  animation: goldBreathe 4s ease-in-out infinite;
}
@keyframes goldBreathe {
  0%, 100% { box-shadow: 0 10px 28px rgba(201,162,75,0.32), inset 0 1px 0 rgba(255,255,255,0.3); }
  50% { box-shadow: 0 14px 34px rgba(201,162,75,0.55), inset 0 1px 0 rgba(255,255,255,0.4); }
}

/* Trust strip: gold dot rotates */
.trust-track .ico {
  display: inline-block;
  animation: spin360 12s linear infinite;
}
@keyframes spin360 { to { transform: rotate(360deg); } }

/* Stat number count-up animation hook (JS adds .in to .hero-mini stat) */
.hero-mini.in .num {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* Section reveals: graceful default so content NEVER stays invisible if JS fails */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
/* Hard fallback: if JS hasn't run after 2s, reveal everything */
@keyframes failsafeReveal { to { opacity: 1; transform: translateY(0); } }
html:not(.js-ready) .reveal { animation: failsafeReveal .8s ease 2.2s forwards; }

/* CTA path tag floating tag chip */
.path-tag, .path-tag-soon {
  animation: tagFloat 3.6s ease-in-out infinite;
}
@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* FAQ: smooth open with rotating + icon */
.faq-toggle svg { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.faq-item[aria-expanded="true"] .faq-toggle svg { transform: rotate(45deg); }

/* Reduced motion: kill all decorative animations */
@media (prefers-reduced-motion: reduce) {
  .h1 .gold, .trust-track .ico, .eyebrow .pip::before, .kicker .pip::before,
  .hero-btn-discord::before, .path-btn::before, .btn-primary, .path-tag, .path-tag-soon,
  .step::before, .feat::before {
    animation: none !important;
  }
}
