/* ═══════════════════════════════════════════════════════════════
   Contamplify — Landing Page
   Editorial-studio aesthetic. Navy + lime palette (matches app).
   Fraunces for display (variable, optical sizing), Manrope for body.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand tokens — mirror the production app */
  --ink:        #0F172A;
  --ink-700:    #1E293B;
  --ink-500:    #475569;
  --ink-400:    #64748B;
  --ink-300:    #94A3B8;
  --line:       #E2E8F0;
  --line-soft:  #F1F5F9;
  --paper:      #F8FAFC;
  --bone:       #FAF8F3;          /* warm cream — editorial accent */
  --white:      #FFFFFF;

  --emerald:    #7DC400;
  --emerald-d:  #5F9600;
  --emerald-l:  #9ADA00;
  --mint:       #D4F075;
  --mint-pale:  #F0FCD4;

  --violet:     #8a3ffc;
  --violet-l:   #a476f5;
  --rose:       #DB2777;
  --amber:      #D97706;
  --sky:        #0284C7;
  --ember:      #DC2626;

  /* Fonts */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Rhythm */
  --container: 1200px;
  --gutter:    clamp(20px, 4vw, 56px);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 14px 24px; font-size: 15px; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  background: linear-gradient(135deg, var(--ink), var(--emerald));
  color: var(--white);
  box-shadow: 0 6px 20px -8px rgba(16,185,129,.55), 0 1px 0 0 rgba(255,255,255,.08) inset;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(16,185,129,.7); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.25);
}
.btn--ghost-light:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.05); }

.btn--white {
  background: var(--white);
  color: var(--ink);
}
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -10px rgba(0,0,0,.35); }

.btn--linklike {
  background: transparent;
  color: var(--ink);
  padding: 10px 4px;
  border-radius: 0;
  border-bottom: 1px solid var(--ink);
}
.btn--linklike:hover { color: var(--emerald-d); border-color: var(--emerald-d); }

.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn__plus {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: 11px; line-height: 1;
}

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,250,252,.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  padding: 0 var(--gutter);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  position: relative;
}
.brand {
  display: inline-flex; align-items: center;
}
.brand__logo { width: auto; display: block; }

.nav__links {
  display: flex; gap: 28px;
}
.nav__links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-500);
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 1px; width: 0; background: var(--ink);
  transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* Default: show the long label, hide the short one. Swapped on mobile. */
.nav-cta-short { display: none; }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { bottom: 14px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__cta { display: none; }

  .nav__links {
    position: absolute;
    left: 0; right: 0;
    /* top: 100%; */
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
    transform: translateY(-110%);
    transition: transform .35s var(--ease);
    box-shadow: 0 20px 40px -20px rgba(15,23,42,.15);
    z-index: 49;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a {
    padding: 14px var(--gutter);
    font-size: 16px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink);
  }
  .nav__links a::after { display: none; }
  .nav__burger { display: inline-grid; place-items: center; }
}
@media (max-width: 520px) {
  .nav__cta .btn--ghost { display: none; }
  .nav__cta .btn { padding: 9px 14px; font-size: 13px; min-height: 38px; }
  .nav__inner { padding: 12px 0; gap: 10px; }
  .nav .brand__logo { height: 30px; }
  .nav__burger { width: 38px; height: 38px; }
  .nav__burger span { left: 9px; right: 9px; }
  /* Long label fits comfortably now that the wordmark is gone. */
  .nav-cta-long { display: inline; }
  .nav-cta-short { display: none; }
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 3.4vw, 48px) var(--gutter) clamp(40px, 6vw, 72px);
  background: var(--paper);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.hero__grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, rgba(15,23,42,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  animation: floatY 14s ease-in-out infinite;
}
.hero__orb--a {
  width: 520px; height: 520px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, var(--emerald-l) 0%, transparent 65%);
}
.hero__orb--b {
  width: 420px; height: 420px;
  bottom: -200px; left: -120px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 65%);
  animation-delay: -7s;
  opacity: .4;
}
.hero__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .035;
  mix-blend-mode: multiply;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(30px); }
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-500);
  padding: 6px 14px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  margin-bottom: 18px;
  animation: fadeUp .9s var(--ease) both;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .65; transform: scale(.85); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(38px, 6.2vw, 80px);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  color: var(--ink);
  max-width: 17ch;
  margin: 0 0 18px;
  animation: fadeUp 1s var(--ease) .1s both;
}
.hero__title em {
  font-style: italic;
  font-weight: 320;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--ink);
  background: linear-gradient(180deg, var(--emerald-d) 0%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title-accent {
  position: relative;
  white-space: nowrap;
}
.hero__title-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .08em;
  height: .12em;
  background: var(--emerald-l);
  opacity: .35;
  z-index: -1;
  border-radius: 2px;
}

