/* ═══════════════════════════════════════════════════════════════════════
   pAIr — AI Wine Sommelier  |  css/styles.css
   Palette: deep plum, aged burgundy, antique gold, warm off-white, soft mist
   Fonts:   Cormorant Garamond (headings) + Inter (body/ui)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Custom Properties ────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --clr-plum:       #1A0A1E;   /* near-black background */
  --clr-plum-mid:   #2D1433;   /* card / section dark bg */
  --clr-burgundy:   #6B1E3A;   /* accent / badge bg */
  --clr-wine:       #9B2335;   /* primary CTA */
  --clr-wine-hover: #B52940;   /* CTA hover */
  --clr-gold:       #C9A84C;   /* highlight / number / label */
  --clr-gold-light: #E8CC88;   /* gold tint on dark */
  --clr-mist:       #F5EFE6;   /* body text on dark */
  --clr-mist-dim:   #C4B8A8;   /* subdued body text */
  --clr-white:      #FFFFFF;

  /* Semantic */
  --bg-page:        var(--clr-plum);
  --bg-card:        var(--clr-plum-mid);
  --text-primary:   var(--clr-mist);
  --text-secondary: var(--clr-mist-dim);
  --text-heading:   var(--clr-white);
  --border-subtle:  rgba(201, 168, 76, 0.18);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 7rem;

  /* Layout */
  --container-max: 1120px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  220ms;
}

/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Container ───────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Typography Utilities ────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--space-sm);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.section-headline em {
  color: var(--clr-gold-light);
  font-weight: 400;
}

.section-sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 54ch;
  line-height: 1.75;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 0.75em 1.6em;
  transition: background var(--dur) var(--ease),
              color       var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow  var(--dur) var(--ease),
              transform   var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-wine);
  color: var(--clr-white);
  box-shadow: 0 2px 16px rgba(155, 35, 53, 0.35);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--clr-wine-hover);
  box-shadow: 0 4px 24px rgba(155, 35, 53, 0.55);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-gold);
  border: 1.5px solid var(--clr-gold);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--clr-gold-light);
  color: var(--clr-gold-light);
}

.btn--text {
  background: transparent;
  color: var(--text-secondary);
  padding-inline: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color var(--dur) var(--ease),
              text-decoration-color var(--dur) var(--ease);
}
.btn--text:hover,
.btn--text:focus-visible {
  color: var(--clr-mist);
  text-decoration-color: var(--clr-mist-dim);
}

.btn--full { width: 100%; justify-content: center; }

/* Focus ring — accessible */
.btn:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 3px;
}

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 10, 30, 0.85);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.logo-pair {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--clr-white);
  /* "AI" feel: subtle gold on the 'AI' portion is handled purely via CSS gradient */
  background: linear-gradient(110deg, #ffffff 45%, var(--clr-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
}
.nav__links a:not(.btn):hover {
  color: var(--clr-mist);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2xl) calc(var(--space-2xl) * 0.85);
  text-align: center;
}

/* Ambient orb glows */
.hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.orb--left {
  width: clamp(340px, 45vw, 600px);
  height: clamp(340px, 45vw, 600px);
  background: radial-gradient(circle, var(--clr-burgundy) 0%, transparent 70%);
  top: -15%;
  left: -18%;
}

.orb--right {
  width: clamp(280px, 40vw, 520px);
  height: clamp(280px, 40vw, 520px);
  background: radial-gradient(circle, rgba(201,168,76,0.6) 0%, transparent 70%);
  bottom: -10%;
  right: -12%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 820px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 100px;
  padding: 0.35em 1em;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.hero__headline em {
  color: var(--clr-gold-light);
  font-weight: 400;
}

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 58ch;
  line-height: 1.75;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.hero__social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* ── What It Does / Features ─────────────────────────────────────────── */
.what-it-does {
  padding-block: var(--space-2xl);
  text-align: center;
}

.what-it-does .section-sub {
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  text-align: left;
  margin-top: var(--space-xl);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--dur) var(--ease),
              transform     var(--dur) var(--ease),
              box-shadow    var(--dur) var(--ease);
}

