:root {
  --ink: #121826;
  --ink-soft: #3a4358;
  --muted: #6b7489;
  --line: rgba(18, 24, 38, 0.1);
  --paper: #f3f5f8;
  --panel: rgba(255, 255, 255, 0.72);
  --accent: #2f4fd6;
  --accent-deep: #243ea8;
  --accent-soft: rgba(47, 79, 214, 0.12);
  --glow: rgba(72, 118, 230, 0.35);
  --shadow: 0 30px 80px rgba(28, 42, 84, 0.18);
  --radius: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  background: var(--paper);
  overflow-x: hidden;
}

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

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

button,
.btn {
  font: inherit;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(96, 140, 255, 0.28), transparent 60%),
    radial-gradient(700px 480px at 88% 8%, rgba(120, 170, 255, 0.18), transparent 55%),
    radial-gradient(800px 600px at 50% 100%, rgba(180, 198, 230, 0.35), transparent 65%),
    linear-gradient(180deg, #e8eef8 0%, #f3f5f8 38%, #eef1f6 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Nav */

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-brand img {
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(47, 79, 214, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}

/* Hero */

.hero {
  display: grid;
  gap: 0;
  min-height: calc(100svh - 72px);
  align-content: start;
}

.hero-copy {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 56px 24px 28px;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 9vw, 6.4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.headline {
  margin: 18px 0 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lede {
  margin: 16px 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

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

.meta {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(47, 79, 214, 0.28);
}

.btn.primary:hover {
  background: var(--accent-deep);
}

.btn.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn.secondary:hover {
  border-color: rgba(47, 79, 214, 0.35);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn.ghost:hover {
  color: var(--ink);
  border-color: rgba(18, 24, 38, 0.22);
}

.btn.large {
  padding: 15px 26px;
  font-size: 1.05rem;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}

/* Product stage */

.hero-stage {
  position: relative;
  width: 100%;
  min-height: min(48vh, 460px);
  display: grid;
  place-items: end center;
  padding: 48px 24px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0%, rgba(72, 118, 230, 0.08) 35%, rgba(36, 58, 120, 0.16) 100%);
}

.desk-glow {
  position: absolute;
  left: 50%;
  top: 20%;
  width: min(900px, 120%);
  height: 70%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%);
  filter: blur(10px);
  animation: glow-pulse 5.5s ease-in-out infinite;
}

.panel {
  position: relative;
  width: min(820px, 100%);
  margin-bottom: -12px;
  padding: 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-bottom: none;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  animation: panel-float 7s ease-in-out infinite;
}

.panel-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title {
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.panel-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-pane {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(18, 24, 38, 0.06);
}

.panel-pane + .panel-pane {
  margin-top: 10px;
}

.panel-pane.result {
  background: rgba(47, 79, 214, 0.06);
  border-color: rgba(47, 79, 214, 0.12);
}

.pane-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pane-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.pane-text.muted {
  color: var(--ink-soft);
}

.pane-text[data-empty="true"] {
  color: var(--muted);
  font-style: italic;
}

.pane-text[data-empty="false"] {
  color: var(--ink);
}

.panel-pane.result.working {
  background: rgba(47, 79, 214, 0.1);
}

.panel-pane.result.ready {
  background: rgba(47, 79, 214, 0.08);
  animation: result-flash 0.55s ease;
}

.panel-styles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.chip:hover {
  border-color: rgba(47, 79, 214, 0.3);
  color: var(--ink);
}

.chip:active {
  transform: scale(0.97);
}

.chip.active {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-deep);
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.kbd,
.improve {
  font-size: 0.82rem;
  font-weight: 600;
}

.kbd {
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(18, 24, 38, 0.06);
  color: var(--ink-soft);
}

.improve {
  appearance: none;
  border: none;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(47, 79, 214, 0.25);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.improve:hover:not(:disabled) {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.improve:active:not(:disabled) {
  transform: translateY(0);
}

.improve:disabled {
  cursor: wait;
  opacity: 0.85;
}

.improve.is-loading .improve-label {
  opacity: 0;
}

.improve.is-loading {
  position: relative;
  min-width: 7.5rem;
}

.improve.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.demo-hint {
  margin: 14px 0 4px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.panel:focus {
  outline: none;
}

.panel:focus-visible {
  box-shadow: var(--shadow), 0 0 0 3px rgba(47, 79, 214, 0.28);
}

/* Sections */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px;
}

.section-head {
  max-width: 620px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

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

.steps li {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

kbd {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(18, 24, 38, 0.07);
  font-family: var(--font-body);
  font-size: 0.88em;
  font-weight: 600;
}

.style-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.style-list li {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.lang-line {
  margin: 28px 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.detail-list li {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 16px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list strong {
  letter-spacing: -0.02em;
}

.detail-list span {
  color: var(--ink-soft);
}

/* Pricing — interactive plan choosers */

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

.plan {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(28, 42, 84, 0.04);
}

.plan.featured {
  background: linear-gradient(180deg, rgba(47, 79, 214, 0.1), rgba(255, 255, 255, 0.85));
  border-color: rgba(47, 79, 214, 0.22);
  box-shadow: 0 16px 40px rgba(47, 79, 214, 0.12);
}

.plan h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.plan .price {
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan .price small {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.plan ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.plan li {
  position: relative;
  padding: 0 0 10px 18px;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.plan .btn {
  width: 100%;
}

/* Download */

.download {
  padding-top: 40px;
}

.download-block {
  padding: 48px 32px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(96, 140, 255, 0.22), transparent 70%),
    rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.download-block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.download-block > p {
  margin: 12px auto 0;
  max-width: 34rem;
  color: var(--ink-soft);
}

.download-block .btn {
  margin-top: 28px;
}

/* Footer */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.footer-brand img {
  border-radius: 6px;
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 6px;
}

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

/* Legal / doc pages */

.doc-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.doc-page h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.doc-page p,
.doc-page li {
  color: var(--ink-soft);
}

.doc-page ul {
  padding-left: 1.2rem;
}

.doc-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.doc-back:hover {
  color: var(--ink);
}

/* Reveal motion */

.reveal,
.reveal-stage {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.2s; }
.reveal.delay-3 { animation-delay: 0.32s; }
.reveal-stage { animation-delay: 0.28s; animation-duration: 1.05s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes result-flash {
  0% { box-shadow: inset 0 0 0 0 rgba(47, 79, 214, 0.2); }
  40% { box-shadow: inset 0 0 0 2px rgba(47, 79, 214, 0.22); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stage,
  .panel,
  .desk-glow {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .improve.is-loading::after,
  .panel-pane.result.ready {
    animation: none !important;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .steps,
  .plans {
    grid-template-columns: 1fr;
  }

  .detail-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 36px;
  }

  .headline {
    max-width: none;
  }

  .hero-stage {
    min-height: 340px;
    padding-top: 28px;
  }

  .section {
    padding: 64px 20px;
  }

  .download-block {
    padding: 36px 20px;
  }
}
