/* ============================================================
   SPDigitWorld — Main Stylesheet
   Dark + Gold Theme (inspired by premium design)
   ============================================================ */

/* ── Reset & Root ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0b;
  --fg:          #e4e4e7;
  --muted:       #71717a;
  --accent:      #d4a22f;
  --accent-soft: rgba(212,162,47,.14);
  --accent-glow: rgba(212,162,47,.85);
  --card-bg:     rgba(24,24,27,.55);
  --card-border: rgba(255,255,255,.08);
  --hud:         rgba(255,255,255,.10);
  --white-5:     rgba(255,255,255,.05);
  --white-10:    rgba(255,255,255,.10);
  --white-15:    rgba(255,255,255,.15);
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --radius:      20px;
  --transition:  200ms ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Grain overlay */
.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── Scrollable animation height ────────────────────────── */
.scroll-animation { height: 400vh; }
@media (max-width: 1024px) { .scroll-animation { height: 350vh; } }
@media (max-width: 768px)  { .scroll-animation { height: 300vh; } }

/* ── Typography helpers ──────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid rgba(212,162,47,.22);
  border-radius: 100px;
  background: var(--accent-soft);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Card surface ────────────────────────────────────────── */
.card-surface {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.04) inset,
    0 20px 40px -20px rgba(0,0,0,.6);
}

/* ── HUD frame corners (SVG lines) ───────────────────────── */
.hud-corner { pointer-events: none; color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--fg);
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--white-15);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover  { background: rgba(255,255,255,.10); }
.btn:active { transform: translateY(1px); }
.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.btn--accent:hover { background: #e2b540; border-color: #e2b540; }

/* ── Navbar ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset-x: 0; top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms, border-color 300ms, backdrop-filter 300ms;
}
.site-header.scrolled {
  background: rgba(0,0,0,.6);
  border-color: var(--white-10);
  backdrop-filter: blur(24px) saturate(150%);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) { .header-inner { padding: 20px 32px; } }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--fg);
}
.logo-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.logo-accent { color: var(--accent); }

.desktop-nav {
  display: none;
  align-items: center;
  gap: 28px;
}
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-link:hover, .nav-link--active { color: var(--fg); }
.nav-link--active { color: var(--accent); }

.btn-cta-nav {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--fg);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--white-15);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
@media (min-width: 768px) { .btn-cta-nav { display: inline-flex; } }
.btn-cta-nav:hover  { background: rgba(255,255,255,.10); }
.btn-cta-nav:active { transform: translateY(1px); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 24px 20px;
  background: rgba(0,0,0,.92);
  border-top: 1px solid var(--white-5);
  backdrop-filter: blur(24px);
}
.mobile-nav .nav-link,
.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--white-5);
  font-size: 13px;
}
.mobile-nav .btn-cta-mobile {
  display: block;
  margin-top: 16px;
  padding: 14px;
  text-align: center;
  border-radius: 12px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.mobile-nav[hidden] { display: none; }

/* ── Loading screen ──────────────────────────────────────── */
.loading-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--bg);
  padding: 24px;
}
.loading-bar-track {
  width: min(320px, 80vw);
  height: 1px;
  background: var(--white-10);
}
.loading-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 150ms ease-out;
  width: 0%;
}
.loading-text {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--muted);
}

/* ── Hero section ────────────────────────────────────────── */
.hero-section { position: relative; }

.hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  will-change: transform;
  transform: translateZ(0);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  will-change: contents;
  transform: translateZ(0);
}

.hero-gradient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 10%, transparent 30%, rgba(10,10,11,.45) 70%, rgba(10,10,11,.85) 100%);
}

/* Progress bar */
.hero-progress-wrap {
  pointer-events: none;
  position: absolute;
  inset-x: 0; bottom: 0;
  z-index: 10;
}
.hero-progress-track {
  margin: 0 24px 12px;
  height: 1px;
  background: var(--white-10);
}
@media (min-width: 768px) { .hero-progress-track { margin-inline: 40px; } }
.hero-progress-fill {
  height: 100%;
  transform-origin: left;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 80ms linear;
}
.hero-progress-labels {
  margin: 0 24px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--muted);
}
@media (min-width: 768px) { .hero-progress-labels { margin-inline: 40px; } }

/* HUD corners */
.hud-tl { position: absolute; left: 24px; top: 96px; }
.hud-tr { position: absolute; right: 24px; top: 96px; }
.hud-bl { position: absolute; left: 24px; bottom: 56px; }
.hud-br { position: absolute; right: 24px; bottom: 56px; }
@media (min-width: 768px) {
  .hud-tl { left: 40px; top: 112px; }
  .hud-tr { right: 40px; top: 112px; }
  .hud-bl { left: 40px; bottom: 64px; }
  .hud-br { right: 40px; bottom: 64px; }
}

