@font-face {
  font-family: "Unbounded";
  src: url("/assets/unbounded-latin-ext.woff2") format("woff2");
  font-display: swap;
  font-weight: 200 900;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Unbounded";
  src: url("/assets/unbounded-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 200 900;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin-ext.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0c0c0e;
  --paper: #f7f7f4;
  --line: #d9d9d4;
  --muted: #626269;
  --red: #ed0a0a;
  --green: #15a05c;
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  width: min(1380px, calc(100% - 40px));
  min-height: 92px;
  margin: 14px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(247, 247, 244, .9);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 224px; height: auto; display: block; }
.brand span { padding-left: 18px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.site-header nav a:not(.nav-cta):hover { color: var(--red); }
.nav-cta { padding: 12px 18px; border-radius: 12px; color: #fff; background: var(--ink); }

.hero {
  min-height: 620px;
  padding: 86px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  align-items: center;
  gap: clamp(56px, 6vw, 92px);
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: "Unbounded", sans-serif; letter-spacing: -.045em; line-height: 1.04; }
h1 { max-width: 720px; font-size: clamp(3rem, 4.25vw, 4.65rem); font-weight: 780; line-height: .98; text-wrap: balance; }
h1 span, h1 em { display: block; }
h1 em { margin-top: .08em; color: var(--red); font-style: normal; }
.hero-lead { max-width: 620px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.2vw, 1.18rem); line-height: 1.65; text-wrap: pretty; }
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 56px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid var(--ink); border-radius: 12px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; border-color: var(--red); background: var(--red); }
.button-secondary { background: transparent; }

.hero-visual { position: relative; min-width: 0; padding: 54px 0 0 34px; }
.hero-version { position: absolute; top: -42px; right: -12px; color: #ecece7; font: 800 clamp(7rem, 12vw, 11rem)/1 "Unbounded", sans-serif; letter-spacing: -.1em; user-select: none; }
.terminal-card { position: relative; z-index: 2; overflow: hidden; border: 1px solid #29292d; border-top: 4px solid var(--red); border-radius: 10px 10px 22px 22px; color: #f7f7f4; background: #101012; box-shadow: 0 30px 70px rgba(12, 12, 14, .2); }
.terminal-top { min-height: 66px; padding: 0 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; border-bottom: 1px solid #2c2c31; }
.terminal-top span { padding: 4px 8px; border-radius: 6px; color: #06160e; background: #58e69d; font-size: 11px; font-weight: 900; }
.terminal-top code { overflow: hidden; color: #d3d3d6; text-overflow: ellipsis; white-space: nowrap; }
.terminal-top i { color: #58e69d; font-style: normal; font-weight: 800; }
.terminal-card pre { min-height: 248px; margin: 0; padding: 30px 28px; display: flex; align-items: center; overflow: auto; color: #d7d7dc; font: 13px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-card pre b { color: #ff5757; }
.terminal-card pre mark { color: #58e69d; background: transparent; }
.terminal-response { padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #2c2c31; color: #a9a9b0; font-size: 12px; }
.terminal-meta { position: relative; z-index: 3; width: calc(100% - 28px); margin: -1px 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: #fff; }
.terminal-meta span { min-height: 68px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; color: var(--muted); font-size: 11px; line-height: 1.35; }
.terminal-meta span + span { border-left: 1px solid var(--line); }
.terminal-meta strong { color: var(--ink); font-family: "Unbounded", sans-serif; font-size: 14px; }

.protocol-strip { padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: #fff; }
.protocol-strip div { min-height: 108px; padding: 24px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.protocol-strip div:first-child { border-left: 1px solid var(--line); }
.protocol-strip strong { font-family: "Unbounded", sans-serif; font-size: 15px; }
.protocol-strip span { color: var(--muted); font-size: 14px; }

.docs-section { padding-block: 132px; }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; align-items: end; margin-bottom: 58px; }
.section-heading .eyebrow { align-self: start; }
h2 { font-size: clamp(2.6rem, 4vw, 4.75rem); font-weight: 750; }
.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.doc-card { min-height: 420px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .25s ease, border-color .25s ease; }
.doc-card:hover { transform: translateY(-5px); border-color: #aaa; }
.doc-card-featured { color: #fff; border-color: var(--ink); background: var(--ink); }
.doc-card-download { background: #efefe9; }
.doc-index { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.doc-kicker { margin: 0 0 12px; color: var(--red); font-weight: 850; }
.doc-card h3 { max-width: 540px; font-size: clamp(1.65rem, 2.25vw, 2.35rem); }
.doc-card p:not(.doc-kicker) { max-width: 570px; margin: 18px 0 0; color: var(--muted); }
.doc-card-featured p:not(.doc-kicker) { color: #b9b9bf; }
.card-link { font-weight: 850; }

.security-section { width: min(1320px, calc(100% - 48px)); margin-bottom: 36px; padding: 82px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; border-radius: 32px; color: #fff; background: var(--ink); }
.eyebrow-light { color: #ff4545; }
.security-section h2 { font-size: clamp(2.2rem, 3.35vw, 4rem); }
.security-grid { display: grid; gap: 14px; }
.security-grid article { padding: 28px; border: 1px solid #333338; border-radius: 18px; background: #151518; }
.security-grid article > span { color: #ff5757; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.security-grid h3 { margin-top: 14px; font-size: 1.2rem; letter-spacing: -.025em; }
.security-grid p { margin-bottom: 0; color: #b9b9bf; }

.site-footer { width: min(1380px, calc(100% - 40px)); min-height: 150px; margin: 0 auto; padding: 32px 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.site-footer > div { display: flex; align-items: center; gap: 22px; }
.site-footer img { width: 210px; height: auto; }
.site-footer p { padding-left: 22px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer a:hover { color: var(--red); }

.guide-body { background: #fff; }
.guide-layout { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 120px; display: grid; grid-template-columns: 250px minmax(0, 820px); justify-content: center; gap: 72px; }
.guide-toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; padding: 20px 0; border-right: 1px solid var(--line); }
.guide-toc > p { margin: 0 0 12px; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; color: var(--red); }
.guide-toc ul { margin: 0; padding: 0 22px 0 0; list-style: none; }
.guide-toc li { margin: 6px 0; }
.guide-toc a { color: var(--muted); font-size: 13px; line-height: 1.4; }
.guide-toc a:hover { color: var(--red); }
.guide-article { min-width: 0; }
.guide-article > h1 { margin-bottom: 28px; font-size: clamp(2.8rem, 5vw, 5rem); }
.guide-article h2 { margin: 70px 0 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: clamp(1.7rem, 2.6vw, 2.65rem); }
.guide-article h3 { margin: 42px 0 16px; font-size: 1.35rem; }
.guide-article p, .guide-article li { color: #414148; }
.guide-article a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.guide-article pre { overflow: auto; padding: 24px; border: 1px solid #29292d; border-radius: 16px; color: #e8e8ea; background: #101012; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.guide-article code:not(pre code) { padding: .16em .42em; border-radius: 5px; color: #b00000; background: #f5ecec; font-size: .9em; }
.guide-article table { width: 100%; margin: 28px 0; border-collapse: collapse; font-size: 14px; }
.guide-article th, .guide-article td { padding: 13px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-article th { background: var(--paper); }
.guide-article blockquote { margin: 28px 0; padding: 8px 22px; border-left: 3px solid var(--red); color: var(--muted); }

@media (max-width: 980px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 78px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(100%, 720px); padding-top: 38px; }
  .hero-version { top: -50px; }
  .section-heading, .security-section { grid-template-columns: 1fr; gap: 40px; }
  .security-section { padding: 58px; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { display: none; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1240px); }
  .site-header { width: calc(100% - 20px); min-height: 72px; padding: 0 14px; }
  .brand img { width: 174px; }
  .brand span { display: none; }
  .nav-cta { padding: 10px 13px; font-size: 12px; }
  .hero { min-height: auto; padding: 74px 0 64px; }
  h1 { font-size: clamp(2.55rem, 11.4vw, 4rem); }
  .actions, .button { width: 100%; }
  .hero-visual { width: 100%; padding: 26px 0 0; }
  .hero-version { top: -22px; right: 4px; font-size: 6.2rem; }
  .terminal-card pre { min-height: 232px; padding: 24px 18px; font-size: 11px; }
  .terminal-response { flex-direction: column; }
  .terminal-meta { width: calc(100% - 16px); margin-left: 16px; }
  .terminal-meta span { min-height: 62px; padding: 10px; font-size: 10px; }
  .protocol-strip { padding: 0; grid-template-columns: 1fr 1fr; }
  .protocol-strip div:nth-child(odd) { border-left: 0; }
  .protocol-strip div { min-height: 88px; border-bottom: 1px solid var(--line); }
  .docs-section { padding-block: 90px; }
  .docs-grid { grid-template-columns: 1fr; }
  .doc-card { min-height: 360px; padding: 26px; }
  .security-section { width: calc(100% - 20px); padding: 42px 22px; border-radius: 22px; }
  .site-footer, .site-footer > div { align-items: flex-start; flex-direction: column; }
  .site-footer nav { flex-wrap: wrap; gap: 14px 22px; }
  .site-footer p { padding-left: 0; border-left: 0; }
  .guide-layout { width: calc(100% - 28px); padding-top: 54px; }
  .guide-article > h1 { font-size: 2.55rem; }
  .guide-article table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
