/* ============================================
   tyre.info — Design System & Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0db1e7;
  --accent: #5ad6ff;
  --bg-dark: #05070d;
  --bg-mid: #0b1320;
  --bg-card: #122035;
  --text: #f7fbff;
  --text-muted: #b8c7da;
  --card-bg: rgba(18, 32, 53, 0.7);
  --card-border: rgba(90, 214, 255, 0.18);
  --green: #34d399;
  --amber: #fbbf24;
  --nav-h: 64px;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(13, 177, 231, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(13, 177, 231, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; font-weight: 600; line-height: 1.2; }
strong { font-weight: 600; color: var(--text); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover { background: #0a9ed0; border-color: #0a9ed0; }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--card-border); }
.btn--ghost:hover { border-color: var(--blue); }
.btn--sm { padding: 8px 20px; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* --- Pill Badge --- */
.pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(13, 177, 231, 0.12);
  color: var(--accent);
  border: 1px solid rgba(13, 177, 231, 0.25);
  margin-bottom: 20px;
}

/* --- Glow Dot --- */
.glow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  flex-shrink: 0;
  margin-right: 12px;
  margin-top: 6px;
}

/* --- Glass Card --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   1. NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(90, 214, 255, 0.08);
  z-index: 1000;
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}
.nav__brand { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.nav__logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue);
}
.nav__logo-tyre {
  color: var(--text);
}
.text-white { color: var(--text); }
.text-blue { color: var(--blue); }
.ti-score {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  text-transform: none;
  white-space: nowrap;
}
.ti-score .text-white {
  position: relative;
  top: -0.5px;
}
.ti-score .text-blue {
  font-size: 1.08em;
}
.nav__powered {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.nav__links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0 auto;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links .ti-score .text-white {
  top: -1px;
}
.nav__links a:hover { color: var(--text); }
.nav__cta { flex-shrink: 0; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav-open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   2. HERO
   ============================================ */
.hero {
  padding: calc(var(--nav-h) + 64px) 0 80px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}
