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

:root {
  --green-light: #E1F5EE;
  --green-medium: #9FE1CB;
  --green-primary: #1D9E75;
  --green-dark: #085041;
  --green-text: #0F6E56;
  --white: #FFFFFF;
  --gray-50: #F8FAF9;
  --gray-100: #F1F5F3;
  --gray-200: #E2E8E5;
  --gray-500: #6B7B74;
  --gray-700: #374840;
  --gray-900: #1A2420;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(8, 80, 65, 0.08);
  --shadow-md: 0 4px 16px rgba(8, 80, 65, 0.10);
  --shadow-lg: 0 8px 32px rgba(8, 80, 65, 0.12);
  --shadow-xl: 0 16px 48px rgba(8, 80, 65, 0.16);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--green-dark);
}

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

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

/* ── Nav ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(29, 158, 117, 0.08);
  transition: box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  color: var(--gray-900);
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--gray-500);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--green-primary);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--green-primary);
  color: var(--white) !important;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: var(--green-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(165deg, var(--green-light) 0%, var(--white) 50%, var(--green-light) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 225, 203, 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 158, 117, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}
.hero-content {
  flex: 1;
  max-width: 520px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--green-light);
  color: var(--green-text);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid var(--green-medium);
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary svg {
  width: 20px;
  height: 20px;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--white);
  color: var(--green-primary);
  border: 1.5px solid var(--green-medium);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover {
  background: var(--green-light);
  border-color: var(--green-primary);
  color: var(--green-primary);
  transform: translateY(-2px);
}

/* Hero phone mockup */
.hero-visual {
  flex: 0 0 auto;
  position: relative;
}
.phone-mockup {
  width: 280px;
  background: var(--gray-900);
  border-radius: 36px;
  padding: 6px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}
.phone-screen {
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}
.phone-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}

/* ── Features ─────────────────────────────────────── */
.features {
  padding: 120px 0;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-primary);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.7;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-medium);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── Screenshots ──────────────────────────────────── */
.screenshots {
  padding: 120px 0;
  background: var(--gray-50);
  overflow: hidden;
}
.screenshots-track {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}
.screenshot-frame {
  width: 240px;
  flex-shrink: 0;
  background: var(--gray-900);
  border-radius: 36px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
}
.screenshot-frame:hover {
  transform: scale(1.03);
}
.screenshot-inner {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}
.screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}

.screenshot-caption {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-200);
  margin-top: 16px;
}

/* ── CTA Section ──────────────────────────────────── */
.cta-section {
  padding: 120px 0;
  text-align: center;
}
.cta-card {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0A3D30 100%);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 158, 117, 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.cta-card::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 225, 203, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-card > * {
  position: relative;
  z-index: 1;
}
.cta-card h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-card p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--white);
  color: var(--green-dark);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--gray-200);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.footer-brand span {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-700);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  color: var(--gray-500);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--green-primary);
}
.footer-copy {
  font-size: 13px;
  color: var(--gray-500);
}

/* ── Legal Pages ──────────────────────────────────── */
.legal-page {
  padding: 120px 0 80px;
  background: var(--gray-50);
  min-height: 100vh;
}
.legal-header {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 0 24px;
}
.legal-header h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.legal-header .last-updated {
  font-size: 14px;
  color: var(--gray-500);
}
.legal-cards {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.legal-card h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.legal-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 20px 0 8px;
}
.legal-card h3:first-child {
  margin-top: 0;
}
.legal-card p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-card p:last-child {
  margin-bottom: 0;
}
.legal-card ul, .legal-card ol {
  margin: 0 0 12px 20px;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.8;
}
.legal-card ul:last-child, .legal-card ol:last-child {
  margin-bottom: 0;
}
.legal-card li {
  margin-bottom: 4px;
}
.legal-card a {
  color: var(--green-primary);
  text-decoration: underline;
  text-decoration-color: var(--green-medium);
  text-underline-offset: 2px;
}
.legal-card-contact {
  text-align: center;
}
.legal-card-contact a {
  font-weight: 600;
  font-size: 16px;
}

@media (max-width: 680px) {
  .legal-card {
    padding: 20px;
  }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 960px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero h1 {
    font-size: 40px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshots-track {
    gap: 16px;
  }
  .screenshot-frame {
    width: 200px;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .nav-toggle {
    display: block;
  }
  .hero {
    padding: 120px 0 64px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
  }
  .phone-mockup {
    width: 220px;
    border-radius: 30px;
    padding: 5px;
  }
  .phone-screen {
    border-radius: 26px;
  }
  .phone-screenshot {
    border-radius: 26px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .screenshots-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 24px 16px;
    -webkit-overflow-scrolling: touch;
  }
  .screenshot-frame {
    scroll-snap-align: center;
    width: 200px;
    flex-shrink: 0;
  }
  .cta-card {
    padding: 56px 24px;
  }
  .cta-card h2 {
    font-size: 28px;
  }
  .footer .container {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}
