:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #14213d;
  background: #f6f8ff;
  font-synthesis: none;
  line-height: 1.65;
  --ink: #111a35;
  --muted: #5e6b86;
  --line: #dfe5f2;
  --surface: #ffffff;
  --soft: #eef1ff;
  --brand: #554cf2;
  --brand-dark: #3932c7;
  --accent: #ffbd2e;
  --success: #11835b;
  --danger: #b4233d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: radial-gradient(circle at 92% 0, #e5e4ff 0, transparent 30rem), #f6f8ff; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
button, input { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 12px; }
.site-header { background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(211,217,236,.9); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.topbar { width: min(1120px, calc(100% - 36px)); margin: 0 auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 900; letter-spacing: -.04em; }
.brand img { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 8px 22px rgba(85,76,242,.18); }
.brand span span { color: var(--brand); }
.primary-nav { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.primary-nav a { color: #44506b; text-decoration: none; font-size: 13px; font-weight: 750; padding: 9px 11px; border-radius: 10px; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--brand-dark); background: var(--soft); }
.hero { color: white; background: linear-gradient(135deg, #101933 0%, #252260 52%, #554cf2 100%); overflow: hidden; position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; opacity: .35; }
.hero::before { width: 410px; height: 410px; background: #766fff; top: -250px; right: 6%; }
.hero::after { width: 260px; height: 260px; background: #ffbd2e; bottom: -230px; left: 8%; }
.hero-inner { width: min(1120px, calc(100% - 36px)); min-height: 410px; margin: 0 auto; padding: 76px 0 70px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: center; gap: 64px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: #c9c7ff; font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 6vw, 68px); line-height: 1.01; letter-spacing: -.055em; }
.hero p { max-width: 680px; margin: 22px 0 0; color: #dfe2f4; font-size: clamp(16px, 2vw, 19px); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 17px; border-radius: 14px; border: 1px solid transparent; text-decoration: none; font-weight: 850; }
.button-primary { background: var(--accent); color: #17203c; box-shadow: 0 12px 30px rgba(255,189,46,.22); }
.button-primary:hover { color: #17203c; background: #ffc747; }
.button-secondary { background: rgba(255,255,255,.09); color: #fff; border-color: rgba(255,255,255,.22); }
.button-secondary:hover { color: #fff; background: rgba(255,255,255,.16); }
.hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.17); border-radius: 28px; padding: 24px; box-shadow: 0 30px 80px rgba(3,7,24,.22); }
.hero-card strong { display: block; font-size: 19px; margin-bottom: 12px; }
.hero-card ul { padding-left: 20px; margin: 0; color: #e6e8f8; }
.hero-card li + li { margin-top: 8px; }
.page-hero .hero-inner { min-height: 280px; padding: 54px 0 50px; display: block; }
.page-hero h1 { max-width: 900px; font-size: clamp(34px, 5vw, 54px); }
.updated { color: #c9cee3; font-size: 13px; margin-top: 17px; }
.layout, .content-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.content-shell { padding: 54px 0 70px; }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding: 52px 0 76px; align-items: start; }
.toc { position: sticky; top: 96px; background: rgba(255,255,255,.84); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 12px 35px rgba(34,43,104,.07); }
.toc strong { display: block; margin-bottom: 9px; font-size: 13px; color: var(--ink); }
.toc a { display: block; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 650; }
.toc a:hover { background: var(--soft); color: var(--brand-dark); }
.doc { min-width: 0; }
.notice { border: 1px solid #ffc657; background: #fff8dc; color: #5d4612; border-radius: 16px; padding: 15px 17px; margin-bottom: 20px; }
.notice strong { color: #3e2b00; }
.notice-info { border-color: #bfc5ff; background: #f0f1ff; color: #3f4674; }
.doc section, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 30px); margin: 0 0 14px; box-shadow: 0 10px 32px rgba(34,43,104,.055); scroll-margin-top: 96px; }
.doc h2, .card h2 { margin: 0 0 11px; color: var(--ink); font-size: clamp(19px, 3vw, 24px); line-height: 1.25; letter-spacing: -.025em; }
.doc h3 { margin: 24px 0 8px; font-size: 16px; color: var(--ink); }
.doc p, .doc li, .card p { color: #4f5d77; }
.doc p { margin: 9px 0; }
.doc ul, .doc ol { margin: 10px 0; padding-left: 22px; }
.doc li + li { margin-top: 7px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 6px; font-size: 14px; }
.doc th, .doc td { padding: 13px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); background: #f6f7fb; }
.doc td { color: #4f5d77; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { margin: 0; min-width: 680px; }
.plain-list { list-style: none; padding: 0 !important; }
.plain-list li { padding-left: 27px; position: relative; }
.plain-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 900; }
.identity { display: grid; gap: 4px; }
.identity strong { color: var(--ink); }
.legal-placeholder { color: var(--danger); font-weight: 850; background: #fff0f3; border-radius: 7px; padding: 2px 6px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.card { margin: 0; }
.card-label { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--soft); color: var(--brand-dark); font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.card h2 { margin-top: 15px; }
.card-link { display: inline-flex; margin-top: 10px; font-weight: 850; text-decoration: none; }
.trust-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.trust-item { background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.trust-item strong { display: block; color: var(--ink); margin-bottom: 4px; }
.trust-item span { color: var(--muted); font-size: 13px; }
.site-footer { background: #10172d; color: #c7cce0; }
.footer-inner { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 38px 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.site-footer .brand { color: #fff; }
.site-footer p { margin: 12px 0 0; max-width: 560px; font-size: 13px; color: #9ca5c1; }
.site-footer a { color: #d8dbeb; }
.footer-links { display: flex; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { text-decoration: none; font-size: 13px; font-weight: 700; }
.footer-meta { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 15px 0 23px; border-top: 1px solid rgba(255,255,255,.09); color: #848faa; font-size: 12px; }
.auth-page { min-height: 100vh; background: radial-gradient(circle at 20% 0,#e0e7ff 0,transparent 36%),linear-gradient(145deg,#f8fafc,#eef2ff); color:#101a36; }
.auth-shell { min-height:100vh; display:grid; place-items:center; padding:24px; }
.auth-card { width:min(100%,470px); margin:0; padding:38px; border-radius:28px; text-align:center; border:1px solid rgba(99,102,241,.16); box-shadow:0 28px 80px rgba(30,41,99,.16); background:#fff; }
.auth-logo { display:block; margin:0 auto 14px; border-radius:22px; box-shadow:0 12px 30px rgba(79,70,229,.23); }
.auth-kicker { color:#6256e8; }
.auth-card h1 { font-size:clamp(26px,7vw,36px); line-height:1.14; margin:10px 0; }
.auth-card p { color:#64748b; margin:10px 0 22px; }
.auth-status { width:54px; height:54px; display:grid; place-items:center; margin:4px auto 16px; border-radius:18px; font-size:25px; font-weight:900; }
.auth-status--ready { background:#eef2ff; color:#4f46e5; }
.auth-status--success { background:#dcfce7; color:#15803d; }
.auth-status--error { background:#fee2e2; color:#b91c1c; }
.auth-primary { width:100%; min-height:52px; border:0; border-radius:15px; background:linear-gradient(135deg,#665cf4,#4f46e5); color:#fff; font:inherit; font-weight:850; cursor:pointer; box-shadow:0 12px 25px rgba(79,70,229,.24); }
.auth-primary:disabled { opacity:.65; cursor:wait; }
.auth-link { display:flex; align-items:center; justify-content:center; text-decoration:none; }
.auth-card label { display:block; text-align:left; font-size:13px; font-weight:800; color:#334155; margin:14px 0 6px; }
.auth-card input { width:100%; min-height:50px; border:1px solid #cbd5e1; border-radius:13px; padding:0 14px; font:inherit; outline:none; }
.auth-card input:focus { border-color:#6366f1; box-shadow:0 0 0 4px #e0e7ff; }
.auth-card form .auth-primary { margin-top:20px; }
.auth-error { color:#b91c1c!important; background:#fef2f2; border-radius:10px; padding:9px 12px; margin-bottom:0!important; }
.auth-help { font-size:13px; margin:24px 0 0!important; }
.auth-spinner { width:42px; height:42px; margin:4px auto 18px; border:4px solid #e0e7ff; border-top-color:#4f46e5; border-radius:50%; animation:auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform:rotate(360deg); } }
@media (max-width: 820px) {
  .topbar { min-height: 66px; }
  .primary-nav a:not(.nav-essential) { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 54px 0; }
  .hero-card { max-width: 560px; }
  .layout { grid-template-columns: 1fr; gap: 16px; padding-top: 30px; }
  .toc { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 10px; }
  .toc strong { display: none; }
  .toc a { white-space: nowrap; }
  .trust-strip { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 580px) {
  .topbar, .hero-inner, .layout, .content-shell, .footer-inner, .footer-meta { width: min(100% - 24px, 1120px); }
  .brand { font-size: 19px; }
  .brand img { width: 38px; height: 38px; }
  .hero h1 { font-size: 38px; }
  .hero-card { border-radius: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .doc section, .card { border-radius: 17px; padding: 19px; }
  .auth-shell { padding:14px; }
  .auth-card { padding:28px 20px; border-radius:24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
