:root {
  --bg: #F5F7FB;
  --primary: #1847B0;
  --primary-hover: #2F80ED;
  --text: #0F172A;
  --muted: #64748B;
  --card-border: #E8EDF5;
  --success: #34C759;
  --warning: #F59E0B;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 48px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
img { display: block; max-width: 100%; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 980px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.18s;
}
.nav-cta svg { flex-shrink: 0; width: 15px; height: 15px; }
.nav-cta:hover { background: #1a1a1a; transform: scale(1.02); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 45fr 55fr;
  align-items: center;
  gap: 48px;
  width: min(1160px, calc(100% - 48px));
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 80px 0 96px;
}

.hero-copy h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}
.accent { color: var(--primary); }

.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 16px;
  background: rgba(24, 71, 176, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 16px rgba(24, 71, 176, 0.18), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: background 0.18s, transform 0.18s;
}
.btn-primary:hover { background: rgba(47, 128, 237, 0.88); transform: scale(1.02); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 16px;
  border: 1.5px solid var(--card-border);
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  transition: border-color 0.18s, transform 0.18s;
}
.btn-secondary:hover { border-color: var(--primary); transform: scale(1.02); }

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.privacy-note svg { flex-shrink: 0; margin-top: 1px; }
.privacy-note strong { color: var(--text); }

/* ── Hero Phones ── */
.hero-phones {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 580px;
}

.phone {
  position: absolute;
  bottom: 0;
}

.phone-frame {
  border-radius: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(15,23,42,0.08);
  background: #000;
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-center {
  z-index: 3;
  transform: translateY(0);
}
.phone-center .phone-frame {
  width: 220px;
  height: 460px;
}

.phone-left {
  z-index: 2;
  left: 50%;
  transform: translateX(calc(-50% - 130px)) translateY(40px);
}
.phone-left .phone-frame {
  width: 200px;
  height: 420px;
  opacity: 0.95;
}

.phone-right {
  z-index: 2;
  left: 50%;
  transform: translateX(calc(-50% + 130px)) translateY(40px);
}
.phone-right .phone-frame {
  width: 200px;
  height: 420px;
  opacity: 0.95;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.phone-center { animation: float 6s ease-in-out infinite; }

/* ── Sections ── */
.section {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 48px;
  max-width: 600px;
}

/* ── Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #F0F4FF;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.feature-screenshot {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg);
}
.feature-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.feature-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.15s;
}
.feature-link:hover { color: var(--primary-hover); }

/* ── How It Works ── */
.how-section {
  background: var(--white);
  width: 100%;
  max-width: 100%;
  padding: 96px max(24px, calc((100vw - 1160px) / 2));
}

.how-section .section-title {
  margin-left: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0 16px;
}

.step-card {
  padding: 28px 24px 24px;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: var(--bg);
}

.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
}
.step-num--green { background: var(--success); }

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.step-screenshot {
  width: 100%;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-border);
}
.step-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 48px;
}

/* ── Privacy Section ── */
.privacy-section {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.privacy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 40px 48px;
  border-radius: 24px;
  background: #F0F5FF;
  border: 1px solid #D4E0F7;
}

.privacy-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}

.shield-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(24, 71, 176, 0.1);
}

.privacy-left h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.privacy-left p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 360px;
}

.privacy-badges {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.badge span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* ── Content Pages (Privacy, Terms, Support) ── */
.content-page {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.page-hero {
  margin-bottom: 40px;
}
.page-hero .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}
.page-hero p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.policy-stack {
  display: grid;
  gap: 16px;
}

.policy-panel {
  padding: 28px 32px;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: var(--white);
}
.policy-panel h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.policy-panel p,
.policy-panel li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.policy-panel ul {
  margin: 0;
  padding-left: 20px;
}
.policy-panel a { color: var(--primary); }
.policy-panel p:last-child,
.policy-panel ul:last-child { margin-bottom: 0; }

.region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.region-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(22, 50, 92, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.region-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 122, 255, 0.32);
  box-shadow: 0 24px 58px rgba(22, 50, 92, 0.12);
}

.region-label {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.region-card h2 {
  margin: 18px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.region-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.region-link {
  margin-top: auto;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

/* Support page */
.support-cards {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.support-card {
  padding: 28px 32px;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: var(--white);
}
.support-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.support-card p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}
.support-card a.btn-primary {
  display: inline-flex;
  font-size: 14px;
  padding: 11px 22px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--card-border);
  background: var(--white);
  padding: 40px max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer-links a:hover { color: var(--primary); }

.footer-copy {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.footer-copy a,
.site-footer p a {
  color: inherit;
}

.footer-copy a:hover,
.site-footer p a:hover {
  color: var(--primary);
}

/* ── Scroll fade-up ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.feature-card, .step-card {
  animation: fadeUp 0.5s ease both;
}
.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-phones { height: 480px; }
  .phone-center .phone-frame { width: 190px; height: 400px; }
  .phone-left .phone-frame,
  .phone-right .phone-frame { width: 170px; height: 360px; }
  .phone-left { transform: translateX(calc(-50% - 110px)) translateY(40px); }
  .phone-right { transform: translateX(calc(-50% + 110px)) translateY(40px); }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .nav-links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 60px 0 72px;
    gap: 48px;
  }
  .hero-sub { max-width: 100%; }

  .hero-phones {
    height: 420px;
  }
  .phone-center .phone-frame { width: 170px; height: 360px; }
  .phone-left .phone-frame,
  .phone-right .phone-frame { width: 152px; height: 320px; }
  .phone-left { transform: translateX(calc(-50% - 96px)) translateY(40px); }
  .phone-right { transform: translateX(calc(-50% + 96px)) translateY(40px); }

  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step-arrow { display: none; }

  .privacy-inner {
    flex-direction: column;
    padding: 32px;
  }
  .privacy-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero-phones {
    height: 360px;
  }
  .phone-center .phone-frame { width: 148px; height: 312px; }
  .phone-left .phone-frame,
  .phone-right .phone-frame { width: 132px; height: 280px; }
  .phone-left { transform: translateX(calc(-50% - 84px)) translateY(32px); }
  .phone-right { transform: translateX(calc(-50% + 84px)) translateY(32px); }

  .step-screenshot { height: 240px; }

  .how-section { padding: 64px 24px; }

  .privacy-inner { padding: 24px 20px; }
  .privacy-badges { gap: 16px; }
  .badge span { font-size: 11px; }

  .section-title { font-size: 26px; }

  .content-page { padding: 48px 0 72px; }
  .region-grid { grid-template-columns: 1fr; }
  .region-card {
    min-height: 190px;
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .footer-copy { font-size: 12px; }
}
