/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #FAFAF8;
  --bg-dark: #0a0f0a;
  --white: #FFFFFF;
  --green: #0D6E3F;
  --green-bright: #15B861;
  --green-hover: #0B5C34;
  --text: #1A1A18;
  --text-secondary: #5C5A54;
  --text-light: #9B9990;
  --border: #E0DDD6;
  --radius: 16px;
  --max-w: 1080px;
}

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

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

/* ── Animations ──────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.site-nav.scrolled {
  background: rgba(10, 15, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo img {
  border-radius: 10px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--green-hover);
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(170deg, #0a2e16 0%, #0a0f0a 50%, #080808 100%);
  text-align: center;
  padding: 140px 0 0;
  overflow: hidden;
}

.hero h1 {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 24px;
  animation: float-up 0.8s ease both;
}

.hero-subtitle {
  font-size: 20px;
  color: #9B9990;
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.6;
  animation: float-up 0.8s ease 0.15s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: float-up 0.8s ease 0.3s both;
  margin-bottom: 64px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn:hover {
  text-decoration: none;
}

a.btn-primary,
.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 110, 63, 0.3);
}

.btn-large {
  height: 56px;
  padding: 0 40px;
  font-size: 17px;
  border-radius: 16px;
}

/* ── Phone Mockups ───────────────────────────────────────── */
.hero-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  animation: float-up 1s ease 0.45s both;
  padding-bottom: 20px;
  perspective: 1200px;
}

.hero-phone-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.hero-phone-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  transition: transform 0.4s ease;
}

.hero-phone-side:first-child {
  transform: perspective(1200px) rotateY(18deg) translateX(24px) translateZ(-40px) scale(0.88);
}

.hero-phone-side:last-child {
  transform: perspective(1200px) rotateY(-18deg) translateX(-24px) translateZ(-40px) scale(0.88);
}

.hero-phone-side:first-child:hover {
  transform: perspective(1200px) rotateY(12deg) translateX(24px) translateZ(-20px) scale(0.92);
}

.hero-phone-side:last-child:hover {
  transform: perspective(1200px) rotateY(-12deg) translateX(-24px) translateZ(-20px) scale(0.92);
}

.phone-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(13, 110, 63, 0.35) 0%, rgba(13, 110, 63, 0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

.phone-label {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phone-mockup {
  width: 270px;
  height: 550px;
  border-radius: 38px;
  border: 6px solid #2a2a2a;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  background: #000;
  flex-shrink: 0;
  z-index: 1;
}

.hero-phone-center .phone-mockup {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(13, 110, 63, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.phone-mockup.phone-sm {
  width: 240px;
  height: 490px;
  border-radius: 34px;
  border-width: 5px;
  opacity: 0.9;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #2a2a2a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-mockup.phone-sm::before {
  width: 84px;
  height: 20px;
  border-radius: 0 0 13px 13px;
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Carousel ────────────────────────────────────────────── */
.phone-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
  background: var(--green-bright);
  transform: scale(1.3);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ── Store Badges ────────────────────────────────────────── */
.store-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  text-decoration: none;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 48px;
}

.store-badge img {
  width: 148px;
  height: 48px;
  object-fit: fill;
}

.store-badge[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Features ────────────────────────────────────────────── */
.features {
  padding: 100px 0;
  background: var(--bg);
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 56px;
  color: var(--text);
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

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

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

/* ── How It Works ────────────────────────────────────────── */
.how-it-works {
  padding: 100px 0;
  background: var(--white);
}

.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.step-number {
  flex-shrink: 0;
  font-size: 48px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0.7;
  min-width: 64px;
}

.step-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Numbers ─────────────────────────────────────────────── */
.numbers {
  padding: 100px 0;
  background: linear-gradient(170deg, #0a2e16 0%, #0a0f0a 60%, #080808 100%);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.number-item {
  padding: 16px;
}

.number-value {
  display: block;
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.number-label {
  display: block;
  font-size: 16px;
  color: #7a7a72;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ── Download CTA ────────────────────────────────────────── */
.download-cta {
  text-align: center;
  padding: 100px 0;
  background: var(--bg);
}

.download-cta h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.download-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Mobile: show store buttons, hide QR/desktop section */
.download-mobile { display: flex; }
.download-desktop { display: none; }

/* Desktop (>768px): hide mobile buttons, show QR + links */
@media (min-width: 769px) {
  .download-mobile { display: none; }
  .download-desktop { display: block; text-align: center; }
}

.download-hint {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 12px;
}

.qr-box {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.qr-card img {
  border-radius: 8px;
}

.qr-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

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

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.footer-brand img {
  border-radius: 8px;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.footer-meta a:hover {
  color: var(--green);
}

.copyright {
  font-size: 14px;
  color: var(--text-light);
}

/* ── Legal Nav (light variant) ───────────────────────────── */
.site-nav--light {
  position: static;
  background: var(--bg);
  padding: 20px 24px;
}

.nav-logo--dark {
  color: var(--text);
}

.nav-logo--dark:hover {
  text-decoration: none;
}

/* ── Legal Hero ─────────────────────────────────────────── */
.legal-hero {
  background: linear-gradient(170deg, #0a2e16 0%, #0a0f0a 100%);
  padding: 64px 0;
  text-align: center;
}

.legal-hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 12px;
}

.legal-hero-date {
  font-size: 16px;
  color: #9B9990;
}

/* ── Legal Pages ─────────────────────────────────────────── */
.legal {
  padding: 56px 0 80px;
}

.legal > .container {
  max-width: 720px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

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

.legal ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal li {
  margin-bottom: 8px;
}

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

.legal a.btn-primary {
  color: var(--white);
}

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

/* ── Support Page ───────────────────────────────────────── */
.legal--support > .container {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.support-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
}

.support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(13, 110, 63, 0.08);
  border-radius: 16px;
  color: var(--green);
  margin-bottom: 20px;
}

.support-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  padding: 0;
  border: none;
  color: var(--text);
}

.support-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.support-card .btn {
  margin-bottom: 0;
}

.support-response {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 16px;
  margin-bottom: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 0;
  }

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

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-phones {
    gap: 0;
  }

  .hero-phone-side {
    display: none;
  }

  .phone-mockup {
    width: 250px;
    height: 510px;
    border-radius: 34px;
  }

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

  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .features {
    padding: 72px 0;
  }

  .how-it-works {
    padding: 72px 0;
  }

  .numbers {
    padding: 72px 0;
  }

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

  .number-value {
    font-size: 40px;
  }

  .download-cta {
    padding: 72px 0;
  }

  .download-cta h2 {
    font-size: 32px;
  }

  .hero-actions .store-badge img {
    width: 148px;
    height: 48px;
    object-fit: fill;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-actions {
    flex-direction: column;
    margin-bottom: 48px;
  }

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

  .step {
    gap: 20px;
  }

  .step-number {
    font-size: 36px;
    min-width: 48px;
  }

  .step-content h3 {
    font-size: 18px;
  }

  .number-value {
    font-size: 32px;
  }

  .legal-hero h1 {
    font-size: 32px;
  }

  .legal-hero {
    padding: 48px 0;
  }

  .support-card {
    padding: 32px 24px;
  }
}
