:root {
  --bg-1: #0f0c29;
  --bg-2: #1a1060;
  --bg-3: #2d1b69;
  --bg-4: #1e1045;
  --purple: #a78bfa;
  --purple-light: #e2c8ff;
  --indigo: #6366f1;
  --pink: #f472b6;
  --magenta: #ec4899;
  --green: #34d399;
  --white: #ffffff;
  --text-dim: rgba(255,255,255,0.72);
  --text-mute: rgba(255,255,255,0.55);
  --card: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.12);
  --radius: 24px;
}

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

html, body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--white);
  background: linear-gradient(141.645deg, var(--bg-1) 8%, var(--bg-2) 41%, var(--bg-3) 66%, var(--bg-4) 91%);
  background-attachment: fixed;
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Decorative glows ===== */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow.purple { background: rgba(167,139,250,0.35); }
.glow.pink { background: rgba(244,114,182,0.28); }
.glow.indigo { background: rgba(99,102,241,0.30); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(15,12,41,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(167,139,250,0.4);
}
.brand span .emoji { margin-left: 4px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--indigo), #a855f7);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  transition: transform .15s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(99,102,241,0.6); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero .glow.purple { width: 500px; height: 500px; top: -150px; left: -150px; }
.hero .glow.pink { width: 400px; height: 400px; bottom: -100px; right: -100px; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.3);
  color: var(--purple-light);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 20px;
}

.headline {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.headline .grad {
  background: linear-gradient(90deg, #ffffff 0%, var(--purple-light) 45%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.appstore-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(167,139,250,0.35);
}
.appstore-btn .apple {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.appstore-btn .labels { display: flex; flex-direction: column; line-height: 1.1; }
.appstore-btn .small { font-size: 11px; color: rgba(255,255,255,0.7); }
.appstore-btn .big { font-size: 20px; font-weight: 800; }

.trust {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
  font-size: 14px;
}
.stars { color: #facc15; letter-spacing: 2px; }

/* Hero visual */
.hero-visual {
  position: relative;
  height: 540px;
}
.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  aspect-ratio: 9/19;
  background: linear-gradient(160deg, #0f0c29 0%, #2d1b69 100%);
  border-radius: 42px;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 80px rgba(167,139,250,0.35),
    inset 0 0 0 4px #0f0c29;
  padding: 16px;
  overflow: hidden;
  z-index: 3;
}
.phone .notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: #000;
  border-radius: 14px;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(160deg, #0f0c29 0%, #1a1060 40%, #2d1b69 100%);
  position: relative;
  padding: 50px 14px 14px;
  overflow: hidden;
}
.phone-screen h3 {
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(90deg, #fff, var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.phone-screen p {
  font-size: 10px;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.phone-tile {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.phone-tile img { width: 100%; height: 100%; object-fit: cover; }
.phone-tile span {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.float {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  animation: float 6s ease-in-out infinite;
}
.float img { width: 100%; height: 100%; object-fit: cover; }
.float.f1 { width: 110px; height: 110px; top: 30px; left: 0; animation-delay: 0s; }
.float.f2 { width: 90px; height: 90px; top: 20px; right: 20px; animation-delay: 1.5s; }
.float.f3 { width: 100px; height: 100px; bottom: 40px; left: 30px; animation-delay: 3s; }
.float.f4 { width: 80px; height: 80px; bottom: 80px; right: 0; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

/* ===== Sections ===== */
section { position: relative; padding: 80px 0; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .pill { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head h2 .grad {
  background: linear-gradient(90deg, #fff, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, border-color .2s, background .2s;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(167,139,250,0.4);
  background: rgba(167,139,250,0.08);
}
.feature .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(167,139,250,0.3), rgba(99,102,241,0.3));
  border: 1px solid rgba(167,139,250,0.3);
}
.feature h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 15px; }

/* ===== Heroes gallery ===== */
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.hero-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.hero-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(167,139,250,0.3);
}
.hero-card .img {
  aspect-ratio: 1;
  overflow: hidden;
}
.hero-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.hero-card:hover .img img { transform: scale(1.08); }
.hero-card .name {
  padding: 14px;
  font-weight: 800;
  text-align: center;
  font-size: 15px;
}

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
}
.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), #a855f7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}
.step h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* ===== Values ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.value {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
  transition: transform .2s, background .2s;
}
.value:hover { transform: translateY(-3px); background: rgba(244,114,182,0.08); border-color: rgba(244,114,182,0.3); }
.value img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 10px; }
.value span { font-weight: 700; font-size: 14px; color: var(--text-dim); }

/* ===== FAQ ===== */
.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: background .2s;
}
.faq details[open] { background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.3); }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 24px;
  color: var(--purple-light);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 15px;
}

/* ===== Final CTA ===== */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(168,85,247,0.25));
  border: 1px solid rgba(167,139,250,0.35);
  border-radius: 36px;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
.final-cta .glow { width: 400px; height: 400px; }
.final-cta h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}
.final-cta p { color: var(--text-dim); font-size: 17px; margin-bottom: 28px; position: relative; z-index: 1; }

