/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:       #2EC4B6;
  --primary-light: #CBF3F0;
  --primary-dark:  #1fa89c;
  --secondary:     #FF9F1C;
  --secondary-dark:#e88a0a;
  --text:          #1A1A2E;
  --text-muted:    #666;
  --bg:            #ffffff;
  --bg-alt:        #f7fffe;
  --bg-dark:       #0f1923;
  --radius:        16px;
  --shadow:        0 8px 32px rgba(46,196,182,0.15);
  --shadow-lg:     0 16px 56px rgba(46,196,182,0.22);
  --font-head:     'Nunito', sans-serif;
  --font-body:     'Inter', sans-serif;
  --transition:    0.25s ease;
}

/* ── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { max-width: 65ch; }

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

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(46,196,182,0.4);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 24px rgba(46,196,182,0.55); }

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,159,28,0.35);
}
.btn-secondary:hover { background: var(--secondary-dark); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46,196,182,0.15);
  padding: 14px 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { height: 38px; }
.nav__logo-text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: color var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--primary); }
.nav__cta { display: flex; gap: 12px; }
.nav__hamburger { display: none; background: none; border: none; cursor: pointer; }
.nav__hamburger span {
  display: block; width: 24px; height: 2.5px; background: var(--text);
  margin: 5px 0; border-radius: 3px; transition: var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex; align-items: center;
  background: linear-gradient(150deg, var(--bg-alt) 0%, #fff 50%, var(--primary-light) 100%);
  padding: 0 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,196,182,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,159,28,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  font-family: var(--font-head);
}
.hero__title { margin-bottom: 20px; color: var(--text); }
.hero__title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero__stat-value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
}
.hero__stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 160px;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; fill: #fff; }
.store-badge__text small { display: block; font-size: 0.7rem; opacity: 0.75; }
.store-badge__text strong { font-size: 1rem; font-family: var(--font-head); }
.store-badge--disabled { opacity: 0.5; cursor: default; }
.store-badge--disabled:hover { transform: none; box-shadow: none; }

/* Hero phone mockup */
.hero__visual { display: flex; justify-content: center; align-items: center; position: relative; z-index: 1; }
.phone-mockup {
  width: 280px;
  background: var(--text);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(46,196,182,0.12);
  position: relative;
}
.phone-mockup__screen {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 40%, #1a3a4a 100%);
  border-radius: 30px;
  height: 480px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
}
/* Animated puzzle grid inside phone mockup */
.puzzle-anim-grid {
  display: grid;
  grid-template-columns: repeat(4, 46px);
  grid-template-rows: repeat(4, 46px);
  gap: 6px;
  flex-shrink: 0;
}
.puzzle-tile {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  will-change: transform, opacity;
}
.phone-mockup__label {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}
.phone-mockup__sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* Floating emoji decorations */
.float-emoji {
  position: absolute;
  font-size: 2rem;
  animation: float-emoji 4s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}
.float-emoji:nth-child(1) { top: 10%; left: -8%; animation-delay: 0s; }
.float-emoji:nth-child(2) { top: 30%; right: -8%; animation-delay: 1s; }
.float-emoji:nth-child(3) { bottom: 20%; left: -6%; animation-delay: 2s; }
.float-emoji:nth-child(4) { bottom: 10%; right: -6%; animation-delay: 0.5s; }
@keyframes float-emoji {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(8deg); }
}

/* ── Section Shared ────────────────────────────────────────── */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section__header { text-align: center; margin-bottom: 56px; }
.section__eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-head);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.section--dark .section__eyebrow {
  background: rgba(46,196,182,0.2);
  color: var(--primary);
}
.section__title { margin-bottom: 16px; }
.section__desc { color: var(--text-muted); font-size: 1.05rem; margin: 0 auto; }
.section--dark .section__desc { color: rgba(255,255,255,0.6); }

/* ── Features ──────────────────────────────────────────────── */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(46,196,182,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card__icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  display: block;
}
.feature-card__title { margin-bottom: 10px; color: var(--text); }
.feature-card__desc { color: var(--text-muted); font-size: 0.95rem; max-width: none; }

