/* ============================================================
   QUANTORA — design system
   "Release engineering" aesthetic: terminal/build-log motifs,
   version tags, changelogs. No blue, yellow, cyan or purple.
   No gradients. Palette: near-black + graphite + vivid orange.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0b0b0c;
  --bg-raised: #131314;
  --panel: #171718;
  --panel-2: #1d1d1e;
  --border: #2a2a2b;
  --border-soft: #202021;

  --orange: #ff5a1f;
  --orange-soft: #ff8555;
  --orange-dim: #4d2314;
  --orange-wash: rgba(255, 90, 31, 0.1);

  --text: #f3f1ec;
  --text-dim: #a6a39c;
  --text-faint: #6d6a63;

  --ok: #7fbf7f;
  --err: #ff6b6b;

  --radius: 3px;
  --display: 'Space Grotesk', sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* subtle dot-grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  background-image: radial-gradient(rgba(243,241,236,0.025) 1px, transparent 1px);
  background-size: 22px 22px;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-soft); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--text);
}
h1 { font-size: 46px; }
h2 { font-size: 30px; }
h3 { font-size: 19px; }

p { color: var(--text-dim); margin: 0 0 16px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.kicker::before { content: '//'; opacity: 0.7; }

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.32s; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .mark {
  width: 12px; height: 12px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}
.logo .mark { animation: blink-mark 2.2s ease-in-out infinite; }
@keyframes blink-mark { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

nav.main-nav { display: flex; gap: 30px; align-items: center; }
nav.main-nav a {
  font-size: 14px;
  font-family: var(--mono);
  color: var(--text-dim);
}
nav.main-nav a:hover, nav.main-nav a.current { color: var(--orange); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
}

/* ---------------- Buttons ---------------- */

.btn {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13.5px;
  padding: 14px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #140900; }
.btn-primary:hover { background: var(--orange-soft); box-shadow: 0 0 0 3px var(--orange-wash); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------------- Hero: terminal ---------------- */

.hero {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 560px; }
.hero h1 .accent { color: var(--orange); }
.hero .lede { font-size: 17px; max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: 12.5px; color: var(--text-faint); font-family: var(--mono); }

/* floating geometric shapes, ambient */
.float-shape {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 4px;
  opacity: 0.5;
  animation: drift 14s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-8px, 12px) rotate(6deg); }
}

.terminal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6);
}
.terminal .term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.terminal .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.terminal .term-title { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.terminal .term-body {
  padding: 22px 20px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.9;
  min-height: 260px;
}
.terminal .ln { color: var(--text-dim); }
.terminal .ln .prompt { color: var(--orange); margin-right: 8px; }
.terminal .ln .ok { color: var(--ok); }
.terminal .cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--orange);
  vertical-align: text-bottom;
  animation: blink-cursor 1s step-end infinite;
}
@keyframes blink-cursor { 50% { opacity: 0; } }

/* ---------------- Tech marquee ---------------- */

