:root {
  --bg: #f1efe9;
  --bg-elev: #f7f5f0;
  --card: #ffffff;
  --card-hover: #fffdfa;
  --border: #dedad1;
  --border-light: #cbc6ba;
  --text: #191817;
  --text-dim: #45423d;
  --muted: #6f6a62;
  --accent: #e2622e;
  --accent-2: #e2622e;
  --accent-dim: #c8511f;
  --accent-soft: #f7ded1;
  --accent-glow: rgba(226, 98, 46, 0.1);
  --danger: #c0392b;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --sans: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cfcabf; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #b8b2a5; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241, 239, 233, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--text); }
.logo .mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.btn {
  background: var(--accent); color: #fff; padding: 12px 24px; border-radius: 6px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .18s, transform .12s; border: 1px solid var(--accent);
  cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
}
.btn:hover { background: var(--accent-dim); border-color: var(--accent-dim); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn.ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 40px; text-align: center; }
.badge-link {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border-light);
  border-radius: 4px; padding: 9px 18px; font-size: 14px; color: var(--text-dim); margin-bottom: 40px;
  transition: border-color .2s, color .2s;
}
.badge-link:hover { border-color: var(--accent); color: var(--accent); }
.badge-link .arrow { color: var(--accent); }
.hero h1 {
  font-size: clamp(42px, 6.6vw, 76px); line-height: 1.06; letter-spacing: -0.035em;
  font-weight: 700; margin-bottom: 26px; max-width: 16ch; margin-inline: auto;
}
.tag { display: none; }
.grad { color: var(--accent); }
.hero p.sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 580px; margin: 0 auto 38px; line-height: 1.55; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* Framed hero visual with corner ticks */
.frame { position: relative; margin-top: 72px; border: 1px solid var(--accent); padding: 40px; background: transparent; }
.frame::before, .frame::after,
.frame > .ctl, .frame > .ctr { content: ""; position: absolute; width: 9px; height: 9px; background: var(--accent); }
.frame::before { top: -5px; left: -5px; }
.frame::after { top: -5px; right: -5px; }
.frame > .ctl { bottom: -5px; left: -5px; }
.frame > .ctr { bottom: -5px; right: -5px; }
.frame svg { width: 100%; height: auto; display: block; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 64px 0; }
.stat { text-align: center; }
.stat .num { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; }
.stat .lbl { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Ticker ---------- */
.ticker { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; white-space: nowrap; position: relative; background: var(--bg-elev); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-elev), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg-elev), transparent); }
.ticker .track { display: inline-block; padding: 13px 0; animation: scroll 60s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .item { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 24px; }
.ticker .item b { color: var(--accent); font-weight: 500; }
.ticker .item i { color: var(--text-dim); font-style: normal; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-elev); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
}
.eyebrow::before { content: "[ "; }
.eyebrow::after { content: " ]"; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.035em; font-weight: 700; margin-bottom: 18px; line-height: 1.1; }
.section-head p { color: var(--muted); font-size: 17.5px; line-height: 1.6; }

