/* ============================================
   AUTODIAG SPAROW — Design System CSS
   Webbina Design
   ============================================ */

:root {
  --black: #0D0D0D;
  --black-deep: #080808;
  --anthracite: #1A1A1A;
  --anthracite-2: #141414;
  --border: #333333;
  --border-soft: #242424;
  --white: #FFFFFF;
  --gray-100: #E5E5E5;
  --gray-300: #B5B5B5;
  --gray-500: #7A7A7A;
  --red: #CC0000;
  --red-hover: #E60000;
  --red-deep: #990000;
  --red-glow: rgba(204, 0, 0, 0.45);

  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-heading: 'Rajdhani', 'Orbitron', sans-serif;
  --font-body: 'Inter', 'Roboto', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-pill: 999px;

  --shadow-red-soft: 0 6px 20px -8px var(--red-glow);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.02) inset, 0 8px 24px -12px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(204,0,0,0.06), transparent 50%),
    radial-gradient(circle at 100% 80%, rgba(204,0,0,0.04), transparent 60%);
  pointer-events: none; z-index: 0;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.02em; margin: 0; }
h1 { font-size: 48px; line-height: 1.1; text-transform: uppercase; }
h2 { font-size: 32px; line-height: 1.15; text-transform: uppercase; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 16px; color: var(--gray-100); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--red); display: inline-block;
}

.accent { color: var(--red); }

/* ── HEADER ── */
.header {
  background: var(--black);
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.header__logo img { height: 44px; display: block; }
.header__nav { display: flex; gap: 28px; }
.header__nav a {
  color: var(--white); text-decoration: none;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 14px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 0; position: relative;
  transition: color 0.2s;
}
.header__nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--red);
  transition: width 0.25s ease;
}
.header__nav a:hover::after,
.header__nav a.active::after { width: 100%; }
.header__nav a:hover,
.header__nav a.active { color: var(--red); }
.header__cta { display: flex; align-items: center; gap: 14px; }

/* ── TICKER ── */
.ticker {
  background: var(--red);
  overflow: hidden; white-space: nowrap;
  padding: 9px 0;
  position: relative; z-index: 1;
}
.ticker__track {
  display: inline-flex;
  animation: ticker-scroll 32s linear infinite;
}
.ticker__track span {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--white); padding-right: 40px;
}
.ticker__track i { font-style: normal; opacity: 0.6; margin: 0 14px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  border-radius: var(--r-md); transition: all 0.2s ease;
  line-height: 1;
}
.btn--sm  { font-size: 13px; padding: 10px 18px; }
.btn--md  { font-size: 14px; padding: 13px 24px; }
.btn--lg  { font-size: 15px; padding: 16px 32px; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-hover); box-shadow: var(--shadow-red-soft); }
.btn--secondary { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.btn--secondary:hover { background: var(--white); color: var(--black); }
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: var(--gray-100); }
.btn--outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── SECTIONS ── */
.section { padding: 96px 32px; position: relative; z-index: 1; }
.section--anthracite { background: var(--anthracite); }
.section__inner { max-width: 1240px; margin: 0 auto; }
.section__head { text-align: center; margin-bottom: 56px; }
.section__head h2 { margin: 12px 0 14px; }
.section__head p { color: var(--gray-300); max-width: 560px; margin: 0 auto; }
.section__foot { text-align: center; margin-top: 48px; }

/* ── CARTES ── */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card {
  background: var(--anthracite); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px;
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--red);
  transition: width 0.3s ease;
}
.card:hover { border-color: var(--red); box-shadow: var(--shadow-red-soft); }
.card:hover::after { width: 100%; }
.card__icon {
  width: 48px; height: 48px;
  background: rgba(204,0,0,0.1); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card__desc { color: var(--gray-300); font-size: 14px; line-height: 1.6; margin: 0; }

/* ── HERO ── */
.hero-page {
  padding: 80px 32px 96px;
  position: relative; z-index: 1;
  background: radial-gradient(ellipse at 80% 50%, rgba(204,0,0,0.07) 0%, transparent 60%);
}
.hero-page__inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-page h1 { font-family: var(--font-display); font-size: 64px; font-weight: 900; margin: 14px 0 20px; }
.hero-page__lead { font-size: 18px; color: var(--gray-300); margin-bottom: 32px; max-width: 480px; }
.hero-page__ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-page__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--gray-500); }
.hero-visual__media {
  background: var(--anthracite); border: 1px solid var(--border);
  border-radius: var(--r-lg); aspect-ratio: 4/3; overflow: hidden;
  position: relative; box-shadow: 0 0 60px -20px var(--red-glow);
}
.hero-visual__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--red); color: var(--white);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-sm);
}
.hero-visual__placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.2em; color: var(--gray-500);
}
.hero-visual__img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual__stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border); border-radius: var(--r-md);
  overflow: hidden; margin-top: 16px;
}
.hero-stat {
  background: var(--anthracite); padding: 16px;
  text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.hero-stat b { font-family: var(--font-display); font-size: 22px; color: var(--red); }
.hero-stat span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--gray-500); text-transform: uppercase; }

