/* ============================================================
   Online Marketing in the AI Era — Red × Google (Pre-IAAPA)
   Shared site styles. Built on the Red Online Marketing tokens.
   ============================================================ */

:root {
  /* Extended palette layered on top of the design-system tokens */
  --navy-1: #0a1830;   /* IAAPA deep navy — hero/footer base */
  --navy-2: #122a4d;
  --navy-3: #1c3a63;

  /* Google accent palette (used sparingly, as "AI era" motifs) */
  --g-blue: #4285F4;
  --g-red: #EA4335;
  --g-yellow: #FBBC05;
  --g-green: #34A853;

  /* Lead identity comes from Red tokens: --red-2 (#e72d3e) + --turquoise-2 (#00aeac) */
  --lead: var(--red-2);
  --lead-2: var(--turquoise-2);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 128px);

  --shadow-sm: 0 1px 2px rgba(10,24,48,0.06), 0 2px 8px rgba(10,24,48,0.05);
  --shadow-md: 0 8px 24px rgba(10,24,48,0.08), 0 2px 6px rgba(10,24,48,0.05);
  --shadow-lg: 0 30px 70px rgba(10,24,48,0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* tweakable accent gradient (driven by [data-accent]) */
  --hero-grad: linear-gradient(100deg, #fff 0%, var(--turquoise-2) 55%, var(--g-blue) 100%);
}

/* accent-balance variants */
[data-accent="red"]  { --hero-grad: linear-gradient(100deg, #fff 0%, #ff7a85 48%, var(--red-2) 100%); }
[data-accent="teal"] { --hero-grad: linear-gradient(100deg, #fff 0%, var(--turquoise-2) 82%); }
[data-countdown="off"] #countdown { display: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--fg-1); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--turquoise-2); color: #fff; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Reusable type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--turquoise-3); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red-2); display: inline-block; border-radius: 2px; }
.eyebrow.on-dark { color: var(--turquoise-2); }

.display {
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; margin: 0;
  font-size: clamp(40px, 7vw, 86px);
}
.section-title {
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 20px;
  font-size: clamp(30px, 4.4vw, 52px);
}
.section-title em, .display em { font-style: italic; color: var(--red-2); font-weight: 800; }
.section-title .tq, .display .tq { color: var(--turquoise-3); font-style: italic; }
.lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--fg-2); font-weight: 400; max-width: 62ch; margin: 0; }
.lede strong { color: var(--fg-1); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 16px; line-height: 1;
  padding: 16px 26px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red-2); color: #fff; box-shadow: 0 10px 26px rgba(231,45,62,0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(231,45,62,0.42); }
.btn-ghost { background: transparent; color: var(--fg-1); border-color: rgba(34,33,33,0.18); }
.btn-ghost:hover { border-color: var(--red-2); color: var(--red-2); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); color:#fff; }
.btn-lg { font-size: 17px; padding: 18px 32px; }

/* arrow nudge */
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Top nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled { background: rgba(255,255,255,0.86); backdrop-filter: blur(14px) saturate(1.4); box-shadow: var(--shadow-sm); padding-block: 12px; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo .chip { background: #fff; border-radius: 10px; padding: 7px 11px; box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: opacity .3s; }
.nav-logo .chip img { width: 92px; }
.nav.scrolled .nav-logo .chip { box-shadow: none; padding: 0; background: transparent; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: rgba(255,255,255,0.82); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a { color: var(--fg-2); }
.nav.scrolled .nav-links a:hover { color: var(--red-2); }
.nav .nav-cta { padding: 11px 20px; font-size: 14px; }
.nav-burger { display: none; }

.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; display: block; }
.nav.scrolled .nav-burger { border-color: rgba(34,33,33,0.18); background: #fff; }
.nav.scrolled .nav-burger span { background: var(--fg-1); }

.mobile-sheet {
  position: fixed; inset: 0; z-index: 60; background: rgba(6,16,31,0.96); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-sheet.open { opacity: 1; pointer-events: auto; }
.mobile-sheet a { color: #fff; text-decoration: none; font-size: 24px; font-weight: 700; padding: 12px; letter-spacing: -0.01em; }
.mobile-sheet a.cta { margin-top: 16px; background: var(--red-2); padding: 14px 30px; border-radius: var(--radius-pill); font-size: 18px; }
.mobile-sheet .close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: transparent; color:#fff; font-size: 22px; cursor: pointer; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding-block: var(--section-y); }
.bg-soft { background: var(--bg-2); }
.bg-mint { background: linear-gradient(180deg, #f2fbfa 0%, #ffffff 100%); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Brand bar ---------- */
.brandbar { height: 5px; background: linear-gradient(90deg, var(--red-2) 0 38%, var(--turquoise-2) 38% 100%); }
.brandbar.google { background: linear-gradient(90deg, var(--g-blue) 0 25%, var(--g-red) 25% 50%, var(--g-yellow) 50% 75%, var(--g-green) 75% 100%); }