.marquee-wrap {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
}
.marquee-track span::after { content: '◆'; margin-left: 48px; color: var(--border); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- Sections ---------------- */

section { padding: 92px 0; }
.section-head { max-width: 620px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------------- Service module cards ---------------- */

.svc-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 20px 40px -24px rgba(0,0,0,0.55); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card .tag { font-family: var(--mono); font-size: 11px; color: var(--text-faint); margin-bottom: 14px; display: block; }
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { font-size: 14px; margin-bottom: 0; }

/* ---------------- Package / Release cards ---------------- */

.release-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.release-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.release-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -26px rgba(0,0,0,0.6); }
.release-card.featured { border-color: var(--orange); }
.release-card .release-head {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}
.release-card .tag-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.release-card .version {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
  border: 1px solid var(--orange-dim);
  background: var(--orange-wash);
  padding: 3px 9px;
  border-radius: 20px;
}
.release-card .stable-tag { font-family: var(--mono); font-size: 10px; color: var(--text-faint); }
.release-card h3 { margin-bottom: 4px; }
.release-card .subtitle { font-size: 13px; color: var(--text-faint); margin-bottom: 0; }
.release-card .price-line { font-family: var(--display); font-size: 26px; color: var(--text); margin-top: 16px; }
.release-card .price-line .from { font-family: var(--sans); font-size: 11px; color: var(--text-faint); font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.release-card .changelog { padding: 20px 24px; flex: 1; }
.release-card .changelog .chg-title { font-family: var(--mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.release-card ul { list-style: none; margin: 0; padding: 0; }
.release-card li { font-family: var(--mono); font-size: 13px; color: var(--text-dim); padding: 6px 0; display: flex; gap: 10px; }
.release-card li .plus { color: var(--ok); flex-shrink: 0; }
.release-card .release-foot { padding: 0 24px 24px; }

/* ---------------- Progress / build bar (decorative) ---------------- */

.build-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin: 6px 0 0; }
.build-bar .fill { height: 100%; background: var(--orange); width: 0%; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* ---------------- Process steps ---------------- */

.steps { display: flex; gap: 0; }
.steps .step { flex: 1; padding-right: 24px; position: relative; }
.steps .step:not(:last-child)::after {
  content: '';
  position: absolute; top: 20px; right: 0; width: 24px; height: 1px;
  background: var(--border);
}
.steps .idx { font-family: var(--mono); font-size: 12px; color: var(--orange); margin-bottom: 12px; }
.steps h4 { font-family: var(--display); font-weight: 600; font-size: 16px; margin-bottom: 8px; color: var(--text); }
.steps p { font-size: 13px; }

/* ---------------- Info strip (honest, no invented numbers) ---------------- */

.info-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.info-strip .item { border-left: 2px solid var(--orange); padding-left: 16px; }
.info-strip .item .label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 8px; }
.info-strip .item .value { font-family: var(--display); font-size: 17px; color: var(--text); }

/* ---------------- CTA band ---------------- */

.cta-band {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 480px; margin: 0 auto 28px; }

/* ---------------- Builder / configurator ---------------- */

.builder-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.builder-steps-nav { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.builder-steps-nav .bstep {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  border: 1px solid var(--border); padding: 8px 14px; border-radius: 20px;
}
.builder-steps-nav .bstep.active { color: var(--orange); border-color: var(--orange-dim); background: var(--orange-wash); }
.builder-steps-nav .bstep.done { color: var(--ok); border-color: var(--border); }

.module-group { margin-bottom: 36px; }
.module-group h3 { font-size: 15px; margin-bottom: 14px; color: var(--text-dim); font-family: var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.module-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.module-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  background: var(--panel);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.module-item:hover { border-color: var(--text-faint); }
.module-item.selected { border-color: var(--orange); background: var(--orange-wash); }
.module-item .box {
  width: 18px; height: 18px; border: 1.5px solid var(--border);
  border-radius: 4px; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.module-item.selected .box { background: var(--orange); border-color: var(--orange); }
.module-item.selected .box::after { content: '✓'; color: #140900; font-size: 12px; font-weight: 700; }
.module-item .mtext strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.module-item .mtext span { font-size: 12.5px; color: var(--text-faint); }

.manifest-panel {
  position: sticky;
  top: 100px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.manifest-panel .term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.manifest-panel .term-title { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.manifest-body { padding: 20px; font-family: var(--mono); font-size: 13px; }
.manifest-body .manifest-empty { color: var(--text-faint); }
.manifest-list { list-style: none; padding: 0; margin: 0 0 16px; }
.manifest-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed var(--border-soft);
  color: var(--text-dim); font-size: 12.5px;
  animation: manifest-in 0.25s ease;
}
@keyframes manifest-in { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: translateX(0); } }
.manifest-list li .rm { color: var(--text-faint); cursor: pointer; }
.manifest-list li .rm:hover { color: var(--err); }
.manifest-count { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-faint); }
.manifest-count strong { color: var(--orange); font-size: 15px; }

.form-fields { padding: 0 20px 20px; }
.form-fields .field { margin-bottom: 16px; }
.form-fields label { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-fields input, .form-fields textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}
.form-fields input:focus, .form-fields textarea:focus { outline: none; border-color: var(--orange); }
.form-fields textarea { resize: vertical; min-height: 70px; }

.result-panel { display: none; text-align: center; padding: 40px 24px; }
.result-panel.show { display: block; }
.result-panel .ok-mark {
  width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid var(--ok);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: var(--ok); font-size: 24px;
}
.err-text { color: var(--err); font-size: 12.5px; margin-top: 10px; display: none; }
.err-text.show { display: block; }

/* ---------------- FAQ ---------------- */

.faq-item { border-bottom: 1px solid var(--border-soft); padding: 22px 0; }
.faq-item h4 { font-family: var(--sans); font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--text); }
.faq-item p { font-size: 14px; margin-bottom: 0; }

/* ---------------- Footer ---------------- */

footer { background: var(--bg-raised); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 16px; }
.footer-grid a, .footer-grid p { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-faint); font-family: var(--mono); }
.footer-bottom .legal-links { display: flex; gap: 18px; }
.footer-bottom .legal-links a { color: var(--text-faint); }
.footer-bottom .legal-links a:hover { color: var(--orange); }

/* ---------------- Legal pages ---------------- */

.legal-wrap { max-width: 780px; margin: 0 auto; padding: 64px 24px 100px; }
.legal-wrap .updated { color: var(--text-faint); font-size: 13px; margin-bottom: 44px; font-family: var(--mono); }
.legal-wrap h2 { margin-top: 42px; font-size: 18px; font-family: var(--sans); font-weight: 700; }
.legal-wrap ul { color: var(--text-dim); font-size: 14px; padding-left: 20px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 20px 0; }
.legal-wrap th, .legal-wrap td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; color: var(--text-dim); }
.legal-wrap th { color: var(--orange); font-family: var(--mono); font-weight: 700; background: var(--panel); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; font-size: 13px; color: var(--text-dim); font-family: var(--mono); }
.back-link:hover { color: var(--orange); }

/* ---------------- Page hero (inner pages) ---------------- */

.page-hero { padding: 64px 0 50px; border-bottom: 1px solid var(--border-soft); text-align: center; }
.page-hero .kicker { justify-content: center; }
.page-hero h1 { max-width: 640px; margin: 0 auto 16px; }
.page-hero p { max-width: 560px; margin: 0 auto; font-size: 16px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .builder-layout { grid-template-columns: 1fr; }
  .manifest-panel { position: static; }
  nav.main-nav { position: fixed; top: 66px; left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; padding: 30px 24px; gap: 18px; transform: translateX(100%); transition: transform 0.25s ease; z-index: 99; border-top: 1px solid var(--border); align-items: flex-start; }
  nav.main-nav.open { transform: translateX(0); }
  .menu-toggle { display: block; }
  .grid-3, .grid-4, .release-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; gap: 26px; }
  .steps .step::after { display: none; }
  .module-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .cta-band { padding: 40px 24px; }
  h1 { font-size: 32px; }
}

/* ============================================================
   HOME — editorial layout (poster typography + live bento tiles
   + solid colour blocks). Deliberately avoids the split
   "headline left / code window right / keyword ticker" pattern.
   ============================================================ */

/* masthead strip */
.masthead {
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--text-faint);
  text-transform: uppercase;
}
.masthead .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.masthead b { color: var(--orange); font-weight: 400; }

/* poster hero */
.hx { padding: 56px 0 72px; border-bottom: 1px solid var(--border-soft); position: relative; overflow: hidden; }
.hx-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.hx-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 10.5vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
}
.hx-line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hx-line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: hx-rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
  position: relative;
  cursor: default;
}
.hx-line:nth-child(1) > span { animation-delay: 0.05s; }
.hx-line:nth-child(2) > span { animation-delay: 0.17s; }
.hx-line:nth-child(3) > span { animation-delay: 0.29s; }
.hx-line:nth-child(4) > span { animation-delay: 0.41s; }
@keyframes hx-rise { to { transform: translateY(0); } }
.hx-line.accent > span { color: var(--orange); }
.hx-line > span::after {
  content: attr(data-tag);
  position: absolute;
  left: calc(100% + 18px);
  bottom: 0.28em;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--orange);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.hx-line > span:hover::after { opacity: 1; transform: translateX(0); }
