/* =========================================================
   Car Camera DVR - Website Styles
   Theme: Asphalt Dark + Autumn Orange + Red Accent (matches app icon)
   ========================================================= */

:root {
  --primary: #1F2937;
  --primary-light: #374151;
  --accent: #F4842A;
  --accent-dark: #D26A18;
  --danger: #E63946;
  --surface: #FBF7F2;
  --surface-2: #F4ECE2;
  --white: #ffffff;
  --text: #1F2937;
  --muted: #6B7280;
  --border: #E5E1DA;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(31, 41, 55, 0.06);
  --shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
  --shadow-lg: 0 25px 60px rgba(31, 41, 55, 0.15);

  --gradient: linear-gradient(135deg, #F4842A 0%, #1F2937 100%);
  --gradient-light: linear-gradient(135deg, #FFAA5C 0%, #F4842A 100%);

  --header-h: 78px;
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, .brand-name {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; }
p  { color: var(--muted); }

/* H1 two-line layout - each span is one visual line */
h1 .h1-line {
  display: block;
}
@media (min-width: 420px) {
  h1 .h1-line { white-space: nowrap; }
}
.hero-h6 {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 10px 0 0;
  text-transform: none;
}

a { color: var(--accent); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 100px 0; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text-light {
  background: linear-gradient(135deg, #FFD9A8 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-head p { margin-top: 12px; font-size: 1.05rem; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: rgba(244, 132, 42, 0.1);
  border-radius: 100px;
}
.section-eyebrow.light {
  color: #FFD9A8;
  background: rgba(255, 255, 255, 0.12);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: 0.25s;
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(244, 132, 42, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 132, 42, 0.45);
  color: var(--white);
}
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: 0.25s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}
.brand-logo { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-name em {
  font-style: normal;
  color: var(--accent);
}

.nav-menu { display: flex; gap: 6px; }
.nav-menu a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: 0.2s;
}
.nav-menu a:hover {
  color: var(--accent);
  background: rgba(244, 132, 42, 0.08);
}
.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 100px;
  background: var(--surface);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.blob-1 {
  width: 480px; height: 480px;
  top: -140px; right: -80px;
  background: radial-gradient(circle, #F4842A 0%, transparent 70%);
}
.blob-2 {
  width: 520px; height: 520px;
  bottom: -200px; left: -140px;
  background: radial-gradient(circle, #1F2937 0%, transparent 70%);
  opacity: 0.25;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 41, 55, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 55, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 41, 55, 0.06);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  padding: 8px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.rec-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--danger);
  display: inline-block;
  animation: pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 var(--danger);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
}

.hero-sub {
  margin: 18px 0 28px;
  font-size: 1.05rem;
  max-width: 560px;
}

.store-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.badge-link {
  display: inline-block;
  transition: 0.25s;
  border-radius: 10px;
}
.store-img {
  height: 54px;
  width: auto;
  display: block;
  transition: 0.25s;
}
.badge-link:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 10px 22px rgba(31, 41, 55, 0.25));
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stats div strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stats div span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ----- Phone mockup ----- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background: #0b0f1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 10px #161a28,
    0 30px 60px rgba(31, 41, 55, 0.3);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #0b0f1a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: linear-gradient(160deg, #1F2937 0%, #374151 100%);
  overflow: hidden;
  padding: 46px 18px 22px;
  display: flex;
  flex-direction: column;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.rec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 57, 70, 0.2);
  color: var(--danger);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 700;
}
.rec-chip .rec-dot { width: 7px; height: 7px; }

.phone-camera-preview {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #FFB870 0%, #F4842A 50%, #2A2D33 100%);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}
.road-line {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 40px;
  background: #fff;
  opacity: 0.8;
  transform: translateX(-50%);
  animation: road 1.6s linear infinite;
  border-radius: 3px;
}
.road-line:nth-child(2) { animation-delay: 0.55s; }
.road-line:nth-child(3) { animation-delay: 1.1s; }
@keyframes road {
  0%   { top: -50px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}
.car-silhouette {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 2.4rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.phone-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.phone-data {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  color: #fff;
}
.phone-data small {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-bottom: 3px;
}
.phone-data strong {
  display: block;
  font-size: 0.92rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}
.phone-data strong em {
  font-style: normal;
  font-size: 0.62rem;
  opacity: 0.7;
  font-weight: 500;
  margin-left: 2px;
}
.record-btn {
  align-self: center;
  width: 46px; height: 46px;
  background: transparent;
  border: 3px solid #fff;
  border-radius: 50%;
  padding: 3px;
  cursor: pointer;
}
.record-btn span {
  display: block;
  width: 100%; height: 100%;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

.floating-card {
  position: absolute;
  background: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: floaty 4.5s ease-in-out infinite;
}
.floating-card i {
  width: 34px; height: 34px;
  background: var(--gradient);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.floating-card strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: var(--primary);
}
.floating-card small {
  font-size: 0.72rem;
  color: var(--muted);
}
.f-card-1 { top: 60px; left: -10px; animation-delay: 0.2s; }
.f-card-2 { bottom: 80px; right: -20px; animation-delay: 1s; }

/* ===== About ===== */
.about { padding: 80px 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
.about-icon img {
  width: 140px;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}
.about-copy h2 { margin: 8px 0 18px; }
.check-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}
.check-list i { color: var(--accent); font-size: 1.1rem; }

/* ===== Features ===== */
.features { background: var(--surface); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(244, 132, 42, 0.1);
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: 0.3s;
}
.feature-card:hover .feature-icon {
  background: var(--gradient);
  color: #fff;
  transform: scale(1.08) rotate(-6deg);
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; }

/* ===== How It Works ===== */
.how { background: var(--white); }
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}
.step {
  text-align: center;
  padding: 28px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  position: relative;
  transition: 0.25s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-family: 'Poppins';
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 100px;
  box-shadow: 0 6px 14px rgba(244, 132, 42, 0.4);
}
.step-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin: 20px 0 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.92rem; }
.step-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 80px;
}

/* ===== Screenshots Gallery ===== */
.screenshots { background: var(--surface); overflow: hidden; }

/* Platform tabs */
.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  background: #fff;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 6px;
  border-radius: 100px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  cursor: pointer;
  transition: 0.25s;
}
.platform-tab i { font-size: 1.1rem; }
.platform-tab:hover { color: var(--primary); }
.platform-tab.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 16px rgba(244, 132, 42, 0.35);
}

