:root {
  --blue: #4c7cf7;
  --blue-bright: #6d8dfb;
  --purple: #a855f7;
  --purple-bright: #c084fc;
  --ink: #0b0d14;
  --paper: #f8f8fb;
  --bg: #0a0b12;
  --bg-soft: #10121c;
  --card: #14162280;
  --border: #ffffff17;
  --muted: #a3a7ba;
  --muted-2: #6d7189;
  --text: #f2f3f8;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
code {
  background: #ffffff12;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 0.9em;
  border: 1px solid var(--border);
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.015em; font-family: var(--serif); font-weight: 600; }
h2 { font-size: clamp(28px, 4.4vw, 40px); text-align: center; margin-bottom: 44px; }
h3 { font-size: 21px; font-weight: 600; }

/* ---------- Background texture ---------- */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-mesh { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.blob-a { width: 560px; height: 560px; background: var(--blue); top: -220px; left: -120px; animation: float-a 22s ease-in-out infinite; }
.blob-b { width: 480px; height: 480px; background: var(--purple); top: 120px; right: -180px; animation: float-b 26s ease-in-out infinite; }
.blob-c { width: 380px; height: 380px; background: #3ee7c1; bottom: -160px; left: 30%; opacity: 0.18; animation: float-c 30s ease-in-out infinite; }
@keyframes float-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.08); } }
@keyframes float-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,60px) scale(1.05); } }
@keyframes float-c { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-30px); } }
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}

