/* ============================================================
   Collidera — static marketing site
   Dark theme: bg #121212 · surface #1E1E1E · accent #FF6B35
   ============================================================ */

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

:root {
  --bg:        #121212;
  --surface:   #1E1E1E;
  --surface2:  #252525;
  --accent:    #FF6B35;
  --accent-d:  #e55a24;
  --text:      #FFFFFF;
  --muted:     #AAAAAA;
  --border:    rgba(255,255,255,.08);
  --radius:    12px;
  --radius-lg: 20px;
  --max-w:     1160px;
  --nav-h:     64px;
}

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-d); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }

/* ── Section labels & headings ────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.label-live {
  color: #22c55e;
  margin-left: 6px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 40px;
}

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

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18,18,18,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.logo-icon { font-size: 22px; }
.nav__logo-img { height: 48px; width: auto; display: block; }
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  display: block;
  transition: all .25s;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
}
.nav__mobile a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile .btn { margin-top: 12px; justify-content: center; }
.nav__mobile.open { display: flex; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__logo { height: 200px; width: auto; margin-bottom: 16px; display: block; margin-left: auto; margin-right: auto; }
.hero__badge { margin-bottom: 16px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.hero__text h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 22px; font-weight: 800; }
.stat span   { font-size: 12px; color: var(--muted); }
.stat__div   { width: 1px; height: 32px; background: var(--border); }

/* Phone mockup */
.hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone-frame {
  position: relative;
  width: 280px;
  background: #0a0a0a;
  border-radius: 44px;
  border: 2px solid #333;
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
  flex-shrink: 0;
}
.phone-frame--sm { width: 240px; border-radius: 36px; }
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #0a0a0a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen { width: 100%; display: block; }
/* ── Hero carousel ────────────────────────────────────────── */
.hero__carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.carousel__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: border-color .2s, color .2s;
  z-index: 1;
}
.carousel__arrow:hover { border-color: var(--accent); color: var(--accent); }
.carousel__arrow:disabled { opacity: .3; cursor: default; }

.carousel__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.carousel__dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.hero__bg-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ── Features ─────────────────────────────────────────────── */
.features { background: var(--surface); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: rgba(255,107,53,.4); transform: translateY(-3px); }
.feature-icon { font-size: 32px; margin-bottom: 16px; color: var(--accent); line-height: 1; }
.feature-icon i { font-size: 32px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Screens tabs ─────────────────────────────────────────── */
.screens { background: var(--bg); }
.screens__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.tab:hover  { color: var(--text); border-color: rgba(255,255,255,.2); }
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.screen-panel { display: none; }
.screen-panel.active { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; }

.screen-phone { display: flex; justify-content: center; }
.screen-copy h3 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.screen-copy p  { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }

.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Health ───────────────────────────────────────────────── */
.health { background: var(--surface); }
.health__intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 48px;
}
.health__intro em { color: var(--text); font-style: normal; font-weight: 600; }
.health__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.health-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.health-card:hover { border-color: rgba(255,107,53,.4); transform: translateY(-3px); }
.health-card__icon { font-size: 32px; margin-bottom: 16px; color: var(--accent); line-height: 1; }
.health-card__icon i { font-size: 32px; }
.health-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.health-card p  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Device ───────────────────────────────────────────────── */
.device { background: var(--bg); }
.device__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.device__copy p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.device__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.spec {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.spec__val   { font-size: 15px; font-weight: 700; }

.device-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.device-photo { width: 100%; object-fit: cover; display: block; }
.device-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255,107,53,.15), transparent 60%);
  pointer-events: none;
}

/* placeholder when image missing */
.device-photo[src="img/photo-device.jpg"]:not([complete]),
.device-photo[src="img/photo-device.jpg"][naturalWidth="0"] {
  min-height: 320px;
  background: var(--surface2);
}

/* ── Leaderboard preview ──────────────────────────────────── */
.lb-preview { }
.lb-table-wrap { max-width: 720px; margin: 0 auto; }

/* Podium */
.lb-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 32px;
}
.lb-podium__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 160px;
}
.lb-podium__name {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}
.lb-podium__block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  border-radius: 10px 10px 0 0;
  color: #fff;
}
.lb-podium__km {
  position: absolute;
  bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.lb-podium__item { position: relative; }
.lb-podium__item--1 .lb-podium__block {
  height: 120px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a1a;
}
.lb-podium__item--2 .lb-podium__block {
  height: 90px;
  background: linear-gradient(135deg, #aaa, #777);
  color: #fff;
}
.lb-podium__item--3 .lb-podium__block {
  height: 70px;
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: #fff;
}

/* Table */
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.lb-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.lb-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.lb-table tbody tr:hover { background: var(--surface); }
.lb-table tbody td {
  padding: 13px 12px;
  vertical-align: middle;
}
.lb-table tbody td:first-child { color: var(--muted); width: 36px; }
.lb-table tbody td:nth-child(2) { font-weight: 600; }
.lb-table tbody td:nth-child(3) { font-weight: 700; color: var(--accent); }

.lb-bar {
  width: 120px;
  height: 6px;
  background: var(--surface);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.lb-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--pct);
  background: var(--accent);
  border-radius: 4px;
}

/* ── Download CTA ─────────────────────────────────────────── */
.download {
  background: var(--surface);
  text-align: center;
}
.download__inner h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin-bottom: 14px; }
.download__inner p  { font-size: 17px; color: var(--muted); margin-bottom: 36px; }
.download__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Subscribe ────────────────────────────────────────────── */
.subscribe { background: var(--surface); }
.subscribe__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.subscribe__copy h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 12px; }
.subscribe__copy p  { font-size: 16px; color: var(--muted); line-height: 1.7; }

.subscribe__embed {
  display: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 16px;
}
.subscribe__embed.open { display: block; }
.subscribe__iframe {
  width: 100%;
  height: 580px;
  display: block;
}

@media (max-width: 900px) {
  .subscribe__inner { grid-template-columns: 1fr; gap: 32px; }
  .subscribe__row { flex-direction: column; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}
.footer__copy  { font-size: 13px; color: var(--muted); flex: 1; text-align: center; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer__links a:hover { color: var(--text); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .section { padding: 64px 0; }

  .nav__links, .nav > .btn { display: none; }
  .nav__burger { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero__text h1 { font-size: clamp(32px, 7vw, 48px); }
  .hero__sub { margin: 0 auto 32px; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: 1; }
  .phone-frame { width: 220px; }

  .features__grid { grid-template-columns: 1fr 1fr; }
  .health__grid   { grid-template-columns: 1fr 1fr; }

  .screen-panel.active { grid-template-columns: 1fr; gap: 32px; }
  .screen-phone { order: -1; }

  .device__inner { grid-template-columns: 1fr; gap: 40px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__copy { flex: none; }
}

@media (max-width: 580px) {
  .features__grid { grid-template-columns: 1fr; }
  .health__grid   { grid-template-columns: 1fr; }
  .hero__stats { gap: 16px; }
  .lb-bar { display: none; }
  .device__specs { grid-template-columns: 1fr 1fr; }
}