/* Platform panes - show only active one */
.platform-pane { display: none; }
.platform-pane.active { display: block; }

.screenshot-swiper {
  padding: 30px 10px 70px;
  overflow: visible;
}
.screenshot-swiper .swiper-slide {
  width: 260px;
  opacity: 0.55;
  transform: scale(0.88);
  transition: 0.4s;
}
.screenshot-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}
.screen-frame {
  background: #0b0f1a;
  padding: 10px;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(31, 41, 55, 0.2);
  position: relative;
}
.screen-frame::before {
  content: '';
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 14px;
  background: #0b0f1a;
  border-radius: 0 0 10px 10px;
  z-index: 2;
}
.screen-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
  background: var(--primary);
}

.screenshot-swiper .swiper-button-prev,
.screenshot-swiper .swiper-button-next {
  width: 50px; height: 50px;
  background: #fff;
  border-radius: 50%;
  color: var(--accent);
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.screenshot-swiper .swiper-button-prev:hover,
.screenshot-swiper .swiper-button-next:hover {
  background: var(--gradient);
  color: #fff;
}
.screenshot-swiper .swiper-button-prev::after,
.screenshot-swiper .swiper-button-next::after {
  font-size: 18px;
  font-weight: 800;
}
.screenshot-swiper .swiper-pagination-bullet {
  background: var(--primary);
  opacity: 0.25;
}
.screenshot-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
  width: 26px;
  border-radius: 5px;
}

/* ===== Why Choose Us ===== */
.why { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  transition: 0.3s;
  border: 1px solid transparent;
}
.why-card:hover {
  transform: translateY(-6px);
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.why-card i {
  width: 68px; height: 68px;
  border-radius: 20px;
  background: var(--gradient);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
  transition: 0.3s;
}
.why-card:hover i { transform: rotate(-6deg) scale(1.05); }

/* ===== CTA ===== */
.cta {
  padding: 40px 0 100px;
}
.cta-wrap {
  background: var(--gradient);
  border-radius: 28px;
  padding: 70px 60px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  color: #fff;
  box-shadow: 0 30px 60px rgba(31, 41, 55, 0.2);
  position: relative;
  overflow: hidden;
}
.cta-wrap::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  pointer-events: none;
}
.cta-copy h2 { color: #fff; margin: 10px 0 14px; }
.cta-copy p { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; margin-bottom: 28px; }
.cta-visual {
  display: flex;
  justify-content: center;
}
.cta-visual img {
  width: 200px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: floaty 5s ease-in-out infinite;
}

/* ===== FAQ ===== */
.faq { background: var(--surface); }
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 24px;
  transition: 0.25s;
}
.faq-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-family: 'Poppins';
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 400;
  transition: 0.25s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin: 8px 0 16px; }
