/* ============================================================================
   SELF-HOSTED FONTS (variable woff2 from @fontsource)
   ============================================================================ */
@font-face{font-family:'Instrument Sans';font-style:normal;font-display:swap;font-weight:400 700;src:url('/assets/fonts/instrument-sans-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-display:swap;font-weight:400 700;src:url('/assets/fonts/instrument-sans-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-display:swap;font-weight:700 800;src:url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-display:swap;font-weight:700 800;src:url('/assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:400 500;src:url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:400 500;src:url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}

/* ============================================================================
   AUTOMOTIVE APPS – REDESIGN
   Design: clean, flat, vibrant, premium automotive
   Inspiration: linear.app, vercel.com, stripe.com
   ============================================================================ */

/* DESIGN TOKENS */
:root {
  /* Neutrals — warm grays */
  --color-bg:           #fafafa;
  --color-surface:      #ffffff;
  --color-border:       #e8e8e8;
  --color-text:         #0a0a0a;
  --color-text-muted:   #555555;
  --color-text-subtle:  #999999;

  /* Accent — one confident blue */
  --color-accent:       #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-soft:  rgba(37, 99, 235, 0.08);
  --color-accent-glow:  rgba(37, 99, 235, 0.15);

  /* Shadows — layered for depth */
  --shadow-subtle:      0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
  --shadow-card:        0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-card-hover:  0 4px 12px rgba(0,0,0,0.06), 0 12px 36px rgba(0,0,0,0.10);

  /* Typography */
  --font-ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Plus Jakarta Sans", "Instrument Sans", sans-serif;
  --font-mono: "JetBrains Mono", "Monaco", "Courier New", monospace;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   RESET
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-surface);
  overflow-x: hidden;
  padding-top: 60px;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

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

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

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

strong {
  font-weight: 600;
  color: var(--color-text);
}

/* ============================================================================
   LAYOUT
   ============================================================================ */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: clamp(4rem, 8vh, 7rem) 0;
}

section:nth-of-type(even) {
  background: var(--color-bg);
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

nav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 2rem;
  height: 60px;
  z-index: 1000;
}

.navbar-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navbar-brand a {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  border-radius: 7px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-nav a,
.nav-dropdown-toggle {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s var(--ease);
  cursor: pointer;
}

.navbar-nav a:hover,
.nav-dropdown-toggle:hover {
  color: var(--color-accent);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.nav-dropdown-toggle::after {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  transition: transform 0.15s var(--ease);
}

.nav-dropdown.active .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
  min-width: 200px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s var(--ease), visibility 0.15s var(--ease), transform 0.15s var(--ease);
  pointer-events: none;
  overflow: hidden;
}

.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu li + li {
  border-top: 1px solid var(--color-border);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.nav-dropdown-menu a:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.15s var(--ease);
}

/* ============================================================================
   HERO
   ============================================================================ */

.hero {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  padding: clamp(4rem, 12vh, 8rem) 0;
}

/* Single subtle glow */
.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1rem;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 44ch;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* App page hero with app color tint */
.hero--app {
  background: var(--color-bg);
  background: linear-gradient(180deg, var(--app-tint, var(--color-bg)) 0%, var(--color-surface) 100%);
}

.hero--app h1 {
  max-width: none;
}

.app-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 1.25rem;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-ui);
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
  color: #ffffff;
}

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

.btn-secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-text-subtle);
  color: var(--color-text);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* ============================================================================
   SECTION HEADERS
   ============================================================================ */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 50ch;
  margin: 0 auto;
}

/* ============================================================================
   APP CARDS (Homepage)
   ============================================================================ */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.app-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s var(--ease);
}

.app-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-card-body {
  flex: 1;
  min-width: 0;
}

.app-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.app-card-summary {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.app-card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.app-card-link:hover {
  color: var(--color-accent-hover);
}

/* ============================================================================
   FEATURE STRIPS (Homepage)
   ============================================================================ */

.features-list {
  max-width: 640px;
  margin: 0 auto;
}

.feature-strip {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.feature-strip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  border-radius: 0.625rem;
}

.feature-strip-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  letter-spacing: 0;
}

.feature-strip-body p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================================================
   ABOUT SECTION
   ============================================================================ */

.about-text {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 58ch;
}

.about-text strong {
  color: var(--color-text);
}

/* ============================================================================
   SCREENSHOTS (App pages)
   ============================================================================ */

