/* ==========================================================================
   Domio Smart Home — Marketing Site Theme
   Dark indigo/purple with glassmorphism
   ========================================================================== */

/* ---------- Theme Variables ---------- */
:root {
  color-scheme: dark;
  --brand-primary: #6C4DC4;
  --brand-dark: #241660;
  --brand-light: #B8A3E8;
  --brand-accent: #A48FD8;
  --bg-hero: linear-gradient(135deg, #3A2578, #241660);
  --bg-page: #0F0A1E;
  --bg-section-alt: #150E2A;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-hover-bg: rgba(255, 255, 255, 0.10);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1100px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-accent);
}

code {
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--brand-light);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--brand-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 8px;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin: 0 0 1em;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
}

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

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

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-section-alt);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 10, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-hero);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 60% 40%, rgba(108, 77, 196, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  margin-bottom: 0.4em;
}

.hero .subtitle {
  position: relative;
  max-width: 600px;
  margin: 0 auto 1.5em;
}

.hero-actions {
  position: relative;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero split layout (text + phone) */
.hero-split {
  display: flex;
  align-items: center;
  gap: 64px;
  text-align: left;
  max-width: var(--max-width);
}

.hero-text {
  flex: 1 1 0%;
  text-align: left;
  position: relative;
  min-width: 0;
}

.hero-text .subtitle {
  margin: 0 0 1.5em;
}

.hero-text .hero-actions {
  justify-content: flex-start;
}

.hero-phone {
  flex: 0 0 280px;
  position: relative;
}

/* CSS iPhone frame */
.phone-frame {
  width: 280px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(108, 77, 196, 0.15);
  position: relative;
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  display: block;
}

/* Dynamic Island */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover {
  background: #7d5ed4;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108, 77, 196, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--card-border);
}

.btn-secondary:hover {
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--brand-accent);
}

/* ---------- Feature Grid (3-col) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), transform var(--transition);
}

.feature-card:hover {
  background: var(--card-hover-bg);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feature-card h3 {
  margin-bottom: 0.3em;
}

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

/* Feature card highlight variant */
.feature-card-highlight {
  background: rgba(108, 77, 196, 0.12);
  border-color: rgba(108, 77, 196, 0.3);
}

.feature-card-highlight .feature-icon {
  background: linear-gradient(135deg, #7d5ed4, #6C4DC4);
  box-shadow: 0 4px 16px rgba(108, 77, 196, 0.3);
}

.feature-card-highlight:hover {
  background: rgba(108, 77, 196, 0.18);
}

/* ---------- Feature Lead (full-width hero feature) ---------- */
.feature-lead {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: rgba(108, 77, 196, 0.12);
  border: 1px solid rgba(108, 77, 196, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.feature-lead-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7d5ed4, #6C4DC4);
  box-shadow: 0 4px 16px rgba(108, 77, 196, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-lead-text h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.3em;
}

.feature-lead-text p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 640px;
}

/* ---------- Feature Grid Mixed (2-col) ---------- */
.feature-grid-mixed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ---------- Feature List (compact, no cards) ---------- */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border);
  transition: background var(--transition);
}

.feature-list-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Right column items get a left border */
.feature-list-item:nth-child(even) {
  border-left: 1px solid var(--card-border);
}

/* Remove bottom border from last row */
.feature-list-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.feature-list-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-list-item h3 {
  font-size: 1rem;
  margin-bottom: 0.15em;
}

.feature-list-item p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ---------- Feature Grid (2-col) ---------- */
.feature-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- Callout ---------- */
.callout {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: flex;
  gap: 32px;
  counter-reset: step-counter;
}

.step {
  flex: 1;
  text-align: center;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step h4 {
  margin-bottom: 0.3em;
}

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

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  position: relative;
  transition: background var(--transition), transform var(--transition);
}

.pricing-card:hover {
  background: var(--card-hover-bg);
  transform: translateY(-3px);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.pricing-card .period {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-badge {
  display: inline-block;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* ---------- Styled Table ---------- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.styled-table thead th {
  background: var(--brand-dark);
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border: none;
}

.styled-table thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.styled-table thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.styled-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.styled-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.styled-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: #4ade80;
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Architecture Diagram ---------- */
.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 24px 0;
}

.arch-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  min-width: 120px;
}

.arch-arrow {
  color: var(--brand-accent);
  font-size: 1.5rem;
  padding: 0 12px;
  flex-shrink: 0;
  user-select: none;
}

/* ---------- Pull Quote ---------- */
.pull-quote {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--brand-primary);
  padding-left: 24px;
  margin: 32px 0;
  line-height: 1.6;
}

