:root {
  --bg: #0b0b12;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f8;
  --muted: rgba(244, 244, 248, 0.62);
  --pink: #ff4f7b;
  --magenta: #c13bd9;
  --violet: #6a4bff;
  --gradient: linear-gradient(120deg, var(--pink), var(--magenta) 50%, var(--violet));
  --radius: 18px;
  --max: 1160px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

kbd {
  font: 600 0.85em ui-monospace, monospace;
  padding: 0.1em 0.45em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
}

/* ===== Background glows ===== */
.glow {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

.glow-a {
  background: var(--pink);
  top: -220px;
  left: -200px;
}

.glow-b {
  background: var(--violet);
  top: 120px;
  right: -260px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(24px, calc((100% - 1320px) / 2 + 24px));
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 18, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

/* ===== Hero ===== */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid;
  grid-template-columns: 0.8fr 1.3fr;
  gap: 48px;
  align-items: center;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 14px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta-center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--gradient);
  box-shadow: 0 10px 30px -10px rgba(193, 59, 217, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(193, 59, 217, 0.9);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* ===== Hero screenshot ===== */
.hero-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 80px -20px rgba(106, 75, 255, 0.35);
}

/* ===== Sections ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}

.section > h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 36em;
}

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

.card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 79, 123, 0.4);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== Before / after comparison ===== */
.compare-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 0 auto 24px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.tab {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.2s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: var(--gradient);
  color: #fff;
}

.compare {
  --pos: 76%;
  /* How far the divider leans: top sits this much right of --pos, bottom this much left */
  --tilt: 8%;
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 1280 / 800;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  user-select: none;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-after {
  clip-path: polygon(
    calc(var(--pos) + var(--tilt)) 0,
    100% 0,
    100% 100%,
    calc(var(--pos) - var(--tilt)) 100%
  );
  transition: opacity 0.3s ease;
}

.compare-after.swapping {
  opacity: 0;
}

.compare-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.compare-line line {
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.compare-handle svg {
  width: 24px;
  height: 24px;
}

.compare-label {
  position: absolute;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
}

.compare-label-before {
  left: 16px;
  bottom: 16px;
}

.compare-label-after {
  right: 16px;
  top: 16px;
  background: var(--gradient);
}

/* Invisible range input on top: gives drag, click, touch and keyboard for free */
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare:has(.compare-range:focus-visible) {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.steps li > span {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  font-weight: 800;
}

.steps h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25em;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.privacy {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 820px;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(255, 79, 123, 0.08), rgba(106, 75, 255, 0.08));
}

.privacy h2 {
  font-size: 1.8rem;
}

.privacy p {
  margin: 0;
  color: var(--muted);
}

.privacy-icon {
  font-size: 3rem;
}

.final-cta {
  text-align: center;
}

.final-cta img {
  margin: 0 auto 20px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 32px 24px 48px;
  font-size: 0.9rem;
}

.footer p {
  margin: 4px 0;
}

.footer a {
  color: var(--text);
}

.muted {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

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

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

@media (max-width: 620px) {
  .compare-label {
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  .compare-handle {
    width: 36px;
    height: 36px;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

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

  .privacy {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