/* ---------- Problem cards ---------- */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px; }
.problem .pnum { font-family: var(--mono); font-size: 34px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; margin-bottom: 14px; }
.problem h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.problem p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Product blocks ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px; transition: border-color .2s, transform .2s; min-height: 250px;
}
.product:hover { border-color: var(--accent); transform: translateY(-2px); }
.product .ptag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.product h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 14px; }
.product p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.product .plink { margin-top: auto; font-size: 14.5px; font-weight: 600; color: var(--accent); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.step .n { font-family: var(--mono); font-size: 12px; color: #fff; background: var(--accent); width: 30px; height: 30px; border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-weight: 500; }
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.value h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 12px; }
.value p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---------- Code ---------- */
.code {
  position: relative; background: #16150f; border-radius: 10px; border: 1px solid #262418;
  padding: 44px 26px 24px; font-family: var(--mono); font-size: 13px; line-height: 1.8;
  overflow-x: auto; color: #ddd8cc; white-space: pre-wrap; word-break: break-word;
}
.code::before {
  content: ""; position: absolute; top: 16px; left: 20px; width: 11px; height: 11px; border-radius: 50%;
  background: #ff5f56; box-shadow: 19px 0 #ffbd2e, 38px 0 #27c93f;
}
.code .c { color: #7d766a; }
.code .k { color: #f0894f; }
.code .s { color: #d8c07a; }

/* ---------- Ecosystem ---------- */
.eco { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.eco .chip { display: flex; align-items: center; gap: 9px; padding: 13px 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); font-weight: 600; font-size: 15px; color: var(--text-dim); transition: border-color .2s, color .2s; }
.eco .chip:hover { border-color: var(--accent); color: var(--accent); }
.eco .chip .dot { display: none; }

/* ---------- Roadmap ---------- */
.roadmap { display: flex; flex-direction: column; max-width: 860px; margin: 0 auto; }
.phase { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--border); align-items: start; }
.phase:first-child { border-top: 1px solid var(--border); }
.phase .badge { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); padding-top: 4px; }
.phase.live .badge { color: var(--accent); }
.phase h4 { font-size: 19px; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.025em; }
.phase p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; font-size: 17.5px; font-weight: 600;
  letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--accent); font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 15.5px; line-height: 1.7; padding-bottom: 26px; max-width: 92%; }

/* ---------- CTA ---------- */
.cta-banner { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 76px 40px; }
.cta-banner h2 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.035em; font-weight: 700; margin-bottom: 18px; line-height: 1.1; }
.cta-banner p { color: var(--muted); font-size: 17.5px; margin-bottom: 34px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 76px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 300px; line-height: 1.65; }
.footer-col h5 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 20px; font-weight: 400; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14.5px; margin-bottom: 12px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .disclaimer { color: #8b857b; font-size: 12.5px; max-width: 660px; line-height: 1.6; }
.footer-bottom .socials { display: flex; gap: 20px; }
.footer-bottom .socials a { color: var(--muted); font-size: 13.5px; }
.footer-bottom .socials a:hover { color: var(--accent); }

/* ---------- Doc / content pages ---------- */
.doc { max-width: 800px; margin: 0 auto; padding: 72px 0 110px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.035em; font-weight: 700; margin-bottom: 14px; }
.doc > .lead { color: var(--muted); font-size: 18.5px; margin-bottom: 8px; line-height: 1.6; }
.doc h2 { font-size: 27px; margin: 56px 0 16px; letter-spacing: -0.03em; font-weight: 700; }
.doc h3 { font-size: 15px; margin: 32px 0 10px; color: var(--accent); font-family: var(--mono); font-weight: 500; }
.doc p, .doc li { color: var(--text-dim); font-size: 15.5px; line-height: 1.7; }
.doc ul, .doc ol { margin: 14px 0 14px 22px; }
.doc li { margin-bottom: 8px; }
.doc .code { margin: 18px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--text); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; background: var(--bg-elev); }
.doc td { color: var(--muted); }
.doc code { font-family: var(--mono); font-size: 0.9em; background: var(--accent-soft); border-radius: 4px; padding: 1px 6px; color: var(--accent-dim); }
.doc .code code { background: none; padding: 0; color: inherit; }
.pill { display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-dim); vertical-align: middle; font-weight: 500; }
.callout { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 20px 22px; margin: 22px 0; color: var(--text-dim); font-size: 15px; line-height: 1.65; }
.cta-row { display: flex; gap: 12px; margin: 32px 0; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.btn) { display: none; }
  .products, .problems, .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .phase { grid-template-columns: 1fr; gap: 10px; }
  .frame { padding: 24px; }
}
@media (max-width: 600px) {
  .stats, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 76px 0; }
}
