:root {
  --bg: #fbfbfa;
  --panel: #ffffff;
  --ink: #0b0f0c;
  --ink-2: #3f4541;
  --ink-3: #6b726d;
  --ink-4: #9aa19c;
  --line: #e7e8e5;
  --line-2: #f0f1ee;
  --green: #16a34a;
  --green-2: #22c55e;
  --green-soft: #ecfdf3;
  --frame: 1120px;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01", "ss03";
  /* hatched gutters outside the main frame, Hodle-style */
  background-image:
    linear-gradient(var(--bg), var(--bg)),
    repeating-linear-gradient(135deg, transparent 0 7px, var(--line) 7px 8px);
  background-size: var(--frame) 100%, 100% 100%;
  background-position: center top, 0 0;
  background-repeat: no-repeat, repeat;
}
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .88em; }
h1, h2, h3, h4, h5 { text-wrap: balance; margin: 0; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }

.frame {
  width: min(var(--frame), 100%);
  margin-inline: auto;
  border-inline: 1px solid var(--line);
  position: relative;
  background: var(--bg);
}
.muted { color: var(--ink-4); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(251,251,250,.82); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav .frame { background: transparent; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; padding-inline: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.brand svg { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { font-size: 14px; color: var(--ink-2); padding: 6px 12px; border-radius: 8px; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--line-2); color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; font-size: 14.5px; font-weight: 500; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 1px 2px rgba(0,0,0,.2); }
.btn-dark:hover { background: #1d241f; transform: translateY(-1px); }
.btn-light { background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.btn-light:hover { border-color: #d6d8d4; transform: translateY(-1px); }
.kbd { font-size: 12px; color: var(--ink-3); }

/* Hero */
.hero-frame { padding: 112px 24px 88px; overflow: hidden; text-align: center; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 30%, transparent 75%);
}
.hero-frame::after {
  content: ""; position: absolute; left: 50%; bottom: -220px; width: 900px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(74,222,128,.22), rgba(74,222,128,0));
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-bottom: 18px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 2px; background: var(--green-2); }
.hero h1 { font-size: clamp(44px, 7.4vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; }
.lede { margin: 24px auto 0; max-width: 640px; font-size: 18px; color: var(--ink-2); line-height: 1.6; }
.cta-row { display: flex; gap: 10px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* Mock */
.mock-frame { padding: 0 24px 72px; border-bottom: 1px solid var(--line); }
.mock-frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); }
.mock {
  position: relative; margin-top: -1px; display: grid; grid-template-columns: 210px 1fr;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(16,24,18,.25), 0 8px 20px -12px rgba(16,24,18,.12);
  transform: translateY(-40px);
  font-size: 13px;
}
.mock-side { background: #fafaf9; border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; }
.mock-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 0 8px 16px; font-size: 13px; }
.mock-brand svg { width: 18px; height: 18px; }
.mock-side ul { list-style: none; margin: 0; padding: 0; }
.mock-side li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-3); }
.mock-side li i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); }
.mock-side li.active { background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.mock-side li.active i { background: var(--green-2); }
.mock-usage { margin-top: auto; padding: 12px 10px 0; font-size: 12px; color: var(--ink-3); display: grid; gap: 6px; }
.mock-usage small { color: var(--ink-4); }
.bar { height: 5px; background: var(--line-2); border-radius: 99px; overflow: hidden; flex: 1; }
.bar b { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.mock-main { padding: 20px 22px 8px; min-width: 0; }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.addr { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.addr code { font-weight: 400; color: var(--ink-3); background: var(--line-2); padding: 2px 6px; border-radius: 6px; font-size: 11.5px; }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 120deg, #4ade80, #0ea5e9, #a855f7, #4ade80); }
.mock-head small { color: var(--ink-4); font-size: 12px; margin-left: 30px; }
.mock-tabs { display: flex; gap: 2px; background: var(--line-2); padding: 3px; border-radius: 9px; }
.mock-tabs span { padding: 3px 9px; border-radius: 6px; color: var(--ink-3); font-size: 12px; }
.mock-tabs .on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mock-stats { display: grid; grid-template-columns: 1.35fr 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; }
.stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .label { color: var(--ink-3); font-size: 12px; }
.stat strong { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.delta { font-size: 12px; color: var(--ink-3); }
.delta b { font-weight: 500; color: var(--ink-2); }
.up, .delta.up { color: var(--green) !important; }
.chart { width: 100%; height: 64px; margin-top: 6px; }
.chart .line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.alloc { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 9px; }
.alloc li { display: grid; grid-template-columns: 14px 44px 1fr 30px; align-items: center; gap: 6px; font-size: 12px; }
.alloc em { font-style: normal; color: var(--ink-3); text-align: right; font-family: var(--mono); font-size: 11px; }
.tk { width: 12px; height: 12px; border-radius: 50%; }
.tk.eth { background: #627eea; } .tk.usdc { background: #2775ca; } .tk.pol { background: #8247e5; } .tk.other { background: var(--ink-4); }
.mock-table { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.row { display: grid; grid-template-columns: 2.2fr 1fr 1.6fr .9fr; padding: 10px 14px; align-items: center; border-top: 1px solid var(--line-2); gap: 10px; }
.row > span { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row > span:last-child { justify-content: flex-end; font-family: var(--mono); font-size: 12px; }
.row.th { border-top: 0; background: #fafaf9; color: var(--ink-3); font-size: 12px; padding-block: 8px; }
.row.hl { background: linear-gradient(90deg, var(--green-soft), #fff 70%); }
.row.fade { opacity: .55; }
.ic { width: 20px; height: 20px; border-radius: 6px; background: var(--line-2); position: relative; flex: none; }
.ic::after { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 11px; color: var(--ink-2); }
.ic.swap::after { content: "⇄"; } .ic.bridge::after { content: "↗"; } .ic.in::after { content: "↓"; } .ic.dep::after { content: "＋"; }
.net { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.net.pol { background: #8247e5; } .net.eth { background: #627eea; }
.tag { font-style: normal; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag.cex { background: #fff7e6; border-color: #fde7b0; color: #8a5a00; }

/* Cells */
.cells { display: grid; border-bottom: 1px solid var(--line); }
.cells.three { grid-template-columns: repeat(3, 1fr); }
.cell { padding: 40px 32px 44px; }
.cell + .cell { border-left: 1px solid var(--line); }
.cell .icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); margin-bottom: 20px; }
.cell .icon svg { width: 18px; height: 18px; color: var(--ink); }
.cell h3 { font-size: 17px; margin-bottom: 8px; }
.cell p { color: var(--ink-3); font-size: 14.5px; }

/* Sections */
.section { padding: 104px 48px; border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section h2, .cta h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.035em; }
.sub { margin-top: 18px; font-size: 17px; color: var(--ink-3); }
.sub code { color: var(--ink); background: var(--line-2); padding: 1px 6px; border-radius: 6px; }

/* Developers */
.dev-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.code { background: #0b0f0c; color: #d7ddd8; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px -28px rgba(0,0,0,.5); }
.code-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #1c231e; }
.code-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a332d; }
.code-bar em { margin-left: 10px; font-style: normal; font-family: var(--mono); font-size: 12px; color: #7d8a80; }
.code pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.75; }
.code code { font-size: inherit; }
.k { color: #c792ea; } .s { color: #a5e6a8; } .t { color: #ffcb6b; } .f { color: #82aaff; } .n { color: #f78c6c; } .c2 { color: #89ddff; } .cm { color: #5f6e63; }
.dev-points { list-style: none; margin: 0; padding: 0; display: grid; }
.dev-points li { padding: 22px 0; border-top: 1px solid var(--line); }
.dev-points li:first-child { border-top: 0; padding-top: 4px; }
.dev-points h4 { font-size: 16px; margin-bottom: 6px; }
.dev-points p { color: var(--ink-3); font-size: 14.5px; }

/* Pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.pipeline li { padding: 24px 20px 28px; position: relative; }
.pipeline li + li { border-left: 1px solid var(--line); }
.pipeline li + li::before { content: ""; position: absolute; left: -5px; top: 31px; width: 9px; height: 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 50%; }
.pipeline .step { font-family: var(--mono); font-size: 11.5px; color: var(--green); }
.pipeline h4 { font-size: 16px; margin: 10px 0 6px; }
.pipeline p { font-size: 13.5px; color: var(--ink-3); }

/* Chains */
.chains { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.chain { display: flex; align-items: center; gap: 12px; padding: 22px 20px; font-weight: 500; font-size: 15px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin: -1px 0 0 -1px; }
.logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 600; flex: none; }
.logo.pol { background: #8247e5; } .logo.eth { background: #627eea; } .logo.base { background: #0052ff; } .logo.arb { background: #213147; }
.logo.op { background: #ff0420; } .logo.bnb { background: #f0b90b; color: #1e2026; } .logo.ava { background: #e84142; } .logo.more { background: var(--line-2); color: var(--ink-3); border: 1px dashed #cfd2cd; }
.status { white-space: nowrap; margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--ink-4); padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); }
.status.live { color: var(--green); background: var(--green-soft); border-color: #bbf7d0; }
.status.next { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }

/* Company */
.company-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.company-copy { display: grid; gap: 16px; font-size: 17px; color: var(--ink-2); }
.company-copy strong { color: var(--ink); font-weight: 600; }

/* CTA */
.cta { padding: 120px 24px; text-align: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.cta > * { position: relative; }
.cta p { margin-top: 18px; color: var(--ink-3); font-size: 17px; }

/* Footer */
.footer .frame { background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding: 56px 48px 44px; flex-wrap: wrap; }
.footer-brand p { margin-top: 12px; color: var(--ink-3); font-size: 14px; max-width: 260px; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols div { display: grid; gap: 10px; align-content: start; }
.footer-cols h5 { font-size: 13px; color: var(--ink); margin-bottom: 4px; font-weight: 600; letter-spacing: 0; }
.footer-cols a { font-size: 14px; color: var(--ink-3); }
.footer-cols a:hover { color: var(--ink); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 48px 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-4); }

/* Responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
  .stat-chart { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .stat-chart + .stat { border-left: 0; }
  .dev-grid, .company-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline li + li { border-left: 0; border-top: 1px solid var(--line); }
  .pipeline li + li::before { display: none; }
  .chains { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .mock { transform: translateY(-24px); }
  .hero-frame { padding: 72px 20px 64px; }
  .lede { font-size: 16px; }
  .mock-frame { padding: 0 12px 48px; }
  .mock-main { padding: 14px 12px 4px; }
  .mock-tabs { display: none; }
  .mock-stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat-chart { border-bottom: 0; }
  .row { grid-template-columns: 1fr auto; }
  .row > span:nth-child(2), .row > span:nth-child(3) { display: none; }
  .cells.three { grid-template-columns: 1fr; }
  .cell + .cell { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 72px 20px; }
  .chains { grid-template-columns: 1fr; }
  .footer-inner, .footer-legal { padding-inline: 20px; }
  .footer-cols { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .chart .line { stroke-dashoffset: 0; }
}
