/* ==========================================================
   BabyNest — Landing Page Styles
   Palette mirrors the bot's letterhead: navy + teal accent.
   ========================================================== */

:root {
  --navy-900: #0b1626;
  --navy-800: #12233a;
  --navy-700: #1c3452;
  --teal: #18d0c0;
  --teal-dark: #0fa394;
  --teal-soft: rgba(24, 208, 192, 0.12);
  --gold: #f5b301;
  --ink: #1f2a3d;
  --muted: #5a6472;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --line: #e5ebf3;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 22, 38, 0.08);
  --shadow-lg: 0 22px 60px rgba(11, 22, 38, 0.16);
  --grad: linear-gradient(120deg, #18d0c0 0%, #3fa7f0 100%);
}

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

html { scroll-behavior: smooth; }

section[id], footer[id], header[id] { scroll-margin-top: 80px; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #06262a;
  box-shadow: 0 10px 24px rgba(24, 208, 192, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 208, 192, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-xl { padding: 17px 36px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(11, 22, 38, 0.18);
}
.brand-name { font-size: 20px; color: var(--navy-900); }
.brand-name span { color: var(--teal-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--teal-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(24, 208, 192, 0.16), transparent 60%),
    radial-gradient(700px 420px at 95% 8%, rgba(63, 167, 240, 0.14), transparent 60%),
    linear-gradient(180deg, #f6fafc 0%, #ffffff 100%);
  padding: 72px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-content { position: relative; z-index: 2; }

.badge {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 18px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.phone-mockup {
  width: min(350px, 100%);
  height: 660px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-screen {
  flex: 1;
  border-radius: 30px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.14);
  background: #eef2f6;
}
.phone-notch {
  width: 90px;
  height: 20px;
  margin: 0 auto 10px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
}
.hero-caption {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  max-width: 300px;
}

/* ---------- Telegram chat mockup ---------- */
.tg-chat {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* Header */
.tg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #eef2f6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.tg-back { font-size: 22px; color: #4a6b8a; line-height: 1; }
.tg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.tg-title { display: flex; flex-direction: column; line-height: 1.15; flex: 1; }
.tg-name { font-weight: 700; font-size: 14px; color: #1c2733; }
.tg-status { font-size: 10.5px; color: #5b7a99; }
.tg-more { font-size: 18px; color: #4a6b8a; }

/* Chat body */
.tg-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 8px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.55) 0 2px, transparent 2.5px),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.45) 0 2px, transparent 2.5px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.5) 0 2px, transparent 2.5px),
    linear-gradient(180deg, #d9e6ef 0%, #c9d8e4 100%);
  background-size: 90px 90px, 110px 110px, 130px 130px, 100% 100%;
}
.tg-date {
  margin: 0 auto 10px;
  width: fit-content;
  background: rgba(255, 255, 255, 0.92);
  color: #6b7c8a;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.tg-bubble {
  position: relative;
  max-width: 82%;
  width: fit-content;
  background: #fff;
  border-radius: 12px 12px 12px 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  padding: 8px 11px 16px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #1c2733;
  line-height: 1.5;
}
.tg-bubble.bot { margin-right: auto; }
.tg-bubble p { margin: 0 0 4px; }
.tg-bubble p:last-of-type { margin-bottom: 0; }
.tg-time {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-size: 9px;
  color: #93a5b5;
}

/* Reply keyboard (Telegram-style buttons) */
.tg-keyboard {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.tg-keyboard button {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  color: #2a5885;
  background: #eef4fa;
  border: 1px solid rgba(42, 88, 133, 0.18);
  border-radius: 10px;
  padding: 8px 4px;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.tg-keyboard button:hover { background: #ddeaf6; }
.tg-keyboard button:active { transform: scale(0.97); }
.tg-keyboard .tg-wide { grid-column: span 2; }

/* Input bar */
.tg-input {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.tg-ico { font-size: 15px; color: #4a6b8a; }
.tg-ph {
  flex: 1;
  background: #eef2f6;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  color: #8a99a8;
}
.tg-send {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: #50b5ec;
  color: #fff;
  font-size: 13px;
  border-radius: 50%;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  padding: 26px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy-900);
}
.stat-num::after { content: ""; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--soft); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; color: var(--navy-900); margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 16px; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-ico {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 27px;
  border-radius: 14px;
  background: var(--teal-soft);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; color: var(--navy-900); margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.step {
  text-align: center;
  padding: 34px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: #06262a;
  border-radius: 50%;
  background: var(--grad);
}
.step h3 { color: var(--navy-900); margin-bottom: 8px; font-size: 18px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 330px));
  gap: 26px;
  justify-content: center;
}
.price-card {
  padding: 34px 30px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  position: relative;
}
.price-featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-lg);
}
.price-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #06262a;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
}
.price-plan { font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.price-amount { font-size: 54px; font-weight: 800; color: var(--navy-900); margin: 6px 0 2px; }
.price-amount .currency { font-size: 28px; vertical-align: 22px; }
.price-period { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.price-feats { margin-bottom: 24px; }
.price-feats li {
  text-align: left;
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}
.pricing-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 22px; }

/* ---------- Security ---------- */
.security-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.security-head { text-align: left; margin: 0; }
.security-points { display: grid; gap: 18px; }
.security-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sec-ico {
  font-size: 26px;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  border-radius: 12px;
}
.security-point h3 { font-size: 16px; color: var(--navy-900); margin-bottom: 4px; }
.security-point p { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: none;
  border: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
  text-align: left;
}
.faq-arrow {
  font-size: 22px;
  color: var(--teal-dark);
  transition: transform 0.25s ease;
  font-weight: 600;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- Notify / Early Access ---------- */
.notify { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); }
.notify .section-tag { color: var(--teal); }
.notify .section-title { color: #fff; }
.notify .section-sub { color: rgba(255, 255, 255, 0.78); }
.notify-card {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}
.notify-card input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  margin-bottom: 12px;
  outline: none;
  font-size: 15px;
}
.notify-card input::placeholder { color: rgba(255, 255, 255, 0.5); }
.notify-card input:focus { border-color: var(--teal); }
.notify-note { text-align: center; color: rgba(255, 255, 255, 0.55); font-size: 13px; margin-top: 14px; }
.notify-success {
  margin-top: 16px;
  text-align: center;
  color: #7fffd8;
  font-weight: 600;
  padding: 14px;
  border: 1px solid rgba(127, 255, 216, 0.4);
  border-radius: 12px;
}

/* ---------- CTA ---------- */
.cta { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); }
.cta-card { text-align: center; padding: 40px 0; }
.cta-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-sub { color: rgba(255, 255, 255, 0.78); font-size: 17px; margin-bottom: 28px; }
.cta-hint { margin-top: 16px; color: rgba(255, 255, 255, 0.55); font-size: 13.5px; }
.cta-link { color: var(--teal); font-weight: 700; }
.cta-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.75); padding: 54px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 34px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Scroll progress & back-to-top ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 300;
  box-shadow: 0 0 10px rgba(24, 208, 192, 0.5);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--grad);
  color: #06262a;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(24, 208, 192, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 150;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Floating WhatsApp / Call buttons ---------- */
.float-actions {
  position: fixed;
  right: 20px;
  bottom: 86px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.float-btn:hover { transform: translateY(-3px) scale(1.06); }
.float-tg { background: #229ed9; }
.float-wa { background: #25d366; }
.float-call { background: var(--teal); }
.float-call:hover { background: var(--teal-dark); }

/* ---------- Nav active link (scrollspy) ---------- */
.nav-links a.active:not(.btn) { color: var(--teal-dark); }

/* ---------- Hero animated blobs ---------- */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-grid { position: relative; z-index: 1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.blob-1 {
  width: 320px; height: 320px;
  background: rgba(24, 208, 192, 0.5);
  top: -70px; left: -50px;
  animation: blobmove 14s ease-in-out infinite;
}
.blob-2 {
  width: 280px; height: 280px;
  background: rgba(63, 167, 240, 0.5);
  bottom: -40px; right: -60px;
  animation: blobmove 18s ease-in-out infinite reverse;
}
.blob-3 {
  width: 210px; height: 210px;
  background: rgba(245, 179, 1, 0.35);
  top: 42%; left: 62%;
  animation: blobmove 20s ease-in-out infinite;
}
@keyframes blobmove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(34px, -24px) scale(1.1); }
  66%      { transform: translate(-22px, 22px) scale(0.94); }
}

/* ---------- Phone float ---------- */
@keyframes floaty {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-16px); }
}
.phone-mockup { animation: floaty 6s ease-in-out infinite; }

/* ---------- Telegram typing indicator ---------- */
.tg-typing { display: flex; align-items: center; gap: 5px; padding: 12px 14px; }
.tg-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #8a99a8;
  animation: dotblink 1.2s ease-in-out infinite;
}
.tg-dot:nth-child(2) { animation-delay: 0.2s; }
.tg-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotblink {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30%           { opacity: 1; transform: translateY(-2px); }
}

/* ---------- Button shimmer ---------- */
.btn-primary {
  background: linear-gradient(120deg, #18d0c0, #3fa7f0, #18d0c0);
  background-size: 200% 100%;
  animation: shimmer 6s ease infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- Feature icon hover ---------- */
.feature-card:hover .feature-ico { animation: wiggle 0.5s ease; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-8deg) scale(1.08); }
  75%      { transform: rotate(8deg) scale(1.08); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .security-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 20px;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.28s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { text-align: center; }
  .nav-cta { margin-top: 8px; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .security-head { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding-top: 44px; }
  .phone-mockup { height: 600px; width: min(340px, 94%); }
}