.hero__lede {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--ink-500);
  max-width: 54ch;
  margin: 0 0 24px;
  animation: fadeUp 1s var(--ease) .25s both;
}

.hero__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-bottom: 16px;
  animation: fadeUp 1s var(--ease) .4s both;
}
.hero__note {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-500);
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 32px;
  animation: fadeUp 1s var(--ease) .5s both;
}
.hero__note svg { color: var(--emerald-d); flex-shrink: 0; }

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: clamp(16px, 3vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 720px;
  animation: fadeUp 1s var(--ease) .55s both;
}
.meta-item__num {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: clamp(32px, 3.8vw, 44px);
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--ink);
}
.meta-item__num span {
  font-family: var(--font-body);
  font-size: .4em;
  font-weight: 500;
  color: var(--ink-400);
  vertical-align: super;
  margin-left: 2px;
}
.meta-item__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-400);
  margin-top: 6px;
}
.meta-divider { width: 1px; height: 36px; background: var(--line); align-self: center; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Floating preview card */
.hero__card {
  position: absolute;
  top: 12%;
  right: calc(var(--gutter) + 32px);
  width: 300px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    0 1px 1px rgba(15,23,42,.04),
    0 30px 60px -20px rgba(15,23,42,.18),
    0 16px 32px -16px rgba(16,185,129,.22);
  overflow: hidden;
  transform: rotate(2deg);
  animation: cardFloat 7s ease-in-out infinite;
  z-index: 1;
}
@keyframes cardFloat {
  0%,100% { transform: rotate(2deg) translateY(0); }
  50%     { transform: rotate(2deg) translateY(-14px); }
}
.card-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.card-chrome__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
}
.card-chrome__dot:nth-child(1) { background: #fca5a5; }
.card-chrome__dot:nth-child(2) { background: #fcd34d; }
.card-chrome__dot:nth-child(3) { background: #86efac; }
.card-chrome__name {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
}
.card-body { padding: 14px; }
.card-prompt {
  padding: 10px 12px;
  background: var(--paper);
  border-radius: 10px;
  border: 1px dashed var(--line);
  margin-bottom: 12px;
}
.card-prompt__label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-300);
  display: block;
  margin-bottom: 4px;
}
.card-prompt p {
  margin: 0;
  font-size: 12px; line-height: 1.5;
  color: var(--ink-700);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
}
.card-thumbs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  margin-bottom: 12px;
}
.thumb {
  aspect-ratio: 1/1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.card-foot { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-500);
}
.chip--accent {
  background: var(--mint-pale);
  border-color: transparent;
  color: var(--emerald-d);
  font-weight: 600;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero__card {
    width: 220px;
    top: 8%;
    right: calc(var(--gutter) - 12px);
  }
  .hero__card .card-body { padding: 10px; }
  .hero__card .card-chrome { padding: 8px 10px; }
  .hero__card .card-prompt { padding: 8px 10px; margin-bottom: 8px; }
  .hero__card .card-prompt p { font-size: 11px; }
  .hero__card .card-thumbs { gap: 4px; margin-bottom: 8px; }
  .hero__card .chip { font-size: 9px; padding: 3px 6px; }
}

@media (max-width: 760px) {
  .hero__card { display: none; }
}

