/* Modern utility CSS for the EZRaider marketing site.
   Used alongside ../../colors_and_type.css.
   This file owns the "Zero / Mercedes" vibe: glass surfaces, soft
   gradients, clean hairlines, smooth animations. */

/* ---- Brand-tinted backgrounds ----------------------------------- */
.bg-stage {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(31,143,227,0.08) 0%, rgba(31,143,227,0) 60%),
    linear-gradient(180deg, #07080A 0%, #000 60%);
}
.bg-stage-soft {
  background:
    radial-gradient(80% 60% at 50% 10%, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 60%),
    #050507;
}

/* ---- Glass card -------------------------------------------------- */
.glass {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 28px -14px rgba(0,0,0,0.7);
}
.glass::before {
  content: "";
  position: absolute;
  top: -1px; left: 16px; right: 16px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  pointer-events: none;
}
.glass-strong {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(31,143,227,0.10) 0%, rgba(31,143,227,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.09);
}

.hairline { height: 1px; width: 100%; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%); }
.hairline-bright { height: 1px; width: 100%; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%); }

/* ---- Glass chip / pill ------------------------------------------ */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font: 600 11px/1 'Inter', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.chip-brand {
  background: rgba(1,107,193,0.12);
  border-color: rgba(31,143,227,0.4);
  color: #7CC0FF;
}
.chip-dot { width: 6px; height: 6px; border-radius: 999px; background: #1F8FE3; box-shadow: 0 0 8px #1F8FE3; }

/* ---- Cleaner buttons (override the legacy pill) ----------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 999px;
  font: 600 14px/1 'Inter', sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 200ms, color 200ms, border-color 200ms, transform 200ms;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: #fff;
  color: #000;
}
.btn-primary:hover { background: #1F8FE3; color: #fff; }
.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.btn-ghost {
  background: transparent;
  color: #fff;
}
.btn-ghost:hover { color: #7CC0FF; }
.btn-arrow svg { width: 16px; height: 16px; transition: transform 200ms; }
.btn-arrow:hover svg { transform: translateX(3px); }

.btn-sm { height: 42px; padding: 0 20px; font-size: 13px; }
.btn-lg { height: 58px; padding: 0 28px; font-size: 15px; }

/* ---- Section frames --------------------------------------------- */
.section { padding: 140px 0; position: relative; }
.section-sm { padding: 96px 0; }
.section-divider {
  position: relative;
}
.section-divider::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.08) 80%, transparent 100%);
}
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 96px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 'Inter', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: rgba(255,255,255,0.5);
}
.eyebrow.brand { color: #7CC0FF; }
.eyebrow.brand::before { background: #1F8FE3; }

.h-display {
  font: 700 clamp(56px, 7vw, 96px) / 1 'Sora', sans-serif;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}
.h-section {
  font: 700 clamp(40px, 4.4vw, 64px) / 1.05 'Sora', sans-serif;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
}
.h-card {
  font: 700 22px/1.1 'Sora', sans-serif;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
.body-lead {
  font: 400 18px/1.55 'Inter', sans-serif;
  color: rgba(255,255,255,0.7);
  margin: 24px 0 0;
}
.body { font: 400 15px/1.55 'Inter', sans-serif; color: rgba(255,255,255,0.65); }
.cap { font: 500 12px/1.3 'Inter', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ---- Reveal animation (intersection observer adds .in) --------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.4,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Brand gradient text -------------------------------------- */
.grad-ink {
  background: linear-gradient(180deg, #ffffff 0%, #b8c8d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Silver glass gradient applied to every major H2 on the homepage so
   headings feel like a single family. Brand-tight: white → light-grey
   → mid-grey, clipped to the glyph shapes. */
.h-grad {
  background-image: linear-gradient(180deg, #ffffff 0%, #ebebeb 35%, #8a8a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* Technology hero — independent float for each exploded-view piece.
   Each .hero-piece sets --dx / --dy / --dur / --delay inline; the
   element is the full source image clipped to a piece's bounding box,
   so translating the whole element moves that piece around the canvas
   while the underlying body stays still. */
.hero-piece {
  animation: heroPieceFloat var(--dur, 6s) ease-in-out var(--delay, 0s) infinite alternate;
  will-change: transform;
}
@keyframes heroPieceFloat {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-piece { animation: none; }
}


/* Blog prose — typography rules for post body content.
   Sora for subheads (matching the rest of the site), Inter for paragraphs.
   Generous line-height and a comfortable measure for long reads. */
.blog-prose {
  font-family: Inter, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
}
.blog-prose > * + * { margin-top: 1.25em; }
.blog-prose p { margin: 0; }
.blog-prose .lede {
  font-family: Sora, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  text-wrap: pretty;
}
.blog-prose h2 {
  margin: 2.4em 0 0;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}
.blog-prose h3 {
  margin: 2em 0 0;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: #fff;
}
.blog-prose h2 + p,
.blog-prose h3 + p { margin-top: 0.5em; }
.blog-prose strong { color: #fff; font-weight: 600; }
.blog-prose em { color: #fff; font-style: italic; }
.blog-prose a {
  color: #7CC0FF;
  text-decoration: none;
  border-bottom: 1px solid rgba(124,192,255,0.35);
  padding-bottom: 1px;
  transition: color 200ms, border-color 200ms;
}
.blog-prose a:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.blog-prose ul, .blog-prose ol {
  margin: 1.2em 0;
  padding-left: 0;
  list-style: none;
}
.blog-prose ul li,
.blog-prose ol li {
  position: relative;
  padding-left: 24px;
  margin: 0.55em 0;
}
.blog-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: rgba(31,143,227,0.7);
}
.blog-prose ol { counter-reset: prose-counter; }
.blog-prose ol li { counter-increment: prose-counter; }
.blog-prose ol li::before {
  content: counter(prose-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(31,143,227,0.85);
}
.blog-prose blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 2px solid #1F8FE3;
  background: linear-gradient(180deg, rgba(31,143,227,0.05) 0%, rgba(31,143,227,0) 100%);
  font-family: Sora, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  color: #fff;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.blog-prose blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: Inter, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(124,192,255,0.85);
}
.blog-prose hr {
  margin: 2.8em 0;
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.blog-prose .callout {
  margin: 2em 0;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0a0a0c;
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
}
.blog-prose .callout-label {
  display: block;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7CC0FF;
  margin-bottom: 10px;
}
