:root {
  --bg: #0c0e13;
  --bg-soft: #12151c;
  --panel: #161a22;
  --line: #232936;
  --text: #e7e9ee;
  --dim: #9aa2b1;
  --brand: #ff6a2b;
  --brand-2: #4c8dff;
  --accent: #38d39f;
  --radius: 14px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #1a1f2b 0%, var(--bg) 55%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.9em; color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
em { color: var(--brand); font-style: normal; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: conic-gradient(from 210deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
  box-shadow: 0 0 18px rgba(255, 106, 43, 0.5);
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; color: var(--dim); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--brand); }

main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; border-bottom: 1px solid var(--line); }

/* Hero */
.hero { padding-top: 56px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--brand); font-weight: 600; margin: 0 0 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 20px; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--dim); max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #12100e; box-shadow: 0 8px 30px rgba(255, 106, 43, 0.28); }
.btn-primary:hover { box-shadow: 0 10px 40px rgba(255, 106, 43, 0.42); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand-2); }

.stats { display: flex; gap: 48px; margin: 48px 0 0; padding: 0; }
.stats dt { font-size: 2.2rem; font-weight: 700; color: var(--text); }
.stats dd { margin: 0; color: var(--dim); font-size: 0.95rem; }

/* Sections */
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.section-lede { color: var(--dim); margin: 0 0 36px; }

/* Features grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #33404f; }
.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--dim); font-size: 0.95rem; }

/* Renders */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shots figure { margin: 0; }
.shots img {
  width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; display: block;
}
.shots figcaption { color: var(--dim); font-size: 0.88rem; margin-top: 10px; }

/* Pipeline */
.pipeline { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.pipeline li {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 1.02rem;
}
.pipeline span {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 700; color: #12100e;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* Scope */
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.scope-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.scope-col.do { background: rgba(56, 211, 159, 0.06); }
.scope-col.dont { background: rgba(255, 106, 43, 0.05); }
.scope-col h3 { margin: 0 0 14px; }
.scope-col ul { margin: 0; padding-left: 20px; color: var(--dim); }
.scope-col li { margin-bottom: 8px; }

/* Download */
.download { text-align: center; border-bottom: none; }
.download .hero-actions { justify-content: center; }
.download p { color: var(--dim); max-width: 640px; margin: 0 auto; }
.download-alt { margin-top: 18px; }
.download-alt a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }
.download-alt a:hover { color: var(--text); }

/* Footer */
.footer { max-width: var(--max); margin: 0 auto; padding: 32px 24px 60px; color: var(--dim); }
.footer p { margin: 4px 0; }
.muted { font-size: 0.85rem; opacity: 0.7; }

@media (max-width: 860px) {
  .grid, .shots { grid-template-columns: 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
  .stats { gap: 28px; flex-wrap: wrap; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* =====================================================================
   Premium layer — animated backdrop, glass nav, hero mockup, scroll
   reveals, gradient text, richer cards. Pure CSS/JS, no dependencies.
   ===================================================================== */

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
@keyframes hue { to { background-position: 300% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(8px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Animated aurora + fine grain behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 18%, rgba(255, 106, 43, 0.18), transparent 60%),
    radial-gradient(42% 52% at 82% 14%, rgba(76, 141, 255, 0.16), transparent 60%),
    radial-gradient(46% 56% at 62% 84%, rgba(56, 211, 159, 0.12), transparent 60%);
  filter: blur(32px);
  animation: drift 22s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%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");
}

/* Glass navigation that gains a hairline + blur once you scroll. */
.nav {
  border-radius: 0 0 16px 16px;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 14, 19, 0.72);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.brand-mark { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease; }
.brand:hover .brand-mark { transform: rotate(90deg) scale(1.08); box-shadow: 0 0 26px rgba(255, 106, 43, 0.7); }
.nav-cta { transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.nav-cta:hover { background: rgba(255, 106, 43, 0.12); }

/* Hero becomes a two-column layout with an animated browser mockup. */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
  padding-top: 64px;
}
.hero-copy > * { opacity: 0; animation: fadeUp 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero-copy .eyebrow { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.16s; }
.hero-copy .lede { animation-delay: 0.30s; }
.hero-copy .hero-actions { animation-delay: 0.44s; }
.hero-copy .stats { animation-delay: 0.58s; }

.hero h1 em {
  background: linear-gradient(100deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hue 9s linear infinite;
}
.stats dt { font-variant-numeric: tabular-nums; }

.hero-visual { perspective: 1200px; opacity: 0; animation: fadeUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s forwards; }
.browser-mock {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}
.browser-mock-inner { animation: floaty 7s ease-in-out infinite; }
.bm-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #12151c;
  border-bottom: 1px solid var(--line);
}
.bm-dot { width: 11px; height: 11px; border-radius: 50%; background: #3a404b; }
.bm-dot:nth-child(1) { background: #ff5f57; }
.bm-dot:nth-child(2) { background: #febc2e; }
.bm-dot:nth-child(3) { background: #28c840; }
.bm-url {
  margin-left: 10px;
  flex: 1;
  font: 12px/1.4 var(--mono);
  color: var(--dim);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bm-view { background: #fff; padding: 24px; min-height: 288px; }
.bm-h1 { height: 22px; width: 62%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); margin-bottom: 18px; }
.bm-line { height: 10px; border-radius: 5px; background: #e6e8ee; margin: 11px 0; }
.bm-line.short { width: 68%; }
.bm-block { height: 74px; border-radius: 12px; background: #f2f4f9; border: 1px solid #e6e8ee; margin: 18px 0; }
.bm-chip { height: 26px; width: 128px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); margin-top: 16px; }

/* Buttons gain a light sweep on hover. */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.btn:hover::after { left: 150%; }
.btn-primary:hover { transform: translateY(-1px); }

/* Scroll-reveal for section headings and grouped items. */
.js section > h2,
.js section > .section-lede,
.js .reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js section.in > h2,
.js section.in > .section-lede,
.js .reveal-group > *.in {
  opacity: 1;
  transform: none;
}

/* Richer feature cards: a gradient hairline appears on hover. */
.card { position: relative; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 106, 43, 0.6), rgba(76, 141, 255, 0.4), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.card:hover::before { opacity: 1; }

/* Pipeline gets a glowing connector rail. */
.pipeline { position: relative; }
.pipeline li { transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease; }
.pipeline li:hover { transform: translateX(4px); border-color: var(--brand-2); background: #12151c; }
.pipeline span { box-shadow: 0 6px 18px rgba(255, 106, 43, 0.3); }

.shots figure { transition: transform 0.2s ease; }
.shots img { transition: transform 0.3s ease, border-color 0.2s ease; }
.shots figure:hover img { transform: scale(1.015); border-color: var(--brand-2); }

/* Themed scrollbar. */
html { scrollbar-color: #2a2f3a transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2f3a; border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #3a4150; background-clip: content-box; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body::before { animation: none; }
  .hero-copy > *, .hero-visual { opacity: 1 !important; transform: none !important; }
  .js section > h2, .js section > .section-lede, .js .reveal-group > * { opacity: 1 !important; transform: none !important; }
}