/* ─── Marquee ──────────────────────────────────────────────── */
.marquee {
  display: flex; align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bone);
  padding: 20px var(--gutter);
  overflow: hidden;
}
.marquee__label {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-500);
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.marquee__pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16,185,129,.2);
}
.marquee__track-wrap {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex; gap: 24px;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: 18px;
  color: var(--ink);
}
.marquee__track span:nth-child(even) { color: var(--ink-300); font-style: normal; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── BYOK section ────────────────────────────────────────── */
.byok {
  padding: clamp(40px, 5.5vw, 80px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.byok__head {
  max-width: 720px;
  margin: 0 0 40px;
}
.byok__head strong { color: var(--ink); font-weight: 600; }
.byok__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.provider {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.provider:hover {
  transform: translateY(-3px);
  border-color: var(--ink-300);
  box-shadow: 0 24px 48px -24px rgba(15,23,42,.12);
}
.provider__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.provider__logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}
.provider__logo--fal { background: var(--ink); border-color: var(--ink); }
.provider h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 0 0 4px;
}
.provider__sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.provider__list {
  list-style: none; padding: 0; margin: 0 0 24px;
  flex: 1;
  display: grid; gap: 10px;
}
.provider__list li {
  font-size: 14px;
  color: var(--ink-700);
  padding-left: 22px;
  position: relative;
}
.provider__list li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 12px; height: 1px;
  background: var(--emerald);
}
.provider__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  width: max-content;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.provider__link:hover { color: var(--emerald-d); border-color: var(--emerald-d); }

.provider--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.provider--dark::before {
  content: "";
  position: absolute;
}
.provider--dark .provider__head { border-color: rgba(255,255,255,.12); }
.provider--dark .provider__sub { color: var(--mint); }
.provider--dark .provider__list li { color: rgba(255,255,255,.78); }
.provider--dark .provider__list li::before { background: var(--mint); }
.provider--dark .provider__link {
  color: var(--white);
  border-color: var(--white);
}
.provider--dark .provider__link:hover { color: var(--mint); border-color: var(--mint); }

.provider--steps {
  background: var(--bone);
  border-color: var(--line);
}
.provider__steps-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 0 0 24px;
}
.provider__steps {
  list-style: none; padding: 0; margin: 0 0 24px;
  flex: 1;
  display: grid; gap: 16px;
}
.provider__steps li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.55;
}
.provider__steps li a {
  color: var(--emerald-d);
  border-bottom: 1px dashed var(--emerald-d);
}
.provider__step-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

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

/* ─── Section primitives ──────────────────────────────────── */
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emerald-d);
  margin-bottom: 18px;
}
.kicker--light { color: var(--mint); }

.section-title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 96;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 22ch;
}
.section-title em {
  font-style: italic;
  font-weight: 320;
  color: var(--emerald-d);
}
.section-title--light { color: var(--white); }
.section-title--light em { color: var(--mint); }

.section-lede {
  font-size: 17px; line-height: 1.65;
  color: var(--ink-500);
  max-width: 55ch;
  margin: 0;
}