.hx-line.accent > span::after { color: var(--text-dim); }

.hx-side .lede { font-size: 16.5px; margin-bottom: 26px; }
.hx-side .hero-actions { margin-bottom: 0; }

/* rotating circular badge */
.hx-badge {
  position: absolute;
  right: 6%;
  top: 44px;
  width: 132px;
  height: 132px;
  display: block;
  color: #140900;
}
.hx-badge .disc { position: absolute; inset: 0; border-radius: 50%; background: var(--orange); transition: transform 0.3s ease; }
.hx-badge:hover .disc { transform: scale(1.06); }
.hx-badge svg { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.hx-badge svg text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 2.6px; fill: #140900; }
.hx-badge .arrow {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 30px; font-weight: 700; color: #140900;
  transition: transform 0.3s ease;
}
.hx-badge:hover .arrow { transform: rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 16px;
  grid-template-areas:
    "web web seo seo"
    "web web brand ads"
    "sup sup cta cta";
}
.b-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.35s ease, opacity 0.5s ease;
}
.b-tile:hover { border-color: var(--text-faint); transform: translateY(-3px); color: var(--text); }
/* once revealed, hover should respond instantly (no stagger delay) */
.bento.in > .b-tile:hover { transition-delay: 0s; }
.b-tile .b-label { font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-faint); }
.b-tile h3 { margin: 6px 0 0; font-size: 21px; }
.b-tile p { font-size: 13.5px; margin: 6px 0 0; }
.b-web { grid-area: web; }
.b-seo { grid-area: seo; }
.b-brand { grid-area: brand; }
.b-ads { grid-area: ads; }
.b-sup { grid-area: sup; }
.b-cta { grid-area: cta; background: var(--orange); border-color: var(--orange); color: #140900; }
.b-cta:hover { border-color: var(--orange); color: #140900; }
.b-cta .b-label { color: #3d1a07; }
.b-cta h3 { color: #140900; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; line-height: 1.05; }
.b-cta .go { font-family: var(--display); font-size: 40px; font-weight: 700; align-self: flex-end; transition: transform 0.3s ease; line-height: 1; }
.b-cta:hover .go { transform: translateX(8px); }

/* mini browser that assembles itself */
.mini-browser { border: 1px solid var(--border); border-radius: 8px; background: var(--bg); overflow: hidden; flex: 1; min-height: 190px; display: flex; flex-direction: column; }
.mini-browser .mb-bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.mini-browser .mb-bar i { width: 7px; height: 7px; border-radius: 2px; background: var(--border); display: block; }
.mini-browser .mb-body { padding: 12px; display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); flex: 1; align-content: start; }
.mb-block { background: var(--panel-2); border-radius: 4px; opacity: 0; animation: mb-build 7s ease infinite; }
.mb-block.nav { grid-column: 1 / -1; height: 12px; animation-delay: 0.2s; }
.mb-block.hero { grid-column: 1 / -1; height: 54px; background: var(--orange-dim); animation-delay: 0.9s; }
.mb-block.c1 { height: 40px; animation-delay: 1.6s; }
.mb-block.c2 { height: 40px; animation-delay: 1.9s; }
.mb-block.c3 { height: 40px; animation-delay: 2.2s; }
.mb-block.btn { grid-column: 2 / 3; height: 12px; background: var(--orange); animation-delay: 2.9s; }
@keyframes mb-build {
  0% { opacity: 0; transform: translateY(6px); }
  8%, 80% { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0; transform: translateY(0); }
}

/* search results — your listing climbs to the top */
.serp { position: relative; height: 128px; }
.serp .row {
  position: absolute; left: 0; right: 0; height: 26px;
  border-radius: 5px; background: #2c2c2e;
  display: flex; align-items: center; padding: 0 10px;
  font-family: var(--mono); font-size: 11px; color: var(--text-faint);
}
.serp .row.r1 { top: 0; animation: serp-down 6s ease-in-out infinite; }
.serp .row.r2 { top: 34px; animation: serp-down 6s ease-in-out infinite; }
.serp .row.r3 { top: 68px; animation: serp-down 6s ease-in-out infinite; }
.serp .row.you { top: 102px; background: var(--orange); color: #140900; animation: serp-up 6s ease-in-out infinite; }
@keyframes serp-down { 0%, 30% { transform: translateY(0); } 55%, 90% { transform: translateY(34px); } 100% { transform: translateY(0); } }
@keyframes serp-up { 0%, 30% { transform: translateY(0); } 55%, 90% { transform: translateY(-102px); } 100% { transform: translateY(0); } }

/* brand specimen */
.specimen { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.specimen .aa { font-size: 64px; line-height: 0.9; font-weight: 700; color: var(--text); transition: font-family 0s; min-width: 90px; }
.specimen .swatches { display: grid; grid-template-columns: repeat(2, 18px); gap: 5px; }
.specimen .swatches i { width: 18px; height: 18px; border-radius: 4px; display: block; border: 1px solid var(--border); }

/* ad performance bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 84px; }
.bars i { flex: 1; background: #34343a; border-radius: 3px 3px 0 0; display: block; height: 20%; animation: bar-grow 5s ease-in-out infinite; }
.bars i:nth-child(1) { --h: 30%; animation-delay: 0s; }
.bars i:nth-child(2) { --h: 44%; animation-delay: 0.12s; }
.bars i:nth-child(3) { --h: 38%; animation-delay: 0.24s; }
.bars i:nth-child(4) { --h: 62%; animation-delay: 0.36s; }
.bars i:nth-child(5) { --h: 74%; animation-delay: 0.48s; }
.bars i:nth-child(6) { --h: 96%; animation-delay: 0.6s; background: var(--orange); }
@keyframes bar-grow { 0% { height: 12%; } 35%, 85% { height: var(--h); } 100% { height: 12%; } }

/* monitoring ticks */
.ticks { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; }
.ticks i { height: 30px; border-radius: 3px; background: #2c2c2e; display: block; animation: tick 3.6s ease infinite; animation-delay: calc(var(--i) * 0.08s); }
@keyframes tick { 0%, 100% { background: #2c2c2e; } 10%, 22% { background: var(--orange); } 40% { background: #2c2c2e; } }

/* starting-point rows (instead of pricing cards) */
.pkg-rows { border-top: 1px solid var(--border); }
.pkg-row {
  display: grid;
  grid-template-columns: 70px 1.1fr 2fr 1fr 40px;
  align-items: center;
  gap: 20px;
  padding: 28px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  position: relative;
  isolation: isolate;
}
.pkg-row::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1);
  z-index: -1;
}
.pkg-row:hover::before { transform: scaleX(1); }
.pkg-row:hover, .pkg-row:hover .desc, .pkg-row:hover .num, .pkg-row:hover .price { color: #140900; }
.pkg-row .num { font-family: var(--mono); font-size: 13px; color: var(--text-faint); transition: color 0.3s ease; }
.pkg-row .name { font-family: var(--display); font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.pkg-row .desc { font-size: 14px; color: var(--text-dim); transition: color 0.3s ease; }
.pkg-row .price { font-family: var(--mono); font-size: 14px; color: var(--orange); text-align: right; transition: color 0.3s ease; }
.pkg-row .arrow { font-family: var(--display); font-size: 26px; text-align: right; transition: transform 0.3s ease; }
.pkg-row:hover .arrow { transform: translateX(6px); }

/* process timeline with a line that draws itself */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 34px; }
.timeline::before { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--border); }
.timeline .tl-fill { position: absolute; top: 7px; left: 0; height: 2px; width: 0; background: var(--orange); transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s; }
.timeline.in .tl-fill { width: 100%; }
.timeline .tl-step { position: relative; }
.timeline .tl-step::before {
  content: ''; position: absolute; top: -34px; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.timeline.in .tl-step::before { border-color: var(--orange); background: var(--orange); }
.timeline.in .tl-step:nth-child(2)::before { transition-delay: 0.35s; }
.timeline.in .tl-step:nth-child(3)::before { transition-delay: 0.75s; }
.timeline.in .tl-step:nth-child(4)::before { transition-delay: 1.15s; }
.timeline.in .tl-step:nth-child(5)::before { transition-delay: 1.55s; }
.timeline .tl-step .idx { font-family: var(--mono); font-size: 12px; color: var(--orange); margin-bottom: 10px; }
.timeline .tl-step h4 { font-size: 18px; margin-bottom: 8px; }
.timeline .tl-step p { font-size: 13.5px; }

/* full-bleed solid orange closer */
.closer { background: var(--orange); color: #140900; padding: 96px 0; }
.closer h2 {
  color: #140900;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 36px;
  max-width: 1000px;
}
.closer .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.closer p { color: #3d1a07; max-width: 420px; margin: 0; font-size: 15px; }
.btn-ink { background: #140900; color: var(--orange); }
.btn-ink:hover { background: #2a1409; color: var(--orange-soft); }

@media (max-width: 900px) {
  .hx-grid { grid-template-columns: 1fr; gap: 32px; }
  .hx-badge { width: 96px; height: 96px; top: 24px; right: 20px; }
  .hx-badge svg text { font-size: 8px; letter-spacing: 1.8px; }
  .hx-line > span::after { display: none; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "web" "seo" "brand" "ads" "sup" "cta"; }
  .ticks { grid-template-columns: repeat(20, 1fr); }
  .ticks i:nth-child(n+21) { display: none; }
  .pkg-row { grid-template-columns: 44px 1fr auto; gap: 12px; }
  .pkg-row .desc, .pkg-row .arrow { display: none; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .closer { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-line > span { animation: none; transform: none; }
  .hx-badge svg, .mb-block, .serp .row, .bars i, .ticks i, .logo .mark { animation: none; }
  .mb-block { opacity: 1; }
  .bars i { height: var(--h); }
}
