/* ============================================================
   Velflow — landing page styles
   Dark navy theme · electric-blue accent gradient (color-locked)
   ============================================================ */

/* ---- Fonts (self-hosted, latin variable subsets) ---- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/spacegrotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --bg: #0a0e1a;
  --surface: #0d1424;
  --surface-2: #111b30;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(90, 160, 255, 0.28);

  --ink: #f4f7ff;        /* headlines */
  --body: #c3cee0;       /* body copy  — ~9:1 on --bg */
  --muted: #9fb0cc;      /* labels/eyebrows — ~5.7:1 on --bg */

  --accent: #2e7ff5;
  --accent-bright: #5aa0ff;
  --accent-deep: #0a2a7a;
  --grad: linear-gradient(135deg, #5aa0ff 0%, #2e7ff5 45%, #0a2a7a 100%);
  --grad-text: linear-gradient(100deg, #7db4ff 0%, #2e7ff5 55%, #2e7ff5 100%);

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 11px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* ambient brand glow, painted once on the page background */
  background-image:
    radial-gradient(620px 420px at 12% -6%, rgba(46, 127, 245, 0.20), transparent 70%),
    radial-gradient(680px 520px at 92% 4%, rgba(10, 42, 122, 0.34), transparent 72%);
  background-repeat: no-repeat;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.section { padding-block: clamp(64px, 11vw, 116px); }
.section-head { max-width: 620px; margin-bottom: clamp(36px, 5vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--accent-bright), transparent);
}
.section-head.center .eyebrow::before { display: none; }   /* rule reads as left-anchored; drop when centered */
h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); letter-spacing: -0.025em; }
.section-head h2 { max-width: 16ch; }
.section-head p { color: var(--body); font-size: 1.06rem; margin-top: 16px; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 14px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 9px; font-weight: 600; transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 11px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.97rem;
  letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 26px -8px rgba(46, 127, 245, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(46, 127, 245, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03); color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-bright); background: rgba(46, 127, 245, 0.08); transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo svg { height: 34px; width: auto; }
.nav-links { display: none; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px; border-radius: 9px; color: var(--body);
  font-size: 0.95rem; font-weight: 500; transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-cta { display: none; box-shadow: 0 6px 16px -11px rgba(46, 127, 245, 0.5); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

/* Mobile menu panel */
.mobile-menu {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { grid-template-rows: 1fr; }
.mobile-menu-inner { overflow: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 12px 22px 22px; gap: 4px; }
.mobile-menu a { padding: 14px 6px; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(22px, 4vw, 36px); padding-bottom: clamp(56px, 9vw, 100px); }
.hero-grid {
  display: grid; grid-template-columns: 1fr; align-items: center;
  gap: clamp(40px, 7vw, 60px);
}
.hero-copy { text-align: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--accent-bright);
}
.hero-eyebrow .rule { width: 26px; height: 1px; background: linear-gradient(90deg, var(--accent-bright), transparent); }

.hero h1 {
  font-size: clamp(2.3rem, 1.15rem + 5vw, 4rem);
  line-height: 0.99;            /* tight editorial set */
  letter-spacing: -0.035em;
  margin: 20px auto 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  white-space: nowrap;          /* keep "booked meetings" intact */
}
.hero-sub {
  font-size: clamp(1.04rem, 0.98rem + 0.45vw, 1.22rem);
  color: var(--body); max-width: 48ch; margin: 22px auto 0;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* Performance promise strip — the headline trust-builder */
.promise {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin: 26px auto 0; padding: 12px 20px; border-radius: 999px;
  background: rgba(46, 127, 245, 0.08); border: 1px solid var(--border-bright);
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
}
.promise svg { width: 19px; height: 19px; stroke: var(--accent-bright); flex-shrink: 0; }
.promise b { color: var(--accent-bright); font-weight: 700; }

.hero-visual { width: 100%; min-width: 0; }

/* ---- Hero signature: animated email-sequence mockup ---- */
.mockup {
  position: relative; max-width: 540px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(17, 27, 48, 0.92), rgba(13, 20, 36, 0.92));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(46, 127, 245, 0.05);
  text-align: left; overflow: hidden;
}
.mockup::before { /* top accent hairline */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 160, 255, 0.55), transparent);
}
.mockup-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.mockup-bar .dots { display: flex; gap: 6px; }
.mockup-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.mockup-bar .title {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  color: var(--muted); letter-spacing: 0.02em; margin-left: 6px;
}
.mockup-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-bright); }
.mockup-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 0 rgba(90,160,255,.6); animation: pulse 2s var(--ease) infinite; }

.mockup-body { padding: 13px; display: flex; flex-direction: column; gap: 9px; }

