/* Blitzo site: same palette as the app (accent #6C5CE7, #8C7CFF in dark mode). */

:root {
  --accent: #6C5CE7;
  --accent-strong: #5646D6;
  --accent-soft: #EEEBFF;
  --pink: #FF8FC7;
  --orange: #FF9F43;
  --bg: #F8F7FD;
  --surface: #FFFFFF;
  --surface-2: #F2F0FA;
  --text: #15131F;
  --muted: #676479;
  --border: rgba(21, 19, 31, 0.08);
  --shadow: 0 1px 2px rgba(21, 19, 31, 0.04), 0 12px 32px rgba(76, 62, 190, 0.10);
  --phone-shadow: 0 30px 60px rgba(60, 45, 170, 0.22), 0 8px 18px rgba(21, 19, 31, 0.10);
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #8C7CFF;
    --accent-strong: #A396FF;
    --accent-soft: #24203D;
    --bg: #0D0B15;
    --surface: #171423;
    --surface-2: #1E1A2D;
    --text: #F4F2FB;
    --muted: #A6A2B8;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --phone-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft lavender and pink glow, like the app's backdrop. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 420px at 85% -5%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(520px 380px at -10% 30%, color-mix(in srgb, var(--pink) 16%, transparent), transparent 70%);
  pointer-events: none;
}

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

a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { color: var(--text); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.lang a {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.lang a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.eyebrow img { width: 22px; height: 22px; border-radius: 6px; }

h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 900;
}
h1 .accent {
  background: linear-gradient(100deg, var(--accent) 10%, var(--pink) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: 20px; color: var(--muted); max-width: 32em; margin: 0 0 28px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button.primary {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.button.primary:hover { color: #fff; transform: translateY(-1px); }
.button.secondary { color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.button.secondary:hover { color: var(--text); transform: translateY(-1px); }
.button svg { width: 20px; height: 20px; flex: none; }

.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Phones */

.phone {
  border-radius: 13.5% / 6.2%;
  border: 7px solid #17161D;
  background: #17161D;
  box-shadow: var(--phone-shadow);
  overflow: hidden;
}
.phone img { width: 100%; height: auto; }

.hero-phones { position: relative; height: 600px; }
.hero-phones .phone { position: absolute; width: 270px; }
.hero-phones .phone.back { right: 8%; top: 0; transform: rotate(6deg); }
.hero-phones .phone.front { left: 6%; top: 60px; transform: rotate(-5deg); z-index: 1; }

/* Sections */

section { padding: 72px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 12px; font-weight: 900; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 16px 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
}
.icon svg { width: 26px; height: 26px; }
.icon.pink { background: linear-gradient(135deg, #FF8FC7, #F75FA6); }
.icon.orange { background: linear-gradient(135deg, #FFB86B, #FF8A3D); }
.icon.teal { background: linear-gradient(135deg, #4FD1C5, #22A99C); }
.icon.blue { background: linear-gradient(135deg, #6CB4FF, #3B82F6); }
.icon.violet { background: linear-gradient(135deg, #A396FF, #6C5CE7); }
.icon.green { background: linear-gradient(135deg, #6EE7A0, #22B865); }

/* Gallery */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 236px;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px max(16px, calc((100vw - 1120px) / 2)) 36px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery figcaption { text-align: center; margin-top: 16px; font-weight: 700; font-size: 15px; }
.gallery figcaption span { display: block; color: var(--muted); font-weight: 500; font-size: 14px; }

/* Plans */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 0 auto; }
.plan h3 { margin: 0 0 4px; font-size: 24px; }
.plan .price { color: var(--muted); font-weight: 700; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%236C5CE7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.plan.pro {
  color: #fff;
  border: 0;
  background: radial-gradient(120% 120% at 100% 0%, #A396FF 0%, #6C5CE7 45%, #4B3BC4 100%);
  box-shadow: 0 20px 44px rgba(76, 62, 190, 0.35);
}
.plan.pro .price { color: rgba(255, 255, 255, 0.8); }
.plan.pro li::before { background-color: rgba(255, 255, 255, 0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* FAQ */

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 22px;
  box-shadow: var(--shadow);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 12l5 5 5-5' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Contact */

.contact {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.contact p { margin: 0; color: var(--muted); }

/* Footer */

.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--text); }

/* Legal pages */

.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 72px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal .intro { font-size: 19px; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .card { margin-top: 40px; }

/* Small screens */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta, .facts { justify-content: center; }
  .hero-phones { height: 470px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 210px; }
  .features { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .lang { margin-left: auto; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .features, .plans { grid-template-columns: 1fr; }
  .hero-phones { height: 400px; }
  .hero-phones .phone { width: 176px; border-width: 5px; }
  .hero-phones .phone.back { right: 2%; }
  .hero-phones .phone.front { left: 2%; top: 44px; }
  .gallery { grid-auto-columns: 200px; gap: 20px; }
  .contact { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
