* { margin: 0; padding: 0; box-sizing: border-box; }
  :root {
    --primary-900: #1e3a8a;
    --primary-800: #1e40af;
    --primary-700: #1d4ed8;
    --primary-600: #2563eb;
    --primary-500: #3b82f6;
    --primary-100: #dbeafe;
    --primary-50: #eff6ff;
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #10b981;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
    color-scheme: light;
  }

  [data-theme="dark"] {
    --primary-900: #93b8ff;
    --primary-800: #7aa9ff;
    --primary-700: #5b93ff;
    --primary-600: #7aa9ff;
    --primary-500: #5b93ff;
    --primary-100: #1e3157;
    --primary-50:  #16243c;
    --bg: #080d17;
    --card: #0f1726;
    --text: #e9eef8;
    --text-body: #cbd5e1;
    --text-muted: #93a3bb;
    --text-soft: #7c8ca6;
    --border: #223047;
    --border-light: #1a2436;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,.45);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.55);
    color-scheme: dark;
  }
  [data-theme="dark"] body { background: var(--bg); }
  [data-theme="dark"] .topnav { background: rgba(15,23,38,.9); }
  [data-theme="dark"] .card,
  [data-theme="dark"] .toc,
  [data-theme="dark"] .info-box,
  [data-theme="dark"] .trust-banner { background: var(--card); }

  html { scroll-behavior: smooth; }
  body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  /* === TOP NAV === */
  .topnav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .topnav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-600) 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  }
  .nav-links { display: flex; gap: 8px; align-items: center; }
  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.15s;
  }
  .nav-links a:hover { color: var(--primary-600); background: var(--primary-50); }
  .nav-links a.active { color: var(--primary-700); background: var(--primary-50); }

  /* === HERO === */
  .hero {
    background: linear-gradient(135deg, #0f1e54 0%, #1e3a8a 45%, #2563eb 100%);
    color: white;
    padding: 70px 24px 90px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 28px;
    color: #ffffff;
    letter-spacing: 0.02em;
  }
  .hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--success);
  }
  .hero h1 {
    font-size: clamp(36px, 5.5vw, 54px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    line-height: 1.05;
    color: #ffffff;
  }
  .hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: #ffffff;
    opacity: 0.95;
    max-width: 680px;
    margin-bottom: 32px;
    line-height: 1.55;
    font-weight: 400;
  }
  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13.5px;
    font-weight: 500;
    color: #ffffff;
  }
  .hero-meta-pill svg { width: 15px; height: 15px; opacity: 0.95; }

  /* === MAIN === */
  .container {
    max-width: 900px;
    margin: -50px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
  }
  .card {
    background: var(--card);
    border-radius: 20px;
    padding: 48px 56px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
  }

  /* Trust banner */
  .trust-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
  }
  .trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }
  .trust-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: var(--primary-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
  }
  .trust-icon svg { width: 20px; height: 20px; }
  .trust-text { font-size: 13px; line-height: 1.4; }
  .trust-text strong { color: var(--text); font-size: 13.5px; display: block; margin-bottom: 2px; }
  .trust-text span { color: var(--text-muted); }

  /* TOC */
  .toc {
    background: linear-gradient(135deg, #f8faff 0%, #eff6ff 100%);
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 48px;
    border: 1px solid #dbeafe;
  }
  .toc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-700);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .toc-title::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--primary-600);
    border-radius: 2px;
  }
  .toc ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 4px;
  }
  .toc a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s;
  }
  .toc a:hover { color: var(--primary-700); background: white; }
  .toc-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-600);
    background: white;
    padding: 2px 7px;
    border-radius: 4px;
    min-width: 24px;
    text-align: center;
  }

  /* Section headings */
  h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-top: 52px;
    margin-bottom: 18px;
    letter-spacing: -0.015em;
    scroll-margin-top: 80px;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  h2:first-of-type { margin-top: 0; }
  h2 .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-600);
    background: var(--primary-50);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0;
  }
  h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-top: 26px;
    margin-bottom: 12px;
  }

  p { color: var(--text-body); margin-bottom: 14px; font-size: 15.5px; }

  ul.body-list, ol.body-list {
    margin: 14px 0 20px 4px;
    color: var(--text-body);
    list-style: none;
  }
  ul.body-list li, ol.body-list li {
    margin-bottom: 10px;
    padding-left: 26px;
    position: relative;
    font-size: 15.5px;
  }
  ul.body-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: 50%;
  }
  strong { color: var(--text); font-weight: 600; }

  /* Info box */
  .info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--primary-600);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
  }
  .info-box p {
    color: var(--text);
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
  }
  .info-box-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-700);
    margin-bottom: 6px;
    display: block;
  }

  /* Permissions grid */
  .permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin: 22px 0;
  }
  .perm-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    transition: all 0.15s;
  }
  .perm-card:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-md);
  }
  .perm-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }
  .perm-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-600) 100%);
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
  }
  .perm-icon svg { width: 18px; height: 18px; }
  .perm-card-title {
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
  }
  .perm-optional {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-soft);
    background: var(--border-light);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .perm-card p {
    font-size: 13.5px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
  }

  /* Data table */
  .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
  .data-table th {
    background: var(--primary-50);
    color: var(--primary-800);
    text-align: left;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .data-table td {
    padding: 14px 18px;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-body);
  }
  .data-table tr:nth-child(even) td { background: #fafbfc; }

  /* Contact card */
  .contact-card {
    background: linear-gradient(135deg, #0f1e54 0%, #1e3a8a 50%, #2563eb 100%);
    color: white;
    border-radius: 20px;
    padding: 48px;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
  .contact-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
  }
  .contact-card h2 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 14px;
    position: relative;
  }
  .contact-card h2 .num {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
  }
  .contact-card > p {
    color: #ffffff;
    opacity: 0.95;
    position: relative;
    margin-bottom: 24px;
    font-size: 15.5px;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    position: relative;
  }
  .contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.15s;
    font-size: 14px;
    font-weight: 500;
  }
  .contact-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
  }
  .contact-item-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .contact-item-icon svg { width: 18px; height: 18px; color: white; }
  .contact-item-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
  }
  .contact-item-value {
    font-size: 14px;
    font-weight: 500;
  }

  /* Footer */
  footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 36px 24px;
    text-align: center;
  }
  .footer-inner {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 14px;
  }
  .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 600;
  }
  .footer-brand .brand-mark { width: 30px; height: 30px; font-size: 13px; }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-top: 16px;
    margin-bottom: 16px;
  }
  .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
  }
  .footer-links a:hover { color: var(--primary-600); }
  .footer-copy {
    color: var(--text-soft);
    font-size: 13px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
  }

  /* Mobile */
  @media (max-width: 720px) {
    .topnav { padding: 12px 16px; }
    .nav-links a { padding: 6px 10px; font-size: 13px; }
    .hero { padding: 50px 20px 70px; }
    .container { padding: 0 16px; margin-top: -36px; }
    .card { padding: 28px 22px; border-radius: 16px; }
    .toc { padding: 22px; }
    .toc ul { grid-template-columns: 1fr; }
    h2 { font-size: 22px; margin-top: 40px; }
    .contact-card { padding: 32px 24px; }
    .trust-banner { gap: 12px; padding-bottom: 28px; margin-bottom: 32px; }
  }
  @media (max-width: 480px) {
    .nav-links a:not(.active) { display: none; }
  }