/* ─── Features ────────────────────────────────────────────── */
.features {
  padding: clamp(40px, 5.5vw, 80px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.features__head { margin-bottom: 40px; max-width: 720px; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.feature {
  grid-column: span 4;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 24px 48px -24px rgba(15,23,42,.15);
}
.feature--xl { grid-column: span 8; }
.feature--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.feature--dark::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(16,185,129,.25) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}
.feature--dark > * { position: relative; z-index: 1; }
.feature--dark p { color: rgba(255,255,255,.75); }
.feature--dark:hover { border-color: var(--emerald); }

.feature__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.feature__icon--mint   { background: var(--mint-pale); color: var(--emerald-d); }
.feature__icon--ink    { background: #EEF2FF;          color: #4338CA; }
.feature__icon--ember  { background: #FEF2F2;          color: var(--ember); }
.feature__icon--bright { background: rgba(167,243,208,.18); color: var(--mint); }
.feature__icon--violet { background: #F5F3FF;          color: var(--violet); }
.feature__icon--sky    { background: #EFF6FF;          color: var(--sky); }
.feature__icon--rose   { background: #FDF2F8;          color: var(--rose); }
.feature__icon--amber  { background: #FFFBEB;          color: var(--amber); }

.feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.feature--xl h3 { font-size: 30px; }
.feature p {
  margin: 0;
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.6;
}
.feature__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px !important;
  margin-bottom: 10px !important;
  color: var(--mint) !important;
}
.feature__bullets {
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid; gap: 8px;
}
.feature__bullets li {
  font-size: 14px;
  color: var(--ink-700);
  padding-left: 22px;
  position: relative;
}
.feature__bullets li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 12px; height: 1px;
  background: var(--emerald);
}
.feature__badge {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(167,243,208,.2);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .feature, .feature--xl { grid-column: span 12; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .feature { grid-column: span 6; }
  .feature--xl { grid-column: span 12; }
}

/* ─── How (dark section) ──────────────────────────────────── */
.how {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: clamp(48px, 6.5vw, 96px) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.how::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(16,185,129,.22) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(138,63,252,.12) 0%, transparent 45%);
  z-index: -1;
}
.how::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: -1;
}
.how__inner { max-width: var(--container); margin: 0 auto; }
.steps {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 32px 28px 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.step:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(167,243,208,.4);
}
.step__num {
  font-family: var(--font-display);
  font-weight: 320;
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  font-variation-settings: "opsz" 144;
  background: linear-gradient(180deg, var(--mint) 0%, transparent 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: var(--white);
}
.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.65);
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* ─── Showcase ────────────────────────────────────────────── */
.showcase {
  padding: clamp(48px, 6.5vw, 96px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.showcase .section-title { margin-bottom: 40px; }
.showcase__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.tile {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  grid-column: span 2;
  grid-row: span 1;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .35s var(--ease);
}
.tile:hover { transform: translateY(-3px); }
.tile:hover .tile__sparkle { transform: scale(1.1) rotate(15deg); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 4; }
/* Real images now fill the tile via object-fit. The gradient placeholders
   below stay only as a graceful fallback if a webp ever fails to load. */
.tile__art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #0F172A 0%, #10B981 100%); /* fallback */
  transition: transform .6s var(--ease);
}
.tile:hover .tile__art { transform: scale(1.04); }

/* Soft top-to-bottom scrim so the caption stays legible over any image */
.tile::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, rgba(15,23,42,.65));
  pointer-events: none;
  z-index: 1;
}
.tile figcaption { z-index: 2; }

.tile figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  color: var(--white);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px;
}
.tile__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 9px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
}
.tile__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: 16px;
  text-align: right;
  flex-shrink: 1;
}

@media (max-width: 900px) {
  .showcase__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .tile, .tile--tall, .tile--wide { grid-column: span 1; grid-row: span 1; }
  .tile--tall { grid-row: span 2; }
  .tile--wide { grid-column: span 2; }
}

/* ─── Quote ───────────────────────────────────────────────── */
.quote {
  background: var(--bone);
  padding: clamp(48px, 6vw, 88px) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote__mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 320;
  font-size: 160px;
  line-height: .8;
  color: var(--emerald);
  opacity: .4;
  margin-bottom: -40px;
}
.quote blockquote {
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--ink);
}
.quote blockquote em {
  font-style: italic;
  color: var(--emerald-d);
}
.quote__attrib {
  display: inline-flex; align-items: center; gap: 14px;
  text-align: left;
}
.quote__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F172A 0%, #10B981 100%);
  position: relative;
}
.quote__avatar::after {
  content: "AS";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.02em;
}
.quote__name { font-weight: 600; font-size: 15px; color: var(--ink); }
.quote__role { font-size: 13px; color: var(--ink-400); }

/* ─── Pricing ─────────────────────────────────────────────── */
.pricing {
  padding: clamp(48px, 6.5vw, 96px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
/* Pricing heading block — center-aligned */
.pricing .kicker { display: block; text-align: center; }
.pricing .section-title {
  text-align: center;
  margin: 0 auto 16px;
  max-width: 22ch;
}
.pricing__lede {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 60ch;
}
.pricing__foot {
  margin: 40px auto 0;
  max-width: 70ch;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: .02em;
}
.pricing__foot a { color: var(--emerald-d); border-bottom: 1px dashed var(--emerald-d); }

/* API key required notice — mirrors the in-app /pricing warning */
.api-notice {
  display: flex; gap: 16px; align-items: flex-start;
  max-width: 760px;
  margin: 0 0 44px;
  padding: 18px 20px;
  background: #FFF7ED;          /* warm amber wash */
  border: 1px solid #FED7AA;
  border-left: 3px solid var(--amber);
  border-radius: 14px;
}
.api-notice__icon {
  flex-shrink: 0;
  color: var(--amber);
  margin-top: 1px;
}
.api-notice__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-700);
}
.api-notice__body strong {
  color: #B91C1C;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.api-notice__hl {
  color: #C2410C;
  font-weight: 700;
}
.api-notice__body em {
  color: var(--ink);
  font-style: italic;
  font-weight: 600;
}

