/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a1a;
  --bg-surface: #1a1a2e;
  --bg-footer: #0d1117;
  --border: rgba(255,255,255,0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted: rgba(255,255,255,0.35);
  --cta-bg: rgba(255,255,255,0.12);
  --cta-border: rgba(255,255,255,0.2);
  --cta-hover: rgba(255,255,255,0.2);
  --accent: #e8b86d;
  --accent-dim: rgba(232,184,109,0.15);
  --section-pad: 80px;
  --content-max: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-primary);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,26,0.3) 0%,
    rgba(10,10,26,0.5) 50%,
    rgba(10,10,26,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.btn-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  border-radius: 28px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}

.btn-cta:hover {
  background: var(--cta-hover);
}

/* ===== SECTION COMMON ===== */
.section-title {
  font-size: 28px;
  font-weight: 700;
}

.section-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ===== CASES ===== */
.cases {
  padding: var(--section-pad) 0;
}

.cases-header {
  max-width: var(--content-max);
  margin: 0 auto 32px;
  padding: 0 24px;
}

.cases-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px;
  scrollbar-width: none;
}

.cases-scroll::-webkit-scrollbar {
  display: none;
}

.case-card {
  flex-shrink: 0;
  width: 220px;
  scroll-snap-align: start;
  cursor: pointer;
}

.case-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.case-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-surface);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.22);
  transition: opacity .18s;
  pointer-events: none;
}
.play-overlay.hidden {
  opacity: 0;
}
.play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #1a1508;
  padding-left: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
}

/* Case badge */
.case-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  pointer-events: none;
}
.case-badge.driving  { background: rgba(94,162,255,0.85); color: #fff; }
.case-badge.cycling  { background: rgba(80,210,130,0.85); color: #fff; }
.case-badge.trekking { background: rgba(232,184,109,0.85); color: #1a1008; }

.case-info {
  padding: 10px 2px 0;
}

.case-name {
  font-size: 15px;
  font-weight: 600;
}

.case-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== FEATURES ===== */
.features {
  padding: var(--section-pad) 24px;
  background: var(--bg-surface);
}

.features-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-item {
  text-align: center;
  padding: 28px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.feature-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== TOOL ENTRY ===== */
.tool-entry {
  padding: var(--section-pad) 24px;
  text-align: center;
}

.tool-steps {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 16px 0 32px;
}

/* ===== B2B ===== */
.b2b {
  padding: var(--section-pad) 24px;
  background: linear-gradient(135deg, #0f0f24 0%, #1a1a2e 50%, #0d1a14 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.b2b-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.b2b-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.b2b-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.b2b-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.b2b-list {
  list-style: none;
  margin-bottom: 32px;
}

.b2b-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.b2b-list li:last-child { border-bottom: none; }

.btn-contact {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  border-radius: 28px;
  color: #1a1008;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-contact:hover { opacity: 0.85; }

.b2b-email {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.b2b-scenarios {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.b2b-scenario {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.b2b-scenario-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.b2b-scenario strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.b2b-scenario span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 32px 24px;
  background: var(--bg-footer);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 15px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  :root {
    --section-pad: 48px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-tagline {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .section-title {
    font-size: 22px;
  }

  .case-card {
    width: 70vw;
  }

  .btn-cta {
    padding: 12px 28px;
    font-size: 15px;
  }

  .tool-steps {
    font-size: 14px;
  }

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

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

  .b2b-title {
    font-size: 26px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ===== DESKTOP: center scroll cards ===== */
@media (min-width: 769px) {
  .cases-scroll {
    max-width: var(--content-max);
    margin: 0 auto;
  }
}
