:root {
  --ink: #08111f;
  --ink-soft: #111d2e;
  --navy: #071a3d;
  --blue: #245dff;
  --blue-bright: #3d74ff;
  --cyan: #75a6ff;
  --mist: #eef3fb;
  --line: #d8e0ec;
  --muted: #627086;
  --white: #ffffff;
  --success: #157a5b;
  --danger: #b52a3b;
  --shadow: 0 22px 60px rgba(6, 18, 42, .12);
  --radius: 18px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f8faff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.area-workspace { background: #f2f5fa; }
body.area-auth { background: radial-gradient(circle at 70% 20%, rgba(43, 102, 255, .2), transparent 32%), #06101f; min-height: 100vh; }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.04; letter-spacing: -.035em; }
h1 { font-size: clamp(2.85rem, 6vw, 5.65rem); }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; padding: 0 20px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid rgba(61, 116, 255, .35); outline-offset: 2px; }
.button-primary { color: #fff; background: linear-gradient(135deg, #153dba, var(--blue)); box-shadow: 0 12px 30px rgba(36, 93, 255, .28); }
.button-primary:hover { box-shadow: 0 16px 36px rgba(36, 93, 255, .36); }
.button-secondary { color: var(--ink); border-color: #b8c4d5; background: rgba(255, 255, 255, .76); }
.button-light { color: var(--navy); background: #fff; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(135, 153, 180, .23); background: rgba(248, 250, 255, .89); backdrop-filter: blur(18px); }
.nav-shell { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; width: 224px; height: 59px; align-items: center; overflow: hidden; }
.brand img { width: 100%; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a { color: #38475c; font-size: .92rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { color: var(--blue); }
.site-header .nav-login { border: 1px solid #c7d1df; border-radius: 9px; padding: 9px 14px; background: #fff; }
.nav-toggle, .menu-toggle { display: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; color: var(--ink); background: #fff; font-weight: 750; }

.hero { display: grid; min-height: 690px; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(30px, 6vw, 88px); padding-block: 76px 84px; }
.hero-copy h1 { max-width: 760px; margin-bottom: 24px; }
.hero-lede { max-width: 680px; margin: 0 0 34px; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px 24px; margin-top: 36px; color: #536177; font-size: .82rem; font-weight: 750; }
.trust-row span::before { display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--blue); content: ""; vertical-align: middle; }
.hero-visual { position: relative; min-height: 490px; border: 1px solid rgba(135, 154, 187, .28); border-radius: 34px; overflow: hidden; background: radial-gradient(circle at 30% 25%, rgba(53, 108, 255, .34), transparent 34%), linear-gradient(145deg, #08162c 10%, #0b234d 72%, #0c1730); box-shadow: 0 34px 80px rgba(5, 17, 43, .24); }
.hero-visual::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; content: ""; mask-image: linear-gradient(to bottom, #000, transparent 88%); }
.orbit { position: absolute; border: 1px solid rgba(115, 159, 255, .24); border-radius: 50%; }
.orbit-one { width: 360px; height: 360px; top: 40px; left: 70px; }
.orbit-two { width: 480px; height: 480px; top: -20px; left: 10px; }
.signal-card { position: absolute; z-index: 2; border: 1px solid rgba(163, 192, 255, .22); border-radius: 15px; color: #fff; background: rgba(6, 19, 43, .78); box-shadow: 0 22px 50px rgba(0,0,0,.22); backdrop-filter: blur(14px); }
.signal-primary { width: min(370px, calc(100% - 60px)); left: 42px; top: 150px; padding: 27px; }
.signal-label, .signal-small span { display: block; margin-bottom: 9px; color: #96b7ff; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.signal-primary strong { display: block; font-size: 1.32rem; line-height: 1.4; }
.signal-progress { height: 7px; margin-top: 24px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.11); }
.signal-progress i { display: block; width: 78%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2d66ff, #86afff); }
.signal-small { width: 168px; padding: 17px 19px; }
.signal-small strong { font-size: .98rem; }
.signal-a { top: 65px; right: 28px; }
.signal-b { right: 42px; bottom: 48px; }
.signal-c { left: 35px; bottom: 44px; }

.proof-band { border-block: 1px solid #d6dfeb; background: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid div { display: grid; min-height: 120px; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 24px 30px; border-right: 1px solid #e2e8f1; }
.proof-grid div:last-child { border-right: 0; }
.proof-grid strong { color: var(--blue); font-size: .82rem; letter-spacing: .1em; }
.proof-grid span { color: #344258; font-size: .9rem; font-weight: 750; }
.section { padding-block: 112px; }
.section-heading { max-width: 760px; margin-bottom: 50px; }
.section-heading p:last-child { max-width: 680px; font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 270px; border: 1px solid #dce3ed; border-radius: var(--radius); padding: 28px; background: #fff; box-shadow: 0 14px 36px rgba(14, 30, 56, .055); }
.feature-card h3 { margin-top: 44px; }
.feature-card p { margin-bottom: 0; }
.feature-number { position: absolute; top: 24px; right: 24px; color: #9aabc1; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.section-dark { color: #fff; background: #071326; }
.section-dark h2 { max-width: 570px; }
.section-dark p { max-width: 580px; color: #aab9cc; font-size: 1.08rem; }
.section-dark .eyebrow { color: #7ea6ff; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.text-link { display: inline-block; margin-top: 18px; color: #fff; font-weight: 750; text-decoration: none; }
.text-link span { color: #77a0ff; }
.license-stack { display: grid; gap: 12px; }
.license-stack article { border: 1px solid rgba(147, 173, 219, .2); border-radius: 14px; padding: 22px 24px; background: rgba(255,255,255,.04); }
.license-stack span, .license-stack small { display: block; }
.license-stack span { color: #7fa7ff; font-size: .71rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.license-stack strong { display: block; margin: 5px 0; font-size: 1.08rem; }
.license-stack small { color: #9facbd; }
.cta-panel { display: flex; min-height: 270px; align-items: center; justify-content: space-between; gap: 40px; border-radius: 28px; padding: clamp(36px, 7vw, 74px); color: #fff; background: radial-gradient(circle at 80% 10%, rgba(120, 165, 255, .7), transparent 25%), linear-gradient(135deg, #0e328f, #285fff); box-shadow: var(--shadow); }
.cta-panel h2 { max-width: 740px; margin-bottom: 0; }
.cta-panel .eyebrow { color: #c7d8ff; }
.site-footer { padding: 70px 0 26px; color: #fff; background: #050c17; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 70px; }
.footer-grid img { width: 240px; }
.footer-grid p { max-width: 360px; color: #8d9bb0; }
.footer-grid div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid strong { margin-bottom: 8px; color: #8ea2c0; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid a { color: #d7dfeb; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 60px; border-top: 1px solid #17243a; padding-top: 24px; color: #6f7e94; font-size: .78rem; }

.simple-page { min-height: 620px; padding-block: 110px; }
.simple-page > h1, .simple-page > .page-lede { max-width: 850px; }
.page-lede { margin-bottom: 54px; font-size: 1.2rem; }
.compact-grid { grid-template-columns: repeat(2, 1fr); }
.compact-grid .feature-card { min-height: 220px; }
.compact-grid .feature-card h3 { margin-top: 0; }
.form-page { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 110px); }
.check-list { padding: 0; list-style: none; }
.check-list li { margin: 12px 0; color: #344258; }
.check-list li::before { margin-right: 10px; color: var(--blue); content: "✓"; font-weight: 900; }
.form-card, .auth-panel { border: 1px solid #d9e1ec; border-radius: 20px; padding: clamp(26px, 5vw, 46px); background: #fff; box-shadow: var(--shadow); }
form { display: grid; gap: 17px; }
label { display: grid; gap: 7px; color: #36455a; font-size: .84rem; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid #cbd5e3; border-radius: 9px; padding: 12px 13px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 93, 255, .1); outline: 0; }
textarea { resize: vertical; }
.form-row, .grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.grid-form .button { align-self: end; }
.full-field { grid-column: 1 / -1; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; }
.notice { border-radius: 9px; padding: 13px 15px; font-size: .88rem; font-weight: 700; }
.notice.success { border: 1px solid #9fd8c6; color: #116247; background: #eaf8f3; }
.notice.error { border: 1px solid #efb6bd; color: #932032; background: #fff0f2; }
.legal-page h2 { margin-top: 44px; font-size: 1.5rem; }
.legal-page p { max-width: 850px; }

.auth-page { display: grid; min-height: 100vh; place-items: center; padding: 36px 20px; }
.auth-panel { width: min(480px, 100%); }
.auth-logo { display: block; width: 270px; margin: -18px auto 12px; }
.auth-panel h1 { font-size: 2.3rem; }
.auth-panel form { margin-top: 25px; }
.auth-panel .button { width: 100%; }
.form-note { margin: 22px 0 0; font-size: .78rem; text-align: center; }
.setup-panel { width: min(560px, 100%); }

.workspace-shell { display: grid; min-height: 100vh; grid-template-columns: 268px minmax(0, 1fr); }
.workspace-sidebar { position: sticky; z-index: 40; top: 0; display: flex; height: 100vh; flex-direction: column; border-right: 1px solid #162843; padding: 18px 16px; color: #dce6f7; background: #071426; }
.workspace-brand { display: flex; height: 78px; align-items: center; margin-bottom: 14px; padding: 0 8px; overflow: hidden; border: 1px solid #d8e0ec; border-radius: 12px; background: #f7f9fc; }
.workspace-brand img { width: 218px; }
.workspace-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.workspace-sidebar nav span { margin: 22px 12px 7px; color: #5f7799; font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.workspace-sidebar nav a { border-radius: 9px; padding: 10px 12px; color: #aebed3; font-size: .89rem; font-weight: 700; text-decoration: none; }
.workspace-sidebar nav a:hover, .workspace-sidebar nav a.active { color: #fff; background: linear-gradient(90deg, rgba(43, 96, 255, .28), rgba(43, 96, 255, .08)); }
.workspace-sidebar nav a.active { box-shadow: inset 3px 0 var(--blue-bright); }
.sidebar-user { margin-top: auto; border-top: 1px solid #192a44; padding: 20px 10px 4px; }
.sidebar-user span, .sidebar-user small { display: block; }
.sidebar-user span { color: #fff; font-weight: 750; }
.sidebar-user small { color: #7990ae; text-transform: capitalize; }
.sidebar-user form { margin-top: 12px; }
.sidebar-user button { border: 0; padding: 0; color: #8ca4c3; background: none; cursor: pointer; }
.workspace-main { min-width: 0; }
.workspace-topbar { display: flex; height: 68px; align-items: center; justify-content: space-between; border-bottom: 1px solid #dce3ed; padding: 0 30px; color: #526177; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); }
.workspace-topbar span { color: var(--ink); font-weight: 800; }
.workspace-topbar a { font-size: .83rem; font-weight: 750; text-decoration: none; }
.workspace-content { width: min(1400px, calc(100% - 56px)); margin-inline: auto; padding-block: 42px 70px; }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; margin-bottom: 30px; }
.workspace-heading h1 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3.3rem); }
.workspace-heading p:not(.eyebrow) { margin: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 24px; }
.metric-grid article { min-height: 132px; border: 1px solid #dbe3ed; border-radius: 14px; padding: 22px; background: #fff; }
.metric-grid span { display: block; color: #69778a; font-size: .78rem; font-weight: 750; text-transform: uppercase; }
.metric-grid strong { display: block; margin-top: 15px; color: #0d2345; font-size: 2.1rem; }
.metric-grid .small-metric { font-size: 1.2rem; text-transform: capitalize; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; }
.dashboard-grid.two-one { grid-template-columns: 1.7fr .8fr; }
.panel { margin-bottom: 20px; border: 1px solid #dbe3ed; border-radius: 15px; padding: 24px; background: #fff; box-shadow: 0 8px 28px rgba(15, 32, 60, .035); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.015em; }
.panel-heading a, .panel-heading span { color: #6b788b; font-size: .78rem; font-weight: 700; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel > .panel-heading { padding: 23px 24px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { padding: 14px 16px; border-bottom: 1px solid #e4e9f0; text-align: left; vertical-align: middle; }
th { color: #778499; background: #f8fafd; font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }
td { color: #344257; }
td strong, td small { display: block; }
td strong { color: #132238; }
td small { margin-top: 2px; color: #7d8999; }
td code { color: #2854b8; font-size: .76rem; }
.empty-state { padding: 42px; color: #8995a5; text-align: center; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; color: #536178; background: #edf1f6; font-size: .67rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status-pill.active, .status-pill.published { color: #116248; background: #e5f7ef; }
.status-pill.private, .status-pill.draft { color: #244f9e; background: #e9f0ff; }
.status-pill.suspended, .status-pill.revoked, .status-pill.withdrawn { color: #9e2839; background: #feecef; }
.status-pill.new, .status-pill.beta { color: #6e4b00; background: #fff4d9; }
.boundary-list { margin: 0; padding: 0; list-style: none; }
.boundary-list li { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e7ebf1; padding: 12px 0; color: #667487; }
.boundary-list li:last-child { border-bottom: 0; }
.boundary-list strong { color: #1d2c42; }
.stack-form { display: grid; }
.form-panel { margin-top: 20px; }
.workspace-notice { margin-bottom: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s both; }
  .feature-card:nth-child(2) { animation-delay: .08s; }
  .feature-card:nth-child(3) { animation-delay: .16s; }
  .feature-card:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 1050px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .hero-visual { width: min(660px, 100%); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid div:nth-child(2) { border-right: 0; }
  .proof-grid div:nth-child(-n+2) { border-bottom: 1px solid #e2e8f1; }
  .split-section { gap: 44px; }
  .workspace-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .dashboard-grid, .dashboard-grid.two-one { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root { --shell: min(100% - 28px, 1180px); }
  h1 { font-size: clamp(2.4rem, 13vw, 4rem); }
  .site-header { position: relative; }
  .nav-shell { min-height: 70px; }
  .brand { width: 185px; height: 50px; }
  .nav-toggle, .menu-toggle { display: inline-flex; }
  .site-header nav { position: absolute; top: 70px; right: 14px; left: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid #d7dfeb; border-radius: 14px; padding: 10px; background: #fff; box-shadow: var(--shadow); }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 11px 12px; }
  .hero { gap: 34px; padding-block: 58px 70px; }
  .hero-visual { min-height: 430px; }
  .signal-primary { left: 22px; width: calc(100% - 44px); }
  .signal-small { width: 145px; }
  .signal-a { right: 18px; top: 48px; }
  .signal-b { right: 20px; bottom: 28px; }
  .signal-c { left: 20px; bottom: 28px; }
  .section { padding-block: 78px; }
  .split-section, .form-page { grid-template-columns: 1fr; }
  .feature-grid, .compact-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 210px; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .simple-page { padding-block: 72px; }
  .workspace-shell { display: block; }
  .workspace-sidebar { position: fixed; left: -280px; width: 260px; transition: left .2s ease; }
  .workspace-sidebar.open { left: 0; box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  .workspace-content { width: min(100% - 28px, 1400px); padding-block: 28px 56px; }
  .workspace-topbar { height: 60px; padding: 0 14px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .grid-form, .form-row { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
}

@media (max-width: 500px) {
  .hero-actions .button { width: 100%; }
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 390px; }
  .signal-primary { top: 130px; padding: 22px; }
  .signal-small { width: 130px; padding: 13px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid div { min-height: 88px; border-right: 0; border-bottom: 1px solid #e2e8f1; }
  .proof-grid div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .metric-grid { grid-template-columns: 1fr; }
  .workspace-heading { flex-direction: column; }
  .panel { padding: 18px; }
  th, td { padding: 12px; }
}
