:root {
  --bg: #faf9ff;
  --bg2: #ffffff;
  --bg3: #f1eefc;
  --fg: #16132b;
  --muted: #615c7c;
  --line: rgba(22, 19, 43, 0.09);
  --accent: #6a4cff;
  --accent2: #8f7bff;
  --spelling: #f04461;
  --grammar: #f59f0b;
  --punctuation: #2f80ed;
  --style: #9b5cf6;
  --shadow: 0 24px 60px -24px rgba(50, 30, 150, 0.35);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f0e17;
  --bg2: #17161f;
  --bg3: #211f2d;
  --fg: #f2f0fb;
  --muted: #a5a1ba;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e17;
    --bg2: #17161f;
    --bg3: #211f2d;
    --fg: #f2f0fb;
    --muted: #a5a1ba;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(143, 123, 255, 0.22), transparent 70%),
    radial-gradient(700px 420px at -10% 30%, rgba(255, 143, 177, 0.14), transparent 70%),
    var(--bg);
  color: var(--fg);
  font: 16px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg3); padding: 2px 6px; border-radius: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--fg); }
.links { display: flex; align-items: center; gap: 22px; }
.links a { color: var(--muted); font-weight: 550; font-size: 15px; }
.links a:hover { color: var(--fg); }
.links .gh { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); padding: 7px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 13px;
  font-weight: 650; color: var(--fg); background: var(--bg2); border: 1px solid var(--line);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s; cursor: pointer; font-size: 16px;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  color: #fff; border: 0; background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 14px 30px -12px rgba(106, 76, 255, 0.8);
}
.btn.primary:hover { filter: brightness(1.07); box-shadow: 0 18px 34px -12px rgba(106, 76, 255, 0.9); }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero {
  max-width: 1160px; margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 30px;
  background: var(--bg2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(18, 183, 106, 0) } 100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0) } }
h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.05em; margin: 20px 0 18px; }
.grad { background: linear-gradient(135deg, #a08eff, #5b3df5 60%, #ff7aa8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ctas.center { justify-content: center; }
.works { margin-top: 18px; font-size: 14px; color: var(--muted); }

.hero-art { position: relative; height: 440px; display: grid; place-items: center; }
.blob {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(160, 142, 255, 0.55), rgba(255, 122, 168, 0.2) 60%, transparent 72%);
  filter: blur(10px);
}
.big-inky { position: relative; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(91, 61, 245, 0.4)); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg) } 50% { transform: translateY(-14px) rotate(2deg) } }
.float {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 14px;
  background: var(--bg2); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 15px; white-space: nowrap;
  animation: drift 5s ease-in-out infinite;
}
.float s { color: var(--muted); text-decoration-color: var(--spelling); }
.float b { color: #fff; background: var(--accent); padding: 2px 9px; border-radius: 7px; }
.f1 { top: 40px; left: 0; }
.f2 { bottom: 70px; right: 0; animation-delay: -1.7s; }
.f3 { bottom: 10px; left: 30px; animation-delay: -3.2s; font-weight: 600; }
@keyframes drift { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* Sections */
section { max-width: 1160px; margin: 0 auto; padding: 72px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
h2 { font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -0.04em; line-height: 1.1; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Demo */
.window {
  max-width: 820px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg3); }
.bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.bar i:nth-child(2) { background: #febc2e; }
.bar i:nth-child(3) { background: #28c840; }
.bar span { margin-left: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.mail-row { padding: 11px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mail-row span { color: var(--muted); display: inline-block; width: 74px; }
.window textarea {
  display: block; width: 100%; min-height: 250px; resize: vertical; border: 0; outline: none; background: transparent;
  color: var(--fg); padding: 20px 22px 44px; font-family: inherit; font-size: 17px; line-height: 1.7;
}
.demo-bar { max-width: 820px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-bar .hint { color: var(--muted); font-size: 15px; }
.reset { border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 550; cursor: pointer; padding: 8px 4px; }
.reset:hover { color: var(--fg); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 20px; color: var(--muted); font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  padding: 26px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--bg3); margin-bottom: 14px; }
.feat h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.shots figure { margin: 0; }
.shots img { width: 100%; display: block; border-radius: 18px; border: 1px solid var(--line); }
.shots figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Compare */
.table-wrap { max-width: 760px; margin: 0 auto; overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--bg2); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 14px; color: var(--muted); font-weight: 650; }
th.us { color: var(--accent); font-size: 16px; }
td.us { background: color-mix(in srgb, var(--accent) 7%, transparent); }

/* Install */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 28px 24px 26px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--line); }
.num {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent2), var(--accent)); margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.copy {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; padding: 6px 6px 6px 4px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--bg3); color: var(--fg); cursor: pointer; font: inherit;
}
.copy code { background: none; }
.copy span { font-size: 13px; font-weight: 650; padding: 5px 10px; border-radius: 8px; background: var(--bg2); }

/* CTA + footer */
.cta-band { text-align: center; padding-bottom: 90px; }
#ctaInky { display: inline-block; animation: bob 3.2s ease-in-out infinite; margin-bottom: 8px; }
.foot {
  max-width: 1160px; margin: 0 auto; padding: 28px 24px 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--muted); font-size: 14px; border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .ctas { justify-content: center; }
  .hero-art { height: 340px; }
  .big-inky svg { width: 200px; height: 200px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .links a:not(.gh) { display: none; }
  section { padding: 56px 16px; }
  .nav, .hero { padding-left: 16px; padding-right: 16px; }
  .float { font-size: 13px; }
  .f1 { left: -4px; }
  .f2 { right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