.hero h1 strong { color: var(--blue); }
.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero__ctas { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.hero__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__bullets li {
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Hero Visual */
.hero__visual { position: relative; }
.hero__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.hero__float-card {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 14px 18px 10px;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 4px 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.float-card__logo {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.float-card__score {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.float-card__meta { display: flex; flex-direction: column; }
.float-card__label { font-size: 0.75rem; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; }
.float-card__sub { font-size: 0.75rem; color: var(--text-muted); }
.float-card__tag {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  padding-top: 6px;
  margin-top: 2px;
}

/* ============================================
   3. STATS BANNER
   ============================================ */
.stats {
  padding: 64px 0;
  background: var(--bg-mid);
  border-top: 1px solid rgba(90, 214, 255, 0.06);
  border-bottom: 1px solid rgba(90, 214, 255, 0.06);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__number {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--blue);
  display: inline;
}
.stat__plus {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--blue);
}
.stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   4. WHY SECTION
   ============================================ */
.why {
  padding: 48px 0 32px;
  background: var(--bg-dark);
}
.why__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.card__icon { margin-bottom: 16px; }
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.trust-banner {
  margin-top: 56px;
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(13, 177, 231, 0.08), rgba(90, 214, 255, 0.04));
  border: 1px solid var(--card-border);
}
.trust-banner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* ============================================
   5. TYRESCORE
   ============================================ */
.tyrescore {
  padding: 48px 0;
  background: var(--bg-mid);
}
.tyrescore__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.tyrescore__text .section-title { text-align: left; }
.tyrescore__text > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Feature List */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-list__icon {
  color: var(--blue);
  font-size: 0.5rem;
  margin-top: 8px;
  flex-shrink: 0;
}
.feature-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.feature-list span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Score Card */
.score-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.score-card__header {
  margin-bottom: 24px;
}
.score-card__brand {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.score-card__model {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
}
/* Score card hero: logo left, score right */
.score-card__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.score-card__logo-wrap {
  flex-shrink: 0;
}
.score-card__logo-wrap img {
  display: block;
  width: 64px;
  height: 64px;
}
.score-card__score-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.score-card__big {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.score-card__of {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Score Bars */
.score-card__bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  align-items: center;
  gap: 10px;
}
.bar-label { font-size: 0.85rem; color: var(--text-muted); }
.bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 4px;
  transition: width 1s ease-out;
}
.bar-value { font-size: 0.85rem; font-weight: 600; color: var(--text); text-align: right; }

/* Strengths & Confidence */
.score-card__strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.strength-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(13, 177, 231, 0.1);
  color: var(--accent);
  border: 1px solid rgba(13, 177, 231, 0.2);
}
.score-card__confidence {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.confidence-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  margin-right: 6px;
}

/* ============================================
   6. API SHOWCASE
   ============================================ */
.api {
  padding: 48px 0;
  background: var(--bg-dark);
}
.api__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.api__text .section-title { text-align: left; }
.api__text .feature-list { margin-bottom: 32px; }

/* Code Block */
.code-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--card-border);
}
.code-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.code-tab:hover { color: var(--text); }
.code-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.code-block {
  background: rgba(5, 7, 13, 0.8);
  border: 1px solid var(--card-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow-x: auto;
}
.code-block pre {
  padding: 24px;
  margin: 0;
}
.code-block code {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.code-block.hidden { display: none; }

/* ============================================
   7. ENDPOINTS GRID
   ============================================ */
.endpoints {
  padding: 48px 0;
  background: var(--bg-mid);
}
.endpoints .section-title { margin-bottom: 48px; }
.endpoints__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.endpoint-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.endpoint-card code {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
}
.endpoint-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}
.method {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.method--get { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.method--post { background: rgba(13, 177, 231, 0.15); color: var(--blue); }

/* ============================================
   8. PRICING
   ============================================ */
.pricing {
  padding: 48px 0;
  background: var(--bg-dark);
}
.pricing__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  position: relative;
  transition: transform 0.3s;
}
.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.pricing-card__rate {
  font-family: 'Sora', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}
.pricing-card__rate span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}
.pricing-card__monthly {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.pricing-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* Featured Card */
.pricing-card--featured {
  border-color: var(--blue);
  box-shadow: 0 0 40px rgba(13, 177, 231, 0.12);
  transform: scale(1.04);
}
.pricing-card--featured:hover { transform: scale(1.06); }
.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

/* ============================================
   9. HOW IT WORKS (STEPS)
   ============================================ */
.steps {
  padding: 48px 0;
  background: var(--bg-mid);
}
.steps .section-title { margin-bottom: 56px; }
.steps__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step {
  text-align: center;
  max-width: 240px;
  flex-shrink: 0;
}
.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 177, 231, 0.12);
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  margin: 0 auto 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.step__line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  margin-top: 24px;
  flex-shrink: 0;
}

/* ============================================
   10. CONTACT / CTA
   ============================================ */
.contact {
  padding: 48px 0;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-mid));
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact__text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 28px;
}
.contact__text h2 strong { color: var(--blue); }
.contact__trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__trust li {
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact__form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(5, 7, 13, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-group input::placeholder { color: rgba(184, 199, 218, 0.4); }
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.form-group textarea::placeholder { color: rgba(184, 199, 218, 0.4); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23b8c7da' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group select option {
  background: var(--bg-card);
  color: var(--text);
}
.contact-form .btn { margin-top: 8px; }
.form-status {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  text-align: center;
  display: none;
}
.form-status:not(:empty) { display: block; }
.form-status--success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.form-status--error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.form-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
  opacity: 0.7;
}

/* ============================================
   11. FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(90, 214, 255, 0.06);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__brand .nav__logo { font-size: 1.1rem; }
.footer__tagline { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.footer__copy { font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; }
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }

/* ============================================
   WHAT SETS TYRE.INFO APART
   ============================================ */
.apart {
  padding: 48px 0;
  background: var(--bg-mid);
}
.apart__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.apart-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.apart-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================
   CREDIBILITY STRIP
   ============================================ */
.credibility {
  padding: 48px 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(90, 214, 255, 0.06);
  border-bottom: 1px solid rgba(90, 214, 255, 0.06);
}
.credibility__strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.credibility__item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.credibility__item svg { flex-shrink: 0; }
.credibility__item strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.credibility__item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   SEE IT IN ACTION (SHOWCASE)
   ============================================ */
.showcase {
  padding: 48px 0;
  background: var(--bg-dark);
}
.showcase__row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}
.showcase__row:last-child { margin-bottom: 0; }
.showcase__row:nth-child(odd) { direction: ltr; }
.showcase__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  direction: ltr;
}
.showcase__panel--wide { }
.showcase__caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.showcase__row--equal {
  grid-template-columns: 1fr 1fr;
}
.showcase__row-heading {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mockup__body--flush {
  padding: 0;
}
.showcase__screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 8px 8px;
}

/* --- Widget Frame (shared container for TyreScore & Reviews widgets) --- */
.widget-frame {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.25);
}
.widget-frame__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(5, 7, 13, 0.4);
}
.widget-frame__logo { flex-shrink: 0; }
.widget-frame__title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}
.widget-frame__subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
}
.widget-frame__body {
  padding: 16px;
}
.widget-frame__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 16px;
  border-top: 1px solid var(--card-border);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(5, 7, 13, 0.3);
}
.widget-frame__footer strong {
  color: var(--blue);
  font-size: 0.65rem;
}

