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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0F172A;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===== Typography ===== */
h1 { font-size: 3.25rem; font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.35; }

/* ===== Layout ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: 64px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F172A;
}

.navbar-logo {
  border-radius: 8px;
}

.navbar-brand-text span {
  color: #94A3B8;
  font-weight: 600;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748B;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: #0F172A;
}

.navbar-links a.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.navbar-links a.navbar-cta:hover {
  background: #1E293B;
  color: #FFFFFF;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0F172A;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  padding-top: 10rem;
  padding-bottom: 4rem;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 60%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #F1F5F9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
  border: 1px solid #E2E8F0;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22C55E;
  border-radius: 50%;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #64748B;
  margin-bottom: 2.25rem;
  line-height: 1.7;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: #0F172A;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #E2E8F0;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
}

/* Hero phone mockups */
.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  position: relative;
}

.hero-phones .phone {
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  background: #FFF;
}

.hero-phones .phone img {
  display: block;
  width: 100%;
}

.hero-phones .phone-main {
  width: 260px;
  z-index: 2;
}

.hero-phones .phone-side {
  width: 220px;
  transform: translateY(30px);
  opacity: 0.85;
}

/* ===== Social Proof ===== */
.social-proof {
  padding: 3rem 0;
  background: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
}

.social-proof .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.proof-item {
  text-align: center;
}

.proof-item .number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.proof-item .label {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 500;
  margin-top: 0.15rem;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: #E2E8F0;
}

/* ===== Features ===== */
.features {
  background: #F8FAFC;
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.section-header .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: #64748B;
  font-size: 1.05rem;
}

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

.feature-card {
  background: #FFFFFF;
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: #4F46E5;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: #0F172A;
}

.feature-card p {
  color: #64748B;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== Screenshots Gallery ===== */
.screenshots {
  background: #FFFFFF;
}

.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.screenshot-card {
  text-align: center;
  transition: transform 0.3s;
}

.screenshot-card:hover {
  transform: translateY(-4px);
}

.screenshot-card img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.screenshot-card .label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

/* Second row — wider cards */
.screenshots-row-wide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* ===== How it works ===== */
.how-it-works {
  background: #F8FAFC;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step-card {
  text-align: center;
  counter-increment: step;
}

.step-number {
  width: 48px;
  height: 48px;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  color: #64748B;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta p {
  color: #94A3B8;
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
  position: relative;
}

.cta .hero-buttons {
  justify-content: center;
  position: relative;
}

.cta .btn-primary {
  background: #FFFFFF;
  color: #0F172A;
}

.cta .btn-primary:hover {
  background: #F1F5F9;
}

.cta .btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===== Footer ===== */
.footer {
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #F1F5F9;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A;
}

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

.footer-brand span span {
  color: #94A3B8;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-nav a {
  color: #64748B;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #0F172A;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy {
  color: #94A3B8;
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal a {
  color: #94A3B8;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #64748B;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.legal-page h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.legal-page .legal-updated {
  color: #9CA3AF;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-page h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page ul,
.legal-page li {
  color: #4B5563;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.legal-page li {
  margin-bottom: 0.35rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.legal-back:hover {
  color: #0F172A;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }

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

  .screenshots-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .screenshots-row-wide {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-phones .phone-main { width: 220px; }
  .hero-phones .phone-side { width: 180px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  section { padding: 4rem 0; }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .navbar-links.open {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .navbar-cta {
    display: none;
  }

  .hero {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

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

  .hero-phones .phone-main { width: 200px; }
  .hero-phones .phone-side { display: none; }

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

  .screenshots-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .screenshots-row-wide {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .social-proof .container {
    gap: 1.5rem;
  }

  .proof-divider {
    display: none;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

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

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-secondary {
    justify-content: center;
  }

  .screenshots-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .screenshots-row-wide {
    grid-template-columns: 1fr;
  }

  .screenshot-card img {
    border-radius: 14px;
  }
}