/* Three-up grid (instead of the old two-tone three-up) */
.pricing__grid--three {
  align-items: stretch;
}
.plan__savings {
  margin: 8px 0 0;
  display: inline-block;
  padding: 3px 10px;
  background: var(--mint-pale);
  color: var(--emerald-d);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  align-self: flex-start;
}
.plan--featured .plan__savings {
  background: rgba(167,243,208,.2);
  color: var(--mint);
}

/* INR price layout — number is big, "INR /month" is small inline */
.plan__price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px;
  font-family: var(--font-display);
  font-weight: 320;
  font-variation-settings: "opsz" 144;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -.04em;
}
.plan__price .plan__currency {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-400);
}
.plan--featured .plan__price .plan__currency { color: var(--mint); }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 28px;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-3px); border-color: var(--ink-300); }
.plan--featured {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(15,23,42,.45);
}
.plan--featured::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,.22) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}
.plan--featured > * { position: relative; z-index: 1; }
.plan__ribbon {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--emerald), var(--mint));
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan__head { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid currentColor; border-color: var(--line); }
.plan--featured .plan__head { border-color: rgba(255,255,255,.12); }
.plan h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.plan__price {
  font-family: var(--font-display);
  font-weight: 320;
  font-variation-settings: "opsz" 144;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.04em;
  display: flex; align-items: baseline; gap: 4px;
}
.plan__currency {
  font-size: 28px;
  font-weight: 400;
  color: var(--ink-400);
}
.plan--featured .plan__currency { color: var(--mint); }
.plan__per {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: 0;
}
.plan--featured .plan__per { color: rgba(255,255,255,.5); }
.plan__price--quiet {
  font-size: 36px;
  font-style: italic;
  color: var(--ink-500);
}
.plan__sub {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-400);
}
.plan--featured .plan__sub { color: rgba(255,255,255,.6); }
.plan__list {
  list-style: none; padding: 0; margin: 0 0 28px;
  flex: 1;
  display: grid; gap: 10px;
}
.plan__list li {
  font-size: 14px;
  padding-left: 24px;
  position: relative;
  color: var(--ink-700);
}
.plan--featured .plan__list li { color: rgba(255,255,255,.85); }
.plan__list li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 14px; height: 9px;
  border-left: 1.6px solid var(--emerald);
  border-bottom: 1.6px solid var(--emerald);
  transform: rotate(-45deg);
}
.plan--featured .plan__list li::before { border-color: var(--mint); }

.plan--featured .btn--primary { background: var(--white); color: var(--ink); }
.plan--featured .btn--primary:hover { background: var(--mint); }

@media (max-width: 900px) {
  .pricing__grid { grid-template-columns: 1fr; }
  /* Mobile order: Annual (featured) → Monthly → Free */
  .plan--featured { order: -1; }
  .pricing__grid > .plan:nth-of-type(2) { order: 0; }
  .pricing__grid > .plan:nth-of-type(1) { order: 1; }
}

/* ─── CTA ─────────────────────────────────────────────────── */
.cta {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: clamp(56px, 7.5vw, 112px) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.cta__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.cta__orb {
  position: absolute;
  width: 700px; height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--emerald) 0%, transparent 65%);
  opacity: .25;
  filter: blur(60px);
  animation: ctaPulse 8s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%,100% { transform: translate(-50%, -50%) scale(1); opacity: .25; }
  50%     { transform: translate(-50%, -50%) scale(1.1); opacity: .35; }
}
.cta__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.cta__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 144;
  color: var(--white);
  margin: 0 0 22px;
}
.cta__title em {
  font-style: italic;
  font-weight: 320;
  color: var(--mint);
}
.cta__lede {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  max-width: 50ch;
  margin: 0 auto 36px;
}
.cta__buttons {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--paper);
  padding: 72px var(--gutter) 28px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer__brand .brand { margin-bottom: 16px; }
.footer__tag {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-400);
  max-width: 32ch;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer__cols h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 16px;
}
.footer__cols a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink-700);
  transition: color .2s var(--ease);
}
.footer__cols a:hover { color: var(--emerald-d); }

.footer__base {
  max-width: var(--container);
  margin: 28px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-400);
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.footer__base em { font-family: var(--font-display); font-style: italic; color: var(--ink-500); }

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__base { flex-direction: column; gap: 6px; }
}

