:root {
  color-scheme: dark;
  --bg: #0c1115;
  --panel: #151c20;
  --panel-2: #1b2428;
  --line: #344146;
  --ink: #f3f1e9;
  --muted: #9aa5a6;
  --accent: #e7c976;
  --accent-dark: #ad8b40;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.page-glow { pointer-events: none; position: absolute; z-index: 0; inset: 0 0 auto; height: 900px; background: radial-gradient(ellipse 50% 30% at 79% 31%, rgba(91, 112, 99, .18), transparent 80%); }
.site-header, main, .site-footer { position: relative; }

.site-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(186, 199, 195, .13); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.brand-mark { position: relative; display: block; width: 34px; height: 35px; border: 2px solid var(--accent); transform: skew(-8deg); }
.brand-mark span:nth-child(1) { position: absolute; width: 12px; height: 2px; background: var(--accent); top: 7px; left: 8px; transform: rotate(45deg); }
.brand-mark span:nth-child(2) { position: absolute; width: 19px; height: 2px; background: var(--accent); top: 16px; left: 5px; transform: rotate(-45deg); }
.brand-mark span:nth-child(3) { position: absolute; width: 14px; height: 2px; background: var(--accent); bottom: 6px; right: 3px; }
.brand-type { display: flex; flex-direction: column; font-size: 20px; font-weight: 900; letter-spacing: .14em; line-height: 1; }
.brand-type small { margin-top: 6px; color: var(--accent); font-size: 7px; font-weight: 600; letter-spacing: .26em; }
.nav { display: flex; gap: clamp(20px, 4vw, 54px); }
.nav a { color: #cbd0cc; font-size: 12px; letter-spacing: .08em; transition: color .2s; }
.nav a:hover { color: var(--accent); }
.header-github { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid #576561; color: #dce4da; font-size: 11px; white-space: nowrap; transition: border-color .2s, color .2s; }
.header-github:hover { border-color: var(--accent); color: var(--accent); }
.header-github span { color: var(--accent); font-size: 15px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c7dd9f; box-shadow: 0 0 12px #9fb988; margin-right: 8px; }

.hero { position: relative; min-height: 565px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; bottom: 24px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(182, 201, 194, .18), transparent); }
.hero-copy { position: relative; z-index: 2; padding: 70px 0 105px; }
.eyebrow, .section-number, .control-heading, .wallpaper-label { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-line { width: 28px; height: 1px; background: var(--accent); }
h1, h2, h3, p, blockquote { margin-top: 0; }
.hero h1 { margin: 22px 0 25px; font-size: clamp(48px, 5.5vw, 74px); font-weight: 800; line-height: 1.22; letter-spacing: -.07em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p { color: #aab6b4; max-width: 410px; font-size: 15px; line-height: 2.05; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 36px; padding: 0 21px; font-size: 12px; font-weight: 750; letter-spacing: .05em; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { border: 1px solid var(--accent); background: var(--accent); color: #20231e; }
.button-primary:hover { background: #f1d894; }
.button-secondary { border: 1px solid #576561; background: transparent; color: #e5e9e5; }
.button-secondary:hover { border-color: var(--accent); }
.hero-art { position: relative; width: min(100%, 535px); aspect-ratio: 1; justify-self: center; transform: translate(34px, -12px); }
.hero-art::before { content: ""; position: absolute; inset: 9%; border: 1px solid rgba(155, 176, 163, .12); transform: rotate(45deg); }
.hero-art::after { content: ""; position: absolute; inset: 18%; border: 1px solid rgba(155, 176, 163, .1); transform: rotate(45deg); }
.orbital { position: absolute; border-radius: 50%; border: 1px solid rgba(160, 179, 163, .2); }
.orbital-outer { inset: 4%; border-style: dashed; animation: orbit 80s linear infinite; }
.orbital-inner { inset: 18%; border-color: rgba(185, 205, 173, .25); }
.orbital-inner::after { content: ""; position: absolute; width: 7px; height: 7px; right: 15%; top: 7%; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 18px var(--accent); }
.hero-disc { position: absolute; inset: 25%; overflow: hidden; border-radius: 50%; border: 1px solid rgba(221, 222, 179, .28); background: radial-gradient(circle at 45% 40%, #59625b, #343e3c 40%, #172120 80%); box-shadow: 0 0 0 8px rgba(208, 215, 180, .025), 0 0 80px rgba(126, 147, 121, .13), inset -32px -31px 65px rgba(0, 0, 0, .48); }
.hero-disc::before { content: ""; position: absolute; inset: -20%; background: repeating-linear-gradient(120deg, transparent 0 20px, rgba(221, 229, 201, .035) 21px 22px); transform: rotate(-16deg); }
.hero-disc::after { content: ""; position: absolute; width: 135%; height: 20%; left: -15%; top: 43%; border-top: 1px solid rgba(234, 230, 181, .28); border-bottom: 1px solid rgba(234, 230, 181, .17); transform: rotate(-29deg); }
.disc-north, .disc-south { position: absolute; z-index: 1; color: rgba(233, 224, 181, .74); font-family: Georgia, serif; font-size: 42px; }
.disc-north { top: 24%; left: 29%; }
.disc-south { bottom: 17%; right: 28%; }
.orbit-label { position: absolute; color: #8f9f9d; font-family: ui-monospace, Menlo, monospace; font-size: 9px; letter-spacing: .2em; }
.orbit-label-top { top: 12%; right: 5%; }
.orbit-label-bottom { bottom: 16%; left: 5%; }
.crosshair { position: absolute; color: #c0c8aa; font-family: monospace; font-size: 18px; }
.crosshair-one { top: 26%; left: 8%; }.crosshair-two { bottom: 11%; right: 19%; }
.hero-index { position: absolute; bottom: 41px; right: 5px; color: #8b9996; font-family: monospace; font-size: 10px; letter-spacing: .12em; }
@keyframes orbit { to { transform: rotate(360deg); } }

.signal-strip { border-top: 1px solid rgba(165, 183, 173, .1); border-bottom: 1px solid rgba(165, 183, 173, .1); background: #12191c; }
.signal-grid { min-height: 95px; display: grid; grid-template-columns: 1fr 1fr 1.25fr .9fr; align-items: center; }
.signal-grid > div { display: flex; align-items: center; gap: 11px; border-right: 1px solid #39433e; min-height: 42px; padding-left: 24px; }
.signal-grid > div:first-child { padding-left: 0; }
.signal-grid > div:last-child { border-right: 0; }
.signal-icon { color: var(--accent); font-size: 18px; }
.signal-grid strong { font-size: 19px; letter-spacing: .02em; white-space: nowrap; }
.signal-grid small { color: #8e9d9b; font-size: 11px; white-space: nowrap; }
.signal-grid .strip-caption { justify-content: flex-end; color: var(--accent); font-size: 11px; text-align: right; }
.strip-caption span { font-size: 21px; }

.section { padding-top: 115px; padding-bottom: 125px; scroll-margin-top: 25px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-heading h2 { margin: 13px 0 0; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.06em; line-height: 1.25; }
.section-heading p { color: #9baaa7; font-size: 12px; margin-bottom: 4px; }
.explore-grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: 18px; }
.quote-card { position: relative; min-height: 405px; padding: 26px 32px 31px; overflow: hidden; border: 1px solid #4a5755; background: radial-gradient(circle at 78% 19%, rgba(126, 144, 117, .13), transparent 32%), linear-gradient(137deg, #1b2527, #11191d 85%); }
.quote-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(181, 197, 179, .08); pointer-events: none; }
.quote-card::after { content: ""; position: absolute; width: 210px; height: 210px; right: -70px; bottom: -92px; border: 1px solid rgba(224, 214, 157, .08); border-radius: 50%; }
.quote-portrait { position: absolute; right: -5%; bottom: 0; width: 68%; height: 98%; object-fit: contain; object-position: right bottom; opacity: .5; mask-image: linear-gradient(90deg, transparent, #000 42%); pointer-events: none; }
.quote-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; color: #b6c1b9; font-family: ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: .13em; }
.quote-top > span:last-child { color: #9b9f90; }
.live-dot { width: 5px; height: 5px; margin-right: 5px; }
.quote-symbol { position: absolute; top: 45px; left: 26px; color: #718477; opacity: .35; font-family: Georgia, serif; font-size: 115px; line-height: 1; }
.quote-card blockquote { position: relative; z-index: 1; display: flex; align-items: center; min-height: 225px; max-width: 70%; padding: 35px 15px 9px 36px; margin: 0; font-size: clamp(20px, 2.1vw, 29px); font-weight: 550; letter-spacing: .04em; line-height: 1.9; text-wrap: pretty; text-shadow: 0 2px 20px #0b1114; }
.quote-bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(212, 224, 204, .16); padding-top: 19px; }
.quote-bottom > div { display: flex; align-items: center; gap: 16px; }
.quote-bottom strong { color: var(--accent); font-size: 16px; letter-spacing: .04em; }
.quote-bottom span { color: #95a49b; font-size: 11px; }
.round-button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #72817a; background: transparent; color: var(--ink); font-size: 24px; line-height: 1; transition: transform .25s, border-color .25s; }
.round-button:hover { transform: rotate(45deg); border-color: var(--accent); }
.portrait-source { position: absolute; z-index: 2; left: 32px; bottom: 9px; color: #aebbb1; font-size: 9px; }
.portrait-source:hover { color: var(--accent); }
.quote-corner { position: absolute; right: 32px; bottom: 7px; color: #586962; font-size: 8px; letter-spacing: .1em; }
.control-card { min-height: 405px; padding: 25px 28px 24px; border: 1px solid #303c40; background: #182126; }
.control-heading { display: flex; justify-content: space-between; gap: 10px; color: #a4a489; padding-bottom: 24px; border-bottom: 1px solid #364346; margin-bottom: 21px; }
.control-heading span:first-child { color: var(--accent); }
.control-heading span { white-space: nowrap; }
@media (max-width: 1000px) { .control-heading span:last-child { display: none; } }
.control-card label { display: block; color: #dbe0da; font-size: 11px; font-weight: 650; margin-bottom: 9px; }
.input-shell, .select-shell { height: 43px; position: relative; display: flex; align-items: center; margin-bottom: 18px; background: #10181b; border: 1px solid #415052; }
.input-shell > span { color: #a6b0a3; padding: 0 10px 0 14px; font-size: 19px; }
.input-shell input, .select-shell select { width: 100%; height: 100%; background: transparent; border: 0; outline: none; color: #f0eee3; font-size: 12px; }
.input-shell input::placeholder { color: #778884; }
.select-shell select { padding: 0 12px; appearance: none; }
.select-shell option { background: #182126; }
.select-shell span { pointer-events: none; position: absolute; right: 14px; color: #afbaa8; font-size: 18px; }
.control-rule { height: 1px; background: #364346; margin: 23px 0 18px; }
.mode-row { display: flex; align-items: center; justify-content: space-between; color: #dbe0da; font-size: 11px; }
.segmented { display: flex; padding: 3px; background: #0c1518; border: 1px solid #3e4949; }
.segmented button { min-width: 49px; min-height: 24px; padding: 0 8px; border: 0; background: transparent; color: #9caaa6; font-size: 11px; }
.segmented button.active { background: #d2bb80; color: #1c211f; font-weight: 700; }
.control-submit { width: 100%; justify-content: space-between; margin-top: 21px; }
.control-submit:disabled { opacity: .6; cursor: wait; }
.control-note { margin: 12px 0 0; color: #7f8e8b; font-size: 10px; line-height: 1.5; }

.section-api { background: #141c1f; border-top: 1px solid rgba(192, 204, 188, .08); border-bottom: 1px solid rgba(192, 204, 188, .08); }
.api-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: center; }
.api-kicker { display: flex; align-items: center; gap: 12px; color: #c4cebf; font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.api-kicker span { display: inline-block; border: 1px solid var(--accent-dark); color: var(--accent); padding: 4px 7px; font-size: 10px; }
.api-intro h3 { margin: 24px 0 20px; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.35; letter-spacing: -.05em; }
.api-intro p { max-width: 380px; color: #a5b2ad; font-size: 13px; line-height: 1.9; }
.api-intro code { color: #e0c88e; font-size: 12px; }
.api-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.api-badges span { border: 1px solid #495752; padding: 7px 9px; color: #aebcb5; font-family: ui-monospace, Menlo, monospace; font-size: 10px; }
.code-card { overflow: hidden; border: 1px solid #4c5b58; background: #0e1518; box-shadow: 0 25px 60px rgba(0, 0, 0, .15); }
.code-header, .code-footer { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 18px; border-bottom: 1px solid #344341; color: #c2cec2; font-family: ui-monospace, Menlo, monospace; font-size: 10px; }
.code-header i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; }
.code-header button { background: none; border: none; color: var(--accent); font-size: 10px; }
.code-card pre { margin: 0; min-height: 305px; overflow: auto; padding: 26px 27px; color: #e2e9e2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 2.05; }
.code-muted { color: #758782; }.code-method { color: #d9c17a; }.code-key { color: #a8c7ad; }.code-string { color: #e4cb99; }
.code-footer { min-height: 52px; border-top: 1px solid #344341; border-bottom: 0; color: #8d9f96; line-height: 1.5; }
.code-footer a { color: var(--accent); white-space: nowrap; }

.wallpaper { padding-bottom: 140px; }
.wallpaper-panel { position: relative; min-height: 350px; overflow: hidden; border: 1px solid #4b5551; background: radial-gradient(circle at 22% 74%, #344137 0, transparent 26%), linear-gradient(105deg, #172123 0%, #242b29 55%, #121a1d 100%); }
.wallpaper-panel::before { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(204, 222, 197, .09); pointer-events: none; }
.wallpaper-shapes { position: absolute; inset: 0; overflow: hidden; }
.wallpaper-shapes::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 85px, rgba(218, 219, 190, .035) 86px 87px); }
.shape-one { position: absolute; width: 470px; height: 470px; left: -155px; top: 64px; border-radius: 50%; border: 1px solid rgba(224, 217, 181, .22); box-shadow: 0 0 0 40px rgba(227, 219, 175, .025), 0 0 0 105px rgba(227, 219, 175, .02); }
.shape-two { position: absolute; width: 270px; height: 270px; right: 16%; top: -170px; transform: rotate(45deg); border: 1px solid rgba(226, 215, 164, .24); }
.shape-three { position: absolute; width: 3px; height: 250px; left: 36%; top: 15px; background: rgba(220, 220, 190, .1); transform: rotate(24deg); }
.wallpaper-copy { position: relative; z-index: 1; padding: 53px 64px; max-width: 620px; }
.wallpaper-copy h3 { margin: 19px 0 13px; font-size: clamp(28px, 3vw, 43px); letter-spacing: -.05em; line-height: 1.35; }
.wallpaper-copy p { color: #b0bcb1; font-size: 12px; line-height: 1.8; }
.wallpaper-copy code { display: inline-block; margin-top: 10px; padding: 10px 12px; border: 1px solid #7c836a; color: #e5d4aa; font-size: 11px; }
.wallpaper-aside { position: absolute; right: 43px; bottom: 45px; color: rgba(221, 226, 206, .33); font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .17em; line-height: 1.8; text-align: right; }
.wallpaper-aside span { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 18px; }

.cg-gallery { padding-bottom: 140px; }
.cg-panel { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr); min-height: 440px; border: 1px solid #4b5551; background: #121a1d; }
.cg-stage { position: relative; min-height: 440px; overflow: hidden; background: radial-gradient(circle at 50% 50%, #334239, #10181b 70%); }
.cg-stage::before { content: ""; position: absolute; z-index: 1; inset: 13px; border: 1px solid rgba(212, 225, 205, .15); pointer-events: none; }
.cg-stage img { display: block; width: 100%; height: 100%; max-height: 560px; object-fit: contain; }
.cg-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 35px; color: #d9e0d5; font-size: 14px; text-align: center; }
.cg-info { display: flex; flex-direction: column; align-items: flex-start; padding: 48px 35px 35px; border-left: 1px solid #41504d; }
.cg-info h3 { margin: 25px 0 15px; font-size: clamp(32px, 3vw, 46px); line-height: 1.3; letter-spacing: -.06em; }
.cg-info p { color: #a6b6ad; font-size: 12px; line-height: 1.9; }
.cg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; margin-top: 17px; }
.cg-actions .button { gap: 28px; }
.cg-actions a { color: var(--accent); font-size: 11px; }
.cg-info small { display: block; max-width: 100%; overflow-wrap: anywhere; margin-top: auto; padding-top: 18px; color: #7f948a; font-family: ui-monospace, Menlo, monospace; font-size: 10px; }
.cg-info code { display: inline-block; margin-top: 14px; padding: 9px 10px; border: 1px solid #697669; color: #e5d4aa; font-size: 10px; }

[hidden] { display: none !important; }

.site-footer { border-top: 1px solid #33413e; background: #0a1013; }
.footer-grid { min-height: 165px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px; }
.footer-grid strong { color: var(--accent); font-size: 20px; letter-spacing: .16em; }
.footer-grid p { color: #7f938d; font-size: 11px; margin: 7px 0 0; }
.footer-grid > div:nth-child(2) { color: #899c94; font-size: 10px; line-height: 1.9; }
.footer-grid a { align-self: center; color: #d9cb9e; font-size: 11px; }

@media (max-width: 1000px) {
  .site-header { gap: 15px; }
  .hero { min-height: 500px; }
  .hero-art { transform: translate(18px, -5px); }
  .signal-grid { grid-template-columns: repeat(3, 1fr); }
  .signal-grid .strip-caption { display: none; }
  .signal-grid > div:nth-child(3) { border-right: 0; }
  .api-grid { gap: 25px; }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 36px, 540px); }
  .site-header { min-height: 76px; }
  .brand { min-width: unset; }.brand-type { font-size: 17px; }.brand-type small { font-size: 6px; }
  .nav { gap: 13px; }.nav a { font-size: 10px; }.nav a:first-child, .nav a:nth-child(3) { display: none; }
  .header-github { padding: 7px 9px; font-size: 10px; }
  .hero { display: block; min-height: 590px; }
  .hero-copy { padding: 76px 0 0; }.hero h1 { font-size: clamp(46px, 12vw, 67px); }
  .hero-copy > p { max-width: 360px; font-size: 13px; }
  .hero-art { width: 330px; max-width: 90%; margin-left: auto; margin-top: -50px; transform: translate(50px, 0); opacity: .62; }
  .hero-index { bottom: 26px; }
  .signal-grid { min-height: 76px; grid-template-columns: repeat(3, 1fr); }
  .signal-grid > div { display: block; padding-left: 10px; min-height: 34px; }
  .signal-grid > div:first-child { padding-left: 0; }
  .signal-icon { display: none; }.signal-grid strong { display: block; font-size: 15px; }.signal-grid small { font-size: 9px; }
  .section { padding-top: 75px; padding-bottom: 82px; }
  .section-heading { display: block; }.section-heading p { margin: 13px 0 0; line-height: 1.6; }
  .explore-grid, .api-grid { display: block; }
  .quote-card { min-height: 350px; padding: 23px 20px; }
  .quote-portrait { width: 77%; opacity: .27; }
  .quote-card blockquote { min-height: 200px; max-width: 100%; padding: 40px 9px 10px 20px; font-size: 21px; }
  .quote-bottom { padding-top: 12px; }.quote-bottom > div { gap: 10px; }
  .portrait-source { left: 20px; }
  .control-card { margin-top: 14px; min-height: 0; }
  .api-intro { margin-bottom: 30px; }.api-intro h3 { font-size: 29px; }
  .code-card pre { font-size: 10px; padding: 20px 16px; min-height: 275px; }
  .code-footer { padding: 9px 14px; }
  .wallpaper-panel { min-height: 350px; }.wallpaper-copy { padding: 42px 27px; max-width: 360px; }
  .wallpaper-aside { right: 25px; bottom: 20px; font-size: 10px; }
  .cg-panel { display: block; }.cg-stage { min-height: 250px; height: min(70vw, 430px); }
  .cg-info { min-height: 330px; padding: 30px 26px; border-left: 0; border-top: 1px solid #41504d; }
  .cg-info h3 { margin: 18px 0 8px; }.cg-info h3 br { display: none; }
  .footer-grid { grid-template-columns: 1fr auto; padding-top: 25px; padding-bottom: 25px; row-gap: 19px; }
  .footer-grid > div:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .orbital-outer { animation: none; } .button, .round-button { transition: none; } }