/* Telemetry top labels */
.hud-tel-left {
  pointer-events: none;
  position: absolute;
  left: 24px; top: 80px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) { .hud-tel-left { left: 40px; top: 96px; } }
.hud-tel-left .hud-line { height: 1px; width: 32px; background: rgba(212,162,47,.6); }
.hud-tel-right {
  pointer-events: none;
  position: absolute;
  right: 24px; top: 80px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (min-width: 768px) { .hud-tel-right { right: 40px; top: 96px; } }
.hud-tel-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.hud-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--muted);
}
.hud-mono--accent { color: var(--accent); }

/* Hero bottom text */
.hero-bottom-text {
  position: absolute;
  inset-x: 0; bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 0 24px 96px;
  transition: opacity 80ms linear;
}
@media (min-width: 768px) { .hero-bottom-text { padding: 0 48px 112px; } }

.hero-h1 {
  max-width: 18ch;
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--fg);
}
.hero-h1 .accent { color: var(--accent); }
.hero-sub {
  max-width: 44ch;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.7;
  color: var(--muted);
}

/* Big left text (appears mid-scroll) */
.hero-big-left {
  pointer-events: none;
  position: absolute;
  bottom: 96px; left: 24px;
  z-index: 10;
  display: none;
  flex-direction: column;
  gap: 20px;
  max-width: 58%;
  opacity: 0;
  transition: opacity 80ms linear;
}
@media (min-width: 768px) {
  .hero-big-left { display: flex; bottom: 112px; left: 48px; }
}
.hero-big-h2 {
  font-size: clamp(48px, 9.5vw, 90px);
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.05em;
  color: var(--fg);
}
.hero-big-h2 .accent { color: var(--accent); }
.hero-big-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted);
}

/* Floating dialogue cards (desktop only) */
.dialogue-cards-desktop { display: none; }
@media (min-width: 768px) { .dialogue-cards-desktop { display: block; } }

.dialogue-card-wrap {
  pointer-events: none;
  position: absolute;
  z-index: 20;
  width: 420px;
  max-width: 90vw;
}
.dialogue-card-wrap--d1 { top: 22%; right: 24px; }
.dialogue-card-wrap--d2 { top: 50%; right: 24px; transform: translateY(-50%); }
.dialogue-card-wrap--d3 { bottom: 96px; right: 24px; }
@media (min-width: 768px) {
  .dialogue-card-wrap--d1 { right: 48px; }
  .dialogue-card-wrap--d2 { right: 48px; }
  .dialogue-card-wrap--d3 { bottom: 112px; right: 48px; }
}

