/* ===== DESIGN TOKENS ===== */
:root {
  --color-primary: #034C3C;
  --color-primary-dark: #022A21;
  --color-primary-light: #005C48;
  --color-accent: #C5FE03;
  --color-accent-soft: #E4FF8B;
  --color-bg: #FEFEFD;
  --color-bg-warm: #FAF9F1;
  --color-bg-card: #FFFFFF;
  --color-text: #121212;
  --color-text-secondary: #666874;
  --color-text-muted: #8A8E92;
  --color-border: #E9EBEE;
  --color-border-light: #F2F2F2;
  --color-gold: #F7CE45;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET & BASE ===== */
*, *::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-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #00826F 50%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header p {
  margin-top: 16px;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 28px;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(3, 76, 60, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: 12px 28px;
  border: 1.5px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 254, 253, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.logo-img-footer {
  height: 44px;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  background: rgba(254, 254, 253, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: color 0.2s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:active {
  color: var(--color-primary);
}

.mobile-menu .btn {
  margin-top: 12px;
  text-align: center;
  border-bottom: none;
  padding: 14px 28px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--color-accent);
  top: -200px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #DDF1E6;
  bottom: -100px;
  left: -100px;
  animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--color-accent-soft);
  top: 40%;
  left: 30%;
  animation: float 18s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

.hero-content {
  max-width: 560px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34E0A1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  display: inline;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Hero Phone */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  height: 580px;
}

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

.phone-hero-secondary {
  position: absolute;
  right: -20px;
  top: 60px;
  z-index: 1;
  transform: scale(0.85) rotate(6deg);
  opacity: 0.7;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: var(--color-border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 110%; }
}

/* ===== PHONE MOCKUP ===== */
.phone-mockup {
  flex-shrink: 0;
}

.phone-frame {
  width: 260px;
  height: 530px;
  background: #1E1E1E;
  border-radius: 40px;
  padding: 8px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1) inset,
    var(--shadow-xl),
    0 40px 80px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.phone-frame:hover {
  transform: translateY(-8px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 32px 72px rgba(0,0,0,0.18),
    0 48px 96px rgba(0,0,0,0.12);
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1E1E1E;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 32px;
}

.phone-sm .phone-frame {
  width: 220px;
  height: 450px;
  border-radius: 34px;
}

.phone-sm .phone-notch {
  width: 86px;
  height: 24px;
  border-radius: 0 0 14px 14px;
}

.phone-sm .phone-screen {
  border-radius: 26px;
}

/* ===== TRUSTED ===== */
.trusted {
  padding: 48px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg-warm);
}

.trusted-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trusted-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.trusted-logo:hover {
  opacity: 0.8;
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 0;
}

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

.feature-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #E6EDEC, #DDF1E6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
  transition: transform 0.3s var(--ease-spring);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.125rem;
}

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

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 120px 0;
  background: var(--color-bg-warm);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 280px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 24px;
  -webkit-text-stroke: 2px var(--color-primary);
  paint-order: stroke fill;
}

.step-phone {
  margin-bottom: 28px;
}

.step h3 {
  margin-bottom: 8px;
}

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

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 180px;
  color: var(--color-primary);
  opacity: 0.3;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
  padding: 120px 0;
}

.screenshots-carousel {
  width: 100%;
  overflow: hidden;
  padding: 20px 0 40px;
}

.carousel-track {
  display: flex;
  gap: 32px;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.slide-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--carousel-offset, -1752px)); }
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 120px 0;
  background: var(--color-bg-warm);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.testimonial-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  transition: all 0.4s var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-featured {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.testimonial-featured .testimonial-text {
  color: rgba(255,255,255,0.9);
}

.testimonial-featured .author-name {
  color: #fff;
}

.testimonial-featured .author-role {
  color: var(--color-accent);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-primary);
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}

.author-role {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ===== CTA ===== */
.cta {
  padding: 120px 0;
}

.cta-card {
  position: relative;
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 80px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.cta-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(197, 254, 3, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 130, 111, 0.3) 0%, transparent 50%);
}

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

.cta-content h2 {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(8px);
}

.store-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.store-btn-small {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.7;
  line-height: 1;
}

.store-btn-large {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

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

.cta-phone .phone-frame {
  width: 230px;
  height: 470px;
  border-radius: 36px;
}

.cta-phone .phone-screen {
  border-radius: 28px;
}

.cta-phone .phone-notch {
  width: 90px;
  height: 24px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--color-border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-warm);
  color: var(--color-text-secondary);
  transition: all 0.3s var(--ease-out);
}

.social-links a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--color-border-light);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--delay, 0) * 0.1s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-right.visible {
  transform: translateX(0);
}

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

/* --- Tablet landscape / small desktop --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-phone {
    height: 480px;
    justify-content: center;
  }

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

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 340px;
  }

  .step-connector {
    padding-top: 0;
    transform: rotate(90deg);
  }

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

  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 40px;
  }

  .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-buttons {
    justify-content: center;
  }

  .cta-phone {
    display: flex;
    justify-content: center;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* --- Tablet portrait / large phones --- */
