@import "tailwindcss"; @source "../**/*.{wrn,ts,tsx}"; :root { color-scheme: light; --bg: #f8fafc; --surface: #ffffff; --surface-soft: #f1f5f9; --text: #0f172a; --muted: #526075; --border: #dbe3ee; --brand: #5b5cf0; --brand-strong: #4338ca; --code: #111827; --code-text: #dbeafe; --shadow: 0 18px 60px rgba(15, 23, 42, 0.08); } [data-theme="dark"] { color-scheme: dark; --bg: #080b14; --surface: #101522; --surface-soft: #161c2c; --text: #f4f7fb; --muted: #9ba8bc; --border: #263047; --brand: #8b8df8; --brand-strong: #a5b4fc; --code: #05070d; --code-text: #dbeafe; --shadow: 0 22px 70px rgba(0, 0, 0, 0.3); } * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; background: var(--bg); color: var(--text); font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; overflow-x: hidden; } a { color: inherit; } .docs-shell { position: relative; isolation: isolate; min-height: 100vh; overflow: hidden; } .docs-shell::before, .docs-shell::after { position: fixed; z-index: -1; width: 38rem; height: 38rem; border-radius: 999px; content: ""; pointer-events: none; filter: blur(110px); opacity: 0.12; animation: ambient-float 16s ease-in-out infinite alternate; } .docs-shell::before { top: -16rem; left: -12rem; background: #6366f1; } .docs-shell::after { right: -15rem; bottom: -18rem; background: #a855f7; animation-delay: -7s; } .topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; height: 74px; padding: 0 clamp(20px, 4vw, 72px); border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(22px) saturate(145%); } .brand { display: inline-flex; align-items: center; gap: 0.65rem; width: fit-content; font-weight: 800; text-decoration: none; letter-spacing: -0.02em; } .brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: white; background: linear-gradient(145deg, #6366f1, #8b5cf6); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3); animation: logo-pulse 4s ease-in-out infinite; } .topbar nav { display: flex; gap: 1.5rem; } .topbar nav a { position: relative; color: var(--muted); font-size: 0.9rem; font-weight: 600; text-decoration: none; } .topbar nav a::after { position: absolute; right: 0; bottom: -0.45rem; left: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), #a855f7); content: ""; transform: scaleX(0); transition: transform 0.2s ease; } .topbar nav a:hover::after { transform: scaleX(1); } .topbar nav a:hover { color: var(--text); } .theme-button { justify-self: end; border: 1px solid var(--border); border-radius: 9px; padding: 0.5rem 0.8rem; color: var(--muted); background: var(--surface); cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; } .theme-button:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 18%, transparent); } .page { width: 100%; margin: 0; padding-inline: clamp(20px, 4vw, 72px); } .hero { display: grid; place-items: center; min-height: 670px; padding: 100px 0; text-align: center; background: radial-gradient( circle at 50% 25%, color-mix(in srgb, var(--brand) 19%, transparent), transparent 34% ), radial-gradient(circle at 75% 55%, color-mix(in srgb, #a855f7 9%, transparent), transparent 26%); } .hero.compact { min-height: auto; padding: 100px 0 60px; } .eyebrow, .category { color: var(--brand); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; } .hero h1 { max-width: 920px; margin: 1rem 0; font-size: clamp(3rem, 7vw, 6.6rem); line-height: 0.96; letter-spacing: -0.065em; animation: reveal-up 0.72s cubic-bezier(0.16, 1, 0.3, 1) both; } .hero.compact h1 { font-size: clamp(2.8rem, 5vw, 4.8rem); } .hero h1 em { color: transparent; background: linear-gradient(105deg, var(--brand), #a855f7, #0ea5e9, var(--brand)); background-size: 240% auto; background-clip: text; font-style: normal; animation: gradient-shift 7s linear infinite; } .hero > p { max-width: 720px; margin: 0.75rem auto 0; color: var(--muted); font-size: 1.15rem; line-height: 1.75; animation: reveal-up 0.72s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; } .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; animation: reveal-up 0.72s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both; } .actions a { padding: 0.8rem 1.15rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-weight: 700; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; } .actions a:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 14px 35px color-mix(in srgb, var(--brand) 18%, transparent); } .actions .primary { border-color: var(--brand); color: white; background: var(--brand); } .code-window { width: min(680px, 100%); margin-top: 3rem; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; text-align: left; background: var(--code); box-shadow: var(--shadow); animation: reveal-up 0.8s 0.28s cubic-bezier(0.16, 1, 0.3, 1) both; } .code-window > span { display: block; padding: 0.7rem 1rem; border-bottom: 1px solid #283044; color: #94a3b8; font: 0.75rem ui-monospace, monospace; } pre { position: relative; overflow: auto; margin: 1.25rem 0; padding: 1.2rem 1.35rem; border: 1px solid #20283a; border-radius: 12px; color: var(--code-text); background: var(--code); font: 0.82rem/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; } .code-window pre { margin: 0; border: 0; border-radius: 0; } code { border-radius: 5px; padding: 0.12rem 0.35rem; color: var(--brand-strong); background: var(--surface-soft); font: 0.88em ui-monospace, SFMono-Regular, Consolas, monospace; } pre code, .sidebar > code { padding: 0; color: inherit; background: transparent; } .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0 0 100px; } .feature-grid article, .package-card { border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; background: linear-gradient( 145deg, var(--surface), color-mix(in srgb, var(--surface-soft) 42%, var(--surface)) ); box-shadow: var(--shadow); animation: reveal-up 0.62s cubic-bezier(0.16, 1, 0.3, 1) both; } .feature-grid article:nth-child(2), .package-card:nth-child(3n + 2) { animation-delay: 0.06s; } .feature-grid article:nth-child(3), .package-card:nth-child(3n) { animation-delay: 0.12s; } .feature-grid h2, .package-card h2 { margin: 0.7rem 0; letter-spacing: -0.025em; } .feature-grid p, .package-card p { color: var(--muted); line-height: 1.65; } .search { width: min(620px, 100%); margin-top: 2rem; border: 1px solid var(--border); border-radius: 13px; padding: 0.9rem 1rem; color: var(--text); background: var(--surface); font: inherit; box-shadow: var(--shadow); transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; } .search:focus { transform: translateY(-2px); border-color: var(--brand); outline: none; box-shadow: 0 18px 50px color-mix(in srgb, var(--brand) 18%, transparent); } .category-filter { display: grid; gap: 0.8rem; margin-bottom: 1.5rem; } .category-row { display: flex; gap: 0.55rem; overflow-x: auto; padding: 0.2rem 0 0.65rem; scrollbar-width: thin; } .category-row button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.45rem; border: 1px solid var(--border); border-radius: 999px; padding: 0.55rem 0.8rem; color: var(--muted); background: var(--surface); font-family: inherit; font-size: 0.82rem; font-weight: 600; line-height: 1; cursor: pointer; transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease; } .category-row button:hover, .category-row button:focus-visible { transform: translateY(-1px); border-color: var(--brand); color: var(--brand); outline: none; } .category-row button span { display: grid; place-items: center; min-width: 1.35rem; height: 1.35rem; border-radius: 999px; color: var(--text); background: var(--surface-soft); font-size: 0.7rem; } .category-filter p { margin: 0; color: var(--muted); font-size: 0.85rem; } .category-filter strong { color: var(--text); } .package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 100px; } .package-card { display: block; text-decoration: none; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; } .package-card:hover { transform: translateY(-7px); border-color: var(--brand); box-shadow: 0 24px 60px color-mix(in srgb, var(--brand) 14%, transparent); } .card-link { color: var(--brand); font-size: 0.88rem; font-weight: 700; } .package-page { display: grid; grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 48px; align-items: start; padding-top: 56px; padding-bottom: 110px; } .on-this-page { position: sticky; top: 110px; min-width: 0; border-left: 1px solid var(--border); padding-left: 1rem; } .on-this-page h2 { margin: 0 0 0.8rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; } .on-this-page nav { display: grid; gap: 0.48rem; max-height: calc(100vh - 160px); overflow-y: auto; } .on-this-page a { overflow: hidden; color: var(--muted); font-size: 0.78rem; line-height: 1.35; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; } .on-this-page a:hover { color: var(--brand); } .on-this-page .toc-level-3, .on-this-page .toc-level-4 { padding-left: 0.7rem; } .sidebar { position: sticky; top: 110px; display: grid; gap: 0.85rem; } .sidebar > a { color: var(--muted); font-size: 0.85rem; text-decoration: none; } .sidebar h1 { overflow-wrap: anywhere; margin: 0; font-size: 1.55rem; letter-spacing: -0.035em; } .sidebar p { margin: 0; color: var(--muted); line-height: 1.55; } .sidebar > code { overflow-x: auto; padding: 0.8rem; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: var(--surface-soft); } .sidebar nav { display: grid; gap: 0.55rem; padding-top: 0.5rem; border-top: 1px solid var(--border); } .sidebar nav a { color: var(--muted); text-decoration: none; } .documentation { min-width: 0; animation: reveal-up 0.65s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both; } .documentation.standalone, .standalone { width: 100%; max-width: none; margin: 0; padding: 90px clamp(0px, 5vw, 90px) 120px; } .standalone > * { max-width: 1000px; } .doc-intro { padding-bottom: 2rem; border-bottom: 1px solid var(--border); } .doc-intro h1, .standalone h1 { margin: 0.7rem 0; font-size: clamp(2.5rem, 5vw, 4.2rem); letter-spacing: -0.055em; } .doc-intro p { color: var(--muted); font-size: 1.1rem; } .prose { color: var(--muted); font-size: 1rem; line-height: 1.8; } .prose > * { max-width: 850px; } .prose h2, .prose h3, .prose h4 { scroll-margin-top: 90px; color: var(--text); line-height: 1.2; letter-spacing: -0.035em; } .prose h2 { margin: 3.5rem 0 1rem; font-size: 2rem; } .prose h3 { margin: 2.5rem 0 0.8rem; font-size: 1.4rem; } .prose ul { padding-left: 1.25rem; } .prose li { margin: 0.45rem 0; } .prose blockquote { margin: 1.5rem 0; border-left: 3px solid var(--brand); padding: 0.5rem 1.2rem; color: var(--text); background: var(--surface-soft); } .table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 12px; } .prose table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.9rem; } .prose th, .prose td { min-width: 130px; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; } .prose th { color: var(--text); background: var(--surface-soft); font-weight: 700; } .prose tr:last-child td { border-bottom: 0; } .prose a { color: var(--brand); } .api { margin-top: 4rem; border-top: 1px solid var(--border); } .api pre { max-height: 760px; } #guide, #api, #examples { scroll-margin-top: 90px; } .examples { margin-top: 4rem; border-top: 1px solid var(--border); } .example-grid { display: grid; gap: 1rem; } .example-card { min-width: 0; } .example-card h3 { margin-bottom: -0.5rem; font-size: 0.88rem; } .language-reference { max-width: 920px; } footer { border-top: 1px solid var(--border); padding: 34px 20px; color: var(--muted); font-size: 0.82rem; text-align: center; } @keyframes reveal-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } } @keyframes ambient-float { from { transform: translate3d(-3%, -2%, 0) scale(0.95); } to { transform: translate3d(8%, 7%, 0) scale(1.12); } } @keyframes gradient-shift { to { background-position: 240% center; } } @keyframes logo-pulse { 0%, 100% { box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28); } 50% { box-shadow: 0 10px 34px rgba(139, 92, 246, 0.5); } } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } @media (max-width: 900px) { .topbar { grid-template-columns: 1fr auto; padding: 0 20px; } .topbar nav { display: none; } .feature-grid, .package-grid { grid-template-columns: repeat(2, 1fr); } .package-page { grid-template-columns: 1fr; gap: 35px; } .sidebar { position: static; } .on-this-page { display: none; } } @media (min-width: 901px) and (max-width: 1120px) { .package-page { grid-template-columns: 230px minmax(0, 1fr); } .on-this-page { display: none; } } @media (max-width: 600px) { .page { width: 100%; padding-inline: 14px; } .hero { min-height: 580px; padding: 70px 0; } .feature-grid, .package-grid { grid-template-columns: 1fr; } .package-page { padding-top: 30px; } }