.docs-page { --docs-panel: #17181c; --docs-panel-soft: #22242a; --docs-paper: #fafafa; --docs-quiet: #6e6e73; --docs-accent: #0071e3; background: var(--docs-paper); }
.docs-page main { max-width: 1280px; width: calc(100% - 3rem); margin-inline: auto; }
.docs-page .nav { background: rgba(250, 250, 250, .85); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); }
.docs-page .nav-inner { min-height: 4.5rem; }
.docs-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(28rem, 1.15fr); align-items: center; gap: clamp(3.5rem, 9vw, 8rem); padding: clamp(6.5rem, 14vw, 11rem) 0 clamp(5rem, 10vw, 8rem); }
.docs-hero-copy { min-width: 0; }
.docs-hero .eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; }
.eyebrow-mark { width: .5rem; height: .5rem; border-radius: 50%; background: var(--docs-accent); box-shadow: 0 0 0 .3rem rgba(0, 113, 227, .14); animation: pulse-dot 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.docs-hero h1 { max-width: 700px; margin: 0 0 1.8rem; font-size: clamp(3.8rem, 8vw, 7.2rem); line-height: .92; letter-spacing: -.078em; font-weight: 750; text-align: start; }
.docs-hero h1 em { background: linear-gradient(135deg, #0071e3 0%, #0a84ff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: normal; }
.docs-hero .lede { max-width: 34rem; margin: 0; font-size: 1.15rem; line-height: 1.55; letter-spacing: -.012em; text-align: start; }
.docs-hero-actions { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.5rem; }
.docs-hero-actions .primary-link { min-height: 3.3rem; padding-inline: 1.5rem; font-size: .88rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px rgba(0, 113, 227, .25); }
.hero-note { color: var(--docs-quiet); font-size: .74rem; font-weight: 500; }
.hero-terminal { position: relative; overflow: hidden; border: 1px solid rgba(0, 0, 0, .08); border-radius: 1.6rem; background: linear-gradient(145deg, #1a1b1f 0%, #14151a 100%); color: #f4f4f5; box-shadow: 0 30px 80px rgba(0, 0, 0, .2), 0 8px 16px rgba(0, 0, 0, .12); transform: perspective(1000px) rotateY(-2deg) rotateX(1deg); }
.hero-terminal::after { content: ""; position: absolute; right: -6rem; bottom: -7rem; width: 20rem; height: 20rem; border-radius: 50%; background: radial-gradient(circle, rgba(0, 113, 227, .18) 0%, transparent 70%); filter: blur(40px); pointer-events: none; }
.terminal-bar, .terminal-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #85858b; font: 600 .67rem/1 ui-monospace, monospace; }
.terminal-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 0; color: #a1a1a6; }
.terminal-status { color: #30d158; font-weight: 650; }
.terminal-dots { display: flex; gap: .32rem; margin-right: auto; }
.terminal-dots i { width: .5rem; height: .5rem; border-radius: 50%; background: #ff5f57; }.terminal-dots i:nth-child(2) { background: #febc2e; }.terminal-dots i:nth-child(3) { background: #28c840; }
.hero-terminal pre { margin: 0; padding: 2.3rem 1.5rem 2.2rem; overflow: auto; background: transparent; color: #e4e4e7; font-size: clamp(.72rem, 1.4vw, .88rem); line-height: 1.9; }
.hero-terminal code b, .code-card code b { color: #64d2ff; font-weight: 500; }.hero-terminal code strong, .code-card code strong { color: #c6a8ff; font-weight: 500; }.hero-terminal code mark, .code-card code mark { background: transparent; color: #fbbf24; font-weight: 500; }.hero-terminal code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.docs-intro { display: flex; align-items: center; gap: 1.8rem; padding: 1.2rem 0; border-top: 1px solid rgba(60, 60, 67, .12); border-bottom: 1px solid rgba(60, 60, 67, .12); }
.docs-intro span { color: var(--docs-accent); font-size: .66rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.docs-intro p { margin: 0; color: var(--text); font-size: .92rem; font-weight: 650; letter-spacing: -.015em; }
.docs-shell { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(3.5rem, 10vw, 9rem); padding: clamp(5rem, 10vw, 8rem) 0 7rem; }
.docs-aside { position: sticky; top: 6rem; align-self: start; }
.docs-aside p { margin: 0 0 .85rem; color: var(--docs-quiet); font-size: .67rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.docs-aside a { display: block; padding: .5rem 0; color: var(--docs-quiet); font-size: .82rem; font-weight: 500; text-decoration: none; transition: color 180ms ease, transform 180ms var(--ease-out); }
.docs-aside a:hover, .docs-aside a:focus-visible { color: var(--text); }
.docs-aside a.active { color: var(--text); transform: translateX(.45rem); font-weight: 650; }
.docs-aside a.active::before { content: ""; display: inline-block; width: .3rem; height: .3rem; margin: 0 .55rem .1rem 0; border-radius: 50%; background: var(--docs-accent); }
.aside-foot { display: flex; align-items: center; gap: .5rem; margin-top: 4rem; color: var(--docs-quiet); font-size: .68rem; font-weight: 500; }.aside-dot { width: .42rem; height: .42rem; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 .2rem rgba(48, 209, 88, .14); }
.docs-content { min-width: 0; }.docs-content section { scroll-margin-top: 6rem; padding: 0 0 7rem; }.docs-content section + section { padding-top: 6.5rem; border-top: 1px solid rgba(60, 60, 67, .12); }
.section-top { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }.section-top .eyebrow { margin: 0; }.section-index { color: var(--docs-accent); font: 700 .72rem/1 ui-monospace, monospace; }
.docs-content h2 { max-width: 42rem; margin: 0 0 1.2rem; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: .96; letter-spacing: -.065em; font-weight: 720; text-wrap: balance; }.section-lede { max-width: 40rem; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; letter-spacing: -.008em; }.docs-content p { color: var(--muted); line-height: 1.7; }.docs-content strong { color: var(--text); font-weight: 650; }.docs-content code:not(pre code) { padding: .18rem .35rem; border-radius: .35rem; background: rgba(0, 0, 0, .05); color: var(--text); font-size: .84em; font-weight: 500; }
.code-card { max-width: 48rem; margin: 2.5rem 0 1.5rem; overflow: hidden; border: 1px solid rgba(0, 0, 0, .08); border-radius: 1.2rem; background: var(--docs-panel); color: #f5f5f7; box-shadow: 0 18px 48px rgba(0, 0, 0, .12); }.code-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #85858b; font: 600 .66rem/1 ui-monospace, monospace; }.code-card-head span:first-child { display: flex; align-items: center; gap: .55rem; }.code-card-head i { width: .44rem; height: .44rem; border-radius: 50%; background: #30d158; }.code-card pre { margin: 0; padding: 1.5rem 1.25rem; overflow: auto; background: transparent; color: #e4e4e7; font-size: .78rem; line-height: 1.8; }.code-card.compact { margin-top: 1.5rem; }.code-card.compact pre { padding-block: 1.1rem; }.code-card code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }.code-card code b { color: #64d2ff; font-weight: 500; }.code-card code strong { color: #c6a8ff; font-weight: 500; }.code-card code mark { background: transparent; color: #fbbf24; font-weight: 500; }.prompt { color: #30d158; font-weight: 600; }
.inline-note { display: flex; gap: .6rem; align-items: baseline; max-width: 44rem; margin-top: 1.5rem; }.inline-note > span { color: var(--docs-accent); font-size: .9rem; }.inline-note p { margin: 0; font-size: .82rem; line-height: 1.6; }.docs-link { color: var(--docs-accent); font-weight: 650; text-decoration: none; }.docs-link:hover { text-decoration: underline; }.section-split { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.2rem; }.surface-label { flex: none; padding: .48rem .7rem; border: 1px solid rgba(60, 60, 67, .14); border-radius: .5rem; background: rgba(0, 0, 0, .02); color: var(--docs-quiet); font-size: .64rem; font-weight: 650; }
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 2.5rem; }.platform-card { padding: 1.35rem 1.25rem; border: 1px solid rgba(60, 60, 67, .12); border-radius: 1.1rem; background: rgba(255, 255, 255, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }.platform-kicker { display: block; margin-bottom: .95rem; color: var(--docs-accent); font-size: .65rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }.platform-card h3 { margin: 0 0 .9rem; font-size: .95rem; font-weight: 650; letter-spacing: -.02em; }.platform-card p { margin: 0; font-size: .82rem; line-height: 1.6; }.platform-card pre { margin: 0; padding: .9rem 1rem; overflow: auto; border-radius: .7rem; background: var(--docs-panel); color: #f5f5f7; font-size: .7rem; line-height: 1.65; }
.trouble-list { display: grid; gap: 1.3rem; margin-top: 2.5rem; }.trouble-list > div { padding-bottom: 1.3rem; border-bottom: 1px solid rgba(60, 60, 67, .12); }.trouble-list > div:last-child { padding-bottom: 0; border-bottom: 0; }.trouble-list h3 { margin: 0 0 .4rem; font-size: .95rem; font-weight: 650; }.trouble-list p { max-width: 40rem; margin: 0; font-size: .86rem; line-height: 1.6; }

@media (prefers-color-scheme: dark) {
  .docs-page { --docs-paper: #0a0a0a; --docs-quiet: #8e8e93; --docs-accent: #0a84ff; }
  .docs-page .nav { background: rgba(10, 10, 10, .85); }
  .docs-intro { border-color: rgba(235, 235, 245, .12); }
  .docs-content section + section, .trouble-list > div { border-color: rgba(235, 235, 245, .12); }
  .docs-content code:not(pre code) { background: rgba(255, 255, 255, .08); }
  .platform-card { border-color: rgba(235, 235, 245, .12); background: rgba(255, 255, 255, .04); }
  .surface-label { border-color: rgba(235, 235, 245, .12); background: rgba(255, 255, 255, .03); }
  .hero-terminal { border-color: rgba(255, 255, 255, .1); background: linear-gradient(145deg, #1c1c1e 0%, #17181a 100%); }
  .code-card { border-color: rgba(255, 255, 255, .1); }
}

@media (max-width: 900px) {
  .docs-page main { width: calc(100% - 2rem); }
  .docs-hero { grid-template-columns: 1fr; gap: 3.5rem; padding-top: 5.5rem; }
  .docs-hero h1 { font-size: clamp(3.8rem, 15vw, 6rem); }
  .hero-terminal { max-width: 44rem; transform: perspective(1000px) rotateY(0) rotateX(0); }
  .docs-shell { grid-template-columns: 11rem minmax(0, 1fr); gap: 2.5rem; }
}

@media (max-width: 680px) {
  .docs-page main { width: calc(100% - 1.5rem); }
  .docs-hero { padding-top: 4.5rem; gap: 2.5rem; }
  .docs-hero h1 { font-size: clamp(3.2rem, 13vw, 4.5rem); }
  .docs-hero-actions { align-items: flex-start; flex-direction: column; gap: .9rem; }
  .docs-intro { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .docs-shell { display: block; padding-top: 3.5rem; }
  .docs-aside { display: flex; position: static; gap: 1.2rem; margin-bottom: 4rem; padding-bottom: .9rem; overflow-x: auto; border-bottom: 1px solid rgba(60, 60, 67, .12); -webkit-overflow-scrolling: touch; }
  .docs-aside p, .aside-foot { display: none; }
  .docs-aside a { flex: none; padding: 0; white-space: nowrap; font-size: .8rem; }
  .docs-aside a.active { transform: none; }
  .docs-content section { padding-bottom: 5rem; }
  .docs-content section + section { padding-top: 5rem; }
  .docs-content h2 { font-size: 2.4rem; }
  .section-split { display: block; }
  .surface-label { display: inline-block; margin-top: 1.3rem; }
  .platform-grid { grid-template-columns: 1fr; }
  .hero-terminal pre, .code-card pre { font-size: .7rem; }
}

@media (max-width: 420px) {
  .docs-page main { width: calc(100% - 1rem); }
  .docs-hero h1 { font-size: 2.8rem; }
  .hero-terminal pre { padding: 1.8rem 1.1rem; font-size: .66rem; }
  .code-card pre { font-size: .68rem; padding: 1.2rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow-mark { animation: none; }
  .docs-aside a { transition: color 160ms ease; }
}

@media (prefers-reduced-transparency: reduce) {
  .docs-page .nav { background: var(--docs-paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .platform-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