/* ─── Reveal on scroll ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile polish (≤640px) ──────────────────────────────── */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }

  /* Hero */
  .hero {
    padding-top: clamp(36px, 12vw, 64px);
    padding-bottom: clamp(56px, 14vw, 88px);
  }
  .hero__title { font-size: clamp(36px, 11vw, 56px); max-width: 100%; }
  .hero__lede { font-size: 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__cta .btn { justify-content: center; }
  .hero__cta .btn--linklike {
    align-self: center;
    padding-top: 14px;
  }
  .hero__note {
    font-size: 11px;
    padding: 8px 12px;
    align-items: flex-start;
    line-height: 1.4;
  }
  .hero__meta {
    gap: 18px 24px;
    padding-top: 28px;
  }
  .meta-item__num { font-size: 36px; }
  .meta-divider { display: none; }

  /* Marquee */
  .marquee { flex-direction: column; align-items: stretch; padding: 16px 0; gap: 12px; }
  .marquee__label {
    padding: 0 var(--gutter);
    border-right: none;
    justify-content: flex-start;
  }
  .marquee__track { font-size: 16px; gap: 18px; }

  /* Sections — tighten vertical rhythm */
  .features, .byok, .how, .showcase, .pricing { padding-top: 40px; padding-bottom: 40px; }
  .quote { padding-top: 40px; padding-bottom: 40px; }
  .cta { padding-top: 48px; padding-bottom: 48px; }

  .section-title { font-size: clamp(30px, 8.5vw, 44px); margin-bottom: 14px; }
  .section-lede { font-size: 15px; }

  /* Features */
  .features__head { margin-bottom: 32px; }
  .feature, .feature--xl { padding: 24px 22px; }
  .feature h3, .feature--xl h3 { font-size: 20px; }

  /* Steps */
  .steps { margin-top: 36px; gap: 14px; }
  .step { padding: 24px 22px; }
  .step__num { font-size: 48px; margin-bottom: 12px; }
  .step h3 { font-size: 20px; }

  /* Showcase */
  .showcase__grid { grid-auto-rows: 140px; gap: 10px; }
  .tile { border-radius: 14px; }
  .tile figcaption { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .tile__name { text-align: left; font-size: 14px; }
  .tile__sparkle { font-size: 56px; }

  /* Quote */
  .quote__mark { font-size: 110px; margin-bottom: -28px; }
  .quote blockquote { font-size: 20px; line-height: 1.4; }

  /* Pricing */
  .plan { padding: 26px 22px; border-radius: 18px; }
  .plan__price { font-size: 40px; gap: 4px 6px; }
  .plan__price .plan__currency { font-size: 13px; }
  .plan__per { font-size: 12px; }
  .plan__ribbon { font-size: 9px; padding: 5px 12px; }
  .api-notice { padding: 14px 16px; gap: 12px; border-radius: 12px; margin-bottom: 32px; }
  .api-notice__body { font-size: 13px; line-height: 1.5; }

  /* CTA */
  .cta__title { font-size: clamp(34px, 10vw, 56px); }
  .cta__buttons { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .cta__buttons .btn { justify-content: center; }

  /* BYOK provider */
  .provider, .provider--steps { padding: 24px 22px; border-radius: 18px; }
  .provider__head { gap: 12px; padding-bottom: 18px; margin-bottom: 18px; }
  .provider h3 { font-size: 20px; }

  /* Footer */
  .footer { padding-top: 48px; padding-bottom: 24px; }
  .footer__inner { padding-bottom: 36px; gap: 28px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
  }

  /* Hide the floating hero card mockup on small screens
     (the page is busy enough without it). */
  .hero__card { display: none !important; }

  /* Ensure touch targets are comfortable */
  .btn { min-height: 44px; }
  .nav__cta .btn { min-height: 38px; }
}

/* ─── Tablet hero card hide is at 1100px already ─── */

/* ─── Large desktops (≥1440px) ────────────────────────────── */
@media (min-width: 1440px) {
  :root {
    --container: 1320px;
    --gutter: clamp(40px, 4.5vw, 72px);
  }
}

/* ─── 2K screens (≥1920px) ────────────────────────────────── */
@media (min-width: 1920px) {
  :root {
    --container: 1560px;
    --gutter: clamp(56px, 5vw, 96px);
  }
  body { font-size: 17px; }

  /* Let display type breathe */
  .hero__title    { font-size: clamp(80px, 5.4vw, 108px); max-width: 18ch; }
  .hero__lede     { font-size: 19px; max-width: 58ch; }
  .section-title  { font-size: clamp(60px, 4vw, 76px); }
  .section-lede   { font-size: 19px; max-width: 60ch; }
  .meta-item__num { font-size: clamp(44px, 3vw, 56px); }

  /* Hero card scales up so it doesn't look like a postage stamp */
  .hero__card { width: 360px; right: calc(var(--gutter) + 48px); }
  .hero__card .card-body { padding: 18px; }
  .hero__card .card-prompt p { font-size: 13px; }
  .hero__card .chip { font-size: 11px; padding: 5px 10px; }

  /* Marquee */
  .marquee__track { font-size: 20px; gap: 28px; }
  .marquee__label { font-size: 12px; }

  /* Cards / spacing */
  .feature, .feature--xl { padding: 36px; border-radius: 22px; }
  .step                  { padding: 36px; }
  .provider, .provider--steps { padding: 36px; border-radius: 24px; }
  .plan                  { padding: 36px; border-radius: 22px; }

  /* Tighter content rhythm in tall sections */
  .features, .byok, .how, .showcase, .pricing,
  .quote, .cta { padding-top: clamp(80px, 5vw, 120px); padding-bottom: clamp(80px, 5vw, 120px); }
}

/* ─── 4K screens (≥2560px) ────────────────────────────────── */
@media (min-width: 2560px) {
  :root {
    --container: 1840px;
    --gutter: clamp(80px, 5vw, 140px);
  }
  body { font-size: 18px; line-height: 1.62; }

  .hero__title    { font-size: clamp(108px, 5vw, 132px); max-width: 18ch; }
  .hero__lede     { font-size: 21px; max-width: 60ch; }
  .section-title  { font-size: clamp(76px, 3.8vw, 92px); }
  .section-lede   { font-size: 21px; max-width: 62ch; }
  .meta-item__num { font-size: clamp(56px, 2.6vw, 68px); }

  .hero__card { width: 440px; right: calc(var(--gutter) + 64px); }
  .hero__card .card-body { padding: 22px; }
  .hero__card .card-prompt p { font-size: 15px; }
  .hero__card .chip { font-size: 12px; padding: 6px 12px; }
  .hero__card .card-chrome__name { font-size: 13px; }

  .marquee__track { font-size: 22px; gap: 32px; }

  .feature, .feature--xl,
  .step,
  .provider, .provider--steps,
  .plan { padding: 44px; border-radius: 26px; }

  .features__grid,
  .byok__grid,
  .pricing__grid { gap: 24px; }

  /* Body copy in feature/provider cards */
  .feature h3, .feature--xl h3,
  .step h3, .provider h3,
  .provider__steps-title { font-size: 26px; }
  .feature p, .step p, .provider__list li,
  .provider__steps li { font-size: 16px; }
}

/* ─── FUEL / CAR METAPHOR ─────────────────────────────────── */
.fuel {
  background: var(--ink);
  padding: clamp(64px, 9vw, 108px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.fuel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 70% 55%, rgba(16,185,129,.07) 0%, transparent 65%),
    radial-gradient(ellipse 35% 40% at 20% 30%, rgba(59,130,246,.05) 0%, transparent 60%);
  pointer-events: none;
}
.fuel__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.fuel__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.eyebrow--light { color: rgba(255,255,255,.45); }
.eyebrow--light .eyebrow__dot { background: var(--emerald); }

.eyebrow--emerald {
  color: var(--emerald-l);
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.28);
}
.eyebrow--emerald .eyebrow__dot {
  background: var(--emerald-l);
  box-shadow: 0 0 0 4px rgba(52,211,153,.2);
}

.fuel__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-300);
  max-width: 44ch;
}
.fuel__features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fuel__feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.fuel__feat-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(16,185,129,.5);
}
.fuel__feat strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}
.fuel__feat p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-400);
  line-height: 1.55;
}
.fuel__cta { align-self: flex-start; }