.feature-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.feature-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.25;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── How It Works ────────────────────────────────────────────────────── */
.how-it-works {
  padding-block: var(--space-2xl);
  background: linear-gradient(180deg, var(--clr-plum) 0%, var(--clr-plum-mid) 100%);
}

.how-it-works .section-headline,
.how-it-works .section-label {
  text-align: center;
}

.how-it-works .section-headline {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 680px;
  margin-inline: auto;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: flex-start;
  gap: var(--space-md);
  padding-block: var(--space-md);
}

.step__number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--clr-gold);
  opacity: 0.7;
  line-height: 1;
  text-align: center;
  padding-top: 0.1em;
}

.step__body h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.4em;
}

.step__body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.step__connector {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--border-subtle), transparent);
  margin-left: 39px; /* centres under the step number column (80px / 2 - 1px) */
}

/* ── Proof Strip / Pullquote ─────────────────────────────────────────── */
.proof-strip {
  padding-block: var(--space-xl);
  background: var(--clr-burgundy);
  background: linear-gradient(
    135deg,
    var(--clr-burgundy) 0%,
    #4A1128 100%
  );
}

.proof-strip__inner {
  display: flex;
  justify-content: center;
}

.pullquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--clr-white);
  text-align: center;
  max-width: 700px;
  line-height: 1.5;
  border: none;
  padding: 0;
}

.pullquote cite {
  display: block;
  margin-top: 1em;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Waitlist ─────────────────────────────────────────────────────────── */
.waitlist {
  padding-block: var(--space-2xl);
}

.waitlist__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* Left column: content */
.waitlist__content .section-headline {
  margin-bottom: var(--space-sm);
}

.waitlist__content .section-sub {
  margin-bottom: var(--space-lg);
}

.waitlist__perks {
  display: flex;
  flex-direction: column;
  gap: 0.65em;
}

.waitlist__perks li {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.waitlist__perks li::before {
  /* The ✦ is already in the HTML markup */
  display: none;
}

/* Right column: form */
.waitlist__form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 0.4em;
}

.form-optional {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--clr-mist-dim);
  opacity: 0.7;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.7em 1em;
  transition: border-color var(--dur) var(--ease),
              background   var(--dur) var(--ease),
              box-shadow   var(--dur) var(--ease);
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: rgba(196, 184, 168, 0.45);
}

.form-input:focus {
  outline: none;
  border-color: var(--clr-gold);
  background: rgba(201, 168, 76, 0.06);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.waitlist__form .btn--primary {
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 0.85em 1.6em;
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.65;
  text-align: center;
  line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-xl);
  background: var(--clr-plum);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 28ch;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
}
.footer__links a:hover {
  color: var(--clr-mist);
}

.footer__legal {
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.6;
  line-height: 1.8;
  text-align: right;
}

.footer__memphis {
  font-style: italic;
  color: var(--clr-gold);
  opacity: 0.8;
}

/* ── Subtle page dividers ────────────────────────────────────────────── */
.what-it-does,
.waitlist {
  position: relative;
}
.what-it-does::before,
.waitlist::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(107, 30, 58, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Scrollbar (Chromium only — nice to have) ────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--clr-plum); }
::-webkit-scrollbar-thumb { background: var(--clr-burgundy); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-wine); }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 900px) ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .waitlist__inner {
    grid-template-columns: 1fr;
  }

  .footer__legal {
    text-align: left;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
  }
}

/* ── Mobile (≤ 640px) ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --space-2xl: 4.5rem;
    --space-xl:  2.75rem;
    --space-lg:  2rem;
  }

  .nav__inner {
    height: 56px;
  }

  .nav__links a:not(.btn) {
    display: none; /* keep nav clean; only the CTA button shows */
  }

  .hero {
    padding-block: var(--space-xl) var(--space-lg);
  }

  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero__ctas .btn--primary {
    width: 100%;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 56px 1fr;
    gap: var(--space-sm);
  }

  .step__number {
    font-size: 2.75rem;
  }

  .step__connector {
    margin-left: 27px;
  }

  .waitlist__form-wrap {
    border-radius: var(--radius-md);
  }

  .footer__links {
    gap: 1rem 1.5rem;
  }

  .proof-strip {
    padding-block: var(--space-lg);
  }
}

/* ── Reduced Motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration:  0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
