/* PimpMyRide Web Design System — Forest-Green OLED Automotive Cockpit */
:root {
  --bg: #050c07;
  --bg-elevated: #0a160e;
  --surface: rgba(13, 27, 18, 0.72);
  --surface-strong: rgba(17, 34, 23, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(114, 217, 87, 0.28);
  --text: #f3f7f4;
  --text-secondary: #9fb4a5;
  --text-muted: #6c8473;
  --accent: #72d957;
  --accent-bright: #9aee6c;
  --accent-soft: rgba(114, 217, 87, 0.14);
  --amber: #f5a623;
  --red: #ff5a5f;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 80px rgba(114, 217, 87, 0.16);
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Signature diagonal emerald OLED beam matching CockpitTheme.swift */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(65% 45% at 72% 12%, rgba(114, 217, 87, 0.14), transparent 70%),
    radial-gradient(50% 40% at 15% 58%, rgba(28, 92, 46, 0.16), transparent 72%),
    linear-gradient(132deg, #040906 0%, #09180e 42%, #050c07 74%, #0a1b10 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

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

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Sticky Glass Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  background: rgba(5, 12, 7, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(114, 217, 87, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Segmented EN | RU Switcher */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #041007;
  box-shadow: 0 2px 12px rgba(114, 217, 87, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  color: #041007;
  box-shadow: 0 8px 28px rgba(114, 217, 87, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 34px rgba(114, 217, 87, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-accent);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.86rem;
}

/* Hero Section */
.hero {
  padding: 46px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  color: var(--accent-bright);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
  animation: pulse 2.2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, var(--accent-bright) 68%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 32px;
  font-size: 1.14rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.62;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-check {
  color: var(--accent-bright);
  font-weight: 700;
}

/* Realistic iPhone Hardware Frame */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 340px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 217, 87, 0.24) 0%, rgba(114, 217, 87, 0.04) 55%, transparent 72%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.iphone-frame {
  position: relative;
  z-index: 1;
  width: 296px;
  padding: 10px;
  border-radius: 50px;
  background: linear-gradient(145deg, #2a332d 0%, #101612 48%, #222b25 100%);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.8);
}

.iphone-screen {
  border-radius: 40px;
  overflow: hidden;
  background: #050c07;
  aspect-ratio: 1320 / 2868;
  position: relative;
}

.iphone-screen img,
.iphone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.iphone-screen img.is-fading {
  opacity: 0.15;
}

/* Interactive Screen Selector Pills */
.screen-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 540px;
}

.screen-tab {
  border: 1px solid var(--border);
  background: rgba(13, 27, 18, 0.72);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.screen-tab:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

.screen-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-bright);
  box-shadow: 0 4px 16px rgba(114, 217, 87, 0.16);
}

.screen-caption {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
  min-height: 22px;
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  color: var(--accent-bright);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Bento Feature Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  margin-bottom: 14px;
}

.card-roadmap {
  background: linear-gradient(135deg, rgba(16, 36, 23, 0.86) 0%, rgba(11, 22, 15, 0.82) 100%);
  border-color: var(--border-accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.roadmap-copy {
  max-width: 640px;
}

.roadmap-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(245, 166, 35, 0.14);
  border: 1px solid rgba(245, 166, 35, 0.34);
  color: #ffc55c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roadmap-tag {
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: rgba(5, 12, 7, 0.65);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* Mini Metric Chips inside Telemetry Bento */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.metric-chip {
  background: rgba(5, 12, 7, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.metric-chip .label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-chip .val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.metric-chip .val em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--accent-bright);
  margin-left: 3px;
}

/* Animated Soundwave Visualizer matching VoiceCockpitView */
.wave-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 54px;
  margin-top: 22px;
  padding: 10px 18px;
  background: rgba(5, 12, 7, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.wave-bar {
  width: 6px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent-bright) 0%, #2fb344 100%);
  box-shadow: 0 0 12px rgba(114, 217, 87, 0.35);
  animation: eq 1.4s infinite ease-in-out;
}

.wave-bar:nth-child(1) { height: 14px; animation-delay: 0.0s; }
.wave-bar:nth-child(2) { height: 26px; animation-delay: 0.15s; }
.wave-bar:nth-child(3) { height: 38px; animation-delay: 0.3s; }
.wave-bar:nth-child(4) { height: 24px; animation-delay: 0.45s; }
.wave-bar:nth-child(5) { height: 34px; animation-delay: 0.6s; }
.wave-bar:nth-child(6) { height: 18px; animation-delay: 0.75s; }
.wave-bar:nth-child(7) { height: 30px; animation-delay: 0.2s; }
.wave-bar:nth-child(8) { height: 14px; animation-delay: 0.5s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.55); opacity: 0.75; }
  50% { transform: scaleY(1.08); opacity: 1; }
}

/* DTC Code Pills */
.dtc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.dtc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(5, 12, 7, 0.62);
  border: 1px solid var(--border);
  font-size: 0.86rem;
}

.dtc-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: var(--red);
  min-width: 58px;
}

.dtc-desc {
  color: var(--text-secondary);
  flex: 1;
}

/* Video Tour Section */
.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.video-phone {
  margin: 0 auto;
  width: 300px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.timeline-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-bright);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.timeline-step h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.timeline-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Privacy Manifesto Banner */
.privacy-banner {
  background: linear-gradient(135deg, rgba(16, 36, 23, 0.92) 0%, rgba(8, 19, 12, 0.92) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.privacy-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(5, 12, 7, 0.65);
  border: 1px solid var(--border);
}

.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent-bright);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Specs / Hardware Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.spec-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.spec-box .k {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.spec-box .v {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

/* Subpages (Privacy & Support) */
.doc-hero {
  padding: 60px 0 32px;
}

.doc-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 24px;
}

.doc-card h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.doc-card p,
.doc-card li {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.doc-card ul {
  padding-left: 20px;
  margin: 12px 0 0;
}

.doc-card li {
  margin-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.pill-green {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 0.8rem;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  transition: border-color 0.2s ease;
}

details.faq-item[open] {
  border-color: var(--border-accent);
}

details.faq-item summary {
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  color: var(--accent-bright);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.footer-links a:hover {
  color: var(--text);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid,
  .video-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding: 44px 0 48px;
  }

  .hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta,
  .trust-row {
    justify-content: center;
  }

  .col-7,
  .col-5,
  .col-6,
  .col-4 {
    grid-column: span 12;
  }

  .privacy-stats,
  .specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .header-inner {
    height: 62px;
  }

  .iphone-frame {
    width: 286px;
    border-radius: 46px;
  }

  .iphone-screen {
    border-radius: 36px;
  }

  .metric-strip,
  .privacy-stats,
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .privacy-banner,
  .doc-card {
    padding: 24px;
  }

  .section {
    padding: 56px 0;
  }
}