@media (max-width: 768px) {
  /* Nav */
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-inner {
    height: 64px;
  }

  .mobile-menu.active {
    display: flex;
  }

  /* Sections - reduce padding */
  .features,
  .how-it-works,
  .screenshots,
  .testimonials,
  .cta {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .section-header p {
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

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

  .hero-phone {
    height: 420px;
  }

  .phone-hero .phone-frame {
    width: 220px;
    height: 450px;
    border-radius: 34px;
  }

  .phone-hero .phone-screen {
    border-radius: 26px;
  }

  .phone-hero .phone-notch {
    width: 86px;
    height: 24px;
  }

  .phone-hero-secondary {
    right: -10px;
    top: 40px;
    transform: scale(0.78) rotate(8deg);
    opacity: 0.6;
  }

  .phone-hero-secondary .phone-frame {
    width: 220px;
    height: 450px;
    border-radius: 34px;
  }

  .phone-hero-secondary .phone-screen {
    border-radius: 26px;
  }

  .phone-hero-secondary .phone-notch {
    width: 86px;
    height: 24px;
  }

  /* Hero stats - horizontal on tablet, still fits */
  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-suffix {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-divider {
    height: 32px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  /* How it works */
  .step-phone .phone-sm .phone-frame {
    width: 190px;
    height: 390px;
    border-radius: 30px;
  }

  .step-phone .phone-sm .phone-notch {
    width: 76px;
    height: 20px;
    border-radius: 0 0 12px 12px;
  }

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

  .step-number {
    font-size: 2.75rem;
  }

  /* Carousel - smaller phones */
  .carousel-track {
    gap: 20px;
  }

  .carousel-track .phone-frame {
    width: 200px;
    height: 410px;
    border-radius: 32px;
  }

  .carousel-track .phone-notch {
    width: 80px;
    height: 22px;
    border-radius: 0 0 14px 14px;
  }

  .carousel-track .phone-screen {
    border-radius: 24px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .testimonial-card {
    padding: 24px;
  }

  /* CTA */
  .cta-card {
    padding: 48px 28px;
    border-radius: var(--radius-lg);
  }

  .cta-phone .phone-frame {
    width: 200px;
    height: 410px;
    border-radius: 32px;
  }

  .cta-phone .phone-screen {
    border-radius: 24px;
  }

  .cta-phone .phone-notch {
    width: 80px;
    height: 22px;
  }

  /* Trusted */
  .trusted {
    padding: 36px 0;
  }

  .trusted-logos {
    gap: 20px 32px;
  }

  .trusted-logo {
    font-size: 0.9375rem;
  }

  /* Footer */
  .footer {
    padding: 60px 0 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 100%;
  }

  /* Background shapes - tone down on mobile */
  .shape-1 {
    width: 350px;
    height: 350px;
  }

  .shape-2 {
    width: 250px;
    height: 250px;
  }

  .shape-3 {
    width: 200px;
    height: 200px;
  }
}

/* --- Mobile phones --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.625rem;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.125rem;
  }

  /* Nav */
  .nav-inner {
    height: 56px;
  }

  .logo-img {
    height: 32px;
  }

  .logo-img-footer {
    height: 36px;
  }

  .mobile-menu {
    padding: 12px 16px 20px;
  }

  /* Hero */
  .hero {
    padding: 84px 0 48px;
  }

  .hero-grid {
    gap: 36px;
  }

  .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 24px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    margin-bottom: 36px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-phone {
    height: 340px;
  }

  .phone-hero .phone-frame {
    width: 190px;
    height: 390px;
    border-radius: 30px;
  }

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

  .phone-hero .phone-notch {
    width: 76px;
    height: 20px;
    border-radius: 0 0 12px 12px;
  }

  .phone-hero-secondary {
    right: 0px;
    top: 30px;
    transform: scale(0.75) rotate(8deg);
    opacity: 0.55;
  }

  .phone-hero-secondary .phone-frame {
    width: 190px;
    height: 390px;
    border-radius: 30px;
  }

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

  .phone-hero-secondary .phone-notch {
    width: 76px;
    height: 20px;
    border-radius: 0 0 12px 12px;
  }

  /* Hero stats - row layout with smaller text */
  .hero-stats {
    flex-direction: row;
    gap: 0;
    width: 100%;
    justify-content: space-between;
    padding: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
  }

  .stat {
    flex: 1;
    align-items: center;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-suffix {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.6875rem;
    text-align: center;
  }

  .stat-divider {
    width: 1px;
    height: 36px;
  }

  /* Trusted */
  .trusted {
    padding: 28px 0;
  }

  .trusted-label {
    font-size: 0.75rem;
    margin-bottom: 16px;
  }

  .trusted-logos {
    gap: 16px 24px;
  }

  .trusted-logo {
    font-size: 0.8125rem;
  }

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

  .section-header {
    margin-bottom: 36px;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 5px 12px;
    margin-bottom: 12px;
  }

  .section-header p {
    font-size: 0.9375rem;
  }

  .features-grid {
    gap: 12px;
  }

  .feature-card {
    padding: 24px 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin-bottom: 0;
  }

  .feature-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .feature-card p {
    font-size: 0.875rem;
  }

  /* How It Works */
  .how-it-works {
    padding: 64px 0;
  }

  .step-connector {
    display: none;
  }

  .steps-grid {
    gap: 40px;
  }

  .step {
    max-width: 100%;
    width: 100%;
  }

  .step-number {
    font-size: 2.25rem;
    margin-bottom: 16px;
  }

  .step-phone .phone-sm .phone-frame {
    width: 170px;
    height: 348px;
    border-radius: 28px;
  }

  .step-phone .phone-sm .phone-notch {
    width: 70px;
    height: 18px;
    border-radius: 0 0 10px 10px;
  }

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

  .step-phone {
    margin-bottom: 20px;
  }

  .step h3 {
    font-size: 1.0625rem;
    margin-bottom: 6px;
  }

  .step p {
    font-size: 0.875rem;
    max-width: 280px;
  }

  /* Screenshots carousel */
  .screenshots {
    padding: 64px 0;
  }

  .screenshots-carousel {
    padding: 12px 0 32px;
  }

  .carousel-track {
    gap: 16px;
  }

  .carousel-track .phone-frame {
    width: 160px;
    height: 328px;
    border-radius: 26px;
    padding: 6px;
  }

  .carousel-track .phone-notch {
    width: 64px;
    height: 18px;
    border-radius: 0 0 10px 10px;
    top: 6px;
  }

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

  .slide-label {
    font-size: 0.75rem;
  }

  /* Testimonials */
  .testimonials {
    padding: 64px 0;
  }

  .testimonials-grid {
    max-width: 100%;
    gap: 16px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-text {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }

  .testimonial-stars svg {
    width: 14px;
    height: 14px;
  }

  .author-avatar {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .author-name {
    font-size: 0.875rem;
  }

  .author-role {
    font-size: 0.75rem;
  }

  /* CTA */
  .cta {
    padding: 64px 0;
  }

  .cta-card {
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    gap: 40px;
  }

  .cta-content h2 {
    font-size: 1.625rem;
  }

  .cta-content p {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .store-btn {
    padding: 12px 20px;
    width: 100%;
    justify-content: center;
  }

  .store-btn-large {
    font-size: 0.9375rem;
  }

  .cta-phone .phone-frame {
    width: 180px;
    height: 370px;
    border-radius: 28px;
  }

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

  .cta-phone .phone-notch {
    width: 72px;
    height: 20px;
    border-radius: 0 0 10px 10px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-brand p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

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

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-col a:hover {
    transform: none;
  }

  .footer-bottom {
    padding-top: 24px;
  }

  .footer-bottom p {
    font-size: 0.8125rem;
  }

  /* Disable hover transforms on mobile for performance */
  .feature-card:hover,
  .testimonial-card:hover,
  .phone-frame:hover {
    transform: none;
  }

  /* Hide scroll indicator on mobile */
  .hero-scroll-indicator {
    display: none;
  }
}

/* --- Very small phones (iPhone SE, etc.) --- */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  .hero-phone {
    height: 300px;
  }

  .phone-hero .phone-frame {
    width: 170px;
    height: 348px;
    border-radius: 28px;
  }

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

  .phone-hero .phone-notch {
    width: 70px;
    height: 18px;
    border-radius: 0 0 10px 10px;
  }

  .phone-hero-secondary {
    right: 5px;
    top: 20px;
    transform: scale(0.72) rotate(8deg);
    opacity: 0.5;
  }

  .phone-hero-secondary .phone-frame {
    width: 170px;
    height: 348px;
    border-radius: 28px;
  }

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

  .phone-hero-secondary .phone-notch {
    width: 70px;
    height: 18px;
    border-radius: 0 0 10px 10px;
  }

  .hero-stats {
    padding: 16px 12px;
  }

  .stat-number,
  .stat-suffix {
    font-size: 1.125rem;
  }

  .stat-label {
    font-size: 0.625rem;
  }

  .cta-card {
    padding: 32px 16px;
  }

  .store-btn {
    padding: 10px 16px;
    gap: 10px;
  }

  .trusted-logos {
    gap: 12px 20px;
  }

  .trusted-logo {
    font-size: 0.75rem;
  }
}

/* --- Landscape phones --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 80px 0 40px;
    min-height: auto;
  }

  .hero-phone {
    height: 320px;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Touch device optimizations --- */
@media (hover: none) {
  .feature-card:hover,
  .testimonial-card:hover,
  .phone-frame:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }

  .feature-card:hover::before {
    transform: scaleX(0);
  }

  .nav-links a::after {
    display: none;
  }

  /* Ensure tap targets are at least 44px */
  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .social-links a {
    width: 44px;
    height: 44px;
  }

  .footer-col a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }
}
