@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  --primary:       #4DB748;
  --primary-dark:  #3A9138;
  --primary-ink:   #347C31;
  --primary-light: #EBF7E9;
  --dark:          #3D5166;
  --text:          #1C2B3A;
  --text-muted:    #637182;
  --bg:            #FFFFFF;
  --bg-alt:        #F5FAF4;
  --border:        #E2EDE0;
  --white:         #FFFFFF;
  --star:          #F5A623;
  --radius:        14px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(61,81,102,0.10);
  --shadow-md:     0 8px 40px rgba(61,81,102,0.14);
  --transition:    0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--dark); }
h3 { font-size: 1rem; }

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--primary-ink); color: var(--white);
  padding: 8px 16px; z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none; font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo img { height: 42px; width: auto; display: block; }

.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--text);
  font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary-ink); }

.nav-links a.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 40px;
  background: var(--primary-ink); color: var(--white);
  padding: 0.5rem 1.25rem; border-radius: 50px;
  font-size: 0.875rem; font-weight: 600;
  transition: background var(--transition);
}
.nav-links a.nav-cta:hover { background: var(--text); color: var(--white); }

.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
}

section { padding: 88px 5%; }
.container { max-width: 1100px; margin: 0 auto; }

#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 70px;
  background: var(--bg);
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.hero-content { padding: 2rem 0; }
.hero-content h1 { color: var(--text); margin-bottom: 1.1rem; }
.hero-content h1 span { color: var(--primary-dark); }
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 2.25rem; max-width: 480px; line-height: 1.75;
}

.app-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.app-badge {
  display: inline-flex; align-items: center; gap: 0.65rem;
  background: var(--text); color: var(--white);
  text-decoration: none; padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.app-badge:hover { background: var(--dark); }
.app-badge svg { flex-shrink: 0; }
.app-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.app-badge-text small { font-size: 0.65rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.06em; }
.app-badge-text strong { font-size: 0.95rem; font-weight: 600; }

.hero-facts { font-size: 0.875rem; color: var(--text-muted); }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual img {
  max-width: 360px; width: 100%;
  filter: drop-shadow(0 24px 48px rgba(61,145,56,0.18));
}

#features { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0.75rem auto 0; line-height: 1.7; }

.feature-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: 2.5rem; list-style: none;
}
.feature-list li { border-top: 1px solid var(--border); padding: 1.25rem 0 1.75rem; }
.feature-list h3 { margin-bottom: 0.4rem; color: var(--dark); font-size: 1.05rem; }
.feature-list p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

#video { background: var(--dark); color: var(--white); text-align: center; }
#video h2 { color: var(--white); margin-bottom: 0.75rem; }
#video .section-header p { color: rgba(255,255,255,0.8); }

.video-wrapper {
  position: relative; max-width: 860px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.video-wrapper video { width: 100%; display: block; }

#screenshots { background: var(--bg); }
.screenshots-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 680px; margin: 0 auto;
}
.screenshot-item {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.screenshot-item img { width: 100%; display: block; }

#testimonials { background: var(--bg-alt); }

.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid var(--border);
}
.testimonial-rating { color: var(--star); font-size: 0.875rem; margin-bottom: 0.6rem; }
.testimonial-text {
  font-size: 0.95rem; color: var(--text); font-style: italic;
  margin-bottom: 0.9rem; line-height: 1.65;
}
.testimonial-author { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

#team { background: var(--bg); }
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem; max-width: 640px; margin: 0 auto;
}
.team-card {
  text-align: center; background: var(--bg-alt);
  border-radius: var(--radius); padding: 2.25rem 1.75rem;
  border: 1px solid var(--border);
}
.team-avatar {
  width: 260px; max-width: 100%; aspect-ratio: 1; border-radius: 50%;
  overflow: hidden; margin: 0 auto 1.25rem;
  border: 3px solid var(--primary-light);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--dark); }
.team-card .role { font-size: 0.8rem; color: var(--primary-ink); font-weight: 600; margin-bottom: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.team-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

#cta { background: var(--primary-light); text-align: center; }
#cta h2 { margin-bottom: 0.75rem; }
#cta p { color: var(--text-muted); max-width: 500px; margin: 0 auto 2rem; font-size: 1.05rem; line-height: 1.7; }
#cta .app-badges { justify-content: center; margin-bottom: 0; }

footer {
  background: var(--text); color: rgba(255,255,255,0.65);
  padding: 2rem 5%;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.footer-logo { display: inline-block; flex-shrink: 0; }
.footer-logo img { height: 32px; display: block; width: auto; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.75rem; }

.legal-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 64px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.legal-nav .nav-logo img { height: 32px; }
.nav-back {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px;
  text-decoration: none; color: var(--text-muted); font-size: 0.875rem;
  font-weight: 500; transition: color var(--transition);
}
.nav-back:hover { color: var(--primary-ink); }

.legal { line-height: 1.7; }
.legal main { max-width: 760px; margin: 0 auto; padding: 60px 5% 80px; }
.legal main h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--dark); margin-bottom: 0.5rem; hyphens: auto; -webkit-hyphens: auto; }
.legal main h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.legal .meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.legal main p { color: var(--text-muted); margin-bottom: 1rem; }
.legal main a { color: var(--primary-ink); text-decoration: none; }
.legal main a:hover { text-decoration: underline; }
.legal main ul { margin: 0 0 1rem 1.5rem; color: var(--text-muted); }
.legal main li { margin-bottom: 0.4rem; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .app-badges { justify-content: center; }
  .hero-visual { order: 1; }
  .hero-visual img { max-width: 260px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem 5%; border-bottom: 1px solid var(--border);
    gap: 1.25rem; align-items: flex-start;
    box-shadow: var(--shadow-md);
  }
}

@media (max-width: 560px) {
  section { padding: 64px 5%; }
  .screenshots-grid { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .screenshots-grid .screenshot-item:last-child { display: none; }
  .footer-inner { flex-direction: column; text-align: center; gap: 1.25rem; }
  .footer-right { align-items: center; }
  .footer-links { justify-content: center; }
}

:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

html { scrollbar-color: var(--primary) var(--bg-alt); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
