:root {
  --bg: #0b0f17;
  --bg-2: #0e1320;
  --surface: #151b29;
  --surface-2: #1c2333;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.62);
  --text-faint: rgba(255, 255, 255, 0.40);
  --blue: #0a84ff;
  --blue-light: #5ca8ff;
  --blue-dark: #0768d6;
  --green: #30c46e;
  --amber: #f0a020;
  --radius: 18px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 14px;
  transition: transform .15s ease, background .2s ease, opacity .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(10,132,255,.35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-small { padding: 9px 16px; font-size: 14px; background: var(--blue); color:#fff; }
.btn-large { padding: 16px 30px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  background: rgba(11,15,23,.7);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: #fff; }
.nav-links .btn-small { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 70px 28px 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(10,132,255,.18), transparent 60%),
    radial-gradient(700px 500px at 100% 30%, rgba(10,132,255,.10), transparent 55%);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(10,132,255,.12);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--blue-light); }
.lead {
  font-size: 18px;
  color: var(--text-dim);
  margin: 22px 0 30px;
  max-width: 480px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Phone story ---------- */
.hero-phone { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 290px;
  height: 600px;
  background: #05070c;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone-notch {
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #05070c;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: linear-gradient(180deg, #1e2433, #0e1320);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 54px 16px 20px;
}
.story-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,.4);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  transition: opacity .3s ease;
}
.story-image-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.story-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .6s ease;
}
#imgAfter { opacity: 0; }

.scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(92,168,255,.85), transparent);
  opacity: 0;
  pointer-events: none;
}
.marker {
  position: absolute;
  width: 64px; height: 48px;
  border: 3px dashed var(--amber);
  border-radius: 12px;
  /* roughly over the phone-on-table area of the after image */
  left: 26%; top: 70%;
  box-shadow: 0 0 0 200px rgba(0,0,0,0); /* nothing, placeholder */
  opacity: 0;
  transition: opacity .4s ease;
}
.meme {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.8);
  background: rgba(0,0,0,.45);
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity .4s ease;
}
.result-card {
  position: absolute;
  left: 16px; right: 16px; bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  padding: 12px 14px;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}
.result-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.result-title { font-size: 14px; font-weight: 700; color: #fff; }
.result-sub { font-size: 12px; color: var(--text-dim); }

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 28px;
  text-align: center;
}
.section.alt {
  max-width: none;
  background: var(--bg-2);
}
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-sub { color: var(--text-dim); font-size: 17px; margin-bottom: 40px; }
.section-note { color: var(--text-faint); font-size: 14px; margin-top: 22px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.step {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: left;
}
.step-num {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  border-radius: 11px;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
  text-align: left;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.card-icon { font-size: 34px; margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* Pricing */
.card.price { text-align: center; position: relative; }
.card.price.featured { border-color: var(--blue); box-shadow: 0 12px 40px rgba(10,132,255,.18); }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 100px;
}
.price-name { font-size: 15px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.price-amt { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.card.price p { text-align: center; }

.download { text-align: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 40px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: var(--text-faint); font-size: 13px; }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 28px 90px;
}
.legal h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--text-dim); font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--blue-light); }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--blue-light); font-weight: 600; }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 20px; }
.contact-form label { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 14px; }
.contact-form label .opt { font-weight: 400; color: var(--text-faint); }
.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 13px 14px;
  width: 100%;
  resize: vertical;
  transition: border-color .15s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form .btn { margin-top: 20px; align-self: flex-start; }
.contact-form .btn:disabled { opacity: .55; cursor: default; transform: none; }
.form-status { display: block; font-size: 14px; margin-top: 14px; min-height: 18px; }
.form-status.success { color: var(--green); }
.form-status.error { color: #ff5a52; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero h1 { font-size: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 36px; }
  .steps { grid-template-columns: 1fr; }
  .section h2 { font-size: 28px; }
}