/* ─── Car scene wrapper ───────────────────── */
.fuel__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.car-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  padding-bottom: 24px;
}

/* Road */
.car-road {
  position: absolute;
  bottom: 0;
  left: -8%;
  right: -8%;
  height: 26px;
  background: #0A1520;
  border-top: 1px solid #1C3A5A;
  border-radius: 3px;
  overflow: hidden;
}
.car-road__dash {
  position: absolute;
  top: 50%;
  left: -150%;
  width: 400%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 28px,
    #1C3A5A 28px,
    #1C3A5A 56px
  );
  transform: translateY(-50%);
  animation: road-scroll 0.9s linear infinite paused;
}
.car-scene.is-running .car-road__dash {
  animation-play-state: running;
}

/* Car SVG */
.car-svg {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Speed lines: collapsed to the left by default */
.speed-lines line {
  transform-origin: 100% 50%;
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease);
}
.car-scene.is-running .speed-lines line            { opacity: 1; transform: scaleX(1); }
.car-scene.is-running .speed-lines line:nth-child(2) { transition-delay: .06s; }
.car-scene.is-running .speed-lines line:nth-child(3) { transition-delay: .12s; }
.car-scene.is-running .speed-lines line:nth-child(4) { transition-delay: .18s; }

/* Headlight */
.hl-beam { transition: opacity .7s var(--ease) .2s; }
.hl-drl  { transition: opacity .7s var(--ease) .4s; }
.car-scene.is-running .hl-beam { opacity: 1 !important; }
.car-scene.is-running .hl-drl  { opacity: 1 !important; }

