/* warmup.rocks landing — light, editorial, Astro-inspired. Logo red as focused accent. */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterVariable-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
:root {
  --bg: #fdfcfb;
  --bg-2: #f6f4f1;
  --card: #ffffff;
  --border: #e7e4df;
  --border-strong: #d8d4cd;
  --text: #1c1c1c;
  --muted: #5f6672;
  --red: #dc0000;
  --red-dark: #b40000;
  --ember: #ff5a36;
  --ok: #0f8a4d;
  --brand: linear-gradient(100deg, #dc0000, #ff5a36 70%, #ff8a3d);
  --shadow-sm: 0 1px 2px rgba(28, 28, 28, .05), 0 2px 8px rgba(28, 28, 28, .04);
  --shadow-md: 0 2px 4px rgba(28, 28, 28, .05), 0 12px 32px rgba(28, 28, 28, .08);
  font-size: 16px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); background: rgba(253,252,251,.82); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; padding: .8rem 1.25rem; }
.brand { display: flex; align-items: center; }
.brand img { display: block; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; font-size: .92rem; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: .6rem; align-items: center; margin-left: auto; }
.nav-links + .nav-cta { margin-left: 0; }
.nav-cta .btn { padding: .48rem 1.05rem; font-size: .88rem; }

/* ---------- buttons ---------- */
.btn { display: inline-block; border-radius: 12px; padding: .6rem 1.25rem; font-weight: 650; font-size: .95rem; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 18px rgba(220,0,0,.25); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(220,0,0,.32); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: #b9b3a9; box-shadow: var(--shadow-sm); }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.02rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 6.5rem 1.25rem 4rem; text-align: center;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(220,0,0,.07), transparent 65%),
    radial-gradient(700px 400px at 85% 5%, rgba(255,90,54,.05), transparent 60%),
    radial-gradient(700px 400px at 12% 8%, rgba(255,138,61,.05), transparent 60%);
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--muted); font-weight: 550;
  border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); padding: .4rem .95rem; border-radius: 999px; margin-bottom: 1.6rem; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: .5; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 830; }