/* ---------- Privacy Section ---------- */
.privacy-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.privacy-section h3 {
  margin-bottom: 0.5em;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

/* ---------- Badge / Pill ---------- */
.badge {
  display: inline-block;
  background: rgba(164, 143, 216, 0.2);
  color: var(--brand-accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-page);
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer a {
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

/* ---------- Gallery Strip ---------- */
.gallery-strip {
  padding: 64px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  width: max-content;
}

.gallery-item {
  margin: 0;
  text-align: center;
  flex-shrink: 0;
}

.gallery-item figcaption {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Phone screenshots */
.phone-frame-sm {
  width: 200px;
  padding: 8px;
  border-radius: 28px;
  animation: none;
}

.phone-frame-sm img {
  border-radius: 22px;
}

.phone-frame-sm::before {
  top: 14px;
  width: 60px;
  height: 18px;
  border-radius: 9px;
}

/* CarPlay frame */
.carplay-frame {
  width: 360px;
  background: #1a1a2e;
  border-radius: 16px;
  padding: 8px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 15px 40px rgba(0, 0, 0, 0.4);
}

.carplay-frame img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Hover lift on gallery items */
.gallery-item .phone-frame-sm,
.gallery-item .carplay-frame {
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
}

.gallery-item:hover .phone-frame-sm,
.gallery-item:hover .carplay-frame {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(108, 77, 196, 0.1);
}

/* ---------- Delight ---------- */

/* Phone float — gentle breathing animation */
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone-frame {
  animation: phone-float 4s ease-in-out infinite;
}

/* Hero gradient — slow ambient drift */
@keyframes gradient-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -1%) scale(1.02); }
  66% { transform: translate(-1%, 1%) scale(0.99); }
}

.hero::before {
  animation: gradient-drift 12s ease-in-out infinite;
}

/* Button active — satisfying press */
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(108, 77, 196, 0.2);
  transition-duration: 0.05s;
}

.btn-secondary:active {
  transform: translateY(1px);
  transition-duration: 0.05s;
}

/* Feature lead icon — soft glow pulse */
@keyframes icon-glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(108, 77, 196, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(108, 77, 196, 0.5); }
}

.feature-lead-icon {
  animation: icon-glow 3s ease-in-out infinite;
}

/* Step numbers — glow on hover */
.step-number {
  transition: box-shadow var(--transition), transform var(--transition);
}

.step:hover .step-number {
  box-shadow: 0 0 20px rgba(108, 77, 196, 0.4);
  transform: scale(1.08);
}

/* Nav logo — purple dot glow on header hover */
.nav:hover .nav-logo {
  filter: drop-shadow(0 0 6px rgba(153, 50, 204, 0.4));
  transition: filter 0.4s ease;
}

.nav-logo {
  transition: filter 0.4s ease;
}

/* Scroll reveal — CSS-only fade-in using animation-timeline */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .feature-lead,
  .feature-card,
  .feature-list-item,
  .callout,
  .pricing-card,
  .privacy-section,
  .steps {
    animation: fade-in-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

/* Feature card hover — use exponential easing for natural feel */
.feature-card:hover {
  transform: translateY(-3px);
  transition: background 0.2s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Pricing card — lift with glow on hover */
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 77, 196, 0.2);
  transition: background 0.2s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
}

/* Feature list items — subtle slide on hover */
.feature-list-item:hover .feature-list-icon {
  border-color: rgba(184, 163, 232, 0.3);
  transition: border-color 0.3s ease;
}

/* Checklist — stagger check appearance */
.checklist li {
  transition: opacity 0.3s ease;
}

/* Link arrow nudge */
.callout a[href] {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.callout a[href]:hover {
  transform: translateX(3px);
}

/* ---------- Utilities ---------- */
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }
.mb-5  { margin-bottom: 48px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 768px) {
  .feature-grid,
  .feature-grid-mixed {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-list-item:nth-child(even) {
    border-left: none;
  }

  .feature-list-item:last-child {
    border-bottom: none;
  }

  .feature-list-item:nth-last-child(2) {
    border-bottom: 1px solid var(--card-border);
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-split {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text .subtitle {
    margin: 0 auto 1.5em;
  }

  .hero-text .hero-actions {
    justify-content: center;
  }

  .phone-frame {
    width: 220px;
    animation: none;
  }

  .gallery-strip {
    padding: 48px 0;
  }

  .gallery-track {
    gap: 24px;
    padding: 0 24px;
  }

  .phone-frame-sm {
    width: 170px;
    border-radius: 24px;
  }

  .phone-frame-sm img {
    border-radius: 18px;
  }

  .carplay-frame {
    width: 300px;
  }

  .section {
    padding: 56px 0;
  }

  h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); }

  .steps {
    flex-wrap: wrap;
  }

  .step {
    flex: 1 1 45%;
  }

  .arch-diagram {
    flex-direction: column;
  }

  .arch-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 480px) {
  .feature-grid,
  .feature-grid-2,
  .feature-grid-mixed,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .feature-lead {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
  }

  .nav .container {
    height: 56px;
  }

  .nav-logo {
    height: 26px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-link {
    font-size: 0.8125rem;
    padding: 8px 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

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

  .steps {
    flex-direction: column;
    gap: 24px;
  }

  .step {
    flex: 1 1 100%;
  }

  .container {
    padding: 0 16px;
  }

  .glass-card,
  .privacy-section {
    padding: 24px 20px;
  }

  .pricing-grid {
    max-width: 100%;
  }
}

/* ---------- Responsive: Very Small ---------- */
@media (max-width: 350px) {
  .nav-logo {
    height: 22px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 8px 6px;
  }

  .hero {
    padding: 76px 0 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
