@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap'); *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #0f0f10; --surface: #1a1a1b; --surface-hover: #222223; --border: #2a2a2b; --text: #e5e5e5; --text-secondary: #888; --accent: #10a37f; --accent-hover: #0d8c6d; --code-bg: #161617; --radius: 10px; } body { font-family: 'IBM Plex Sans', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } /* ── Nav ── */ .site-nav { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; } .nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 32px; } .nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; } .nav-logo-mark { width: 28px; height: 28px; background: linear-gradient(135deg, var(--accent), #0d8c6d); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; } .nav-links { display: flex; gap: 4px; flex: 1; } .nav-links a { padding: 6px 12px; border-radius: 6px; font-size: 14px; color: var(--text-secondary); transition: all 0.15s; } .nav-links a:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; } .nav-links a.active { color: var(--text); background: var(--bg); } .nav-cta { background: var(--accent); color: #fff !important; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; transition: background 0.15s; white-space: nowrap; } .nav-cta:hover { background: var(--accent-hover) !important; text-decoration: none !important; } /* ── Layout ── */ .page { max-width: 860px; margin: 0 auto; padding: 56px 24px 96px; } .hero { margin-bottom: 48px; } .hero h1 { font-size: 36px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; text-wrap: balance; } .hero p { font-size: 18px; color: var(--text-secondary); max-width: 620px; } /* ── Section headers ── */ h2 { font-size: 22px; font-weight: 600; margin: 48px 0 16px; padding-top: 8px; border-top: 1px solid var(--border); } h3 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; color: var(--text); } p { margin-bottom: 14px; color: var(--text); } ul, ol { padding-left: 20px; margin-bottom: 14px; } li { margin-bottom: 6px; } /* ── Code ── */ pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; overflow-x: auto; margin: 16px 0; position: relative; } code { font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace; font-size: 13px; line-height: 1.7; color: #d4d4d4; } p code, li code { background: #2a2a2b; padding: 2px 7px; border-radius: 5px; font-size: 12.5px; color: #e5e5e5; } .code-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 6px; margin-top: 20px; } /* Syntax colours */ .kw { color: #569cd6; } .str { color: #ce9178; } .cmt { color: #6a9955; } .fn { color: #dcdcaa; } .num { color: #b5cea8; } .cls { color: #4ec9b0; } /* ── Callout ── */ .callout { background: rgba(16, 163, 127, 0.08); border: 1px solid rgba(16, 163, 127, 0.25); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; font-size: 14px; } .callout-warn { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.25); } .callout strong { display: block; margin-bottom: 4px; } /* ── Steps ── */ .steps { counter-reset: step; margin: 0; padding: 0; list-style: none; } .steps li { counter-increment: step; display: flex; gap: 16px; margin-bottom: 28px; } .steps li::before { content: counter(step); background: var(--accent); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 2px; } .steps li > div { flex: 1; } .steps li strong { display: block; margin-bottom: 4px; font-size: 15px; } /* ── Cards ── */ .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; } .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color 0.15s; } .card:hover { border-color: #3a3a3b; } .card h3, .card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; } .card p { font-size: 13px; color: var(--text-secondary); margin: 0; } /* ── Tab switcher ── */ .tabs { display: flex; gap: 4px; margin-bottom: -1px; } .tab { padding: 8px 16px; background: transparent; border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all 0.15s; } .tab.active { background: var(--code-bg); border-color: var(--border); color: var(--text); } .tab-content { display: none; } .tab-content.active { display: block; } .tab-panel { border: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) var(--radius); } .tab-panel pre { border: none; border-radius: 0 var(--radius) var(--radius) var(--radius); margin: 0; } /* ── Badge ── */ .badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; } .badge-green { background: rgba(16,163,127,0.15); color: var(--accent); } .badge-blue { background: rgba(59,130,246,0.15); color: #60a5fa; } .badge-amber { background: rgba(245,158,11,0.15); color: #f59e0b; } /* ── Platform icon ── */ .platform-icon { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; } .icon { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; } @media (max-width: 640px) { .hero h1 { font-size: 26px; } pre { padding: 14px 16px; } .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px; } .nav-links { order: 3; width: 100%; flex-wrap: wrap; gap: 2px; padding-bottom: 6px; } .nav-links a { font-size: 13px; padding: 5px 10px; } .nav-cta { margin-left: auto; } }