:root {
  color-scheme: light;
  --bg: #f8f9fc;
  --surface: #fff;
  --surface-secondary: #f0f3f9;
  --text: #17243b;
  --muted: #59667a;
  --border: #e6e6e6;
  --link: #464feb;
  --action: #3942cf;
  --on-action: #fff;
  --focus: #464feb;
  --success: #22774e;
  --shadow: 0 18px 50px rgba(24, 39, 70, .06);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a101c;
  --surface: #121c2b;
  --surface-secondary: #192537;
  --text: #eef2fa;
  --muted: #afbed1;
  --border: #2b384c;
  --link: #a9b0ff;
  --action: #b3b9ff;
  --on-action: #101631;
  --focus: #c1c6ff;
  --success: #78d5a5;
  --shadow: 0 18px 50px rgba(0, 0, 0, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
a { text-decoration: none; color: var(--link); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -80px; left: 20px; padding: 12px; background: var(--surface); z-index: 5; }
.skip-link:focus { top: 10px; }
.site-header, main, footer { max-width: 1280px; margin-inline: auto; padding-inline: 40px; }
.site-header { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; gap: 22px; align-items: center; color: var(--text); font-size: 14px; font-weight: 750; letter-spacing: .12em; }
.brand img { width: 148px; height: auto; max-height: 42px; object-fit: contain; }
.brand-divider { height: 26px; width: 1px; background: var(--border); }
.header-actions { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.account-controls { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; }
#accountStatus { color: var(--muted); max-width: 220px; overflow-wrap: anywhere; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 13px; color: var(--text); background: var(--surface); cursor: pointer; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: center; padding-block: 66px 72px; }
.eyebrow { margin: 0 0 20px; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
h1 { margin: 0; font-size: clamp(36px, 4vw, 54px); line-height: 1.12; font-weight: 720; letter-spacing: -.045em; }
h1 span { color: var(--muted); }
.intro { font-size: 17px; max-width: 570px; color: var(--muted); margin: 26px 0 30px; }
.primary-action { display: inline-flex; align-items: center; gap: 12px; padding: 15px 23px; border-radius: 9px; background: var(--action); color: var(--on-action); font-size: 16px; font-weight: 650; box-shadow: var(--shadow); }
.primary-action:hover { filter: brightness(1.08); }
.primary-action > span { margin-left: 18px; font-size: 23px; line-height: 1; }
.action-note { margin-top: 14px; font-size: 12px; color: var(--muted); }
.demo-preview { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.preview-heading { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .08em; }
.preview-heading > :last-child { margin-left: auto; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.demo-preview h2 { margin: 25px 0; font-size: 28px; line-height: 1.25; letter-spacing: -.03em; }
.preview-flow { display: grid; gap: 23px; }
.preview-flow > div { display: flex; align-items: flex-start; gap: 16px; }
.step-number { color: var(--muted); font-size: 12px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.preview-flow h3 { margin: 0; font-size: 14px; font-weight: 650; }
.preview-flow p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.demo-disclaimer { margin: 25px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.overview { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 42px; padding-block: 32px; border-block: 1px solid var(--border); }
.overview h2, .overview h3 { margin: 0 0 7px; font-size: 16px; font-weight: 650; }
.overview p { margin: 0; color: var(--muted); font-size: 13px; }
.resources { padding-block: 65px 40px; }
.resource-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 30px; }
.resource-heading .eyebrow { margin-bottom: 10px; }
.resource-heading h2 { margin: 0; font-size: 32px; letter-spacing: -.035em; line-height: 1.25; }
.resource-heading p:not(.eyebrow) { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.search-control { width: 320px; flex-shrink: 0; }
.search-control label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.search-control input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 13px; }
input::placeholder { color: var(--muted); opacity: 1; }
.search-status { font-size: 13px; color: var(--muted); }
.search-status:empty { display: none; }
.resource-group { margin-block: 34px 44px; }
.group-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.group-heading h3 { margin: 0; font-size: 17px; font-weight: 650; }
.group-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resource-card { display: block; padding: 20px; background: var(--surface); border-radius: 9px; transition: background .15s ease; }
.resource-card:hover { background: var(--surface-secondary); }
.resource-card h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 7px; font-size: 14px; font-weight: 650; color: var(--link); }
.resource-card h4 span { font-size: 17px; }
.resource-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.empty-state { padding: 32px; text-align: center; color: var(--muted); background: var(--surface); border-radius: 9px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding-block: 25px 35px; color: var(--muted); font-size: 11px; }
.footer-separator { margin-inline: 10px; }
@media (max-width: 1000px) {
  .hero { gap: 32px; padding-block: 40px 50px; }
  .demo-preview { padding: 24px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview { gap: 24px; }
}
@media (max-width: 720px) {
  .site-header, main, footer { padding-inline: 22px; }
  .site-header { min-height: 85px; gap: 12px; }
  .site-header { flex-wrap: wrap; padding-block: 18px; }
  .header-actions { flex-wrap: wrap; gap: 14px; }
  .account-controls { align-items: flex-start; }
  .brand { gap: 12px; font-size: 11px; }
  .brand img { width: 106px; }
  .header-actions > a { display: none; }
  .header-actions button { font-size: 12px; padding: 8px; }
  .hero { grid-template-columns: 1fr; }
  .overview { grid-template-columns: 1fr; gap: 22px; }
  .resource-heading { display: block; }
  .search-control { width: 100%; margin-top: 24px; }
  .resources { padding-top: 40px; }
  .resource-grid { grid-template-columns: 1fr; }
  .group-heading { display: block; }
  .group-heading p { margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .resource-card { transition: none; }
}