/* Taillight */
.tl-glow { transition: opacity .7s var(--ease) .15s; }
.car-scene.is-running .tl-glow { opacity: 1 !important; }

/* Exhaust smoke */
@keyframes puff-up {
  0%   { opacity: 0; transform: translate(0,0) scale(.5); }
  25%  { opacity: .3; }
  100% { opacity: 0; transform: translate(18px,-22px) scale(2); }
}
.car-scene.is-running .puff-1 { animation: puff-up 1.5s ease-out 0.5s infinite; }
.car-scene.is-running .puff-2 { animation: puff-up 1.7s ease-out 0.8s infinite; }
.car-scene.is-running .puff-3 { animation: puff-up 1.9s ease-out 1.1s infinite; }

/* Wheel spin */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.car-scene.is-running .front-wheel-spokes { animation: spin 0.7s linear infinite; }
.car-scene.is-running .rear-wheel-spokes  { animation: spin 0.7s linear infinite; }

/* Road animation */
@keyframes road-scroll {
  from { transform: translateY(-50%) translateX(0); }
  to   { transform: translateY(-50%) translateX(-84px); }
}

/* Car lurch on start */
@keyframes car-lurch {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-5px); }
  65%  { transform: translateX(5px); }
  100% { transform: translateX(0); }
}
.car-scene.is-running .car-svg {
  animation: car-lurch .55s var(--ease) forwards;
}

/* ─── Gauge panel ─────────────────────────── */
.gauge-panel {
  position: absolute;
  top: 6px;
  right: 0;
  background: rgba(15,23,42,.88);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  padding: 12px 15px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-width: 158px;
}
.gauge-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-400);
  font-family: var(--font-mono);
  margin-bottom: 9px;
}
.gauge-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.gauge-e { font-size: 10px; font-weight: 700; font-family: var(--font-mono); color: var(--ink-400); }
.gauge-f { font-size: 10px; font-weight: 700; font-family: var(--font-mono); color: var(--emerald-l); }
.gauge-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
}
.gauge-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald-d), var(--emerald-l));
  border-radius: 999px;
  transition: width 1.3s cubic-bezier(.15,.85,.2,1) .5s;
  box-shadow: 0 0 10px rgba(16,185,129,.55);
}
.car-scene.is-running .gauge-fill { width: 100%; }

.gauge-status {
  margin-top: 9px;
  font-size: 10.5px;
  color: var(--ink-400);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .4s var(--ease);
}
.gauge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.gauge-dot--off { background: #475569; }
.gauge-dot--on  { background: var(--emerald); box-shadow: 0 0 6px var(--emerald); }

/* ─── Floating key badge ──────────────────── */
.key-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.28);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald-l);
  white-space: nowrap;
  animation: key-float 3.2s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
.key-badge__check {
  color: var(--emerald);
  font-weight: 700;
  margin-left: 2px;
}
@keyframes key-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-7px); }
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 900px) {
  .fuel__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .fuel__visual { order: -1; }
  .fuel__desc { max-width: 100%; }
  .gauge-panel { top: 2px; }
}
@media (max-width: 520px) {
  .gauge-panel { min-width: 130px; padding: 9px 11px; }
  .key-badge { font-size: 10px; top: -14px; }
}

/* ─── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