/* ===== Footer ===== */
footer {
  padding: 40px 0 60px;
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
}
footer a:hover { color: var(--purple-light); }
footer .links { display: flex; gap: 20px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

/* ===== Legal / Content pages ===== */
.legal-hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}
.legal-hero .glow.purple { width: 500px; height: 500px; top: -120px; left: 50%; transform: translateX(-50%); }
.legal-hero h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.legal-hero h1 .grad {
  background: linear-gradient(90deg, #fff, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-hero .sub {
  color: var(--text-dim);
  font-size: 16px;
  position: relative;
  z-index: 1;
}
.legal-hero .lang-switch {
  margin-top: 24px;
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  border: 1px solid var(--card-border);
  position: relative;
  z-index: 1;
}
.legal-hero .lang-switch a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  transition: background .2s, color .2s;
}
.legal-hero .lang-switch a:hover { color: #fff; }
.legal-hero .lang-switch a.active {
  background: linear-gradient(135deg, var(--indigo), #a855f7);
  color: #fff;
}

.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  position: relative;
  z-index: 1;
}
.legal-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  backdrop-filter: blur(12px);
}
.legal-card p, .legal-card li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-card ul, .legal-card ol { padding-left: 22px; margin-bottom: 14px; }
.legal-card h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--purple-light);
  margin: 32px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(167,139,250,0.15);
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card strong { color: #fff; font-weight: 800; }
.legal-card a { color: var(--purple-light); text-decoration: underline; }
.legal-card a:hover { color: #fff; }
.legal-card .updated {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 999px;
  color: var(--purple-light);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}
.legal-contact {
  margin-top: 32px;
  padding: 22px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 18px;
}
.legal-contact p { margin: 0; color: var(--text-dim); }
.legal-contact strong { color: #fff; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 700;
  transition: color .2s;
}
.back-link:hover { color: var(--purple-light); }

/* Footer links grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  text-align: left;
}
.footer-grid h4 {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-mute); font-size: 14px; transition: color .2s; }
.footer-grid a:hover { color: var(--purple-light); }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand img { width: 44px; height: 44px; border-radius: 12px; }
.footer-brand p { color: var(--text-mute); font-size: 13px; line-height: 1.6; margin-top: 6px; max-width: 280px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 480px; }
  .hero { padding: 48px 0 40px; }
  section { padding: 60px 0; }
  .nav-inner { padding: 12px 16px; }
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .legal-card { padding: 28px 22px; }
  .legal-hero { padding: 56px 0 24px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .phone { width: 240px; }
  .float.f1 { width: 80px; height: 80px; }
  .float.f2 { width: 70px; height: 70px; }
  .float.f3 { width: 75px; height: 75px; }
  .float.f4 { width: 64px; height: 64px; }
  .final-cta { padding: 48px 20px; }
}
