:root {
  color-scheme: dark;
  --doc-bg: #0b0e16;
  --doc-panel: #111620;
  --doc-surface: #181e2b;
  --doc-border: #252c3b;
  --doc-text: #f6f8fc;
  --doc-muted: #9aa5b9;
  --doc-blue: #79aaff;
  font-family: var(--font-family);
  background: var(--doc-bg);
  color: var(--doc-text);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, input, select { border: 0; }
input, select { min-width: 0; color: inherit; }
input[type=checkbox], input[type=radio] { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #80b6ff; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.6; }
::selection { background: #0064ff88; color: white; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -60px; z-index: 100; background: #0064ff; padding: 12px; }
.skip-link:focus { top: 0; }
.sidebar { width: 256px; position: fixed; inset: 0 auto 0 0; background: #0e111a; border-right: 1px solid var(--doc-border); display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; align-items: center; gap: 18px; padding: 29px 27px 27px; }
.brand span { border-left: 1px solid #394050; padding-left: 18px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.search-trigger { margin: 0 20px 26px; display: flex; gap: 10px; align-items: center; background: #1a1e29; padding: 11px 12px; border: 1px solid #2b3240; border-radius: 8px; font-size: 13px; color: #b3bdce; text-align: left; }
.search-trigger:hover { border-color: #7483a1; }
.search-trigger img { opacity: .7; }
kbd { font-family: inherit; font-size: 12px; padding: 1px 5px; border: 1px solid #485163; border-radius: 4px; line-height: 1.4; }
.search-trigger kbd { margin-left: auto; color: #9aa6bb; }
#navigation { padding: 0 16px 16px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.nav-home, .nav-item { display: flex; align-items: center; gap: 11px; min-height: 38px; font-size: 14px; padding: 8px 13px; color: #aeb8ca; border-radius: 7px; margin-bottom: 2px; }
.nav-home { color: #e3e8f1; margin-bottom: 20px; }
.nav-home.active, .nav-item.active { color: #fff; background: #172d50; box-shadow: inset 2px 0 #3b86ff; }
.nav-item:hover, .nav-home:hover { background: #1c2330; color: #fff; }
.nav-group { margin: 0 0 19px; }
.nav-group summary { display: flex; justify-content: space-between; list-style: none; padding: 4px 13px 11px; font-size: 12px; text-transform: uppercase; color: #6f7f99; letter-spacing: .08em; font-weight: 700; cursor: pointer; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ""; width: 5px; height: 5px; border-right: 1px solid #71819a; border-bottom: 1px solid #71819a; transform: rotate(45deg); margin: 4px; }
.nav-group:not([open]) summary::after { transform: rotate(-45deg); }
.sidebar-bottom { border-top: 1px solid var(--doc-border); padding: 20px 28px; }
.sidebar-bottom a { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #d4dce9; }
.sidebar-bottom > span { display: block; font-size: 12px; color: #79869c; margin-top: 14px; }
.figma-mark { display: grid; grid-template-columns: repeat(2, 7px); grid-template-rows: repeat(3,7px); width: 14px; flex: none; }
.figma-mark i { border-radius: 4px 0 0 4px; background: #f24e1e; }
.figma-mark i:nth-child(2) { background: #ff7262; border-radius: 0 4px 4px 0; }
.figma-mark i:nth-child(3) { background: #a259ff; }
.figma-mark i:nth-child(4) { background: #1abcfe; border-radius: 50%; }
.figma-mark i:nth-child(5) { background: #0acf83; border-radius: 4px 0 4px 4px; }
.main-shell { margin-left: 256px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 48px; border-bottom: 1px solid var(--doc-border); }
.breadcrumb { font-size: 13px; color: #7c899e; }
.breadcrumb span { margin: 0 14px; color: #46536a; }
.breadcrumb strong { color: #d6dfec; font-weight: 500; }
.topbar-links { display: flex; align-items: center; gap: 28px; font-size: 13px; color: #c2ccdc; }
.topbar-links a:hover { color: white; }
.external-mark { display: inline-block; width: 8px; height: 8px; border-top: 1px solid; border-right: 1px solid; transform: rotate(0); position: relative; margin-left: 8px; }
.external-mark::after { content: ""; width: 10px; height: 1px; background: currentColor; position: absolute; top: 3px; left: -2px; transform: rotate(-45deg); }
.mobile-toggle { display: none; background: none; font-size: 20px; }
#content { min-height: calc(100vh - 180px); outline: none; }
.page-content { max-width: 1296px; padding: 58px 48px 80px; margin: auto; animation: content-enter .35s ease both; }
@keyframes content-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #91a7c7; display: block; margin-bottom: 22px; }
.hero { min-height: 518px; position: relative; border-bottom: 1px solid var(--doc-border); background: radial-gradient(ellipse at 93% 45%, #15366b69, transparent 58%), #0b0e16; padding: 68px 48px 44px; overflow: hidden; }
.hero-inner { max-width: 1200px; margin: auto; position: relative; }
.hero h1 { font-size: clamp(52px, 5.4vw, 88px); letter-spacing: -.055em; font-weight: 800; line-height: 1.04; position: relative; z-index: 2; pointer-events: none; }
.hero h1 em { color: #80adff; font-style: normal; }
.hero .hero-text { margin-top: 27px; max-width: 480px; font-size: 17px; color: #b4bfd2; line-height: 1.55; position: relative; z-index: 2; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; position: relative; z-index: 2; }
.doc-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 20px; border: 1px solid #364154; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 600; color: #e8edf7; gap: 10px; transition: background .2s, border-color .2s; }
.doc-button:hover { background: #222e42; border-color: #6d81a2; }
.doc-button--primary { background: #0064ff; border-color: #0064ff; color: #fff; }
.doc-button--primary:hover { background: #0442a3; border-color: #0442a3; }
.hero-art { position: absolute; top: -9px; right: -10px; width: 46%; height: 400px; perspective: 1000px; }
.hero-art::before { content: ""; position: absolute; width: 80%; height: 72%; top: 10%; left: 10%; background: #005eff; opacity: .12; filter: blur(72px); }
.art-system { position: absolute; inset: 22px -15px 0 0; transform: rotate(-8deg); }
.art-card { position: absolute; width: 168px; top: 8px; right: 100px; background: #141e30; padding: 7px; border-radius: 15px; border: 1px solid #52658170; box-shadow: 0 25px 60px #0008; transform: rotate(15deg); }
.art-card > img { display: block; width: 100%; height: 188px; object-fit: cover; border-radius: 9px; }
.art-card .art-card-name { margin: 11px 4px 8px; font-size: 12px; font-weight: 700; }
.art-card .gb-price { font-size: 20px; margin: 0 4px 7px; }
.art-token { position: absolute; width: 146px; height: 138px; left: 6px; top: 150px; border-radius: 17px; background: #0064ff; padding: 17px; border: 1px solid #7eabff66; box-shadow: 0 20px 45px #001d7e50; }
.art-token span { display: block; font-size: 10px; opacity: .8; margin-top: 63px; }
.art-token b { font-size: 17px; font-weight: 500; }
.art-type { position: absolute; top: 236px; right: 34px; width: 153px; height: 130px; background: #1c253b; padding: 16px 20px; border: 1px solid #65708c77; border-radius: 15px; box-shadow: 0 18px 30px #0005; transform: rotate(7deg); }
.art-type b { font-size: 62px; line-height: 1.1; font-weight: 800; letter-spacing: -4px; }
.art-type span { font-size: 9px; display: block; margin-top: 8px; color: #b4c0d6; }
.art-action { position: absolute; top: 91px; right: -18px; padding: 14px; background: #192538dd; border: 1px solid #6a7fa64d; border-radius: 20px; box-shadow: 0 18px 34px #0005; transform: rotate(8deg); }
.art-controls { display: flex; align-items: center; gap: 16px; position: absolute; top: 331px; left: 25px; padding: 15px 20px; border-radius: 12px; background: #141e30; border: 1px solid #65718c60; box-shadow: 0 12px 30px #0005; }
.art-controls .gb-badge { margin-left: 5px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.7px; font-weight: 700; }
.section-head > a { color: #91b8ff; font-size: 14px; }
.section-intro { color: var(--doc-muted); font-size: 16px; margin-top: 10px; max-width: 650px; }
.home-section { margin-bottom: 60px; }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.start-card { border: 1px solid #2d3545; background: #141a25; border-radius: 16px; padding: 28px; display: flex; align-items: center; gap: 22px; transition: background .25s, border-color .25s; }
.start-card:hover { background: #1b2536; border-color: #4b668f; }
.start-card h2 { font-size: 23px; font-weight: 700; margin-bottom: 8px; }
.start-card p { color: #9eabc0; font-size: 14px; line-height: 1.5; max-width: 270px; }
.start-card small { color: #8cb6ff; font-size: 13px; display: block; margin-top: 16px; }
.start-symbol { width: 73px; height: 73px; flex: none; display: grid; place-items: center; background: #202c44; border-radius: 18px; }
.symbol-grid { display: grid; grid-template-columns: repeat(2,17px); gap: 5px; transform: rotate(-12deg); }
.symbol-grid i { width: 17px; height: 17px; border-radius: 3px; background: #9bbaff; }
.symbol-grid i:nth-child(2) { border-radius: 50%; background: #0064ff; }
.symbol-grid i:nth-child(3) { background: #4b72b5; }
.start-symbol.code { font: 500 25px monospace; color: #9bbaff; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.preview-card { border: 1px solid var(--doc-border); border-radius: 14px; overflow: hidden; background: var(--doc-panel); transition: border-color .2s, transform .2s; }
.preview-card:hover { border-color: #506c98; transform: translateY(-3px); }
.preview-visual { height: 174px; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; gap: 8px; background: #151e31; }
.preview-copy { padding: 22px 24px 24px; }
.preview-copy h3 { font-size: 19px; font-weight: 700; margin-bottom: 7px; }
.preview-copy p { font-size: 14px; line-height: 1.5; color: var(--doc-muted); }
.visual-colors { gap: 0; padding: 32px; }
.visual-colors i { height: 102px; width: 25%; background: #000428; border-radius: 16px 0 0 16px; border: 1px solid #fff1; }
.visual-colors i:nth-child(2) { background: #141e30; border-radius: 0; }
.visual-colors i:nth-child(3) { background: #0064ff; border-radius: 0; }
.visual-colors i:nth-child(4) { background: #4d94ff; border-radius: 0 16px 16px 0; }
.visual-type { font-size: 94px; font-weight: 800; letter-spacing: -8px; color: #afc4ee; }
.visual-spacing { align-items: flex-end; padding-bottom: 35px; gap: 11px; }
.visual-spacing i { width: 28px; border-radius: 5px 5px 0 0; background: #407de0; height: 40px; }
.visual-spacing i:nth-child(2) { height: 56px; background: #679cff; }
.visual-spacing i:nth-child(3) { height: 76px; background: #8bb4ff; }
.visual-spacing i:nth-child(4) { height: 104px; background: #b1ceff; }
.visual-button { flex-direction: column; gap: 14px; }
.visual-button .gb-button { min-width: 150px; pointer-events: none; }
.visual-cards img { width: 96px; height: 134px; object-fit: cover; border-radius: 10px; transform: rotate(-9deg); box-shadow: 0 12px 20px #0004; }
.visual-cards img + img { transform: rotate(10deg); margin-left: -15px; }
.visual-controls { gap: 22px; }
.visual-controls label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.home-quote { margin-top: 60px; padding: 38px 40px; background: linear-gradient(115deg,#112549,#14203a 75%); border: 1px solid #304263; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.home-quote h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.7px; margin-bottom: 10px; }
.home-quote p { font-size: 15px; color: #9fadc4; max-width: 520px; }
.page-heading { margin-bottom: 42px; max-width: 820px; }
.page-heading .eyebrow { margin-bottom: 16px; }
.page-heading h1 { font-size: 52px; line-height: 1.12; font-weight: 800; letter-spacing: -1.8px; margin-bottom: 20px; }
.page-heading p { color: #a6b2c7; font-size: 18px; max-width: 700px; line-height: 1.55; }
.source-link { color: #7faaff; font-size: 13px; display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; }
.doc-section { margin-bottom: 52px; }
.doc-section > h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.6px; margin-bottom: 20px; font-weight: 700; }
.doc-section > p { color: #a6b2c7; margin-bottom: 22px; max-width: 760px; }
.note { padding: 20px 24px; border-left: 2px solid #4d94ff; background: #15233b; border-radius: 0 10px 10px 0; color: #bbcbe3; font-size: 15px; line-height: 1.6; margin: 24px 0; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; }
.doc-field { min-height: 42px; border: 1px solid #3a465b; background: #151c29; border-radius: 7px; padding: 9px 12px; font-size: 14px; color: #e4eaf5; }
.doc-field::placeholder { color: #8c9ab2; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border-radius: 999px; border: 1px solid #354155; padding: 8px 14px; background: transparent; color: #aebbd0; font-size: 13px; }
.chip:hover { border-color: #7796c7; color: white; }
.chip.active { background: #1f3b66; color: #cde0ff; border-color: #3b6095; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.swatch { text-align: left; padding: 0; border: 1px solid #303b51; background: #111823; border-radius: 10px; overflow: hidden; transition: border-color .2s; }
.swatch:hover { border-color: #8aafef; }
.swatch-color { display: block; height: 104px; border-bottom: 1px solid #ffffff15; }
.swatch-info { display: flex; flex-direction: column; gap: 7px; padding: 14px; }
.swatch-name { font-size: 12px; color: #e1e8f5; overflow-wrap: anywhere; }
.swatch-value { font-family: ui-monospace, monospace; font-size: 12px; color: #98a7c0; }
.token-heading { text-transform: capitalize; color: #8da2c1; font-weight: 600; margin: 36px 0 15px; font-size: 14px; }
.copy-icon { width: 13px; height: 13px; border: 1px solid; display: inline-block; border-radius: 2px; position: relative; opacity: .7; margin-left: 8px; }
.copy-icon::before { content: ""; position: absolute; border: 1px solid; border-radius: 2px; inset: -4px 3px 3px -4px; }
.playground { border: 1px solid #303b50; border-radius: 14px; overflow: hidden; }
.playground-demo { background: var(--color-bg-page); min-height: 224px; display: flex; justify-content: center; align-items: center; padding: 40px; flex-wrap: wrap; gap: 24px; }
.playground-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 24px; background: #121a27; border-top: 1px solid #303b50; }
.control-field { display: flex; align-items: center; gap: 10px; color: #aebbd0; font-size: 13px; }
.code-box { background: #080d17; border: 1px solid #2b3548; border-radius: 10px; overflow: hidden; margin-top: 20px; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid #263046; color: #93a4be; font-size: 12px; }
.code-header button { background: none; font-size: 12px; color: #b5c8e7; }
pre { margin: 0; padding: 24px; overflow: auto; color: #a9c7ff; font: 13px/1.8 ui-monospace, monospace; tab-size: 2; }
.component-tabs { display: flex; gap: 24px; border-bottom: 1px solid #30394b; margin: -10px 0 32px; }
.component-tab { padding: 14px 0; color: #9aacc9; background: none; border-bottom: 2px solid transparent; font-size: 14px; }
.component-tab[aria-selected=true] { color: white; border-color: #4d94ff; }
.state-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.state-item { background: #000428; min-height: 140px; border: 1px solid #28334b; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px; padding: 20px; }
.state-item > span { font-size: 12px; color: #97a5be; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th { text-align: left; color: #8093b1; font-size: 12px; font-weight: 600; }
.spec-table td, .spec-table th { padding: 18px 16px; border-bottom: 1px solid #263044; }
.spec-table td { color: #bbc7db; line-height: 1.6; }
.spec-table td:first-child { color: #e1e7f1; }
.spec-table code { font: 12px ui-monospace, monospace; color: #98bcfa; }
.type-row { border-bottom: 1px solid #293449; padding: 28px 0; display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; }
.type-row-meta { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #8394af; }
.type-row-meta strong { color: #c1cde0; font-size: 13px; font-weight: 500; }
.type-sample { line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.principle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.principle { border: 1px solid #2c374c; background: #111925; padding: 28px; border-radius: 14px; }
.principle h3 { font-size: 22px; font-weight: 700; margin: 15px 0 12px; letter-spacing: -.4px; }
.principle p { color: #a2b0c7; font-size: 15px; }
.principle-art { font-size: 40px; font-weight: 800; color: #a0bdf3; line-height: 1.3; }
.principle-art .gb-badge { font-size: 20px; }
.scale-row { display: grid; grid-template-columns: 110px 70px 1fr; gap: 24px; align-items: center; border-bottom: 1px solid #293346; padding: 15px 0; }
.scale-row code, .scale-row span { font-size: 13px; color: #a6b9d5; }
.scale-bar { height: 18px; background: #377bed; border-radius: 2px; min-width: 1px; }
.radius-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.radius-item { border: 1px solid #29374d; background: #111b2b; padding: 24px; }
.radius-shape { height: 90px; border: 2px solid #84aeff; background: #1e3c6b; margin-bottom: 20px; }
.radius-item code { display: block; color: #adbfdb; font-size: 13px; }
.radius-item span { display: block; margin-top: 6px; color: #7e92b4; font-size: 12px; }
.control-demo { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.control-column { display: flex; flex-direction: column; gap: 24px; padding: 8px 28px; }
.filter-demo { width: 240px; }
.filter-section { border-radius: 8px; background: #141e30; overflow: hidden; margin-bottom: 8px; }
.filter-section summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 10px 12px; cursor: pointer; font-size: 12px; font-weight: 800; }
.filter-section summary::-webkit-details-marker { display:none; }
.filter-section summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid white; border-bottom: 1px solid white; transform: rotate(45deg); margin-right: 4px; transition: transform .2s; }
.filter-section[open] summary::after { transform: rotate(225deg); }
.filter-section.has-selection summary span::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #0064ff; margin-left: 10px; }
.filter-options { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 14px; }
.filter-options label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.filter-demo input[type=range] { width: 100%; accent-color: #0064ff; }
.filter-actions { display: flex; gap: 8px; margin-top: 14px; }
.filter-actions .gb-button { min-width: 0; width: 50%; padding-inline: 12px; }
.filter-status { max-width: 260px; color: #a6badc; font-size: 14px; }
.mega-demo { width: 100%; max-width: 760px; }
.mega-nav { display: flex; border: 1px solid #344c77; border-radius: 999px; background: #141e30; padding: 8px; position: relative; }
.mega-nav > button { flex: 1; padding: 12px 8px; font-size: 12px; font-weight: 700; background: transparent; border-radius: 999px; }
.mega-nav > button:hover, .mega-nav > button[aria-expanded=true] { background: var(--gradient-nav-hover); }
.mega-content { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 16px; margin-top: 8px; background: #141e30; border-radius: 16px; border: 1px solid #344c77; }
.mega-content button { text-align: left; min-height: 42px; padding: 6px 12px; border-radius: 12px; background: none; font-size: 12px; color: white; }
.mega-content button:hover { background: var(--gradient-nav-hover); }
.component-index { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.component-index a { padding: 18px; border: 1px solid #2a364b; background: #111b2c; border-radius: 10px; font-size: 14px; transition: border-color .2s; }
.component-index a:hover { border-color: #6488c3; }
.component-index small { color: #879ab9; font-size: 12px; display: block; margin-top: 8px; }
.search-demo { width: min(100%,480px); }
.search-demo-field { display: flex; gap: 12px; align-items: center; border: 1px solid #919293; border-radius: 999px; padding: 12px 18px; background: #141e30cc; }
.search-demo-field input { background: transparent; width: 100%; font-size: 14px; }
.search-demo-field input::placeholder { color: #8a93a6; }
.search-demo-results { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.search-demo-result { border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 14px; background: #141e30; color: white; text-align: left; }
.search-demo-result:hover { background: var(--gradient-nav-hover); }
.search-demo-result img { width: 36px; height: 49px; border-radius: 4px; object-fit: cover; }
.search-demo-result strong { font-size: 13px; display: block; }
.search-demo-result span { font-size: 12px; color: #b0bed5; display: block; margin-top: 5px; }
.search-demo-empty { font-size: 14px; color: #9eacc4; padding: 22px 12px; text-align: center; }
.image-guides { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.image-guides img { width: 100%; border-radius: 14px; }
.image-guides p { font-size: 14px; color: #94a9c9; margin-top: 14px; }
.hero-image-guide { position: relative; }
.hero-image-guide::after { content: ""; pointer-events: none; position: absolute; inset: 0 0 40px; background: linear-gradient(90deg,#00042899,transparent),linear-gradient(0deg,#000428,transparent 30%); border-radius: 14px; }
.image-guides .vertical-cover { display: block; width: min(100%,240px); margin: auto; }
.effect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.effect-item { background: #131c30; padding: 32px; border-radius: 14px; border: 1px solid #2d3a52; overflow: hidden; min-height: 210px; }
.effect-item h3 { font-size: 20px; margin-bottom: 12px; }
.effect-item p { font-size: 14px; color: #a9b9d3; }
.effect-preview { height: 110px; display: flex; justify-content: center; align-items: center; gap: 12px; position: relative; margin-bottom: 25px; background: radial-gradient(ellipse,#153d93,transparent 65%); }
.effect-glass { padding: 18px 32px; border-radius: 999px; background: #ffffff12; backdrop-filter: blur(12px); border: 1px solid #fff2; }
.motion-sample { width: 70px; height: 70px; background: #0064ff; border-radius: 20px; transition: transform .5s cubic-bezier(.2,.6,.2,1),background .3s; }
.effect-preview:hover .motion-sample { transform: translateX(35px) rotate(8deg); background: #4d94ff; }
.resources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.resource { border: 1px solid #2b3850; border-radius: 14px; padding: 28px; background: #131c2b; }
.resource h2 { font-size: 22px; margin: 14px 0 12px; }
.resource p { color: #9eafc9; font-size: 15px; margin-bottom: 24px; }
.resource code { color: #a5c4fc; }
.docs-footer { display: flex; align-items: center; gap: 26px; justify-content: space-between; max-width: 1200px; margin: 0 48px; padding: 28px 0 36px; border-top: 1px solid #273044; font-size: 12px; color: #7c8aa2; }
.docs-footer a:first-child { color: #b2bed3; font-weight: 700; }
.search-dialog { width: min(620px, calc(100% - 32px)); padding: 0; margin: 12vh auto auto; background: #111925; border: 1px solid #40516e; border-radius: 16px; color: white; box-shadow: 0 25px 100px #0009; }
.search-dialog::backdrop { background: #030814bb; backdrop-filter: blur(8px); }
.dialog-search { display: flex; align-items: center; gap: 14px; padding: 20px; border-bottom: 1px solid #303c52; }
.dialog-search input { flex: 1; background: none; font-size: 16px; outline: none; }
.dialog-search input::placeholder { color: #8fa0bd; }
.dialog-search button { background: none; color: #9daec9; padding: 0; }
#search-results { max-height: 50vh; overflow: auto; padding: 10px; }
.doc-search-result { display: block; border-radius: 8px; padding: 14px; }
.doc-search-result:hover, .doc-search-result:focus { background: #243b60; }
.doc-search-result strong { display: block; font-size: 15px; font-weight: 600; }
.doc-search-result span { display: block; color: #91a4c3; font-size: 13px; margin-top: 6px; }
.search-hint { font-size: 12px; padding: 16px 22px; border-top: 1px solid #303c52; color: #8295b5; }
.toast { position: fixed; bottom: 30px; left: calc(50% + 128px); transform: translate(-50%,14px); padding: 12px 20px; border: 1px solid #476188; border-radius: 10px; background: #1e304b; color: #dceaff; font-size: 14px; box-shadow: 0 10px 30px #0007; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.mobile-scrim { display: none; }
@media(min-width:1700px) {
  .hero { padding-block: 80px 60px; min-height: 570px; }
  .hero-art { right: 20px; width: 500px; }
  .page-content { padding-block: 64px 96px; }
}
@media(max-width:1200px) {
  .sidebar { width: 228px; }
  .main-shell { margin-left: 228px; }
  .brand { padding-inline: 20px; gap: 14px; }
  .brand span { padding-left: 14px; }
  .page-content { padding-inline: 32px; }
  .hero { padding-inline: 32px; min-height: 520px; }
  .topbar { padding-inline: 32px; }
  .hero-art { opacity: .9; right: -26px; width: 46%; transform: scale(.85); transform-origin: top right; top: 40px; }
  .hero h1 { font-size: 64px; }
  .hero-text { max-width: 420px !important; }
  .art-card { right: 30px; }
  .art-token { left: -40px; }
  .art-type { right: -35px; }
  .art-controls { left: -30px; }
  .art-action { right: -45px; }
  .preview-grid { gap: 14px; }
  .preview-copy { padding: 20px; }
  .start-card { padding: 24px; gap: 16px; }
  .start-symbol { width: 60px; height: 60px; }
  .start-card h2 { font-size: 20px; }
  .swatch-grid { grid-template-columns: repeat(3,1fr); }
  .state-grid { grid-template-columns: repeat(2,1fr); }
  .docs-footer { margin-inline: 32px; }
}
@media(max-width:1000px) {
  .hero h1 { font-size: 58px; }
  .hero-art { right: -36px; opacity: .65; }
  .hero-text { max-width: 350px !important; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .start-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr 1fr; }
  .home-quote { flex-direction: column; align-items: flex-start; }
  .home-quote h2 { font-size: 25px; }
  .type-row { grid-template-columns: 120px 1fr; }
  .component-index { grid-template-columns: 1fr 1fr; }
}
@media(max-width:767px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; width: 256px; }
  .menu-open .sidebar { transform: none; }
  .menu-open .mobile-scrim { display: block; position: fixed; inset: 0; background: #0009; z-index: 25; }
  .main-shell { margin-left: 0; }
  .topbar { height: 64px; padding: 0 20px; justify-content: flex-start; }
  .mobile-toggle { display: block; padding: 4px; }
  .topbar-links { margin-left: auto; font-size: 12px; }
  .topbar-links a:first-child { display: none; }
  .breadcrumb { font-size: 12px; }
  .breadcrumb > span { margin-inline: 8px; }
  .hero { padding: 36px 24px 0; min-height: 740px; }
  .hero .eyebrow { margin-bottom: 20px; font-size: 10px; }
  .hero h1 { font-size: clamp(48px,10.5vw,72px); letter-spacing: -.05em; }
  .hero .hero-text { max-width: 360px !important; font-size: 16px; margin-top: 20px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
  .hero-actions .doc-button { padding: 10px 14px; font-size: 13px; }
  .hero-art { position: relative; top: 24px; right: auto; width: 350px; height: 350px; margin: auto; opacity: 1; transform: scale(.85); transform-origin: top center; }
  .art-card { right: 64px; top: -3px; }
  .art-token { left: -10px; top: 125px; }
  .art-action { right: -22px; top: 55px; }
  .art-type { right: -6px; top: 218px; }
  .art-controls { top: 307px; left: 8px; }
  .page-content { padding: 36px 24px 50px; }
  .preview-grid { gap: 12px; }
  .preview-visual { height: 144px; }
  .preview-copy { padding: 18px; }
  .preview-copy h3 { font-size: 18px; }
  .preview-copy p { font-size: 13px; }
  .visual-colors { padding: 20px; }
  .visual-type { font-size: 74px; }
  .visual-spacing { gap: 7px; }
  .visual-spacing i { width: 21px; }
  .visual-cards img { width: 70px; height: 100px; }
  .visual-controls { flex-direction: column; gap: 20px; }
  .start-card { padding: 24px 20px; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 26px; }
  .section-head > a { font-size: 12px; white-space: nowrap; }
  .home-section { margin-bottom: 44px; }
  .home-quote { padding: 26px; margin-top: 40px; }
  .page-heading h1 { font-size: 40px; letter-spacing: -1.1px; }
  .page-heading p { font-size: 16px; }
  .page-heading { margin-bottom: 32px; }
  .swatch-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .swatch-color { height: 86px; }
  .swatch-name { font-size: 11px; }
  .principle-grid, .effect-grid, .resources-grid, .image-guides { grid-template-columns: 1fr; }
  .playground-demo { padding: 28px 20px; }
  .playground-controls { padding: 20px; gap: 16px; }
  .control-field { flex-wrap: wrap; }
  .type-row { grid-template-columns: 1fr; gap: 16px; }
  .type-row-meta { flex-direction: row; flex-wrap: wrap; }
  .radius-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .scale-row { grid-template-columns: 80px 40px 1fr; gap: 14px; }
  .spec-table { font-size: 12px; }
  .spec-table td,.spec-table th { padding: 12px 8px; }
  .spec-table td { overflow-wrap: anywhere; }
  .state-item { padding: 20px 10px; }
  .state-item .gb-button { min-width: 110px; padding-inline: 20px; }
  .mega-nav > button { font-size: 10px; padding-inline: 4px; }
  .mega-content { grid-template-columns: 1fr 1fr; }
  .docs-footer { flex-wrap: wrap; gap: 16px; margin-inline: 24px; padding-block: 24px; }
  .docs-footer span { order: 3; width: 100%; }
  .toast { left: 50%; max-width: calc(100% - 32px); white-space: nowrap; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Keep one line for the animated phrase and allow natural wrapping on narrow screens. */
.hero .hero-title { max-width: 64%; }
.hero-title-static { display: block; }
.hero-title-line { display: block; min-height: 1.04em; }
.hero-title-more { color: #80adff; }
.hero-title-word {
  --word-color: #f6f8fc;
  display: inline;
  color: var(--word-color);
  font: inherit;
  letter-spacing: inherit;
  overflow-wrap: anywhere;
}
.typing-caret {
  display: inline-block;
  width: 2px;
  height: .8em;
  margin-left: .1em;
  vertical-align: -.01em;
  background: var(--word-color);
  animation: typing-caret 1s steps(1) infinite;
}
@keyframes typing-caret { 50% { opacity: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
  .hero .hero-title { max-width: 100%; }
  .hero .hero-title { font-size: clamp(32px, 9.4vw, 60px); }
  .hero { min-height: 780px; }
}
@media (prefers-reduced-motion: reduce) {
  .typing-caret { animation: none; display: none; }
}