.shimmer { background: linear-gradient(100deg, #dc0000 20%, #ff5a36 45%, #ff8a3d 55%, #ff5a36 65%, #dc0000 85%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.lede { max-width: 620px; margin: 1.4rem auto 0; color: var(--muted); font-size: 1.12rem; }
.lede strong { color: var(--text); }
.cta-row { display: flex; gap: .9rem; justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }

/* metric demo */
.metric-demo { display: flex; gap: 1.4rem; align-items: stretch; justify-content: center; margin: 3.5rem auto 0; max-width: 720px; flex-wrap: wrap; }
.metric-col { flex: 1; min-width: 250px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); border-radius: 18px; padding: 1.4rem 1.5rem; text-align: left; }
.metric-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; }
.metric-value { font-size: 2.6rem; font-weight: 800; margin: .4rem 0 .6rem; font-variant-numeric: tabular-nums; }
.metric-value.cold { color: var(--red); }
.metric-value.warm { color: var(--ok); }
.metric-bar { height: 8px; border-radius: 6px; background: #edeae5; overflow: hidden; }
.metric-fill { height: 100%; border-radius: 6px; width: 0; }
.cold-fill { background: linear-gradient(90deg, #ff5a36, var(--red)); animation: fill-cold 2.4s .4s ease-out forwards; }
.warm-fill { background: var(--ok); animation: fill-warm 1s .9s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes fill-cold { to { width: 96%; } }
@keyframes fill-warm { to { width: 7%; } }
.metric-sub { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.metric-arrow { align-self: center; font-size: 1.6rem; color: var(--red); }

/* ---------- sections ---------- */
section { padding: 5.5rem 1.25rem; }
.section-head { max-width: 700px; margin: 0 auto 3rem; text-align: center; }
.eyebrow { font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: .8rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.04rem; }

/* ---------- map ---------- */
.map-section { background: var(--bg-2); border-block: 1px solid var(--border); }
.map-wrap { max-width: 1000px; margin: 0 auto; position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow-md); padding: 1.6rem 1.6rem 1.3rem; }
#worldMap { width: 100%; height: auto; display: block; }
.map-legend { display: flex; gap: 1.6rem; justify-content: center; font-size: .82rem; color: var(--muted); margin-top: .6rem; }
.map-legend > span { display: inline-flex; align-items: center; gap: .45rem; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend-dot.ping { background: var(--red); }
.legend-dot.colo { background: #a9a294; }

.map-proof { text-align: center; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--border); }
.proof-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .8rem; }
.proof-chips { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.proof-chip { display: inline-flex; align-items: baseline; gap: .4rem; font-size: .86rem; color: var(--muted); font-weight: 550;
  border: 1px solid var(--border); background: var(--bg-2); border-radius: 999px; padding: .42rem 1rem; }
.proof-chip b { font-size: 1.05rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.proof-chip.total { border-color: rgba(220,0,0,.25); background: rgba(220,0,0,.05); }
.proof-chip.total b { color: var(--red); }
.proof-note { max-width: 560px; margin: .9rem auto 0; font-size: .82rem; color: var(--muted); line-height: 1.55; }

.cdn-row { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.cdn-chip { font-size: .84rem; font-weight: 700; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); }
.cdn-chip.cf { color: #d96c00; }
.cdn-chip.fastly { color: #e0242a; }
.cdn-chip.akamai { color: #0064c8; }
.cdn-chip.cfr { color: #6d3fc4; }
.cdn-chip.bunny { color: #c47a00; }
.cdn-chip.c77 { color: #5f6672; }

.colo-marquee { overflow: hidden; margin-top: 2.6rem; display: grid; gap: .8rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: .8rem; width: max-content; animation: marquee 90s linear infinite; }
.marquee-track.row-1 { animation-duration: 110s; animation-direction: reverse; margin-left: -3rem; }
.marquee-track.row-2 { animation-duration: 130s; margin-left: -1.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.colo-chip { flex: none; font-size: .82rem; font-weight: 550; color: var(--muted); border: 1px solid var(--border);
  background: var(--card); border-radius: 999px; padding: .4rem .95rem; }
.colo-chip b { color: var(--text); }

/* ---------- problem / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; max-width: 1000px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); border-radius: 18px; padding: 1.6rem; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon { font-size: 1.6rem; margin-bottom: .8rem; }
.card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .93rem; }

.steps { max-width: 720px; margin: 4rem auto 0; display: grid; gap: 1.6rem; }
.step { display: flex; gap: 1.3rem; align-items: flex-start; }
.step-num { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(220,0,0,.22); }
.step h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- stats band ---------- */
.stats-band { display: flex; flex-wrap: wrap; justify-content: center; gap: 3.5rem; text-align: center;
  background: linear-gradient(180deg, #f2faf5, #e9f6ee); border-block: 1px solid #d7ecdf; padding: 3.4rem 1.25rem; }
.stat-n { font-size: 2.8rem; font-weight: 830; background: linear-gradient(100deg, #0f8a4d, #17a05e 60%, #2fae74); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-l { color: #4d6a58; font-size: .88rem; margin-top: .2rem; }

/* ---------- bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; max-width: 1000px; margin: 0 auto; }
.bento-item { background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); border-radius: 18px; padding: 1.6rem; transition: transform .2s, box-shadow .2s; }
.bento-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bento-item.wide { grid-column: span 2; }
.bento-item h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.bento-item p { color: var(--muted); font-size: .93rem; }
.term { margin-top: 1.1rem; background: #16181d; border: 1px solid #2a2e37; border-radius: 10px;
  padding: .8rem 1rem; font-family: ui-monospace, "SF Mono", monospace; font-size: .82rem; color: #7ee2a8; min-height: 2.6em; }
.term-prompt { color: #ff8a3d; }
.term-cursor { display: inline-block; width: 7px; height: 1em; background: #7ee2a8; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini-bars { display: flex; gap: .55rem; align-items: flex-end; height: 90px; margin-top: 1.1rem; }
.mini-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .3rem; height: 100%; }
.mini-bar i { display: block; width: 100%; height: var(--h); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #ff8a3d, #dc0000); transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.9,.3,1) both; }
.mini-bar:nth-child(2) i { animation-delay: .08s; } .mini-bar:nth-child(3) i { animation-delay: .16s; }
.mini-bar:nth-child(4) i { animation-delay: .24s; } .mini-bar:nth-child(5) i { animation-delay: .32s; }
.mini-bar:nth-child(6) i { animation-delay: .4s; }
@keyframes grow { from { transform: scaleY(0); } }
.mini-bar b { font-size: .64rem; color: var(--muted); font-weight: 650; }
.code-chip { display: inline-block; margin-top: 1rem; background: #16181d; border: 1px solid #2a2e37;
  border-radius: 8px; padding: .45rem .8rem; font-family: ui-monospace, monospace; font-size: .8rem; color: #ffb27d; }
.vitals-row { display: flex; gap: .6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.vital { font-size: .8rem; font-weight: 700; padding: .35rem .8rem; border-radius: 999px; }
.vital.good { background: rgba(15,138,77,.1); color: var(--ok); border: 1px solid rgba(15,138,77,.25); }

/* ---------- faq ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: .7rem; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.05rem 1.3rem; }
details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
summary { cursor: pointer; font-weight: 650; font-size: .98rem; list-style: none; position: relative; padding-right: 2rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 0; color: var(--red); font-size: 1.2rem; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); font-size: .92rem; margin-top: .8rem; }

/* ---------- final cta / footer ---------- */
.cta-final { text-align: center; background:
  radial-gradient(700px 320px at 50% 110%, rgba(220,0,0,.08), transparent 70%); }
.cta-final h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 820; }
.cta-final p { color: var(--muted); margin: .8rem 0 2rem; font-size: 1.05rem; }
.footer { border-top: 1px solid var(--border); padding: 2rem 1.25rem; background: var(--bg-2); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); font-size: .85rem; align-items: center; }
.brand-sm { font-weight: 800; color: var(--text); }
.brand-sm span { color: var(--red); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .45s; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bento-item.wide { grid-column: span 1; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .metric-arrow { transform: rotate(90deg); }
  .map-wrap { padding: .9rem .7rem .9rem; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
