:root {
  --primary: #56b1fc;
  --primary-dark: #3a9ae8;
  --primary-light: #e8f4fe;
  --white: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border: #e5e7eb;
  --surface: #f4f7fb;
  --error: #ef4444;
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 30px rgba(86, 177, 252, 0.12);
  --shadow-lg: 0 20px 60px rgba(86, 177, 252, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

/* ── Navigation ── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(86, 177, 252, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(86, 177, 252, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
  border-radius: 14px;
}

/* ── Hero ── */

.hero {
  padding: calc(var(--nav-height) + 48px) 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(86, 177, 252, 0.18), transparent),
    linear-gradient(180deg, var(--primary-light) 0%, var(--white) 55%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.65;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: min(100%, 320px);
  background: var(--white);
  border-radius: 32px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.phone-screen {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--white);
}

.phone-screen img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.phone-screen h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.phone-screen p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.4;
}

.floating-card {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-card.top {
  top: 8%;
  right: -4%;
}

.floating-card.bottom {
  bottom: 12%;
  left: -6%;
}

.floating-card .icon {
  font-size: 1.2rem;
}

/* ── Sections ── */

section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 800;
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.features {
  background: var(--surface);
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  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;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── How it works ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(86, 177, 252, 0.35);
}

.step-arrow {
  display: none;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Animals strip ── */

.animals-strip {
  background: var(--white);
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.animal-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.animal-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.animal-pill span {
  font-size: 1.2rem;
}

/* ── CTA band ── */

.cta-band {
  padding: 88px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 auto 32px;
  max-width: 520px;
  opacity: 0.92;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.cta-band .btn-primary:hover {
  background: var(--primary-light);
}

.cta-note {
  margin-top: 18px !important;
  font-size: 0.85rem !important;
  opacity: 0.8 !important;
}

/* ── Footer ── */

.site-footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-company p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-company-name {
  font-weight: 700;
  color: var(--white) !important;
  margin-bottom: 12px !important;
}

.footer-accent {
  color: #34d399;
  transition: opacity 0.2s;
}

.footer-accent:hover {
  opacity: 0.85;
  color: #34d399;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Legal pages ── */

.page-hero {
  padding: calc(var(--nav-height) + 48px) 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--text-secondary);
}

.legal-content {
  padding: 48px 0 80px;
}

.legal-content .container {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  font-weight: 700;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--primary-dark);
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 20px;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.8;
}

.legal-meta {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
}

.legal-content h2 {
  font-size: 1.1rem;
  margin: 28px 0 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 1rem;
  margin: 18px 0 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-block {
  margin-top: 8px;
  line-height: 1.8;
}

.contact-block strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.delete-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}

.delete-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.delete-form input,
.delete-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.delete-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* ── Delete account flow ── */

.delete-page-main {
  padding: calc(var(--nav-height) + 48px) 0 80px;
  min-height: calc(100vh - var(--nav-height));
  background: var(--surface);
}

.delete-page-card {
  width: min(100%, 480px);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
}

.delete-page-card h1 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.delete-page-lead {
  margin: 0 0 28px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.delete-page-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.phone-input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  margin-bottom: 24px;
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.phone-input-row input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  min-width: 0;
}

.delete-page-form .btn {
  width: 100%;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.delete-success-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

.delete-success-text a {
  color: var(--primary-dark);
  font-weight: 500;
}

.return-home-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.return-home-wrap {
  text-align: center;
}

/* ── Mobile nav ── */

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0;
  background: var(--white);
  padding: 24px;
  z-index: 99;
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-weight: 500;
  color: var(--text-primary);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 20px;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

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

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

  .hero-visual {
    order: -1;
  }

  .floating-card.top {
    right: 0;
  }

  .floating-card.bottom {
    left: 0;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  section {
    padding: 64px 0;
  }
}
