/* ========================================
   JingX Website — Apple-inspired dark theme
   ======================================== */

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

:root {
  --bg: #000000;
  --bg-subtle: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --border: #222222;
  --text: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --accent: #d4a853;
  --accent-soft: rgba(212, 168, 83, 0.15);
  --blue: #2997ff;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --nav-height: 52px;
  --font: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--nav-height);
  transition: background 0.3s;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 6px 16px;
  border-radius: 980px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
}

.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child { top: 21px; }

.nav-toggle.active span:first-child {
  top: 17px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.active span:last-child {
  top: 17px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) 24px 40px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(212, 168, 83, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.hero-title-line {
  display: block;
  color: var(--text);
}

.hero-title-accent {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, #f0d68a 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

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

.btn-primary:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(212, 168, 83, 0.4);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  z-index: 1;
}

.hero-car-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(212, 168, 83, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  position: relative;
}

.hero-light-bar {
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

/* ── Tagline ── */
.tagline {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tagline-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.tagline-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.15;
}

.tagline-bg-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 214, 160, 0.25);
  mask-image: url('images/bmw_ix_mask.png');
  -webkit-mask-image: url('images/bmw_ix_mask.png');
  mask-size: cover;
  -webkit-mask-size: cover;
  mask-position: center 40%;
  -webkit-mask-position: center 40%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  filter: blur(8px);
  animation: taglineGlow 4s ease-in-out infinite;
}

.tagline-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(212, 168, 83, 0.12);
  mask-image: url('images/bmw_ix_mask_thin.png');
  -webkit-mask-image: url('images/bmw_ix_mask_thin.png');
  mask-size: cover;
  -webkit-mask-size: cover;
  mask-position: center 40%;
  -webkit-mask-position: center 40%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  animation: taglineGlow 4s ease-in-out infinite;
}

@keyframes taglineGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.tagline-text {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), #f0d68a, #e8c76a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* ── Features ── */
.features {
  padding: 80px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(212, 168, 83, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

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

/* ── Effects ── */
.effects {
  padding: 120px 0;
  background: var(--bg-subtle);
}

.effects-showcase {
  max-width: 800px;
  margin: 0 auto;
}

/* Effects Car with Grille Overlay */
.effects-car-wrap {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  overflow: hidden;
}

.effects-car-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.grille-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 214, 160, 0.6);
  mask-image: url('images/bmw_ix_mask_thin.png');
  -webkit-mask-image: url('images/bmw_ix_mask_thin.png');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  transition: background 0.8s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.grille-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 214, 160, 0.35);
  mask-image: url('images/bmw_ix_mask.png');
  -webkit-mask-image: url('images/bmw_ix_mask.png');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  filter: blur(12px);
  transition: background 0.8s ease;
  pointer-events: none;
}

@keyframes grilleBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes grilleFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.grille-overlay.breathe {
  animation: grilleBreathe 2.5s ease-in-out infinite;
}

.grille-overlay.flow {
  background-size: 200% 100% !important;
  animation: grilleFlow 2s linear infinite;
}

.grille-glow.breathe {
  animation: grilleBreathe 2.5s ease-in-out infinite;
}

.grille-glow.flow {
  animation: grilleBreathe 3s ease-in-out infinite;
}

.effect-demo {
  text-align: center;
  margin-bottom: 40px;
}

.effect-bar {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #111;
  position: relative;
}

.effect-leds {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  transition: background 0.6s ease;
  background: #FFD6A0;
  box-shadow: 0 0 20px rgba(255, 214, 160, 0.4), 0 0 60px rgba(255, 214, 160, 0.15);
}

.effect-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

.effects-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.effect-tab {
  padding: 10px 20px;
  border-radius: 980px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font);
}

.effect-tab:hover {
  border-color: var(--text-tertiary);
  color: var(--text);
}

.effect-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── Modes ── */
.modes {
  padding: 80px 0;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.mode-card:hover {
  border-color: rgba(212, 168, 83, 0.3);
  transform: translateY(-2px);
}

.mode-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  color: var(--mode-color);
}

.mode-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mode-card p {
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 10px;
}

.mode-colors {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.mode-colors span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* ── Models Carousel ── */
.models {
  padding: 80px 0;
  background: var(--bg-subtle);
}

.models-carousel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.model-card:hover {
  border-color: rgba(212, 168, 83, 0.3);
  transform: translateY(-2px);
}

.model-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.model-card h3 {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  text-align: center;
}

/* ── App Section ── */
.app-section {
  padding: 120px 0;
}

.app-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.app-info {
  text-align: center;
  max-width: 640px;
}

.app-info .section-label {
  text-align: center;
}

.app-info .section-title {
  text-align: center;
  margin-bottom: 32px;
}

.app-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}