.dialogue-card {
  pointer-events: auto;
  padding: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
.dialogue-card.visible { opacity: 1; transform: translateY(0); }
.dialogue-card blockquote {
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--fg);
}
.dialogue-card figcaption {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialogue-card .speaker { font-size: 13px; color: #d4d4d8; }
.dialogue-card .film {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--accent);
}

/* Mobile dialogue stack */
.dialogue-cards-mobile {
  pointer-events: none;
  position: absolute;
  inset-x: 0; top: 38%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px;
}
@media (min-width: 768px) { .dialogue-cards-mobile { display: none; } }
.dialogue-card-mob {
  pointer-events: auto;
  padding: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
.dialogue-card-mob.visible { opacity: 1; transform: translateY(0); }
.dialogue-card-mob blockquote { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--fg); }
.dialogue-card-mob figcaption { margin-top: 12px; display: flex; justify-content: space-between; }
.dialogue-card-mob .speaker { font-size: 12px; color: #d4d4d8; }
.dialogue-card-mob .film { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }

/* ── Cinematic section (frames2) ─────────────────────────── */
.cinematic-section {
  position: relative;
  border-top: 1px solid var(--white-5);
  background: var(--bg);
}
.cine-sticky {
  position: sticky;
  top: 0;
  width: 100%; height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  will-change: transform;
  transform: translateZ(0);
}
.cine-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.cine-gradient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 90%, transparent 30%, rgba(10,10,11,.45) 70%, rgba(10,10,11,.85) 100%);
}
/* Cine title */
.cine-title-wrap {
  pointer-events: none;
  position: absolute;
  right: 24px; top: 112px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  max-width: 46ch;
  text-align: right;
}
@media (min-width: 768px) { .cine-title-wrap { right: 48px; top: 128px; } }
.cine-h2 {
  position: relative;
  align-self: stretch;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.04em;
  color: var(--fg);
}
.cine-h2-a, .cine-h2-b {
  transition: opacity 240ms ease-out;
}
.cine-h2-b {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.cine-h2 .accent { color: var(--accent); }
.cine-sub {
  max-width: 42ch;
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.7;
  color: var(--muted);
}
/* Cine beats */
.beat-card-wrap {
  pointer-events: none;
  position: absolute;
  z-index: 20;
  width: 420px;
  max-width: 90vw;
  display: none;
}
@media (min-width: 768px) { .beat-card-wrap { display: block; } }
.beat-card-wrap--b1 { top: 24%; left: 24px; }
.beat-card-wrap--b2 { top: 50%; left: 24px; transform: translateY(-50%); }
.beat-card-wrap--b3 { bottom: 112px; left: 24px; }
@media (min-width: 768px) {
  .beat-card-wrap--b1 { left: 48px; }
  .beat-card-wrap--b2 { left: 48px; }
  .beat-card-wrap--b3 { left: 48px; bottom: 128px; }
}
.beat-card {
  pointer-events: auto;
  padding: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
.beat-card.visible { opacity: 1; transform: translateY(0); }
.beat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--accent);
}
.beat-card blockquote {
  margin-top: 12px;
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--fg);
}
.beat-card figcaption {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.beat-card .speaker { font-size: 13px; color: #d4d4d8; }
.beat-card .film {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--muted);
}
/* Cine outro */
.cine-outro {
  pointer-events: none;
  position: absolute;
  bottom: 96px; right: 24px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  opacity: 0;
  transition: opacity 80ms linear;
}
@media (min-width: 768px) { .cine-outro { bottom: 128px; right: 48px; } }
.cine-outro a { pointer-events: auto; }
/* Seq readout */
.cine-seq {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--accent);
}
/* Mobile beat stack */
.beat-cards-mobile {
  pointer-events: none;
  position: absolute;
  inset-x: 0; top: 36%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px;
}
@media (min-width: 768px) { .beat-cards-mobile { display: none; } }
.beat-card-mob { pointer-events: auto; padding: 20px; opacity: 0; transform: translateY(16px); transition: opacity 400ms, transform 400ms; }
.beat-card-mob.visible { opacity: 1; transform: translateY(0); }
.beat-card-mob .beat-label { font-size: 9px; }
.beat-card-mob blockquote { margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--fg); }
.beat-card-mob figcaption { margin-top: 12px; display: flex; justify-content: space-between; }
.beat-card-mob .speaker { font-size: 12px; color: #d4d4d8; }
.beat-card-mob .film { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }

/* ── Sections — Services, About, Metrics ─────────────────── */
.section {
  position: relative;
  border-top: 1px solid var(--white-5);
  background: var(--bg);
  padding: 96px 24px 112px;
}
@media (min-width: 768px) { .section { padding: 128px 40px 160px; } }

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-grid-2 {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
@media (min-width: 768px) {
  .section-grid-2 {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 80px;
  }
}

/* Section heading group */
.section-head { display: flex; flex-direction: column; gap: 24px; }
.section-h2 {
  max-width: 18ch;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.04em;
  color: var(--fg);
}
.section-h2 .accent { color: var(--accent); }
.section-p {
  max-width: 50ch;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.75;
  color: var(--muted);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: rgba(212,162,47,.3);
  transform: translateY(-3px);
}
.service-icon {
  font-size: 28px;
  line-height: 1;
}
.service-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}
.service-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* Metrics row */
.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-top: 1px solid var(--white-5);
}
@media (min-width: 768px) { .metrics-row { grid-template-columns: repeat(4, 1fr); } }

.metric-cell {
  padding: 32px 20px;
  border-right: 1px solid var(--white-5);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric-cell:nth-child(2n) { border-right: none; }
@media (min-width: 768px) {
  .metric-cell:nth-child(2n)   { border-right: 1px solid var(--white-5); }
  .metric-cell:nth-child(4n)   { border-right: none; }
}
.metric-val {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--fg);
  line-height: 1;
}
.metric-val .accent { color: var(--accent); }
.metric-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--muted);
}

/* Telemetry table */
.telemetry-table {
  font-family: var(--font-mono);
  border-top: 1px solid var(--white-5);
  margin-top: 12px;
}
.telemetry-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--white-5);
}
.telemetry-key {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.telemetry-key .lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--muted);
}
.telemetry-key .note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #a1a1aa;
}
.telemetry-val {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--fg);
}

