/* CarMaster — marketing site
   Theme is intentionally locked to dark (matches the app's splash/brand identity).
   Shape scale: 20px cards, 14px inputs/chips, full-pill buttons — no other radii. */

:root {
  --bg: #0b1220;
  --bg-raised: #0f1830;
  --surface: #141b2e;
  --surface-2: #1c2540;
  --border: #232d45;
  --text: #edf1f7;
  --text-dim: #97a3be;
  --text-faint: #5c6684;
  --primary: #2e7cf6;
  --primary-dim: #1d4ed8;
  --on-primary: #ffffff;
  --accent: #ff8a3d;
  --on-accent: #1a1206;
  --success: #34d399;
  --white-chip: #f5f7fa;
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.4);
  --radius-lg: 20px;
  --radius-md: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.92rem; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-cta.btn { display: none; }
@media (min-width: 860px) {
  .nav-cta.btn { display: inline-flex; }
}
.nav-toggle {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
}
.nav-links { display: none; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
}
.mobile-menu {
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu .container { display: flex; flex-direction: column; padding: 12px 24px 20px; gap: 4px; }
.mobile-menu a {
  padding: 12px 4px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dim); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-faint); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 72px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero-copy h1 .hl-accent { color: var(--accent); }
.hero-copy h1 .hl-primary { color: var(--primary); }
.hero-copy p {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero-ctas .link-cta { font-weight: 600; font-size: 0.92rem; color: var(--text-dim); border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.hero-ctas .link-cta:hover { color: var(--text); border-color: var(--text-faint); }

/* Phone mockup — faithful recreation of the real home-screen (dark theme) */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px;
  border-radius: 40px;
  padding: 14px;
  background: linear-gradient(160deg, #1c2540, #0f1830);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: #0e1524;
  border-radius: 28px;
  overflow: hidden;
  padding-bottom: 14px;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px 0; color: #fff; font-size: 0.68rem; font-weight: 700;
}
.phone-status-icons { display: flex; align-items: center; gap: 5px; }
.phone-app-header {
  background: linear-gradient(135deg, var(--primary), #5b9dfb);
  padding: 8px 16px 16px;
}
.phone-app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.phone-app-title { color: #fff; font-weight: 800; font-size: 1.05rem; }
.phone-app-subtitle { color: rgba(255,255,255,0.75); font-size: 0.66rem; margin-top: 2px; max-width: 21ch; }
.phone-bell {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px;
  background: rgba(255,255,255,0.18); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.phone-search {
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.phone-section-label {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 8px; font-size: 0.78rem; font-weight: 700; color: var(--text);
}
.phone-link { font-size: 0.68rem; font-weight: 600; color: var(--primary); }
.phone-brands { display: flex; gap: 8px; padding: 0 16px 4px; overflow: hidden; }
.phone-brand-chip {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--white-chip);
  display: flex; align-items: center; justify-content: center;
  padding: 7px;
}
.phone-brand-chip img { width: 100%; height: 100%; object-fit: contain; }
.phone-cta {
  position: relative;
  margin: 0 16px;
  padding: 14px 44px 14px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #ffab6b);
}
.phone-cta h4 { margin: 8px 0 2px; font-size: 0.9rem; font-weight: 800; color: #fff; }
.phone-cta p { margin: 0; font-size: 0.7rem; color: rgba(255,255,255,0.85); }
.phone-cta-arrow { position: absolute; right: 12px; bottom: 12px; }
.phone-cards { padding: 6px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.phone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}
.pc-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pc-name { font-weight: 700; font-size: 0.88rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-verified {
  display: flex; align-items: center; gap: 3px;
  font-size: 0.62rem; font-weight: 700; color: #60a5fa;
  background: rgba(96, 165, 250, 0.14); border-radius: 6px; padding: 2px 5px;
  flex-shrink: 0;
}
.pc-rating { display: flex; align-items: center; gap: 3px; font-size: 0.78rem; font-weight: 700; flex-shrink: 0; margin-left: auto; }
.pc-rating .stars { color: #fbbf24; }
.pc-rating .count { color: var(--text-faint); font-weight: 500; }
.pc-addr { display: flex; align-items: center; gap: 5px; font-size: 0.74rem; color: var(--text-dim); margin-bottom: 8px; }
.pc-addr .dist { margin-left: auto; color: var(--primary); font-weight: 700; }
.pc-brands { display: flex; gap: 5px; flex-wrap: wrap; }
.phone-lent {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 12px;
}
.pl-avatar {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(46,124,246,0.18); color: var(--primary);
  font-weight: 800; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.pl-title { font-size: 0.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.pl-meta { display: flex; align-items: center; gap: 4px; font-size: 0.68rem; color: var(--text-dim); }
.pl-meta svg { flex-shrink: 0; }
.pl-meta .dot { color: var(--text-faint); margin: 0 1px; }
.pc-brands span { font-size: 0.66rem; font-weight: 600; color: #93bcfd; background: rgba(46, 124, 246, 0.14); border-radius: 20px; padding: 2px 8px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 28px 24px;
}
@media (min-width: 720px) {
  .trust-strip .container { grid-template-columns: repeat(3, 1fr); }
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--text-dim); font-weight: 600; }
@media (min-width: 720px) {
  .trust-item { justify-content: center; }
}
.trust-item svg { flex-shrink: 0; color: var(--primary); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  font-weight: 800;
}
.section-head p { color: var(--text-dim); font-size: 1.03rem; margin: 0; max-width: 60ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Brand marquee ---------- */
.marquee-section { padding: 64px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.marquee-head h2 { font-size: 1.3rem; margin: 0; font-weight: 800; }
.marquee-head p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.brand-chip {
  flex-shrink: 0;
  width: 96px; height: 64px;
  background: var(--white-chip);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.brand-chip img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before {
    content: "";
    position: absolute;
    top: 27px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1px;
    background: linear-gradient(90deg, var(--border), var(--primary), var(--border));
  }
}
.step { position: relative; }
.step-num {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: var(--primary);
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.step h3 { font-size: 1.15rem; margin: 0 0 8px; font-weight: 700; }
.step p { color: var(--text-dim); margin: 0; font-size: 0.95rem; max-width: 32ch; }

/* ---------- Bento features ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); }
  .bento .tile-lg { grid-column: span 2; grid-row: span 2; }
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bento .tile {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tile:not(.tile-lg):hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.tile-lg { background: linear-gradient(155deg, var(--surface-2), var(--surface)); justify-content: flex-start; position: relative; overflow: hidden; min-height: 300px; }
.tile-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(46, 124, 246, 0.14);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
.tile:hover .tile-icon { transform: scale(1.1) rotate(-6deg); background: rgba(46, 124, 246, 0.22); }
@media (prefers-reduced-motion: reduce) {
  .tile, .tile-icon { transition: none; }
  .tile:not(.tile-lg):hover { transform: none; }
  .tile:hover .tile-icon { transform: none; }
}

/* QR scan visual — fills the tile-lg's own empty space instead of a small
   corner decoration, so it doubles as the tile's icon. */
.tile-lg-visual-wrap { position: relative; width: 100%; max-width: 220px; margin: 4px auto 22px; }
.tile-lg-visual { display: block; width: 100%; height: auto; overflow: visible; }

.scan-line {
  filter: drop-shadow(0 0 6px var(--accent));
  transform-box: fill-box;
  animation: qr-scan-move 4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes qr-scan-move {
  0% { transform: translateY(0); opacity: 0; }
  6% { opacity: 1; }
  42% { transform: translateY(146px); opacity: 1; }
  48% { transform: translateY(146px); opacity: 0; }
  100% { opacity: 0; }
}

.qr-check { transform-box: fill-box; transform-origin: center; opacity: 0; animation: qr-verified-reveal 4s ease infinite; }
.qr-status {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) scale(0.7);
  display: flex; align-items: center; gap: 6px;
  background: var(--bg);
  border: 1px solid var(--success);
  border-radius: 20px;
  padding: 5px 12px;
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  animation: qr-status-reveal 4s ease infinite;
}
@keyframes qr-verified-reveal {
  0%, 46% { opacity: 0; transform: scale(0.7); }
  54%, 84% { opacity: 1; transform: scale(1); }
  92%, 100% { opacity: 0; transform: scale(0.7); }
}
@keyframes qr-status-reveal {
  0%, 46% { opacity: 0; transform: translateX(-50%) scale(0.7); }
  54%, 84% { opacity: 1; transform: translateX(-50%) scale(1); }
  92%, 100% { opacity: 0; transform: translateX(-50%) scale(0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .scan-line { display: none; }
  .qr-check, .qr-status { animation: none; opacity: 1; transform: scale(1); }
  .qr-status { transform: translateX(-50%) scale(1); }
}

.tile h3 { margin: 0; font-size: 1.02rem; font-weight: 700; }
.tile-lg h3 { font-size: 1.3rem; }
.tile p { margin: 0; color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; }
.tile-lg p { font-size: 0.95rem; max-width: 34ch; }

/* ---------- For providers (full-width statement + list) ---------- */
.provider-section { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.provider-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) {
  .provider-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
}
.provider-copy h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 16px; }
.provider-copy p { color: var(--text-dim); font-size: 1rem; max-width: 40ch; margin: 0; }
.provider-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.provider-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  color: var(--text);
}
.provider-list li:last-child { border-bottom: none; }
.provider-list svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.provider-list b { display: block; margin-bottom: 3px; }
.provider-list span.desc { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Trust statement band ---------- */
.statement-band { text-align: center; }
.statement-band .eyebrow { display: none; }
.statement-band blockquote {
  margin: 0 auto 20px;
  max-width: 18ch;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.statement-band blockquote span { color: var(--accent); }
.statement-band .caption { color: var(--text-dim); max-width: 52ch; margin: 0 auto; font-size: 0.98rem; }
/* Üç addım + iki ox dar ekrana sığmırdı: `flex-wrap` sonuncu addımı alt sətrə atırdı
   və ondan əvvəlki ox heç nəyi göstərməyən vəziyyətdə asılı qalırdı. Fayl mobile-first
   olduğu üçün default düzülüş indi ŞAQULİDİR (oxlar aşağı baxır), yan-yana forma
   aşağıdakı min-width qaydası ilə qayıdır. */
.qr-flow {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px; margin: 40px auto 0; width: max-content; max-width: 100%;
}
.qr-flow .qf-step { display: flex; flex-direction: row; align-items: center; gap: 14px; }
.qr-flow .qf-icon {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.qr-flow .qf-label { font-size: 0.9rem; color: var(--text-dim); text-align: left; }
/* Ox ikon sütunu ilə eyni enə malikdir — bu, onu ikonların tam altında mərkəzləyir. */
.qr-flow .qf-arrow { color: var(--text-faint); width: 56px; text-align: center; transform: rotate(90deg); }

@media (min-width: 640px) {
  /* `nowrap` QƏSDƏN: sətir sığmasa sıxılsın, amma bir daha yarımçıq sətrə qırılmasın. */
  .qr-flow { flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 18px; width: auto; }
  .qr-flow .qf-step { flex-direction: column; align-items: center; gap: 10px; width: 120px; }
  .qr-flow .qf-label { font-size: 0.82rem; text-align: center; }
  .qr-flow .qf-arrow { width: auto; transform: none; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { color: var(--text-dim); font-size: 0.92rem; margin-top: 12px; line-height: 1.6; }

/* ---------- Download CTA ---------- */
.download-section { text-align: center; }
.download-section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 14px; font-weight: 800; letter-spacing: -0.015em; }
.download-section p { color: var(--text-dim); margin: 0 auto 32px; max-width: 46ch; }
.store-badges { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-faint);
}
.store-badge .sb-text { text-align: left; line-height: 1.2; }
.store-badge .sb-text small { display: block; font-size: 0.68rem; }
.store-badge .sb-text strong { display: block; font-size: 0.92rem; color: var(--text-dim); }
/* Canlı mağaza nişanı — App Store hələ "Tezliklə" olduğu üçün fərqlənməlidir:
   sönük deyil, toxunula bilən görünür. */
a.store-badge-live {
  border-color: var(--primary);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.store-badge-live .sb-text small { color: var(--primary); font-weight: 600; }
a.store-badge-live .sb-text strong { color: var(--text); }
a.store-badge-live:hover,
a.store-badge-live:focus-visible {
  border-color: var(--primary-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
@media (prefers-reduced-motion: reduce) {
  a.store-badge-live { transition: none; }
  a.store-badge-live:hover, a.store-badge-live:focus-visible { transform: none; }
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.3fr repeat(3, 0.9fr); }
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; max-width: 32ch; margin: 0; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
