/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* === THEME TOKENS === */
:root {
  --primary: #D32F2F;
  --primary-hover: #B71C1C;
  --primary-glow: rgba(211, 47, 47, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.2s ease;

  /* Dark (default) */
  --bg: #0c0c0c;
  --bg-secondary: #111111;
  --surface: #181818;
  --surface-hover: #222222;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --text-secondary: #888;
  --text-muted: #444;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-float: 0 32px 80px rgba(0, 0, 0, 0.7);
  --nav-bg: rgba(12, 12, 12, 0.8);
}

[data-theme='light'] {
  --bg: #ffffff;
  --bg-secondary: #f6f6f6;
  --surface: #ffffff;
  --surface-hover: #f0f0f0;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #111111;
  --text-secondary: #555;
  --text-muted: #aaa;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 32px 80px rgba(0, 0, 0, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.8);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

/* === LAYOUT === */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.navbar.scrolled { border-bottom-color: var(--border); }

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Language switcher */
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 4px 6px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  transition: color var(--transition);
  line-height: 1;
}

.lang-btn:hover { color: var(--text-secondary); }
.lang-btn.active { color: var(--primary); }

.lang-sep { color: var(--border-strong); font-size: 12px; user-select: none; }

/* Theme toggle */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background var(--transition), border-color var(--transition);
  margin-left: 4px;
}

.theme-toggle:hover { background: var(--surface-hover); border-color: var(--border-strong); }