/* ── About section ───────────────────────────────────────── */
.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  min-height: 280px;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-award-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  padding: 10px 16px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--fg);
  background: var(--card-bg);
  border: 1px solid var(--accent);
  backdrop-filter: blur(12px);
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.testimonial-quote { font-size: 14px; line-height: 1.75; color: #d4d4d8; flex: 1; }
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.testimonial-name { font-weight: 600; font-size: 14px; color: var(--fg); }
.testimonial-biz {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--muted);
}

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  margin: 0 24px 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(212,162,47,.12) 0%, rgba(212,162,47,.04) 100%);
  border: 1px solid rgba(212,162,47,.2);
  padding: 64px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
@media (min-width: 768px) {
  .cta-banner { margin: 0 40px 128px; padding: 80px 64px; }
}
.cta-banner-h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--fg);
}
.cta-banner-p {
  max-width: 50ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.cta-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Inner page hero (non-scroll pages) ──────────────────── */
.page-hero {
  padding: 160px 24px 80px;
  background: linear-gradient(180deg, rgba(212,162,47,.06) 0%, transparent 60%);
  border-bottom: 1px solid var(--white-5);
}
@media (min-width: 768px) { .page-hero { padding: 180px 40px 96px; } }
.page-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-hero-h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--fg);
}
.page-hero-h1 .accent { color: var(--accent); }
.page-hero-p {
  max-width: 55ch;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--muted);
}

/* ── Pricing cards ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.pricing-card--featured {
  border-color: rgba(212,162,47,.35) !important;
  background: linear-gradient(145deg, rgba(212,162,47,.08), rgba(24,24,27,.55)) !important;
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 100px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  white-space: nowrap;
}
.pricing-name {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--muted);
}
.pricing-price {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--fg);
  line-height: 1;
}
.pricing-price span { font-size: 16px; color: var(--muted); font-weight: 400; }
.pricing-desc { font-size: 13px; line-height: 1.6; color: var(--muted); }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #d4d4d8;
}
.pricing-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

/* ── Contact form ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--muted);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  backdrop-filter: blur(12px);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(212,162,47,.5);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: #18181b; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-submit { margin-top: 8px; }

/* Contact info blocks */
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-block { display: flex; flex-direction: column; gap: 6px; }
.contact-block-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--muted);
}
.contact-block-val {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}
.contact-block-val a { color: var(--accent); }
.contact-block-val a:hover { text-decoration: underline; }

/* Success stories */
.stories-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .stories-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .stories-grid { grid-template-columns: repeat(3, 1fr); } }

.story-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.story-client {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.story-client-name { font-weight: 600; font-size: 16px; color: var(--fg); }
.story-client-type {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--muted);
}
.story-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.story-result-item { display: flex; flex-direction: column; gap: 4px; }
.story-result-val { font-size: 28px; font-weight: 700; letter-spacing: -.04em; color: var(--accent); }
.story-result-lbl { font-size: 11px; color: var(--muted); }
.story-desc { font-size: 13px; line-height: 1.65; color: #a1a1aa; }
.story-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--card-border);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--muted);
  background: var(--card-bg);
}

/* ── Animated sections (fade-in on scroll) ───────────────── */
.animate-fade { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.animate-fade.in-view { opacity: 1; transform: translateY(0); }

/* ── WhatsApp float button ───────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 24px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

/* ── Site footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--white-5);
  background: var(--bg);
  padding: 56px 24px 32px;
}
@media (min-width: 768px) { .site-footer { padding: 64px 40px 40px; } }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.footer-top {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .footer-top { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 2.5fr 1fr 1fr 1.2fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-tagline { max-width: 38ch; font-size: 13px; line-height: 1.65; color: var(--muted); }
.footer-copy { font-size: 12px; line-height: 1.6; color: #52525b; }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color var(--transition), border-color var(--transition);
}
.footer-social a:hover { color: var(--accent); border-color: rgba(212,162,47,.3); }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--muted);
}
.footer-col nav { display: flex; flex-direction: column; gap: 10px; }
.footer-col nav a { font-size: 13px; color: #a1a1aa; transition: color var(--transition); }
.footer-col nav a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact p { display: flex; flex-direction: column; gap: 3px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: #52525b;
}
.footer-contact a { font-size: 13px; color: var(--accent); }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact p > span:last-child:not(.contact-label) { font-size: 13px; color: #a1a1aa; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--white-5);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: #52525b;
}
.footer-bottom a { color: var(--muted); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Alert / notification ────────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 20px;
}
.alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25); color: #86efac; }
.alert-error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.25);  color: #fca5a5; }