/* ---- Mail-client row ---- */
.mail {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 12px 13px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.mail:hover { background: rgba(46, 127, 245, 0.07); border-color: var(--border-bright); transform: translateX(3px); }
.mail .avatar {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
  color: var(--accent-bright);
  background: rgba(46, 127, 245, 0.12); border: 1px solid var(--border-bright);
}
.mail-body { flex: 1; min-width: 0; }
.mail-to { color: var(--body); font-size: 0.8rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-subj { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.94rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-preview { color: var(--muted); font-size: 0.81rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mail-aside { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mail-day { color: var(--muted); font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.05em; }
.mail-status {
  font-family: var(--font-display); font-size: 0.71rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
}
/* Default / no-JS / reduced-motion = final active state */
.mail-status[data-status="sent"]    { color: #bcd4ff; background: rgba(46, 127, 245, 0.12); border-color: var(--border-bright); }
.mail-status[data-status="opened"]  { color: #cfe0ff; background: rgba(46, 127, 245, 0.18); border-color: var(--border-bright); }
.mail-status[data-status="replied"] { color: #aee5c0; background: rgba(52, 199, 123, 0.14); border-color: rgba(52, 199, 123, 0.40); }

/* ---- Final booked event ---- */
.booked {
  display: flex; align-items: center; gap: 13px;
  margin-top: 3px; padding: 15px 14px; border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(46, 127, 245, 0.16), rgba(10, 42, 122, 0.22));
  border: 1px solid var(--border-bright);
}
.booked .cal {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; background: var(--grad);
  box-shadow: 0 8px 20px -8px rgba(46, 127, 245, 0.7);
}
.booked .cal svg { width: 23px; height: 23px; stroke: #fff; }
.booked .info { min-width: 0; }
.booked .info b { color: var(--ink); font-family: var(--font-display); font-size: 0.98rem; display: block; }
.booked .info span { color: var(--body); font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.booked .when { margin-left: auto; flex-shrink: 0; text-align: right; color: var(--accent-bright); font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; }

/* ---- Animated timeline (enabled by JS via .anim; falls back to final state) ---- */
.mockup.anim .mail { opacity: 0; transform: translateY(10px); }
.mockup.anim .mail.in { animation: mailIn 0.5s var(--ease) forwards; }
.mockup.anim .mail-status {           /* queued look before the pill flips */
  color: var(--muted); background: rgba(255, 255, 255, 0.05); border-color: var(--border);
  opacity: 0.45; transform: scale(0.92);
}
.mockup.anim .mail-status.flip { animation: flipIn 0.5s var(--ease) forwards; }
.mockup.anim .mail-status[data-status="sent"].flip    { color: #bcd4ff; background: rgba(46, 127, 245, 0.12); border-color: var(--border-bright); }
.mockup.anim .mail-status[data-status="opened"].flip  { color: #cfe0ff; background: rgba(46, 127, 245, 0.18); border-color: var(--border-bright); }
.mockup.anim .mail-status[data-status="replied"].flip { color: #aee5c0; background: rgba(52, 199, 123, 0.14); border-color: rgba(52, 199, 123, 0.40); }
.mockup.anim .booked { opacity: 0; transform: translateY(8px) scale(0.985); }
.mockup.anim .booked.in { animation: bookedIn 0.6s var(--ease) forwards; }

/* ============================================================
   SERVICES
   ============================================================ */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card {
  position: relative; padding: 26px 24px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
/* hairline top accent — dim by default, brightens on hover (no resting glow) */
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 160, 255, 0.5), transparent);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--border-bright); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card:hover .card-ico { border-color: rgba(90, 160, 255, 0.55); background: rgba(46, 127, 245, 0.16); }

.card-kicker {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.card-ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(46, 127, 245, 0.07); border: 1px solid var(--border); margin-bottom: 20px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.card-ico svg { width: 24px; height: 24px; stroke: var(--accent-bright); fill: none; }
.card h3 { font-size: 1.24rem; margin: 12px 0 9px; }
.card p { color: var(--body); font-size: 0.97rem; }
.card ul { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.card li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); font-size: 0.91rem; }
.card li svg { width: 16px; height: 16px; stroke: var(--accent-bright); flex-shrink: 0; margin-top: 3px; }

/* ============================================================
   PROCESS
   ============================================================ */
.timeline { list-style: none; padding: 0; margin: 0; max-width: 720px; position: relative; }
.tl-step {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 20px;
  padding-bottom: clamp(28px, 4vw, 44px);
}
.tl-step:last-child { padding-bottom: 0; }
/* connecting line runs through the marker column */
.tl-step::before {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: -2px; width: 2px;
  background: linear-gradient(180deg, var(--border-bright), var(--border));
}
.tl-step:last-child::before { display: none; }

.tl-marker {
  width: 52px; height: 52px; border-radius: 14px; position: relative; z-index: 1;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-bright);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.tl-marker span {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; letter-spacing: 0.02em;
}
/* final step = the payoff: solid accent marker */
.tl-step:last-child .tl-marker { background: var(--grad); border-color: transparent; box-shadow: 0 8px 22px -10px rgba(46, 127, 245, 0.8); }
.tl-step:last-child .tl-marker span { background: none; -webkit-background-clip: border-box; color: #fff; }

.tl-content { padding-top: 4px; }
.tl-content h3 { font-size: 1.22rem; margin-bottom: 8px; }
.tl-content p { color: var(--body); font-size: 0.97rem; max-width: 46ch; }
.tl-tag {
  display: inline-block; margin-top: 13px; font-family: var(--font-display);
  font-size: 0.71rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent-bright); padding: 5px 11px; border-radius: 999px;
  background: rgba(46, 127, 245, 0.10); border: 1px solid var(--border-bright);
}

/* ============================================================
   FINAL CTA / FOUNDING CLIENTS
   ============================================================ */
.close {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: clamp(30px, 5vw, 48px);
  padding: clamp(34px, 5vw, 60px) clamp(26px, 4vw, 52px);
  border-radius: 26px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}
.close::before {   /* single restrained top hairline — the only accent, no flood glow */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 160, 255, 0.5), transparent);
}
.close-copy h2 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3rem); max-width: 16ch; }
.close-copy h2 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.close-copy p { color: var(--body); font-size: 1.08rem; max-width: 46ch; margin-top: 18px; }

/* booking action card — gives the close a clear, confident focal point */
.close-action {
  align-self: center;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-bright);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.scarcity {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 7px 14px; border-radius: 999px; background: rgba(46, 127, 245, 0.10);
  border: 1px solid var(--border-bright); color: #bcd4ff;
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em;
}
.scarcity .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 0 rgba(90,160,255,.6); animation: pulse 2s var(--ease) infinite; }
.close-action .btn { width: 100%; }
.close-action .terms { font-size: 0.86rem; color: var(--muted); }
.close-action .email-line { font-size: 0.92rem; color: var(--muted); margin-top: 2px; }
.close-action .email-line a { color: var(--accent-bright); font-weight: 600; }
.close-action .email-line a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding-block: 44px; }
.footer-inner { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.footer-logo svg { height: 32px; width: auto; }
.footer-tag { color: var(--muted); font-size: 0.92rem; max-width: 34ch; margin-top: 12px; }
.footer-right { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.footer-right a { color: var(--body); }
.footer-right a:hover { color: var(--accent-bright); }
.footer-copy { color: var(--muted); font-size: 0.88rem; }

/* ============================================================
   Scroll-reveal + focus + motion
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* subtle stagger within a group (cards / timeline steps) */
.cards > .reveal:nth-child(2), .timeline > .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards > .reveal:nth-child(3), .timeline > .reveal:nth-child(3) { transition-delay: 0.16s; }
.timeline > .reveal:nth-child(4) { transition-delay: 0.24s; }

:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }

@keyframes mailIn { to { opacity: 1; transform: none; } }
@keyframes bookedIn { to { opacity: 1; transform: none; } }
@keyframes flipIn {
  0%   { opacity: 0.45; transform: perspective(420px) rotateX(-78deg) scale(0.92); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: perspective(420px) rotateX(0) scale(1); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(90, 160, 255, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(90, 160, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(90, 160, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .mail, .booked, .mail-status { opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 720px) {
  .container { padding-inline: 32px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-right { align-items: flex-end; text-align: right; }
}

@media (min-width: 940px) {
  .nav-toggle { display: none; }

  /* Nav shares the hero's exact grid: logo over column 1, CTA pinned to column 2's
     right edge (= the email card's right edge). Links float centered, independent. */
  .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: clamp(40px, 4.5vw, 76px);
    align-items: center; position: relative;
  }
  .nav-logo { grid-column: 1; justify-self: start; }
  .nav-links { display: flex; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .nav-cta { display: inline-flex; grid-column: 2; justify-self: end; }

  /* Confident close: copy left, booking action right */
  .close { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(40px, 4vw, 64px); padding: clamp(48px, 5vw, 68px); }

  /* Asymmetric editorial hero — same grid geometry as the nav above */
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 4.5vw, 76px); }
  .hero-copy { text-align: left; }
  .hero h1 { margin-left: 0; margin-right: 0; max-width: none; }
  .hero-sub { margin-left: 0; margin-right: 0; }
  .hero-ctas { justify-content: flex-start; }
  .promise { margin-left: 0; margin-right: 0; }
  .mockup { margin: 0; max-width: none; }
}