/* ── REMOTE ── */
.remote-section { background: var(--anthracite-2); }
.remote-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.remote-bullets { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.remote-bullets li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--gray-300);
}
.remote-bullets li::before { content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

/* ── TUNNEL ── */
.ds-tunnel { background: var(--anthracite); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.ds-tunnel__steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; }
.ds-tunnel__sep { color: var(--red); font-size: 20px; opacity: 0.6; }
.ds-tstep { text-align: center; }
.ds-tstep__num { font-family: var(--font-mono); font-size: 11px; color: var(--red); margin-bottom: 12px; }
.ds-tstep__icon { width: 44px; height: 44px; background: rgba(204,0,0,0.1); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--red); margin: 0 auto 12px; }
.ds-tstep__icon svg { width: 22px; height: 22px; }
.ds-tstep__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--gray-500); }
.ds-tstep__title { font-size: 15px; font-weight: 700; margin: 6px 0 6px; }
.ds-tstep__desc { font-size: 12px; color: var(--gray-300); margin: 0; }

/* ── WHY ── */
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.why { background: var(--anthracite); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 20px; text-align: center; }
.why__icon { width: 52px; height: 52px; background: rgba(204,0,0,0.1); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--red); margin: 0 auto 16px; }
.why__icon svg { width: 26px; height: 26px; }
.why__title { font-size: 18px; margin-bottom: 10px; }
.why__desc { font-size: 14px; color: var(--gray-300); margin: 0; }

/* ── AVIS ── */
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.review { background: var(--black); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 24px; }
.review__stars { display: flex; gap: 4px; margin-bottom: 16px; }
.review__stars svg { width: 18px; height: 18px; fill: var(--red); }
.review__text { font-size: 15px; color: var(--gray-100); line-height: 1.65; font-style: italic; margin-bottom: 20px; }
.review__name { font-family: var(--font-heading); font-weight: 700; font-size: 16px; }
.review__verified { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--gray-500); margin-top: 4px; }

/* ── CTA FINAL ── */
.cta-final { background: var(--red); padding: 80px 32px; text-align: center; position: relative; z-index: 1; }
.cta-final h2 { font-family: var(--font-display); font-size: 40px; color: var(--white); margin-bottom: 14px; }
.cta-final p { color: rgba(255,255,255,0.85); font-size: 17px; margin-bottom: 32px; }
.cta-final__row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer { background: var(--black-deep); border-top: 1px solid var(--border); position: relative; z-index: 1; }
.footer__cols { max-width: 1240px; margin: 0 auto; padding: 64px 32px 48px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer h4 { font-family: var(--font-heading); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--gray-300); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer ul a:hover { color: var(--red); }
.footer ul li { color: var(--gray-300); font-size: 14px; }
.footer__bar { background: var(--red); text-align: center; padding: 14px 32px; font-family: var(--font-heading); font-size: 14px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); }

/* ── MOBILE NAV ── */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--white); padding: 8px; border-radius: var(--r-sm);
}
.menu-toggle svg { width: 24px; height: 24px; }
.mobile-panel {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
  background: var(--anthracite); border-left: 1px solid var(--border);
  z-index: 200; padding: 24px 24px 40px;
  display: flex; flex-direction: column; gap: 4px;
  transition: right 0.3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-panel.is-open { right: 0; }
.mobile-panel a {
  color: var(--white); text-decoration: none;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 0; border-bottom: 1px solid var(--border-soft);
  transition: color 0.2s;
}
.mobile-panel a:hover, .mobile-panel a.active { color: var(--red); }
.mobile-panel__close {
  background: none; border: none; cursor: pointer;
  color: var(--gray-300); font-size: 20px; align-self: flex-end;
  margin-bottom: 16px;
}
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none;
  z-index: 199; transition: opacity 0.3s;
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .reviews { grid-template-columns: 1fr; }
  .ds-tunnel__steps { grid-template-columns: 1fr; }
  .ds-tunnel__sep { display: none; }
  .remote-grid-2 { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header__nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-page__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-page h1 { font-size: 44px; }
  .section { padding: 64px 20px; }
  .section__head h2 { font-size: 32px; }
  .cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-final h2 { font-size: 30px; }
  .footer__cols { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
}