.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.app-feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

.app-feature-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.app-feature-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Phone Mockup — 3-phone fan-out */
.app-mockup {
  display: flex;
  justify-content: center;
}

.phones-group {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  position: relative;
}

.phone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* initial stacked state */
  opacity: 0;
  transform: scale(0.85) translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-left  { transition-delay: 0s; }
.phone-center { transition-delay: 0.12s; }
.phone-right  { transition-delay: 0.24s; }

/* Revealed state */
.phones-group.revealed .phone-item {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.phones-group.revealed .phone-center {
  transform: scale(1.05) translateY(-8px);
}

.phone-frame {
  width: 220px;
  height: 460px;
  background: #1a1a1a;
  border-radius: 32px;
  padding: 8px;
  border: 2px solid #333;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: box-shadow 0.5s, border-color 0.5s;
}

.phone-center .phone-frame {
  width: 240px;
  height: 500px;
  border-color: rgba(212, 168, 83, 0.25);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 168, 83, 0.08);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 12px;
  z-index: 5;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 26px;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-caption {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: center;
  transition: color 0.3s;
}

.phone-center .phone-caption {
  color: var(--accent);
  font-weight: 600;
}

/* ── Specs ── */
.specs {
  padding: 120px 0;
  background: var(--bg-subtle);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}

.spec-value {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), #f0d68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.spec-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.spec-detail {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Download ── */
.download {
  padding: 120px 0;
}

.download-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.download-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 16px 0 40px;
}

.download-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  min-width: 220px;
}

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

.download-card-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.download-card-icon svg {
  width: 100%;
  height: 100%;
}

.download-card-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.download-card-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.download-card-store {
  font-size: 18px;
  font-weight: 600;
}

.download-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Disclaimer ── */
.disclaimer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.disclaimer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.disclaimer-inner h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.disclaimer-inner ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disclaimer-inner li {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.disclaimer-inner li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

/* ── Legal Pages ── */
.legal-page {
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  min-height: 100vh;
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-page .legal-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-page ul {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0;
}

.legal-page li {
  margin-bottom: 4px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-back:hover {
  text-decoration: underline;
}

/* ── Footer ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

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

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
}

/* ── Animations ── */
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes flowRight {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.effect-leds.breathe {
  animation: breathe 2.5s ease-in-out infinite;
}

.effect-leds.flow {
  background-size: 200% 100% !important;
  animation: flowRight 2s linear infinite;
}

/* ── Scroll Reveal ── */
.feature-card,
.mode-card,
.model-card,
.spec-item,
.app-feature-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.mode-card.visible,
.model-card.visible,
.spec-item.visible,
.app-feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

  .modes-grid {
    grid-template-columns: 1fr;
  }

  .models-carousel {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .phones-group {
    gap: 10px;
  }

  .phone-frame {
    width: 140px;
    height: 290px;
    border-radius: 24px;
    padding: 5px;
  }

  .phone-center .phone-frame {
    width: 155px;
    height: 320px;
  }

  .phone-frame::before {
    width: 50px;
    height: 16px;
    top: 6px;
    border-radius: 8px;
  }

  .phone-screen {
    border-radius: 20px;
  }

  .phone-caption {
    font-size: 11px;
  }

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

  .spec-item {
    padding: 24px 16px;
  }

  .spec-value {
    font-size: 28px;
  }

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

  .hero-subtitle {
    font-size: 16px;
    padding: 0 8px;
  }

  .tagline-text {
    font-size: 36px;
  }

  /* App phones: horizontal scroll on mobile */
  .phones-group {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 24px 16px;
    margin: 0 -24px;
    width: calc(100% + 48px);
  }

  .phone-item {
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  .phone-frame {
    width: 200px;
    height: 420px;
    border-radius: 28px;
    padding: 7px;
  }

  .phone-center .phone-frame {
    width: 200px;
    height: 420px;
  }

  .phone-screen {
    border-radius: 22px;
  }

  /* Footer links wrap nicely */
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }

  .download-cards {
    flex-direction: column;
    align-items: center;
  }

  .download-card {
    width: 100%;
    max-width: 300px;
  }
}

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

  .models-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}
