:root {
    --ink: #101820;
    --text: #344352;
    --muted: #647484;
    --navy: #10273a;
    --navy-2: #183a50;
    --teal: #0b7a75;
    --teal-dark: #075f5b;
    --teal-soft: #e7f4f2;
    --amber: #b96f16;
    --amber-soft: #fff4e4;
    --green: #27764a;
    --green-soft: #e9f6ee;
    --red: #a63d3d;
    --red-soft: #fbeaea;
    --paper: #ffffff;
    --wash: #f4f7f9;
    --line: #d6dee5;
    --soft-line: #e9eef2;
    --shadow: 0 16px 38px rgba(16, 39, 58, 0.12);
    --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.62;
    letter-spacing: 0;
}

img { max-width: 100%; }

a {
    color: var(--teal-dark);
    text-underline-offset: 4px;
}

button,
input,
select,
textarea { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(11, 122, 117, 0.3);
    outline-offset: 3px;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
    line-height: 1.14;
    letter-spacing: 0;
}

h1 { font-size: 56px; }
h2 { font-size: 38px; }
h3 { font-size: 18px; }

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    color: #fff;
    background: var(--navy);
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.brand-copy {
    min-width: 0;
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    overflow-wrap: anywhere;
    font-size: 15px;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.main-nav,
.site-footer nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.main-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:hover { color: var(--teal-dark); }

.main-nav .nav-action {
    min-height: 40px;
    border: 1px solid var(--teal);
    border-radius: 6px;
    padding: 6px 14px;
    color: #fff;
    background: var(--teal);
}

.main-nav .nav-action:hover {
    color: #fff;
    background: var(--teal-dark);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0;
    background: #fff;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--navy);
}

.button,
button.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 17px;
    color: var(--ink);
    background: #fff;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover { transform: translateY(-1px); }

.button.primary {
    color: #fff;
    background: var(--teal);
}

.button.primary:hover { background: var(--teal-dark); }

.button.secondary {
    color: var(--teal-dark);
    border-color: var(--line);
    background: #fff;
}

.button.secondary:hover { border-color: var(--teal); }

.button.light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(16, 39, 58, 0.48);
}

.button.light:hover { background: rgba(16, 39, 58, 0.75); }

.hero {
    position: relative;
    min-height: 600px;
    height: calc(100svh - 146px);
    max-height: 720px;
    display: grid;
    align-items: center;
    color: #fff;
    background-color: var(--navy);
    background-image: url("dashboard-overview.png");
    background-position: center top;
    background-size: cover;
    isolation: isolate;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: rgba(7, 23, 35, 0.82);
}

.hero-content { padding-block: 70px; }

.hero .eyebrow { color: #79d4cc; }

.hero h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: 64px;
}