/* ---------- Reveal-on-scroll (progressive enhancement only) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1); transition-delay: var(--delay, 0ms); }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 11px; font-weight: 700; text-decoration: none; cursor: pointer; border: none;
  transition: filter 0.15s ease, transform 0.08s ease, box-shadow 0.2s ease; font-family: var(--sans);
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--blue-bright), var(--purple-bright)); color: #05060a; box-shadow: 0 8px 24px -8px #6d8dfb88; }
.btn-ghost { background: #ffffff0d; color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(6px); }
.btn-small { padding: 9px 18px; font-size: 13px; }
.btn-large { padding: 15px 28px; font-size: 15.5px; }
.btn-full { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: #0a0b12aa; backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; text-decoration: none; color: var(--text); font-family: var(--sans); }
.brand-badge { background: linear-gradient(135deg, var(--blue-bright), var(--purple-bright)); color: #05060a; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 7px; }
.nav-links { display: flex; gap: 26px; flex: 1; justify-content: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 700px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.eyebrow { color: var(--purple-bright); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 50px); }
.grad-text { background: linear-gradient(135deg, var(--blue-bright), var(--purple-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.lede { font-size: 17.5px; color: var(--muted); max-width: 500px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.reassure { font-size: 12.5px; color: var(--muted-2); }

/* ---------- Hero mockup ---------- */
.hero-visual { position: relative; }
.mockup-window {
  border-radius: 18px; overflow: hidden; background: #12131c; border: 1px solid var(--border);
  box-shadow: 0 40px 90px -30px #000000cc, 0 0 0 1px #ffffff08 inset;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.mockup-titlebar { display: flex; gap: 7px; padding: 11px 14px; background: #191b26; border-bottom: 1px solid var(--border); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.mockup-popup { padding: 20px; background: linear-gradient(180deg, #14162280, #0f101988); }
.mp-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mp-icon { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--blue-bright), var(--purple-bright)); color: #05060a; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.mp-title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.mp-tagline { font-size: 10.5px; color: var(--muted-2); }
.mp-card { background: #ffffff08; border: 1px solid var(--border); border-radius: 12px; padding: 13px; margin-bottom: 10px; }
.mp-card-title { font-size: 11.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.mp-dot { width: 6px; height: 6px; border-radius: 50%; }
.mp-dot-blue { background: var(--blue-bright); } .mp-dot-purple { background: var(--purple-bright); }
.mp-badge { font-size: 8px; background: #a855f733; color: var(--purple-bright); padding: 1px 6px; border-radius: 999px; font-weight: 700; }
.mp-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #05060a; }
.mp-btn svg { width: 13px; height: 13px; }
.mp-btn-blue { background: linear-gradient(135deg, var(--blue-bright), #7ea4ff); }
.mp-btn-purple { background: linear-gradient(135deg, var(--purple-bright), #d6a9ff); }
.mp-progress { height: 4px; background: #ffffff14; border-radius: 999px; margin-top: 9px; overflow: hidden; }
.mp-progress-fill { height: 100%; width: 0%; background: var(--blue-bright); border-radius: 999px; transition: width 1.6s cubic-bezier(.2,.7,.3,1); }
.mp-progress-fill.accent { background: var(--purple-bright); }
.mp-status { font-size: 10.5px; color: var(--muted-2); text-align: center; margin-top: 4px; }

.floaty {
  position: absolute; background: #141622ee; border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; font-size: 11px; font-family: monospace; color: var(--muted);
  box-shadow: 0 14px 30px -12px #000000aa; backdrop-filter: blur(8px);
}
.floaty .ok { color: #3ee7c1; margin-left: 6px; }
.floaty-1 { top: -14px; right: -18px; animation: bob 5s ease-in-out infinite; }
.floaty-2 { bottom: 30px; left: -30px; animation: bob 5s ease-in-out infinite 1.2s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) { .floaty { display: none; } .mockup-window { transform: none; } }
@media (prefers-reduced-motion: reduce) { .floaty { animation: none; } }

/* ---------- Pain ---------- */
.pain { padding: 72px 0; }
.pain h2 { max-width: 680px; margin-left: auto; margin-right: auto; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.pain-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 26px; backdrop-filter: blur(10px); transition: transform 0.2s ease, border-color 0.2s ease; }
.pain-card:hover { transform: translateY(-4px); border-color: #ffffff30; }
.pain-num { font-family: var(--serif); font-size: 13px; color: var(--muted-2); margin-bottom: 10px; }
.pain-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- How / features ---------- */
.how { padding: 72px 0; }
.feature-row { display: flex; align-items: center; gap: 48px; margin-bottom: 56px; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-row:last-child { margin-bottom: 0; }
.feature-copy { flex: 1; }
.feature-visual { flex: 1; }
.feature-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; font-family: var(--sans); }
.tag-blue { background: #4c7cf722; color: var(--blue-bright); border: 1px solid #4c7cf740; }
.tag-purple { background: #a855f722; color: var(--purple-bright); border: 1px solid #a855f740; }
.feature-copy p { color: var(--muted); font-size: 15px; }
.badge { background: #ffffff18; font-size: 9px; padding: 1px 6px; border-radius: 999px; }

.code-window { border-radius: 14px; overflow: hidden; background: #10111a; border: 1px solid var(--border); box-shadow: 0 24px 60px -24px #000000cc; }
.code-titlebar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #171927; border-bottom: 1px solid var(--border); }
.code-filename { margin-left: 8px; font-size: 11px; color: var(--muted-2); font-family: monospace; }
.code-body { margin: 0; padding: 18px; font-family: "Cascadia Code", Consolas, monospace; font-size: 12.5px; color: #d3d6e6; line-height: 1.8; overflow-x: auto; }
.ct-dir { color: var(--blue-bright); } .ct-file { color: var(--muted); display: block; }
.ct-html { color: #3ee7c1; } .ct-kw { color: var(--purple-bright); } .ct-str { color: #3ee7c1; }
.ct-fn { color: var(--blue-bright); } .ct-tag { color: #ff8ba7; } .ct-attr { color: #ffd479; }

@media (max-width: 800px) { .feature-row, .feature-row.reverse { flex-direction: column; } }

/* ---------- Steps ---------- */
.steps { padding: 72px 0; }
.step-track { position: relative; }
.step-line { display: none; }
@media (min-width: 720px) {
  .step-line { display: block; position: absolute; top: 16px; left: 5%; width: 90%; height: 2px; }
  .step-line line { stroke: var(--border); stroke-width: 2; }
}
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; position: relative; }
.step-list li { display: flex; gap: 14px; }
.step-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-bright), var(--purple-bright)); color: #05060a; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; font-family: var(--sans); box-shadow: 0 0 0 5px var(--bg); }
.step-list strong { font-family: var(--sans); font-size: 15px; }
.step-list p { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; }

/* ---------- Pricing ---------- */
.pricing { padding: 80px 0; }
.price-card {
  max-width: 400px; margin: 0 auto; background: linear-gradient(180deg, #171a28, #101220);
  border: 1px solid #ffffff22; border-radius: 22px; padding: 36px; text-align: center;
  box-shadow: 0 30px 80px -30px #000000dd, 0 0 60px -20px #6d8dfb44;
}
.price-eyebrow { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.price-was { font-size: 20px; color: var(--muted-2); text-decoration: line-through; font-family: var(--serif); }
.price-amount { font-size: 48px; font-weight: 700; margin: 0; font-family: var(--serif); background: linear-gradient(135deg, var(--blue-bright), var(--purple-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-sub { color: var(--muted); font-size: 12.5px; margin: 6px 0 22px; }
.price-list { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; }
.price-list li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text); }
.price-list li:last-child { border-bottom: none; }
.price-list li::before { content: "✓ "; color: var(--blue-bright); font-weight: 800; }
.price-note { font-size: 11.5px; color: var(--muted-2); margin: 14px 0 0; }

/* ---------- FAQ ---------- */
.faq { padding: 72px 0 90px; max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-item summary { cursor: pointer; padding: 16px 4px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted-2); font-size: 20px; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 14px; margin: 0 4px 16px; }

/* ---------- Footer ---------- */
.site-footer { padding: 30px 0; text-align: center; color: var(--muted-2); font-size: 12.5px; border-top: 1px solid var(--border); }
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Blog ---------- */
.blog-hero { padding: 64px 0 20px; text-align: center; }
.blog-hero h1 { font-size: clamp(30px, 4.4vw, 42px); }
.blog-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.blog-grid { padding: 40px 0 90px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-decoration: none; display: block; transition: transform 0.2s ease, border-color 0.2s ease; backdrop-filter: blur(10px); }
.blog-card:hover { transform: translateY(-4px); border-color: #ffffff30; }
.blog-card .tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--purple-bright); margin-bottom: 10px; display: block; }
.blog-card h2 { font-size: 18px; text-align: left; margin-bottom: 8px; color: var(--text); }
.blog-card p { color: var(--muted); font-size: 13.5px; margin: 0; }

.post { padding: 60px 0 40px; max-width: 720px; margin: 0 auto; }
.post .post-eyebrow { color: var(--purple-bright); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.post h1 { font-size: clamp(28px, 4.4vw, 38px); margin-bottom: 10px; }
.post .post-meta { color: var(--muted-2); font-size: 12.5px; margin-bottom: 36px; }
.post h2 { text-align: left; font-size: 21px; margin: 34px 0 12px; }
.post h3 { font-size: 16.5px; margin: 24px 0 8px; }
.post p, .post li { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.post ul, .post ol { padding-left: 22px; }
.post a { color: var(--blue-bright); }
.post strong { color: var(--text); }
.post-cta { margin: 44px 0; padding: 26px; border-radius: 16px; background: linear-gradient(135deg, #4c7cf722, #a855f722); border: 1px solid var(--border); text-align: center; }
.post-cta p { color: var(--text); margin: 0 0 14px; font-size: 15px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.post-nav a { font-size: 13.5px; }