/* ── How it Works ──────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute; left: 35px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.step {
  display: flex; gap: 32px; align-items: flex-start;
  padding: 0 0 48px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step__number {
  width: 70px; height: 70px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(46,196,182,0.4);
}
.step__content { padding-top: 16px; }
.step__title { margin-bottom: 8px; }
.step__desc { color: var(--text-muted); max-width: none; }

/* ── Puzzle Preview ────────────────────────────────────────── */
.puzzle-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 320px;
  margin: 0 auto;
}
.puzzle-preview__piece {
  aspect-ratio: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.puzzle-preview__piece:hover { transform: scale(1.08); }

/* ── Testimonials / Reviews ───────────────────────────────── */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
}
.review-card__stars { color: #FFD93D; font-size: 1.1rem; margin-bottom: 14px; }
.review-card__text { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin-bottom: 20px; max-width: none; }
.review-card__author { display: flex; align-items: center; gap: 12px; }
.review-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.review-card__name { font-weight: 700; font-size: 0.9rem; }
.review-card__location { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 72px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin: 0 auto 36px; }
.cta-banner .store-badges { justify-content: center; }
.cta-banner .store-badge { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); }
.cta-banner .store-badge:hover { background: rgba(255,255,255,0.25); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand img { height: 40px; margin-bottom: 14px; }
.footer__brand-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}
.footer__brand p { font-size: 0.9rem; max-width: 30ch; }
.footer__heading {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--primary); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
}
.footer__bottom a { color: var(--primary); }

/* ── Page Header (inner pages) ─────────────────────────────── */
.page-header {
  background: linear-gradient(150deg, var(--bg-alt), var(--primary-light));
  padding: 72px 0 56px;
  text-align: center;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { color: var(--text-muted); margin: 0 auto; font-size: 1.05rem; }

/* ── Privacy Page ──────────────────────────────────────────── */
.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
}
.prose h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 48px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); margin-bottom: 16px; max-width: none; }
.prose ul { padding-left: 24px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 8px; color: var(--text); }
.prose a { color: var(--primary); }
.prose a:hover { text-decoration: underline; }
.prose .updated {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 32px;
}

/* ── Contact Page ──────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  padding: 72px 0;
  align-items: start;
}
.contact-info__title { margin-bottom: 14px; }
.contact-info__desc { color: var(--text-muted); margin-bottom: 36px; }
.contact-info__items { display: flex; flex-direction: column; gap: 20px; }
.contact-info__item { display: flex; align-items: flex-start; gap: 14px; }
.contact-info__icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info__item-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info__item-value { font-weight: 600; color: var(--text); }

/* Contact Form */
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(46,196,182,0.12);
}
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
  font-family: var(--font-head);
}
.form-label span { color: var(--secondary); }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: #fafafa;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,196,182,0.15);
  background: #fff;
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-control.error { border-color: #ef4444; }
.form-error { color: #ef4444; font-size: 0.82rem; margin-top: 5px; display: none; }
.form-error.show { display: block; }

.form-submit-wrap { margin-top: 8px; }
.form-submit-wrap .btn { width: 100%; justify-content: center; }

.form-msg {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 18px;
  text-align: center;
}
.form-msg.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.form-msg.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.form-msg.show    { display: block; }

/* Loading spinner on btn */
.btn .spinner-sm {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .btn-text { display: none; }
.btn.loading .spinner-sm { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Not Found ─────────────────────────────────────────────── */
.not-found {
  min-height: 80vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 16px; padding: 40px;
}
.not-found__emoji { font-size: 5rem; }
.not-found p { color: var(--text-muted); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
  .phone-mockup { width: 220px; }
  .phone-mockup__screen { height: 360px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .steps::before { left: 28px; }
  .step__number { width: 56px; height: 56px; font-size: 1.2rem; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__hamburger { display: block; }
  .nav__cta { display: none; }
  .hero { padding: 60px 0 40px; }
  .section { padding: 56px 0; }
  .contact-form { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* Mobile nav open */
.nav.open .nav__links {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; padding: 16px 24px 24px;
  border-bottom: 1px solid rgba(46,196,182,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  gap: 16px;
}
