:root {
  --background: #f6f6f9;
  --foreground: #32324d;
  --card: #ffffff;
  --card-foreground: #32324d;
  --primary: #4945ff;
  --primary-foreground: #ffffff;
  --muted: #f6f6f9;
  --muted-foreground: #666687;
  --accent: #f0f0ff;
  --border: #dcdce4;
  --radius: 0.625rem;
  --footer: #181826;
  --footer-fg: #ffffff;
  --footer-muted: #a5a5ba;
  --shadow: 0 12px 40px rgb(50 50 77 / 0.08);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  position: relative;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 12% -10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%),
    radial-gradient(700px 420px at 88% 8%, color-mix(in srgb, #7b79ff 10%, transparent), transparent 55%),
    radial-gradient(600px 360px at 50% 100%, color-mix(in srgb, var(--primary) 6%, transparent), transparent 50%);
  opacity: 0.9;
}

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

img {
  max-width: 100%;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

.announce {
  background: var(--accent);
  color: var(--foreground);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}

.announce[hidden] {
  display: none;
}

.announce a {
  color: var(--primary);
  font-weight: 600;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-foreground);
}

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

.lang {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang button,
.lang-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  cursor: pointer;
  text-decoration: none;
}

.lang button[aria-pressed='true'],
.lang-link[aria-pressed='true'] {
  background: var(--primary);
  color: var(--primary-foreground);
}

.preview-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.preview-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
}

.preview-btn.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--foreground);
}

.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero-copy {
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 12px;
  max-width: 16ch;
  margin-inline: auto;
  animation: hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero .sub {
  margin: 0 auto 20px;
  max-width: 42ch;
  color: var(--muted-foreground);
  font-size: 18px;
  animation: hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  animation: hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-proof {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 22px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(8px);
  color: var(--foreground);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  animation: hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.hero-proof[hidden] {
  display: none;
}

.hero-proof::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

.hero-stage {
  position: relative;
  margin: 0 auto 28px;
  max-width: 960px;
  animation: hero-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.hero-stage-glow {
  position: absolute;
  inset: 12% 8% -4%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.browser {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow:
    0 24px 60px rgb(50 50 77 / 0.14),
    0 2px 0 rgb(255 255 255 / 0.6) inset;
  animation: hero-float 7s ease-in-out 1s infinite;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 80%, var(--card));
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.browser-dot:nth-child(1) {
  background: #ff5f57;
}

.browser-dot:nth-child(2) {
  background: #febc2e;
}

.browser-dot:nth-child(3) {
  background: #28c840;
}

.browser-url {
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hero-frame {
  position: relative;
  display: grid;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--card);
  box-shadow: none;
  animation: none;
}

.hero-shot {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
}

.hero-shot.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-theme {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgb(50 50 77 / 0.12);
}

.hero-theme .preview-btn {
  padding: 6px 12px;
  font-size: 12px;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero .sub,
  .hero-cta,
  .hero-proof,
  .hero-stage,
  .browser,
  .hero-shot {
    animation: none !important;
    transition: none !important;
  }
}

.code {
  position: relative;
  width: min(100%, 640px);
  margin: 0 auto 12px;
  background: #212134;
  color: #ffffff;
  border-radius: var(--radius);
  padding: 14px 58px 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  text-align: left;
}

.code code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.code-note {
  width: min(100%, 640px);
  margin: 0 auto 24px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.25);
  color: rgb(255 255 255 / 0.75);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.code-copy:hover {
  background: rgb(0 0 0 / 0.45);
  color: #ffffff;
}

.code-copy:focus-visible {
  outline: 2px solid rgb(255 255 255 / 0.6);
  outline-offset: 2px;
}

.code-copy.is-copied {
  background: rgb(0 0 0 / 0.45);
  color: #7bf1a8;
}

.code-copy svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.code-copy .i-check,
.code-copy.is-copied .i-copy {
  display: none;
}

.code-copy.is-copied .i-check {
  display: block;
}

.counter {
  display: none;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 8px 0 64px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 20px;
  text-align: left;
}

.step .n {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 15px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--card);
  border-block: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 10px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 18ch;
}

#whats-new h2 {
  max-width: 28ch;
}

.section .lead {
  margin: 0 0 32px;
  color: var(--muted-foreground);
  max-width: 50ch;
}

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

.cards-wide {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 15px;
}

.card p.card-tag {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.card .card-tag + h3 {
  margin-top: 0;
}

.wn-more {
  margin: 28px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.wn-more a {
  color: var(--primary);
}

.wn-more a:hover {
  text-decoration: underline;
}

.card code,
.step code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--muted);
  padding: 1px 5px;
  border-radius: 4px;
}

.cta-band {
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.cta-band p {
  margin: 0 auto 24px;
  color: var(--muted-foreground);
  max-width: 42ch;
}

.footer {
  background: var(--footer);
  color: var(--footer-fg);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer .logo {
  margin-bottom: 8px;
}

.footer p,
.footer a {
  color: var(--footer-muted);
  font-size: 14px;
}

.footer h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

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

.legal {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding-top: 16px;
  font-size: 13px;
  color: var(--footer-muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.split-card {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 22px;
  background: var(--card);
}

.split-pain {
  background: color-mix(in srgb, var(--card) 70%, #ffe8e6);
}

.split-win {
  background: color-mix(in srgb, var(--card) 70%, var(--accent));
}

.split-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
}

.split-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.split-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted-foreground);
  font-size: 15px;
}

.split-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
}

.split-win li::before {
  background: var(--primary);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  box-shadow: var(--shadow);
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14px;
}

.cmp th,
.cmp td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cmp th {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  background: var(--muted);
}

.cmp tbody tr:last-child td {
  border-bottom: 0;
}

.cmp td:not(:first-child) {
  text-align: center;
  font-weight: 700;
}

.cmp .yes {
  color: #328048;
}

.cmp .no {
  color: #a5a5ba;
}

.cmp .maybe {
  color: #8a6d3b;
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--card);
  padding: 4px 16px;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  float: right;
  color: var(--muted-foreground);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: '–';
}

.faq p {
  margin: 0 0 14px;
  color: var(--muted-foreground);
  font-size: 15px;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.sticky-cta[hidden] {
  display: none;
}

.sticky-cta .btn {
  width: min(100%, 420px);
}

@media (max-width: 860px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .steps,
  .cards,
  .footer-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-stage {
    margin-bottom: 22px;
  }

  .hero-theme {
    right: 8px;
    bottom: 8px;
  }

  body {
    padding-bottom: 72px;
  }
}