.contact-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: center;
}
.contact-list i {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(244, 132, 42, 0.1);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-list small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-list a, .contact-list strong {
  color: var(--primary);
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 1.02rem;
}
.contact-list a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.contact-form h3 { margin-bottom: 20px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 12px;
  transition: 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 132, 42, 0.12);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row input { margin-bottom: 12px; }
.contact-form button { width: 100%; margin-top: 8px; justify-content: center; position: relative; }

/* Honeypot - keep off-screen for humans, visible to bots */
.cf-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
}

/* Submit button loading state */
#contactSubmit .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cf-spin 0.7s linear infinite;
}
#contactSubmit.is-loading .btn-icon,
#contactSubmit.is-loading .btn-label { opacity: 0.55; }
#contactSubmit.is-loading .btn-spinner { display: inline-block; }
@keyframes cf-spin { to { transform: rotate(360deg); } }

/* Status pill (success / error) */
.form-status {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.4;
}
.form-status.show { display: flex; }
.form-status.success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.form-status.error {
  background: rgba(230, 57, 70, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(230, 57, 70, 0.3);
}
.form-status .status-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: #fff;
}
.form-status.success .status-icon { background: #16a34a; }
.form-status.error   .status-icon { background: #dc2626; }

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name em { color: var(--accent); }
.foot-brand p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
}
.foot-col h4 {
  color: #fff;
  margin-bottom: 18px;
  font-size: 1rem;
}
.foot-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 5px 0;
  font-size: 0.95rem;
}
.foot-col a:hover { color: var(--accent); transform: translateX(4px); }
.foot-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.foot-badges .store-img {
  height: 48px;
  border-radius: 8px;
  transition: 0.25s;
}
.foot-badges .badge-link:hover .store-img {
  filter: brightness(1.1) drop-shadow(0 6px 14px rgba(244, 132, 42, 0.4));
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}
.foot-brand-link {
  color: #fff;
  font-weight: 600;
  transition: 0.2s;
}
.foot-brand-link:hover { color: var(--accent); }

/* ===== Back to Top ===== */
.back-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  /* box-shadow: 0 10px 26px rgba(244, 132, 42, 0.4); */
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
  z-index: 999;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .section-pad { padding: 80px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-copy .eyebrow { margin: 0 auto 20px; }
  .hero-sub { margin: 20px auto 32px; }
  .store-badges, .hero-stats { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .check-list { justify-content: center; }
  .check-list li { justify-content: center; }

  .steps { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .step-line { display: none; }

  .cta-wrap { grid-template-columns: 1fr; text-align: center; padding: 50px 30px; }
  .cta-visual { display: none; }
  .store-badges { justify-content: center; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

  /* Collapse the nav to a hamburger early so the full link row never
     overflows the header on tablets / small laptops. */
  .nav-menu {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0 24px;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    /* No border/shadow while collapsed - they would paint a band under the
       header even at max-height:0 (overflow does not clip them). */
    border-bottom: 0 solid var(--border);
    box-shadow: none;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-menu.active {
    max-height: 460px;
    padding: 16px 24px;
    border-bottom-width: 1px;
    box-shadow: var(--shadow);
  }
  .nav-menu a { padding: 12px 14px; border-radius: 10px; width: 100%; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  /* Shorter header on phones so there is less empty space under the logo. */
  :root { --header-h: 60px; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }

  .hero { padding: calc(var(--header-h) + 50px) 0 70px; }
  .phone-mockup { width: 240px; height: 480px; }
  .floating-card { display: none; }
  .hero-stats { gap: 26px; }
  .hero-stats div strong { font-size: 1.4rem; }

  .steps { grid-template-columns: 1fr; gap: 30px; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .foot-brand p { margin: 16px auto; }
  .foot-badges { align-items: center; }
  .footer-bottom .container { justify-content: center; text-align: center; }

  .cta-wrap { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .store-badge { min-width: 160px; padding: 10px 18px; }
  .screen-frame img { height: 460px; }
}