.hero-lead {
    max-width: 720px;
    color: #eef5f7;
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-footnote {
    max-width: 700px;
    margin: 24px 0 0;
    color: #c7d6de;
    font-size: 14px;
}

.eyebrow,
.section-heading > p:first-child,
.legal-eyebrow {
    margin-bottom: 12px;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.trust-band {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid div {
    min-height: 118px;
    display: grid;
    align-content: center;
    gap: 5px;
    border-left: 1px solid var(--line);
    padding: 20px 24px;
}

.trust-grid div:first-child { border-left: 0; }
.trust-grid strong { color: var(--navy); }
.trust-grid span { color: var(--muted); font-size: 14px; }

.section { padding: 86px 0; }
.section.muted { background: var(--wash); }

.section-heading { max-width: 510px; }
.section-heading.wide { max-width: 780px; margin-bottom: 36px; }
.section-heading h2 { margin-bottom: 18px; }
.section-heading p { color: var(--text); }
.section-heading > p:last-child { margin-bottom: 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.feature-grid article {
    min-height: 220px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 28px;
    background: #fff;
}

.feature-grid article > span,
.control-grid article > span {
    display: inline-flex;
    margin-bottom: 34px;
    color: var(--amber);
    font-size: 12px;
    font-weight: 800;
}

.feature-grid p,
.control-grid p,
.permission-grid p,
.security-points p,
.responsibility-list p { color: var(--text); }

.workflow-band { background: var(--navy); color: #fff; }

.workflow-layout,
.onboarding-layout,
.revoke-layout,
.responsibility-layout,
.incident-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: 76px;
}

.workflow-band .section-heading p { color: #c4d2db; }
.workflow-band .section-heading > p:first-child { color: #79d4cc; }
.text-link { font-weight: 800; }
.workflow-band .text-link { color: #fff; }

.workflow-steps,
.onboarding-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.workflow-steps li,
.onboarding-steps li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px 0;
}

.workflow-steps li:first-child,
.onboarding-steps li:first-child { border-top: 0; padding-top: 0; }

.workflow-steps li > span,
.onboarding-steps li > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
}

.workflow-steps strong { font-size: 18px; }
.workflow-steps p { margin: 5px 0 0; color: #c4d2db; }

.role-table {
    border: 1px solid var(--line);
    overflow: hidden;
    background: #fff;
}

.role-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
    border-top: 1px solid var(--soft-line);
}

.role-row:first-child { border-top: 0; }
.role-row span { border-left: 1px solid var(--soft-line); padding: 17px 18px; }
.role-row span:first-child { border-left: 0; font-weight: 800; }
.role-head { color: #fff; background: var(--navy); }
.role-head span { border-color: rgba(255, 255, 255, 0.18); }
.table-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.product-preview { background: var(--wash); }

.preview-layout {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    align-items: center;
    gap: 56px;
}

.preview-frame {
    border: 1px solid var(--line);
    padding: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.preview-frame img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.price-card {
    min-height: 340px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 28px;
    background: #fff;
}

.price-card.emphasized { border-top: 5px solid var(--teal); padding-top: 24px; }
.plan-label { margin-bottom: 12px; color: var(--teal-dark); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.price-card h3 { margin-bottom: 4px; color: var(--navy); font-size: 30px; }
.price-term { display: block; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.price-card ul { margin: 0; padding-left: 20px; }
.price-card li { margin: 8px 0; color: var(--text); }
.pricing-action { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.pricing-action span { color: var(--muted); }

.security-band { color: #fff; background: var(--navy-2); }
.security-summary { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 54px; align-items: start; }
.security-summary .section-heading > p:first-child { color: #79d4cc; }
.security-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.security-points div { border-top: 3px solid var(--amber); padding-top: 17px; }
.security-points p { margin-bottom: 0; color: #cfdae1; }
.security-summary > .button { grid-column: 2; justify-self: start; }

.company-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: start; }
.company-logo { width: 76px; height: 76px; margin-bottom: 24px; border-radius: 12px; }
.company-details { margin: 0; }
.company-details div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); padding: 15px 0; }
.company-details dt { color: var(--muted); font-size: 14px; }
.company-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 800; }

.cta-band { padding: 58px 0; border-block: 1px solid var(--line); background: var(--amber-soft); }
.cta-layout { display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.cta-layout > div { max-width: 760px; }
.cta-layout h2 { margin-bottom: 14px; font-size: 32px; }
.cta-layout p:last-child { margin-bottom: 0; color: var(--text); }
.cta-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.legal-disclaimer { padding-block: 52px; }
.legal-disclaimer .shell { max-width: 920px; }
.legal-disclaimer h2 { font-size: 24px; }
.legal-disclaimer p { color: var(--muted); font-size: 14px; }

.site-footer { padding: 42px 0 24px; color: #dce6eb; background: #0b1d2b; }
.footer-grid,
.footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-grid div { display: grid; gap: 4px; }
.footer-grid span,
.footer-bottom { color: #9fb0bc; font-size: 13px; }
.site-footer a { color: #dce6eb; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 18px; }

.page-hero {
    padding: 76px 0 66px;
    border-bottom: 1px solid var(--line);
    background: var(--wash);
}

.page-hero-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 72px; align-items: start; }
.page-hero h1 { max-width: 760px; margin-bottom: 18px; font-size: 52px; }
.page-hero p { max-width: 760px; color: var(--text); font-size: 18px; }
.page-fact { border-left: 5px solid var(--teal); padding: 20px 0 20px 24px; }
.page-fact strong { font-size: 18px; }
.page-fact ul { padding-left: 20px; }
.page-fact p { margin-bottom: 0; font-size: 14px; }

.onboarding-steps li { border-color: var(--line); }
.onboarding-steps li > span { border-color: var(--teal); color: var(--teal-dark); }
.onboarding-steps p { margin-bottom: 0; color: var(--text); }

.permission-grid,
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.permission-grid article,
.control-grid article { min-height: 190px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px; background: #fff; }
.revoke-copy p { color: var(--text); }

.security-hero { color: #fff; background: var(--navy); }
.security-hero .eyebrow { color: #79d4cc; }
.security-hero p { color: #d7e2e8; }
.security-hero .page-fact { border-color: var(--amber); }
.control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.control-grid article { min-height: 250px; }
.responsibility-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.responsibility-list div { border-top: 3px solid var(--teal); padding-top: 16px; }
.incident-contact { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px 20px; align-items: start; }
.incident-contact span { color: var(--muted); }
.incident-contact .button { grid-column: 2; justify-self: start; margin-top: 10px; }

.legal-hero { padding: 68px 0 48px; border-bottom: 1px solid var(--line); background: var(--wash); }
.legal-hero h1 { margin-bottom: 18px; font-size: 48px; }
.legal-summary { max-width: 840px; color: var(--text); font-size: 18px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 54px; padding-bottom: 86px; }
.legal-nav { position: sticky; top: 104px; align-self: start; border-left: 4px solid var(--teal); padding-left: 18px; }
.legal-nav strong { display: block; margin-bottom: 10px; }
.legal-nav a { display: block; padding: 5px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.legal-nav a:hover { color: var(--teal-dark); }
.legal-article { max-width: 840px; }
.legal-notice { margin-bottom: 30px; border-left: 4px solid var(--teal); padding: 16px 18px; background: var(--teal-soft); }
.legal-article section { padding: 27px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.legal-article h2 { font-size: 23px; }
.legal-article p,
.legal-article li { color: var(--text); }
.legal-article dl { margin: 0; }
.legal-article dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; padding: 10px 0; }
.legal-article dt { color: var(--muted); }
.legal-article dd { margin: 0; overflow-wrap: anywhere; font-weight: 800; }

.callback-card { max-width: 820px; margin: 64px auto; border: 1px solid var(--line); border-radius: 6px; padding: 30px; background: #fff; box-shadow: var(--shadow); }
.callback-card h1 { margin-bottom: 16px; font-size: 38px; }
.callback-grid { display: grid; gap: 12px; margin-top: 24px; }
.callback-row { border: 1px solid var(--soft-line); border-radius: 6px; padding: 13px 15px; background: var(--wash); }
.callback-row span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.callback-row code { display: block; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }

.oauth-page { background: var(--wash); }
.oauth-page .site-header { background: #fff; }
.oauth-card { max-width: 760px; }
.oauth-card .hero-lead { color: var(--text); }
.oauth-form { display: grid; gap: 20px; margin-top: 28px; }
.oauth-field { display: grid; gap: 8px; }
.oauth-field label { color: var(--navy); font-size: 14px; font-weight: 800; }
.oauth-field input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; color: var(--ink); background: #fff; font: inherit; letter-spacing: 0; text-transform: uppercase; }
.oauth-field input:focus { border-color: var(--teal); outline: 3px solid rgba(11, 135, 132, 0.15); }
.oauth-field small { color: var(--muted); font-size: 13px; }
.oauth-form .button { justify-self: start; }
.oauth-summary { margin: 28px 0 0; border-top: 1px solid var(--line); }
.oauth-summary div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; border-bottom: 1px solid var(--soft-line); padding: 14px 0; }
.oauth-summary dt { color: var(--muted); }
.oauth-summary dd { margin: 0; overflow-wrap: anywhere; color: var(--navy); font-weight: 800; }
.oauth-notice,
.oauth-status { margin-top: 28px; border-left: 4px solid var(--teal); padding: 16px 18px; background: var(--teal-soft); }
.oauth-notice strong,
.oauth-status strong { color: var(--navy); }
.oauth-notice p,
.oauth-status p { margin: 6px 0 0; color: var(--text); }
.oauth-status.pending { border-left-color: #b57916; background: var(--amber-soft); }
.oauth-status.success { border-left-color: #237a55; background: #e9f5ef; }
.oauth-marketplaces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.oauth-marketplaces span { border: 1px solid var(--line); border-radius: 4px; padding: 6px 9px; color: var(--navy); background: #fff; font-size: 13px; font-weight: 800; }
.oauth-footer { margin-top: 72px; }

.demo-page { background: var(--wash); }
.demo-shell { padding-block: 34px 76px; }
.demo-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.demo-toolbar h1 { margin: 0; font-size: 34px; }
.demo-toolbar p { margin-bottom: 0; color: var(--muted); }
.demo-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.sample-label { display: inline-flex; border-radius: 999px; padding: 4px 10px; color: #7b4a0c; background: var(--amber-soft); font-size: 12px; font-weight: 800; }
.toolbar-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.toolbar-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.toolbar-controls select { min-width: 155px; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 34px 8px 11px; color: var(--ink); background: #fff; }
.demo-workspace { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 650px; border: 1px solid var(--line); background: #fff; box-shadow: 0 12px 30px rgba(16, 39, 58, 0.08); }
.demo-tabs { border-right: 1px solid var(--line); padding: 16px 10px; background: #f8fafb; }
.demo-tabs button { width: 100%; min-height: 44px; display: block; border: 0; border-radius: 5px; padding: 10px 12px; color: var(--text); background: transparent; font-weight: 700; text-align: left; cursor: pointer; }
.demo-tabs button[aria-selected="true"] { color: #fff; background: var(--navy); }
.demo-main { min-width: 0; padding: 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric-grid article { min-height: 132px; border: 1px solid var(--line); border-radius: 6px; padding: 18px; background: #fff; }
.metric-grid span,
.metric-grid small { display: block; color: var(--muted); font-size: 12px; }
.metric-grid strong { display: block; margin: 6px 0; color: var(--navy); font-size: 30px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); gap: 20px; }
.data-section,
.attention-list { min-width: 0; border-top: 3px solid var(--teal); padding-top: 16px; }
.section-bar { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-bar h2 { margin-bottom: 0; font-size: 21px; }
.section-bar > span { color: var(--muted); font-size: 12px; }
.section-bar .eyebrow { margin-bottom: 4px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th,
td { border-bottom: 1px solid var(--soft-line); padding: 13px 14px; color: var(--text); font-size: 13px; text-align: left; }
th { color: var(--navy); background: #f4f7f9; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 800; }
.status.good { color: var(--green); background: var(--green-soft); }
.status.warn { color: #86520f; background: var(--amber-soft); }
.status.bad { color: var(--red); background: var(--red-soft); }
.attention-list ul { margin: 0; padding: 0; list-style: none; }
.attention-list li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--line); padding: 16px 0; }
.attention-list li:first-child { border-top: 0; }
.attention-list small { display: block; margin-top: 4px; color: var(--muted); }
.severity { align-self: start; border-radius: 4px; padding: 3px 7px; font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; }
.severity.high { color: var(--red); background: var(--red-soft); }
.severity.medium { color: #86520f; background: var(--amber-soft); }
.severity.low { color: var(--green); background: var(--green-soft); }
.demo-note { display: grid; grid-template-columns: 0.8fr 1.2fr auto; align-items: center; gap: 38px; margin-top: 24px; border-top: 1px solid var(--line); padding: 32px 0 0; }
.demo-note h2 { margin-bottom: 0; font-size: 27px; }
.demo-note > p { margin-bottom: 0; color: var(--text); }

@media (max-width: 1040px) {
    h1 { font-size: 48px; }
    h2 { font-size: 34px; }
    .hero h1 { font-size: 54px; }
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-grid div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
    .trust-grid div:nth-child(4) { border-top: 1px solid var(--line); }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .security-points { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    :root { --shell: min(100% - 32px, 1180px); }
    h1 { font-size: 42px; }
    h2 { font-size: 31px; }
    .header-inner { min-height: 70px; flex-wrap: wrap; padding-block: 12px; }
    .nav-toggle { display: flex; }
    .main-nav { width: 100%; display: none; align-items: stretch; gap: 4px; border-top: 1px solid var(--line); padding: 10px 0 4px; }
    .main-nav[data-open] { display: grid; }
    .main-nav a { padding-inline: 8px; }
    .main-nav .nav-action { justify-content: center; }
    .hero { min-height: 570px; height: auto; max-height: none; }
    .hero h1 { font-size: 46px; }
    .section { padding: 68px 0; }
    .workflow-layout,
    .onboarding-layout,
    .revoke-layout,
    .responsibility-layout,
    .incident-layout,
    .preview-layout,
    .security-summary,
    .company-layout,
    .page-hero-layout,
    .legal-layout { grid-template-columns: 1fr; gap: 38px; }
    .security-summary > .button { grid-column: 1; }
    .role-row { grid-template-columns: 1fr; }
    .role-row span { border-left: 0; border-top: 1px solid var(--soft-line); }
    .role-row span:first-child { border-top: 0; }
    .pricing-grid,
    .control-grid { grid-template-columns: 1fr; }
    .price-card { min-height: 0; }
    .page-hero h1 { font-size: 42px; }
    .legal-nav { position: static; }
    .demo-toolbar { align-items: flex-start; flex-direction: column; }
    .demo-workspace { grid-template-columns: 1fr; }
    .demo-tabs { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
    .demo-tabs button { width: auto; flex: 0 0 auto; }
    .demo-note { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 620px) {
    :root { --shell: min(100% - 24px, 1180px); }
    body { font-size: 15px; }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    .brand-copy strong { font-size: 13px; }
    .brand-copy small { display: none; }
    .hero { min-height: 560px; background-position: 35% top; }
    .hero h1 { font-size: 40px; }
    .hero-lead { font-size: 18px; }
    .hero-actions .button { width: 100%; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-grid div { min-height: 96px; border-left: 0; border-top: 1px solid var(--line); padding-inline: 4px; }
    .trust-grid div:first-child { border-top: 0; }
    .feature-grid,
    .permission-grid,
    .responsibility-list { grid-template-columns: 1fr; }
    .feature-grid article { min-height: 0; }
    .pricing-action,
    .cta-layout,
    .footer-grid,
    .footer-bottom { align-items: stretch; flex-direction: column; }
    .pricing-action .button,
    .cta-layout .button { width: 100%; }
    .cta-actions { width: 100%; }
    .company-details div,
    .legal-article dl div { grid-template-columns: 1fr; gap: 4px; }
    .page-hero { padding: 54px 0 46px; }
    .page-hero h1,
    .legal-hero h1 { font-size: 36px; }
    .legal-summary,
    .page-hero p { font-size: 16px; }
    .toolbar-controls { width: 100%; display: grid; }
    .toolbar-controls label,
    .toolbar-controls select,
    .toolbar-controls .button { width: 100%; }
    .demo-main { padding: 16px; }
    .metric-grid { grid-template-columns: 1fr; }
    .metric-grid article { min-height: 110px; }
    .demo-toolbar h1 { font-size: 29px; }
    .incident-contact { grid-template-columns: 1fr; gap: 5px; }
    .incident-contact .button { grid-column: 1; }
    .oauth-card { margin: 28px auto; padding: 22px 18px; }
    .oauth-card h1 { font-size: 30px; }
    .oauth-summary div { grid-template-columns: 1fr; gap: 4px; }
    .oauth-form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