/* Download button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-left: 8px;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === HERO === */
.hero {
  min-height: 100svh;
  background: linear-gradient(145deg, #0c0c0c 0%, #180404 60%, #0c0c0c 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

/* Subtle grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(211,47,47,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(211, 47, 47, 0.12);
  border: 1px solid rgba(211, 47, 47, 0.28);
  color: #EF5350;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  width: fit-content;
}

.hero-title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  font-family: 'Noto Serif JP', 'Inter', Georgia, serif;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 40px;
  max-width: 460px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.store-btn--google {
  background: #ffffff;
  color: #111;
}

.store-btn--apple {
  background: #ffffff;
  color: #111111;
  border-color: transparent;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.store-btn--google:hover { background: #f2f2f2; }
.store-btn--apple:hover { background: #f2f2f2; }

.store-icon { width: 22px; height: 22px; flex-shrink: 0; }

.store-btn small {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  line-height: 1;
  margin-bottom: 2px;
}

.store-btn strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.9); }
.stat span { font-size: 11px; color: rgba(255,255,255,0.4); }
.stat-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.1); }

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 260px;
}

.phone-frame {
  background: #1c1c1c;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 46px;
  padding: 10px;
  box-shadow: var(--shadow-float);
  animation: float 5s ease-in-out infinite;
  will-change: transform;
}

.phone-screen {
  width: 100%;
  border-radius: 36px;
  display: block;
  aspect-ratio: 9/19.5;
  object-fit: cover;
}

.phone-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(211,47,47,0.35) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(10px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* Wave divider */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg { width: 100%; height: 64px; display: block; }

/* === SECTIONS === */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
  font-family: 'Noto Serif JP', 'Inter', Georgia, serif;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === FEATURES === */
.features { background: var(--bg); }

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

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

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(211, 47, 47, 0.4);
  box-shadow: 0 16px 40px var(--primary-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(211, 47, 47, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-icon--orange  { background: rgba(255, 112, 67, 0.12); color: #FF7043; }
.feature-icon--blue    { background: rgba(33, 150, 243, 0.12);  color: #2196F3; }
.feature-icon--amber   { background: rgba(255, 193, 7, 0.12);   color: #F59E0B; }
.feature-icon--teal    { background: rgba(20, 184, 166, 0.12);  color: #14B8A6; }
.feature-icon--purple  { background: rgba(124, 58, 237, 0.12);  color: #7C3AED; }
.feature-icon--whatsapp { background: rgba(37, 211, 102, 0.1);  color: #25D366; }

.feature-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.feature-card:hover .feature-icon--orange  { background: rgba(255, 112, 67, 0.22); }
.feature-card:hover .feature-icon--blue    { background: rgba(33, 150, 243, 0.22); }
.feature-card:hover .feature-icon--amber   { background: rgba(255, 193, 7, 0.22);  }
.feature-card:hover .feature-icon--teal    { background: rgba(20, 184, 166, 0.22); }
.feature-card:hover .feature-icon--purple  { background: rgba(124, 58, 237, 0.22); }
.feature-card:hover .feature-icon--whatsapp { background: rgba(37, 211, 102, 0.2); }

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

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

/* === SCREENSHOTS === */
.screenshots { background: var(--bg-secondary); padding: 100px 0; }

.carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.carousel::-webkit-scrollbar { display: none; }
.carousel:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  gap: 20px;
  padding: 16px 40px 24px;
  width: max-content;
}

.carousel-item { flex-shrink: 0; scroll-snap-align: start; }

.phone-small {
  width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 8px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.phone-small:hover { transform: translateY(-4px); }

.phone-small img {
  width: 100%;
  border-radius: 26px;
  display: block;
  aspect-ratio: 9/19.5;
  object-fit: cover;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 12px 24px 8px;
}

.carousel-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  line-height: 1;
}

.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.05);
}

.carousel-dots { display: flex; gap: 6px; align-items: center; }

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.carousel-dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
}

/* === HOW IT WORKS === */
.how { background: var(--bg); }

.steps {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 40px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-number {
  font-size: 52px;
  font-weight: 800;
  color: rgba(211, 47, 47, 0.12);
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 16px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.step h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-arrow {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
  opacity: 0.5;
  align-self: center;
  padding-bottom: 16px;
}

/* === CTA === */
.cta {
  background: linear-gradient(145deg, #0c0c0c 0%, #1e0404 50%, #0c0c0c 100%);
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(211,47,47,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.cta-container { position: relative; z-index: 1; }

.cta-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 28px;
  box-shadow: 0 12px 40px rgba(211, 47, 47, 0.35);
}

.cta h2 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  font-family: 'Noto Serif JP', 'Inter', Georgia, serif;
}

.cta p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn--large { padding: 16px 26px; }
.store-btn--large strong { font-size: 18px; }

/* === FOOTER === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 56px 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

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

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.footer-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* === ANIMATIONS === */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-in.visible { opacity: 1; transform: translateY(0); }

.feature-card:nth-child(2) { transition-delay: 0.08s; }
.feature-card:nth-child(3) { transition-delay: 0.16s; }
.feature-card:nth-child(4) { transition-delay: 0.08s; }
.feature-card:nth-child(5) { transition-delay: 0.16s; }
.feature-card:nth-child(6) { transition-delay: 0.24s; }

.step:nth-child(3) { transition-delay: 0.12s; }
.step:nth-child(5) { transition-delay: 0.24s; }
.step:nth-child(7) { transition-delay: 0.36s; }

/* === POLISH: STATES, INTERACTIONS & ACCESSIBILITY === */

/* Focus-visible — keyboard navigation only, not mouse */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.btn-primary:focus-visible    { border-radius: 8px; outline-offset: 2px; }
.store-btn:focus-visible      { border-radius: var(--radius-sm); }
.theme-toggle:focus-visible   { border-radius: 8px; }
.carousel-btn:focus-visible   { border-radius: 50%; }
.lang-btn:focus-visible       { border-radius: 6px; }
.hamburger:focus-visible      { border-radius: 4px; outline-offset: 4px; }
.carousel-dot:focus-visible   { border-radius: 50%; outline-offset: 2px; }
.footer-links a:focus-visible { border-radius: 4px; }

/* Active / press feedback */
.btn-primary:active   { transform: translateY(0) scale(0.97); box-shadow: none !important; }
.store-btn:active     { transform: translateY(0) scale(0.97) !important; box-shadow: none !important; }
.theme-toggle:active  { transform: scale(0.88); }
.lang-btn:active      { transform: scale(0.9); }
.carousel-btn:active  { transform: scale(0.9) !important; }

/* Step cards hover */
.step {
  transition: transform 0.2s ease-out, border-color 0.2s ease, box-shadow 0.2s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

/* Feature icon reacts to card hover */
.feature-icon { transition: background 0.22s ease, transform 0.22s ease; }
.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(-5deg);
}

/* Phone float pauses on hover — invites interaction */
.phone-mockup:hover .phone-frame { animation-play-state: paused; }

/* Hamburger → X morph when open */
.hamburger span { transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.18s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Gradient shine sweep on primary button */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 160%; }

/* Layered, depth-aware shadows */
[data-theme='dark'] .feature-card { box-shadow: 0 1px 4px rgba(0,0,0,0.4), 0 4px 14px rgba(0,0,0,0.25); }
[data-theme='light'] .feature-card { box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 14px rgba(0,0,0,0.04); }
[data-theme='dark'] .step { box-shadow: 0 1px 4px rgba(0,0,0,0.35); }

/* Carousel phone shadows deeper on hover */
.phone-small:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
[data-theme='light'] .phone-small:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.14); }

/* === ENTRANCE ANIMATIONS (Hero — CSS, on load) === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeInOnly {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-badge    { animation: popIn      0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s  both; }
.hero-title    { animation: fadeUp     0.65s ease-out                           0.28s both; }
.hero-subtitle { animation: fadeUp     0.65s ease-out                           0.44s both; }
.hero-ctas     { animation: fadeUp     0.65s ease-out                           0.58s both; }
.hero-stats    { animation: fadeInOnly 0.7s  ease-out                           0.78s both; }
.hero-visual   { animation: fadeUp     0.8s  ease-out                           0.32s both; }

/* CTA animate-in stagger */
.cta-container .animate-in:nth-child(2) { transition-delay: 0.1s; }
.cta-container .animate-in:nth-child(3) { transition-delay: 0.2s; }

/* Nav link underline slide */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--primary);
  transition: width 0.22s ease-out;
  border-radius: 1px;
}
.nav-links a:hover::after { width: 100%; }

/* === TOUCH TARGETS ≥ 44px on mobile === */
@media (max-width: 768px) {
  .lang-btn       { min-height: 44px; padding: 8px 10px; }
  .theme-toggle   { min-height: 44px; min-width: 44px; }
  .nav-links a    { min-height: 44px; display: flex; align-items: center; }
  .footer-links a { min-height: 44px; display: flex; align-items: center; }
}

/* === QR CODE MODAL === */
.qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.qr-modal.open { display: flex; }

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.qr-modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  text-align: center;
  width: 300px;
  z-index: 1;
  animation: popIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.qr-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.qr-modal-close svg { width: 14px; height: 14px; }
.qr-modal-close:hover { background: var(--border); color: var(--text); }

.qr-modal-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.qr-modal-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto 14px;
  background: #fff;
  padding: 8px;
}

.qr-modal-store {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.qr-modal-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.qr-modal-link {
  display: inline-block;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.qr-modal-link:hover { border-bottom-color: var(--primary); }

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .phone-frame { animation: none !important; }
}

/* === RESPONSIVE === */
/* Center carousel on desktop when all items fit */
@media (min-width: 769px) {
  .carousel { overflow: visible; cursor: default; }
  .carousel-track { margin: 0 auto; padding: 16px 24px 24px; }
  .carousel-controls { display: none; }
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    z-index: 199;
    gap: 20px;
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .btn-primary { display: none; }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding: 60px 24px 80px;
  }

  .hero-visual { order: -1; }
  .phone-mockup { width: 200px; margin: 0 auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 16px; }

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

  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; padding-bottom: 0; }

  .cta-buttons { flex-direction: column; align-items: center; }
  .footer-links { gap: 16px; }

  section { padding: 72px 0; }
  .cta { padding: 80px 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 34px; }
  .hero-stats { gap: 12px; }
  .phone-small { width: 180px; }
}