/* --- TyreScore Widget: score area --- */
.widget-score-area {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.widget-score-circle {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.widget-score-circle__logo {
  width: 100%;
  height: 100%;
  display: block;
}
.widget-score-circle__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.widget-score-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.widget-score-meta__tyre {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.widget-score-meta__conf {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 500;
}
.widget-score-meta__basis {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Confidence dot */
.conf-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.conf-dot--high { background: var(--green); box-shadow: 0 0 6px var(--green); }
.conf-dot--medium { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

/* --- Widget category bars --- */
.widget-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-bottom: 14px;
}
.widget-cat {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  gap: 6px;
}
.widget-cat__label {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.widget-cat__track {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.widget-cat__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 3px;
}
.widget-cat__val {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* --- Widget strength pills --- */
.widget-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.widget-strength-pill {
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(13, 177, 231, 0.1);
  color: var(--accent);
  border: 1px solid rgba(13, 177, 231, 0.2);
}

/* --- Mockup shared (browser/tablet frames) --- */
.mockup {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.25);
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(5, 7, 13, 0.5);
  border-bottom: 1px solid var(--card-border);
}
.mockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(184, 199, 218, 0.2);
}
.mockup__url-bar {
  margin-left: 8px;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 3px 10px;
  border-radius: 4px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.mockup__url-bar--link {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
a.mockup__url-bar--link:hover {
  color: var(--blue);
}
.mockup__body {
  padding: 16px;
}
.mockup__body--light {
  background: #f4f5f7;
  padding: 16px;
}

/* --- Retailer page mockup --- */
.retailer-page {
  font-family: 'Inter', system-ui, sans-serif;
}
.retailer-page__product {
  display: flex;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 14px;
}
.retailer-page__img-placeholder {
  width: 100px;
  height: 100px;
  background: #e8eaed;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.retailer-page__details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.retailer-page__brand-name {
  font-size: 0.6rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.retailer-page__product-name {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a1a1a;
}
.retailer-page__size {
  font-size: 0.7rem;
  color: #888;
}
.retailer-page__price {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-top: 2px;
}
.retailer-page__labels {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.retailer-label {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e8eaed;
  color: #555;
}
.retailer-page__cta-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.retailer-btn {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  background: #0db1e7;
  color: #fff;
}
.retailer-btn--ghost {
  background: transparent;
  color: #0db1e7;
  border: 1px solid #0db1e7;
}

/* Embedded widget inside retailer page */
.retailer-page__embed {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e0e4e8;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.embed-widget__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e4e8;
  font-size: 0.68rem;
  color: #555;
}
.embed-widget__head strong { color: #1a1a1a; font-size: 0.68rem; }
.embed-widget__content {
  padding: 12px;
}
.embed-widget__score-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.embed-widget__score-circle {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.embed-widget__score-circle img {
  width: 100%;
  height: 100%;
}
.embed-widget__score-circle span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}
.embed-widget__score-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.embed-widget__score-text strong {
  font-size: 0.85rem;
  color: #1a1a1a;
}
.embed-widget__conf {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  color: #22c55e;
  font-weight: 500;
}
.embed-widget__basis {
  font-size: 0.6rem;
  color: #888;
}
.embed-widget__bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-bottom: 8px;
}
.embed-bar {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 4px;
}
.embed-bar span {
  font-size: 0.6rem;
  color: #666;
}
.embed-bar span:last-child {
  font-weight: 600;
  color: #333;
  text-align: right;
}
.embed-bar__track {
  height: 4px;
  background: #e8eaed;
  border-radius: 2px;
  overflow: hidden;
}
.embed-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #0db1e7, #5ad6ff);
  border-radius: 2px;
}
.embed-widget__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.embed-widget__tags span {
  font-size: 0.58rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(13, 177, 231, 0.08);
  color: #0a9ed0;
  border: 1px solid rgba(13, 177, 231, 0.15);
}
.embed-widget__foot {
  text-align: center;
  font-size: 0.58rem;
  color: #999;
  padding: 6px 12px;
  border-top: 1px solid #e0e4e8;
  background: #f8f9fa;
}

/* --- Reviews & Ratings Widget --- */
.widget-frame--reviews .widget-frame__body { padding: 14px 16px; }
.reviews-widget-top {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
}
.reviews-widget-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.reviews-widget-avg {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.reviews-widget-avg__num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--text);
  line-height: 1;
}
.reviews-widget-avg__of {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.reviews-widget-stars {
  display: flex;
  gap: 2px;
}
.star-full, .star-half, .star-empty {
  display: inline-block;
  width: 14px;
  height: 14px;
}
.star-full {
  background: var(--amber);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.star-half {
  background: linear-gradient(90deg, var(--amber) 50%, rgba(255,255,255,0.15) 50%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.star-empty {
  background: rgba(255, 255, 255, 0.12);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.reviews-widget-count {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.reviews-widget-dist {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dist-row {
  display: grid;
  grid-template-columns: 14px 1fr 30px;
  align-items: center;
  gap: 6px;
}
.dist-row span {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.dist-row span:last-child {
  text-align: right;
  font-weight: 500;
}
.dist-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.dist-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 3px;
}

/* Featured reviews */
.reviews-widget-featured {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-card-mini {
  padding: 10px 12px;
  background: rgba(5, 7, 13, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(90, 214, 255, 0.08);
}
.review-card-mini__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.review-card-mini__stars {
  display: flex;
  gap: 1px;
}
.review-card-mini__stars .star-full,
.review-card-mini__stars .star-empty {
  width: 11px;
  height: 11px;
}
.review-card-mini__verified {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.review-card-mini__meta {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}
.review-card-mini__meta span {
  font-size: 0.62rem;
  color: var(--text-muted);
}
.review-card-mini__text {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

/* --- POS Counter Mockup (dark tablet) --- */
.mockup__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(5, 7, 13, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 12px;
}
.mockup__search span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.mockup__results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(5, 7, 13, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(90, 214, 255, 0.08);
}
.mockup__row--featured {
  border-color: rgba(13, 177, 231, 0.3);
  background: rgba(13, 177, 231, 0.06);
}
.mockup__row-left { flex-shrink: 0; }
.mockup__row-score-mini {
  position: relative;
  width: 28px;
  height: 28px;
}
.mockup__row-score-mini img {
  width: 100%;
  height: 100%;
}
.mockup__row-score-mini span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.5rem;
  color: var(--text);
}
.mockup__row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.mockup__tyre-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup__tyre-strength {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.mockup__score-badge {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--blue);
  background: rgba(13, 177, 231, 0.12);
  border: 1px solid rgba(13, 177, 231, 0.25);
  border-radius: 8px;
  padding: 4px 10px;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  /* When open, let nav grow to fit content */
  .nav.nav-open {
    height: auto;
  }
  .nav-open .nav__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
    padding-bottom: 24px;
    align-content: flex-start;
  }
  .nav-open .nav__brand,
  .nav-open .nav__hamburger {
    height: var(--nav-h);
    display: flex;
    align-items: center;
  }
  .nav-open .nav__links {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px 0 20px;
    gap: 20px;
    border-top: 1px solid var(--card-border);
  }
  .nav-open .nav__cta {
    display: inline-flex;
  }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__float-card {
    position: absolute;
    bottom: -16px;
    right: 0;
  }

  .stats__grid { grid-template-columns: repeat(3, 1fr); }

  .tyrescore__grid { grid-template-columns: 1fr; }
  .tyrescore__text .section-title { text-align: center; }

  .api__grid { grid-template-columns: 1fr; }
  .api__text .section-title { text-align: center; }
  .api__text { text-align: center; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__text { text-align: center; }
  .contact__trust { align-items: center; }

  .steps__grid { flex-direction: column; align-items: center; gap: 0; }
  .step__line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--blue), transparent);
    margin: 16px auto;
  }

  .apart__grid { grid-template-columns: 1fr; }

  .credibility__strip {
    justify-content: center;
    gap: 20px;
  }

  .showcase__row, .showcase__row--equal { grid-template-columns: 1fr; }
  .retailer-page__img-placeholder { width: 70px; height: 70px; }
  .widget-cats { grid-template-columns: 1fr; }
  .embed-widget__bars { grid-template-columns: 1fr; }

  .endpoint-card {
    flex-wrap: wrap;
  }
  .endpoint-card p {
    margin-left: 0;
    text-align: left;
    width: 100%;
    padding-left: 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container { padding: 0 16px; }

  .hero { padding: calc(var(--nav-h) + 16px) 0 56px; }
  .hero h1 { font-size: 1.75rem; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .why, .tyrescore, .api, .endpoints, .pricing, .steps, .contact, .apart, .showcase {
    padding: 36px 0;
  }

  .credibility { padding: 32px 0; }
  .credibility__strip { flex-direction: column; align-items: flex-start; gap: 16px; }
  .credibility__item strong { font-size: 0.85rem; }

  .pricing-card--featured { transform: scale(1); }
  .pricing-card--featured:hover { transform: scale(1); }

  .code-block { overflow-x: hidden; }
  .code-block pre { white-space: pre-wrap; word-break: break-all; }

  .endpoints__grid { grid-template-columns: 1fr; }

  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .bar-fill { transition: none; }
  .ring-progress { transition: none; }
}