.screenshot-section {
  max-width: 900px;
  margin: 0 auto;
}

.screenshot-main {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
  transition: box-shadow 0.2s var(--ease);
}

.screenshot-main:hover {
  box-shadow: var(--shadow-card-hover);
}

.screenshot-caption {
  margin-top: 0.75rem;
  text-align: center;
}

.screenshot-caption-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin: 0 0 0.125rem;
}

.screenshot-caption-body {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.screenshot-thumb {
  width: 100%;
  border-radius: 0.625rem;
  box-shadow: var(--shadow-subtle);
  cursor: zoom-in;
  transition: box-shadow 0.2s var(--ease);
}

.screenshot-thumb:hover {
  box-shadow: var(--shadow-card);
}

/* ============================================================================
   KEY FEATURES (App pages) — reuse feature-strip or grid
   ============================================================================ */

.key-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.key-feature-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
}

.key-feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.key-feature-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.375rem;
  letter-spacing: 0;
}

.key-feature-item p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ============================================================================
   DESCRIPTION CARD (App pages)
   ============================================================================ */

.description-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
}

.description-card p {
  line-height: 1.75;
}

/* ============================================================================
   RELEASE NOTES
   ============================================================================ */

.release-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
}

.release-card h3 {
  font-size: 1rem;
  color: var(--color-accent);
  margin-top: 0;
  margin-bottom: 1rem;
}

.release-card pre {
  white-space: pre-wrap;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================================
   LEGAL CONTENT
   ============================================================================ */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-size: 1.375rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-size: 1.0625rem;
  letter-spacing: 0;
}

.legal-content h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-size: 0.9375rem;
  letter-spacing: 0;
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.legal-content a {
  color: var(--color-accent);
}

.legal-content a:hover {
  color: var(--color-accent-hover);
}

/* License tables */
.license-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.875rem;
}

.license-table th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.625rem 0.75rem;
  border-bottom: 2px solid var(--color-border);
}

.license-table td {
  padding: 0.625rem 0.75rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  line-height: 1.5;
}

.license-table code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--color-bg);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.legal-updated {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
  background: var(--color-bg);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

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

/* ============================================================================
   LIGHTBOX
   ============================================================================ */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 0.75rem;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: white;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  background: none;
  border: none;
  padding: 0;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ============================================================================
   SCROLL ANIMATIONS
   ============================================================================ */

.app-card,
.key-feature-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.app-card.in-view,
.key-feature-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.app-card:nth-child(2), .key-feature-item:nth-child(2) { transition-delay: 60ms; }
.app-card:nth-child(3), .key-feature-item:nth-child(3) { transition-delay: 120ms; }
.app-card:nth-child(4), .key-feature-item:nth-child(4) { transition-delay: 180ms; }

/* ============================================================================
   UTILITIES
   ============================================================================ */

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

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

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .key-features-grid {
    grid-template-columns: 1fr;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

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

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  section {
    padding: clamp(2.5rem, 6vh, 4rem) 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .screenshot-section {
    max-width: 100%;
  }

  /* Mobile nav */
  .nav-mobile-toggle {
    display: flex;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-nav.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    margin-top: 0;
    padding: 0;
    pointer-events: auto;
    min-width: 0;
  }

  .nav-dropdown-toggle {
    display: none;
  }

  .nav-dropdown::before {
    content: "Apps";
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-subtle);
    text-align: center;
    padding: 0.5rem 0 0.25rem;
  }

  .nav-dropdown-menu li + li {
    border-top: none;
  }

  .nav-dropdown-menu a {
    padding: 0.375rem 1rem;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.9375rem;
  }

  .container,
  .container-sm,
  .legal-content {
    padding: 0 1.25rem;
  }

  .btn {
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
  }
}

/* ============================================================================
   AUTO-APPTEST LANDING — additions (reuse existing tokens)
   ============================================================================ */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-glow);
  border-radius: 999px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Stats / ROI row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.375rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Feature grid (3-up cards) */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.feature-card-icon {
  font-size: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  border-radius: 0.75rem;
  margin-bottom: 1.125rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* How it works — numbered steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: var(--color-accent);
  border-radius: 0.625rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* CTA band */
.cta-band {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-band h2 {
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.cta-band p {
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr; max-width: 360px; }
  .steps { grid-template-columns: 1fr; }
}
