:root {
  --bg: #18181b;
  --panel: #27272a;
  --sub: #202023;
  --border: #3f3f46;
  --fg: #e4e4e7;
  --muted: #a1a1aa;
  --accent: #f59e0b;
  --accent-dim: #b87706;
  --accent-ink: #1c1300;
  --green: #16a34a;
  --blue: #2563eb;
  --purple: #7c3aed;
  --radius: 12px;
  --maxw: 1080px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  /* subtle amber wash near the top, echoing the app's studio header */
  background-image: radial-gradient(1100px 380px at 18% -60px, rgba(245, 158, 11, .10), transparent 60%);
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
code { font-family: "Consolas", "SF Mono", monospace; }
main { flex: 1; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px;
  background: rgba(24, 24, 27, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: .2px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--fg); }
.nav a.active { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; outline: 0;
  font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 10px;
  color: var(--fg); background: var(--panel); border: 1px solid var(--border);
  transition: transform .06s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-wide { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-green { background: var(--green); color: #fff; border-color: transparent; }
.btn-ghost { background: var(--panel); border: 1px solid var(--border); color: var(--fg); }
.btn-ghost:hover { background: var(--sub); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 72px 28px 40px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--accent); font-weight: 800; margin: 0 0 14px; }
.hero h1 { font-size: 46px; line-height: 1.08; margin: 0 0 18px; font-weight: 800; }
.accent { color: var(--accent); }
.lede { color: var(--muted); font-size: 18px; max-width: 48ch; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { background: var(--sub); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.hero-art svg { width: 100%; height: auto; }

/* ---------- hero slideshow ---------- */
.hero-slideshow { padding: 14px; }
.slides { position: relative; display: grid; }
.slide {
  grid-area: 1 / 1; width: 100%; height: auto; display: block;
  border-radius: 8px; opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; cursor: zoom-in; }
.slide-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.dot {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: background .2s ease;
}
.dot.is-active { background: var(--accent); }

/* ---------- image lightbox (full-screen) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(0, 0, 0, .96); cursor: zoom-out;
}
.lightbox.open { display: block; }
.lightbox img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.lightbox-close {
  position: fixed; top: 14px; right: 18px; z-index: 101;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox-close:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 56px 28px; }
.section.narrow { max-width: 760px; }
.page-head { text-align: center; padding-top: 64px; }
.section h2 { font-size: 30px; margin: 0 0 8px; font-weight: 800; }
.section-sub { color: var(--muted); margin: 0 0 28px; }
.center { text-align: center; }

/* ---------- features ---------- */
.feature-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  transition: transform .12s ease, border-color .15s ease;
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--accent); opacity: 0; transition: opacity .15s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--accent); }
.feature:hover::before { opacity: .9; }
.feature h3 { margin: 0 0 8px; font-size: 17px; color: var(--accent); }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.feature code { color: var(--fg); background: var(--sub); padding: 1px 5px; border-radius: 5px; }

/* ---------- pricing plans (light cards) ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.plan {
  background: var(--panel); color: var(--fg);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 26px; text-align: center;
  display: flex; flex-direction: column;
  transition: transform .12s ease, border-color .15s ease;
}
.plan:hover { transform: translateY(-3px); border-color: var(--accent); }
.plan.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 36px rgba(167, 93, 9, .35);
}
.plan-name { font-size: 21px; font-weight: 800; margin: 0 0 16px; color: var(--fg); }
.plan-price { font-size: 42px; font-weight: 800; margin: 0 0 18px; color: #ffffff; line-height: 1; }
.plan-desc { color: var(--muted); font-size: 15px; margin: 0 0 26px; flex: 1; }
.plan-desc a { color: var(--accent); }
.btn-plan {
  background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 18px; border-radius: 9px;
  transition: background .15s ease, transform .06s ease;
}
.btn-plan:hover { background: var(--accent-dim); }
.btn-plan:active { transform: translateY(1px); }

/* ---------- steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 26px 0 0; }
.steps li {
  position: relative; padding: 14px 14px 14px 56px; margin-bottom: 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; color: var(--muted);
}
.steps li code, .steps li strong { color: var(--fg); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #1c1300; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 28px; max-width: var(--maxw); margin: 40px auto 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-weight: 700;
}
.muted { color: var(--muted); font-weight: 500; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }

/* keep accent buttons' text black */
.btn-black-text { color: #000 !important; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 28px; }
.legal h1 { font-size: 30px; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 13px; margin: 0 0 26px; }
.legal h2 { color: var(--accent); font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal .callout {
  background: var(--panel); border: 1px solid var(--accent); border-radius: 10px;
  padding: 14px 16px; color: var(--fg); margin: 18px 0;
}

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 440px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.modal h3 { margin: 0 0 4px; font-size: 22px; }
.modal-sub { color: var(--muted); margin: 0 0 18px; }
.modal-sub.small { font-size: 13px; }
.modal-close {
  position: absolute; top: 12px; right: 14px; background: transparent; border: 0;
  color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--fg); }
.field { display: block; margin: 16px 0; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 12px; border-radius: 9px;
  background: var(--sub); border: 1px solid var(--border); color: var(--fg);
  font-family: inherit; font-size: 15px;
}
.field input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.demo-note { font-size: 12.5px; color: var(--muted); background: var(--sub);
  border: 1px dashed var(--border); border-radius: 8px; padding: 10px 12px; margin: 4px 0 18px; }
.status { min-height: 20px; margin: 12px 0 0; font-size: 14px; color: var(--accent); }
.key-label { color: var(--muted); font-size: 13px; margin: 14px 0 6px; }
.key-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--sub); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 14px;
}
.key-box code { font-size: 20px; letter-spacing: 1px; color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .feature-grid, .plans { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .nav { gap: 14px; }
  .nav a:not(.btn) { font-size: 13px; }
}

.btn-black-text {
  color: #000000 !important;
  font-style: bold !important;
}

/* "See features" is a secondary (ghost) button, not a solid accent one. */
.btn-features { background: var(--panel); color: var(--fg) !important; border: 1px solid var(--border); }
.btn-features:hover { background: var(--sub); border-color: var(--accent); }