:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: #151922;
  --panel-2: #111728;
  --field: #111827;
  --field-border: #263349;
  --line: #262b38;
  --soft-line: #1e2738;
  --text: #f2f5fa;
  --muted: #9aa8bd;
  --dim: #53627a;
  --table-text: #dce4ef;
  --nav-text: #b9d4f5;
  --nav-active-bg: #17233a;
  --notice-bg: #111c2d;
  --secondary-bg: #192133;
  --secondary-text: #c2ccda;
  --shadow: rgba(0, 0, 0, .32);
  --blue: #4599ff;
  --green: #24c765;
  --red: #ef3838;
  --amber: #e29d17;
  --violet: #8d4cff;
}

body[data-theme="corporate"] {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --field: #f9fafc;
  --field-border: #d7deea;
  --line: #e6ebf2;
  --soft-line: #edf1f7;
  --text: #172033;
  --muted: #607089;
  --dim: #8490a3;
  --table-text: #263247;
  --nav-text: #33445c;
  --nav-active-bg: #eef4ff;
  --notice-bg: #f2f7ff;
  --secondary-bg: #f3f5f9;
  --secondary-text: #2f3c51;
  --shadow: rgba(31, 45, 61, .09);
  --blue: #0065ff;
  --green: #4f6bff;
  --red: #e2445c;
  --amber: #fdab3d;
  --violet: #784bd1;
}

body[data-theme="neon"] {
  --bg: #050711;
  --panel: #0b1020;
  --panel-2: #070a15;
  --field: #0d1430;
  --field-border: #1d8cff;
  --line: rgba(0, 225, 255, .25);
  --soft-line: rgba(161, 92, 255, .22);
  --text: #f4fbff;
  --muted: #9fb7d7;
  --dim: #6c7f9c;
  --table-text: #e7f6ff;
  --nav-text: #bad9ff;
  --nav-active-bg: rgba(0, 225, 255, .12);
  --notice-bg: rgba(0, 225, 255, .08);
  --secondary-bg: #101a38;
  --secondary-text: #d7ecff;
  --shadow: rgba(0, 225, 255, .16);
  --blue: #00e1ff;
  --green: #53f6b7;
  --red: #ff4f8b;
  --amber: #ffe66d;
  --violet: #a15cff;
}

body[data-theme="terminal"] {
  --bg: #020703;
  --panel: #061109;
  --panel-2: #020b05;
  --field: #020f06;
  --field-border: #1d8d48;
  --line: #123e24;
  --soft-line: #0d2c18;
  --text: #d6ffe2;
  --muted: #82d69d;
  --dim: #4a875d;
  --table-text: #c8ffd5;
  --nav-text: #9df7b5;
  --nav-active-bg: #0b2412;
  --notice-bg: #07190c;
  --secondary-bg: #092011;
  --secondary-text: #bbf8ca;
  --shadow: rgba(46, 255, 119, .12);
  --blue: #3cff7d;
  --green: #3cff7d;
  --red: #ff5f6d;
  --amber: #d8ff6a;
  --violet: #5fffb9;
}

body[data-theme="aurora"] {
  --bg: #09101f;
  --panel: rgba(255, 255, 255, .13);
  --panel-2: rgba(255, 255, 255, .1);
  --field: rgba(255, 255, 255, .16);
  --field-border: rgba(255, 255, 255, .32);
  --line: rgba(255, 255, 255, .22);
  --soft-line: rgba(255, 255, 255, .16);
  --text: #fbfdff;
  --muted: #d7e3f2;
  --dim: #a5b4ca;
  --table-text: #f5f9ff;
  --nav-text: #edf6ff;
  --nav-active-bg: rgba(255, 255, 255, .22);
  --notice-bg: rgba(255, 255, 255, .14);
  --secondary-bg: rgba(255, 255, 255, .16);
  --secondary-text: #f7fbff;
  --shadow: rgba(0, 0, 0, .32);
  --blue: #83d7ff;
  --green: #8ff0cf;
  --red: #ff8faa;
  --amber: #ffe19d;
  --violet: #d9b5ff;
}

body[data-theme="luxury"] {
  color-scheme: light;
  --bg: #f7f3eb;
  --panel: #fffcf5;
  --panel-2: #17110b;
  --field: #fff8ec;
  --field-border: #d9c39c;
  --line: #eadcc4;
  --soft-line: #2a2118;
  --text: #21170e;
  --muted: #76634d;
  --dim: #9b8669;
  --table-text: #2b2118;
  --nav-text: #eadcc4;
  --nav-active-bg: rgba(212, 175, 55, .16);
  --notice-bg: #fff4dc;
  --secondary-bg: #f2e5ce;
  --secondary-text: #2b2118;
  --shadow: rgba(70, 45, 18, .14);
  --blue: #8d6b21;
  --green: #5d6b39;
  --red: #9f3e3e;
  --amber: #d4af37;
  --violet: #7b5c8d;
}

body[data-theme="minimal"] {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --field: #fbfbfb;
  --field-border: #d9d9d9;
  --line: #e9e9e9;
  --soft-line: #efefef;
  --text: #111111;
  --muted: #616161;
  --dim: #8a8a8a;
  --table-text: #191919;
  --nav-text: #333333;
  --nav-active-bg: #111111;
  --notice-bg: #f7f7f7;
  --secondary-bg: #f5f5f5;
  --secondary-text: #111111;
  --shadow: rgba(0, 0, 0, .05);
  --blue: #111111;
  --green: #333333;
  --red: #b3261e;
  --amber: #6f5b00;
  --violet: #444444;
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #edf2f8;
  --panel: #ffffff;
  --panel-2: #f5f8fd;
  --field: #ffffff;
  --field-border: #cfd8e5;
  --line: #d7e0ec;
  --soft-line: #cbd7e6;
  --text: #182232;
  --muted: #5e6b7e;
  --dim: #758296;
  --table-text: #253245;
  --nav-text: #30445f;
  --nav-active-bg: #e3edf9;
  --notice-bg: #edf4fb;
  --secondary-bg: #eef3f8;
  --secondary-text: #24344a;
  --shadow: rgba(16, 24, 40, .08);
  --blue: #226fe8;
  --green: #12945c;
  --red: #d83434;
  --amber: #b77907;
  --violet: #7251d6;
}

body[data-theme="blackout"] {
  --bg: #020304;
  --panel: #050607;
  --panel-2: #000000;
  --field: #07080a;
  --field-border: #3c4656;
  --line: #2e3541;
  --soft-line: #222832;
  --text: #ffffff;
  --muted: #c5ceda;
  --dim: #8994a4;
  --table-text: #f0f4f8;
  --nav-text: #d7e2f1;
  --nav-active-bg: #111827;
  --notice-bg: #0c121a;
  --secondary-bg: #10151d;
  --secondary-text: #e3e9f2;
  --shadow: rgba(0, 0, 0, .5);
  --blue: #6ba3e8;
  --green: #9ca7b7;
  --red: #e06b6d;
  --amber: #d8a14b;
  --violet: #9d94d6;
}

body[data-theme="neon"] {
  background:
    linear-gradient(90deg, rgba(0, 225, 255, .05) 1px, transparent 1px),
    linear-gradient(rgba(161, 92, 255, .05) 1px, transparent 1px),
    radial-gradient(circle at 16% 12%, rgba(0, 225, 255, .2), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(161, 92, 255, .18), transparent 34%),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

body[data-theme="terminal"] {
  font-family: "Cascadia Mono", "Consolas", "Courier New", monospace;
  background:
    repeating-linear-gradient(0deg, rgba(60, 255, 125, .035), rgba(60, 255, 125, .035) 1px, transparent 1px, transparent 4px),
    var(--bg);
}

body[data-theme="aurora"] {
  background:
    radial-gradient(circle at 12% 14%, rgba(131, 215, 255, .26), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(217, 181, 255, .22), transparent 30%),
    radial-gradient(circle at 52% 92%, rgba(143, 240, 207, .18), transparent 34%),
    linear-gradient(145deg, #09101f, #11152d 45%, #06141b);
}

body[data-theme="luxury"] {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, .13), transparent 30%),
    linear-gradient(90deg, rgba(23, 17, 11, .04) 1px, transparent 1px),
    #f7f3eb;
  background-size: auto, 46px 46px, auto;
}

body[data-theme="minimal"] {
  background:
    linear-gradient(#f4f4f4 1px, transparent 1px),
    linear-gradient(90deg, #f4f4f4 1px, transparent 1px),
    #ffffff;
  background-size: 48px 48px;
}

body[data-theme="transparent"] {
  --bg: #0d1117;
  --panel: rgba(246, 248, 252, .12);
  --panel-2: rgba(246, 248, 252, .1);
  --field: rgba(246, 248, 252, .11);
  --field-border: rgba(255, 255, 255, .3);
  --line: rgba(255, 255, 255, .22);
  --soft-line: rgba(255, 255, 255, .16);
  --text: #f8fbff;
  --muted: #c9d3e1;
  --dim: #9eabbc;
  --table-text: #f1f6fb;
  --nav-text: #e2ebf7;
  --nav-active-bg: rgba(255, 255, 255, .18);
  --notice-bg: rgba(255, 255, 255, .12);
  --secondary-bg: rgba(255, 255, 255, .13);
  --secondary-text: #edf4fb;
  --shadow: rgba(0, 0, 0, .36);
  --blue: #9ec5ff;
  --green: #b6c3d1;
  --red: #f0a0a3;
  --amber: #e0c086;
  --violet: #c4b8ee;
}

body[data-theme="forest"] {
  --bg: #111318;
  --panel: rgba(255, 255, 255, .16);
  --panel-2: rgba(255, 255, 255, .12);
  --field: rgba(255, 255, 255, .14);
  --field-border: rgba(255, 255, 255, .34);
  --line: rgba(255, 255, 255, .24);
  --soft-line: rgba(255, 255, 255, .18);
  --text: #ffffff;
  --muted: #d8dee8;
  --dim: #aab3c2;
  --table-text: #f5f7fa;
  --nav-text: #f0f4fb;
  --nav-active-bg: rgba(255, 255, 255, .22);
  --notice-bg: rgba(255, 255, 255, .14);
  --secondary-bg: rgba(255, 255, 255, .17);
  --secondary-text: #f4f7fb;
  --shadow: rgba(0, 0, 0, .32);
  --blue: #80a7d8;
  --green: #7d9aaf;
  --red: #d67a7d;
  --amber: #d1a76b;
  --violet: #b2a0dc;
}

body[data-theme="graphite"] {
  --bg: #23262b;
  --panel: #2d3138;
  --panel-2: #1d2026;
  --field: #252a31;
  --field-border: #4a515d;
  --line: #434a55;
  --soft-line: #343b45;
  --text: #f2f3f5;
  --muted: #bcc3ce;
  --dim: #9aa3b0;
  --table-text: #e5e9ef;
  --nav-text: #d2dae5;
  --nav-active-bg: #384150;
  --notice-bg: #283342;
  --secondary-bg: #353b45;
  --secondary-text: #d8dee7;
  --shadow: rgba(0, 0, 0, .28);
  --blue: #88a7cc;
  --green: #97a7b5;
  --red: #d07a7d;
  --amber: #c8a26d;
  --violet: #aaa0d8;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body[data-theme="corporate"] {
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 101, 255, .08), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(120, 75, 209, .08), transparent 26%),
    var(--bg);
}

body[data-theme="transparent"] {
  background:
    linear-gradient(135deg, rgba(27, 35, 48, .88), rgba(8, 12, 18, .94)),
    #0d1117;
}

body[data-theme="forest"] {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
    linear-gradient(145deg, #161922, #0c0f15);
}

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

button {
  cursor: pointer;
}

.public-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #101a2d 0 720px, #f6f9fc 720px),
    linear-gradient(180deg, #f6f9fc 0%, #ffffff 42%, #f3f7fb 100%);
  color: #172033;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: rgba(11, 20, 39, .86);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.landing-brand,
.landing-links a,
.nav-dropdown > button {
  color: #f7fbff;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.landing-brand strong,
.landing-brand small {
  display: block;
}

.landing-brand strong {
  color: #f8fbff;
}

.landing-brand small {
  margin-top: 2px;
  color: #d3e2f6;
  font-size: 12px;
  font-weight: 750;
}

.landing-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  min-width: 0;
  overflow: visible;
}

.landing-links a,
.nav-dropdown > button,
.visitor-links a {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.landing-links a:hover,
.nav-dropdown > button:hover,
.visitor-links a:hover {
  color: #0065ff;
}

.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.nav-dropdown > button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 0;
  font-family: inherit;
}

.nav-dropdown > button::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-dropdown-menu {
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 1000;
  display: none;
  min-width: 230px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 14px;
  background: rgba(15, 23, 42, .98);
  box-shadow: 0 24px 70px rgba(2, 6, 23, .35);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: grid;
  gap: 4px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: #dbeafe;
  font-size: 13px;
}

.nav-dropdown-menu a:hover {
  background: rgba(37, 99, 235, .18);
  color: #ffffff;
}

.landing-login-btn {
  width: auto;
  min-width: 148px;
  padding-inline: 22px;
  justify-self: end;
}

.landing-main {
  width: min(1200px, calc(100vw - 36px));
  margin: 0 auto;
}

.landing-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: 76px 0 56px;
  position: relative;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 24px -32px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 20%, rgba(37, 99, 235, .24), transparent 34%),
    radial-gradient(circle at 88% 28%, rgba(56, 189, 248, .16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  pointer-events: none;
}

.landing-hero > * {
  position: relative;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: .94;
  letter-spacing: 0;
  color: #ffffff;
}

.hero-copy p,
.section-heading p,
.split-band p {
  color: #607089;
  font-size: 18px;
  line-height: 1.65;
}

.hero-copy p {
  width: fit-content;
  max-width: 640px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  color: #27405f;
  padding: 14px 16px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(96, 165, 250, .32);
  border-radius: 999px;
  background: rgba(37, 99, 235, .14);
  color: #9ed7ff;
  padding: 7px 12px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

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

.hero-actions a,
.hero-actions button,
.pricing-grid button,
.chat-input-row button {
  width: auto;
}

.hero-actions a {
  text-decoration: none;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-strip span {
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #24405f;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .08);
}

.hero-visual {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(19, 31, 57, .98), rgba(9, 17, 31, .98)),
    #09111f;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .28);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), transparent 40%);
  pointer-events: none;
}

.hero-visual > * {
  position: relative;
}

.preview-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f7fbff;
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d7deea;
}

.preview-top strong {
  margin-left: auto;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-stat,
.preview-device,
.preview-timeline {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  padding: 14px;
}

.security-pulse {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 16px;
  background: rgba(14, 165, 233, .09);
  padding: 14px;
}

.security-pulse span {
  grid-row: 1 / span 2;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #00d6a2;
  box-shadow: 0 0 0 7px rgba(0, 214, 162, .12);
}

.security-pulse strong,
.security-pulse small {
  display: block;
}

.security-pulse strong {
  color: #f7fbff;
}

.security-pulse small {
  color: #9fb1c9;
}

.preview-stat small,
.preview-device span,
.preview-timeline p {
  color: #aebdd2;
}

.preview-device strong {
  color: #f7fbff;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-proof div {
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  padding: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: #0f1d33;
  font-size: 24px;
}

.hero-proof span {
  color: #526782;
  font-size: 12px;
  font-weight: 800;
}

.preview-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  color: #f7fbff;
}

.preview-device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.preview-device strong,
.preview-device span {
  display: block;
}

.preview-timeline {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.preview-timeline span {
  width: 10px;
  min-width: 10px;
  border-radius: 999px;
  background: #0065ff;
}

.preview-timeline p {
  margin: 0;
  line-height: 1.45;
  color: #b8c7dc;
}

.landing-section {
  padding: 72px 0;
}

.compact-section {
  padding: 24px 0;
}

.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  border: 1px solid #e3ebf6;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(31, 45, 61, .06);
}

.logo-cloud span {
  border: 1px solid #dce7f6;
  border-radius: 999px;
  background: #ffffff;
  color: #4d5f78;
  padding: 10px 14px;
  font-weight: 900;
  font-size: 13px;
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 26px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  margin-inline: auto;
}

.section-heading h2,
.split-band h2 {
  margin: 12px 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

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

.feature-grid article,
.price-card,
.split-band {
  border: 1px solid #e2e8f2;
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 55px rgba(31, 45, 61, .075);
}

.defender-tabs {
  padding-top: 86px;
}

.tab-row {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dfe8f5;
  border-radius: 999px;
  background: #ffffff;
  padding: 7px;
  box-shadow: 0 16px 42px rgba(31, 45, 61, .08);
}

.tab-row a {
  border-radius: 999px;
  color: #33445c;
  text-decoration: none;
  font-weight: 900;
  padding: 10px 14px;
}

.tab-row a:first-child {
  background: #0f62fe;
  color: #ffffff;
}

.defender-card-grid,
.process-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.defender-card-grid article,
.process-grid article,
.faq-grid article {
  border: 1px solid #e2e8f2;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(31, 45, 61, .075);
  padding: 24px;
}

.defender-card-grid article {
  min-height: 320px;
}

.card-icon,
.process-grid article span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #edf5ff;
  color: #0f62fe;
  font-weight: 950;
}

.defender-card-grid h3,
.process-grid h3,
.faq-grid h3 {
  margin: 18px 0 10px;
  color: #111827;
  font-size: 22px;
}

.defender-card-grid p,
.process-grid p,
.faq-grid p {
  color: #607089;
  line-height: 1.62;
}

.defender-card-grid ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.defender-card-grid li {
  color: #33445c;
  font-weight: 850;
}

.defender-card-grid li::before {
  content: "✓";
  color: #0f62fe;
  margin-right: 8px;
}

.process-section {
  border-top: 1px solid #e5edf8;
  border-bottom: 1px solid #e5edf8;
}

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

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article,
.price-card {
  padding: 24px;
}

.feature-grid article span,
.price-badge {
  color: #0065ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-grid h3,
.price-card h3 {
  margin: 12px 0 8px;
  color: #111827;
  font-size: 22px;
}

.feature-grid p,
.price-card p,
.benefit-list span {
  color: #607089;
  line-height: 1.6;
}

.split-band {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 34px;
  padding: 34px;
}

.benefit-list {
  display: grid;
  gap: 12px;
}

.benefit-list div {
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #f9fafc;
  padding: 16px;
}

.benefit-list strong,
.benefit-list span {
  display: block;
}

.benefit-list strong {
  margin-bottom: 6px;
  color: #172033;
}

.price-card {
  display: grid;
  gap: 14px;
}

.price-card.featured {
  border-color: rgba(0, 101, 255, .45);
  background:
    linear-gradient(180deg, rgba(238, 244, 255, .98), rgba(255, 255, 255, .96));
  transform: translateY(-10px);
}

.seo-content {
  border-top: 1px solid #e5edf8;
  border-bottom: 1px solid #e5edf8;
}

.seo-content .section-heading {
  width: min(920px, 100%);
}

.price-card > strong {
  color: #172033;
  font-size: 18px;
}

.visitor-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid #e6ebf2;
}

.public-login {
  position: fixed;
  inset: 0;
  z-index: 50;
  background:
    linear-gradient(135deg, rgba(247, 249, 253, .88), rgba(255, 255, 255, .94));
  backdrop-filter: blur(12px);
}

.close-login {
  width: 100%;
  margin-bottom: 14px;
}

.chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
}

.chat-toggle {
  border: 0;
  border-radius: 999px;
  background: #0065ff;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 101, 255, .28);
  padding: 14px 18px;
  font-weight: 900;
}

.chat-panel {
  width: min(360px, calc(100vw - 32px));
  margin-bottom: 12px;
  border: 1px solid #d7deea;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(31, 45, 61, .18);
  overflow: hidden;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f2f7ff;
}

.chat-head span {
  color: #0065ff;
  font-weight: 800;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 14px 16px;
}

.chat-messages p {
  margin: 0;
  color: #33445c;
  line-height: 1.45;
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid #e6ebf2;
  padding: 12px;
}

.chat-input-row input {
  min-width: 0;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}

body[data-theme="corporate"] .login-shell {
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 101, 255, .12), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(253, 171, 61, .14), transparent 30%),
    var(--bg);
}

.login-card {
  width: min(380px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 80px var(--shadow);
  text-align: center;
}

body[data-theme="corporate"] .login-card,
body[data-theme="corporate"] .card,
body[data-theme="corporate"] .stat {
  box-shadow: 0 14px 40px var(--shadow);
}

.brand-mark, .mini-logo {
  display: inline-grid;
  place-items: center;
  background: var(--field);
  border-radius: 10px;
}

.brand-mark {
  width: 72px;
  height: 72px;
}

.brand-mark svg, .mini-logo svg {
  width: 52px;
  height: 52px;
}

.login-card h1 {
  margin: 16px 0 4px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.login-card p {
  margin: 0 0 28px;
  color: var(--dim);
  font-size: 13px;
}

label {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  text-align: left;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

input, select, textarea {
  width: 100%;
  min-height: 38px;
  color: var(--text);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: var(--field);
  padding: 0 14px;
  outline: none;
}

select,
select option {
  color: var(--text);
  background: var(--field);
}

body[data-theme="corporate"] select,
body[data-theme="corporate"] select option,
body[data-theme="light"] select,
body[data-theme="light"] select option {
  color: #172033;
  background: #ffffff;
}

body[data-theme="blackout"] select,
body[data-theme="blackout"] select option,
body[data-theme="midnight"] select,
body[data-theme="midnight"] select option,
body[data-theme="graphite"] select,
body[data-theme="graphite"] select option {
  color: #ffffff;
  background: #111827;
}

body[data-theme="transparent"] select,
body[data-theme="transparent"] select option,
body[data-theme="forest"] select,
body[data-theme="forest"] select option,
body[data-theme="neon"] select,
body[data-theme="neon"] select option,
body[data-theme="terminal"] select,
body[data-theme="terminal"] select option,
body[data-theme="aurora"] select,
body[data-theme="aurora"] select option {
  color: #f8fbff;
  background: #1a2230;
}

body[data-theme="terminal"] select,
body[data-theme="terminal"] select option {
  color: #d6ffe2;
  background: #020f06;
}

body[data-theme="luxury"] select,
body[data-theme="luxury"] select option,
body[data-theme="minimal"] select,
body[data-theme="minimal"] select option {
  color: #111111;
  background: #ffffff;
}

textarea {
  min-height: 90px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(69, 153, 255, .18);
}

.primary, .success, .danger, .secondary, .ghost {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: white;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}

.primary {
  width: 100%;
  background: var(--blue);
  box-shadow: 0 10px 28px var(--shadow);
}

body[data-theme="corporate"] .primary {
  background: linear-gradient(135deg, #0065ff, #4f6bff);
}

body[data-theme="neon"] .primary {
  background: linear-gradient(135deg, #00e1ff, #a15cff);
  color: #02101b;
  box-shadow: 0 0 28px rgba(0, 225, 255, .22);
}

body[data-theme="terminal"] .primary {
  background: #3cff7d;
  color: #021007;
  box-shadow: none;
}

body[data-theme="aurora"] .primary {
  background: linear-gradient(135deg, rgba(131, 215, 255, .95), rgba(217, 181, 255, .95));
  color: #07101d;
}

body[data-theme="luxury"] .primary {
  background: linear-gradient(135deg, #17110b, #8d6b21);
  color: #fff8e7;
}

body[data-theme="minimal"] .primary {
  background: #111111;
  color: #ffffff;
}

a.primary {
  text-decoration: none;
}

.success { background: var(--green); }
.danger { background: var(--red); }
.secondary { background: var(--secondary-bg); border-color: var(--field-border); color: var(--secondary-text); }
.ghost { background: transparent; border-color: var(--field-border); color: var(--secondary-text); }

body[data-theme="corporate"] .success {
  background: #4f6bff;
}

.link-button {
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 12px;
}

.reset-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
}

.reset-panel h2 {
  margin: 0;
  font-size: 20px;
}

.reset-panel p,
.password-rules {
  margin: 0;
  color: var(--dim);
  line-height: 1.5;
}

.public-footer,
.app-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  color: var(--dim);
  font-size: 12px;
}

.public-footer {
  margin-top: 18px;
}

.public-footer a,
.app-footer a {
  color: var(--dim);
  text-decoration: none;
}

.public-footer a:hover,
.app-footer a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.contact-section {
  background: linear-gradient(135deg, #f8fbff 0%, #eef7f4 100%);
  border: 1px solid rgba(47, 72, 101, .12);
  border-radius: 8px;
  padding: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.contact-grid article {
  min-height: 190px;
  background: #fff;
  border: 1px solid rgba(47, 72, 101, .14);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(20, 34, 56, .08);
}

.contact-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(14, 124, 134, .1);
  color: #0b5964;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.contact-grid h3 {
  margin: 16px 0 10px;
  font-size: 20px;
}

.contact-grid p {
  color: #5d6b80;
  line-height: 1.55;
}

.contact-grid a {
  color: #0f766e;
  font-weight: 800;
}

.seo-grid,
.comparison-grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

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

.seo-grid article {
  background: #fff;
  border: 1px solid rgba(47, 72, 101, .14);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(20, 34, 56, .07);
}

.seo-grid span {
  display: block;
  color: #0b5964;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.seo-grid h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.seo-grid p {
  margin: 0;
  color: #5d6b80;
  line-height: 1.55;
}

.comparison-section {
  background: #081627;
  color: #f4f8ff;
  border-radius: 8px;
  padding: 48px;
}

.comparison-section .section-heading p {
  color: #bad0ea;
}

.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-grid div {
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, .06);
}

.comparison-grid strong {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

.comparison-grid span {
  color: #d7e6f8;
  line-height: 1.55;
}

.landing-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 34px;
  background: #081627;
  color: #e7eef8;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(8, 22, 39, .18);
}

.landing-footer strong {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.landing-footer p {
  margin: 0;
  color: #bad0ea;
  line-height: 1.6;
}

.landing-footer nav {
  display: grid;
  gap: 10px;
}

.landing-footer a {
  color: #dce9fb;
  text-decoration: none;
  font-weight: 700;
}

.landing-footer a:hover {
  color: #48d6c9;
}

.landing-footer small {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #9fb1c9;
  line-height: 1.5;
}

.panel-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--soft-line);
  background: var(--panel-2);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

body[data-theme="corporate"] .sidebar {
  box-shadow: 10px 0 30px rgba(31, 45, 61, .04);
}

.side-brand {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--soft-line);
}

.mini-logo {
  width: 40px;
  height: 40px;
}

.mini-logo svg {
  width: 30px;
  height: 30px;
}

.side-brand strong {
  display: block;
  font-size: 18px;
}

.side-brand small, .server-status small {
  display: block;
  color: var(--dim);
  font-size: 11px;
  margin-top: 3px;
}

nav {
  padding: 24px 8px;
  overflow-y: auto;
}

.nav-section {
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 4px 4px 12px;
}

.nav-item {
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--nav-text);
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-weight: 650;
}

.nav-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--field-border);
  border-radius: 9px;
  background: var(--field);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
}

.nav-item.active {
  color: var(--blue);
  background: var(--nav-active-bg);
  border-color: var(--field-border);
}

body[data-theme="corporate"] .nav-item.active {
  border-color: #cfe0ff;
}

body[data-theme="corporate"] .nav-icon,
body[data-theme="light"] .nav-icon {
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
}

body[data-theme="midnight"] .nav-icon,
body[data-theme="blackout"] .nav-icon {
  background: linear-gradient(135deg, rgba(69, 153, 255, .24), rgba(141, 76, 255, .18));
  border-color: rgba(105, 165, 255, .42);
  box-shadow: 0 0 18px rgba(69, 153, 255, .14);
}

body[data-theme="transparent"] .nav-icon,
body[data-theme="forest"] .nav-icon {
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, .28);
}

body[data-theme="graphite"] .nav-icon {
  background: linear-gradient(135deg, #3a424e, #252a31);
  color: #c7d7ea;
}

body[data-theme="neon"] .sidebar {
  border-right-color: rgba(0, 225, 255, .32);
  box-shadow: 14px 0 50px rgba(0, 225, 255, .08);
}

body[data-theme="neon"] .nav-icon,
body[data-theme="neon"] .stat-icon {
  background: linear-gradient(135deg, rgba(0, 225, 255, .2), rgba(161, 92, 255, .2));
  border-color: rgba(0, 225, 255, .55);
  box-shadow: 0 0 18px rgba(0, 225, 255, .24);
}

body[data-theme="terminal"] .sidebar,
body[data-theme="terminal"] .card,
body[data-theme="terminal"] .stat,
body[data-theme="terminal"] input,
body[data-theme="terminal"] select,
body[data-theme="terminal"] textarea {
  border-radius: 0;
}

body[data-theme="terminal"] .nav-icon {
  border-radius: 0;
  background: #020f06;
  border-color: #3cff7d;
  color: #3cff7d;
}

body[data-theme="terminal"] .nav-item.active {
  box-shadow: inset 3px 0 0 #3cff7d;
}

body[data-theme="aurora"] .sidebar,
body[data-theme="aurora"] .card,
body[data-theme="aurora"] .stat,
body[data-theme="aurora"] .topbar {
  backdrop-filter: blur(20px);
}

body[data-theme="aurora"] .nav-icon,
body[data-theme="aurora"] .stat-icon {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .35);
}

body[data-theme="luxury"] .sidebar {
  background: #17110b;
}

body[data-theme="luxury"] .nav-icon,
body[data-theme="luxury"] .stat-icon {
  background: linear-gradient(135deg, #f6e4b4, #d4af37);
  color: #17110b;
  border-color: rgba(212, 175, 55, .72);
}

body[data-theme="luxury"] .card,
body[data-theme="luxury"] .stat {
  border-radius: 4px;
  box-shadow: 0 18px 42px rgba(70, 45, 18, .11);
}

body[data-theme="minimal"] .sidebar {
  border-right: 2px solid #111111;
}

body[data-theme="minimal"] .card,
body[data-theme="minimal"] .stat,
body[data-theme="minimal"] input,
body[data-theme="minimal"] select,
body[data-theme="minimal"] textarea,
body[data-theme="minimal"] button {
  border-radius: 0;
  box-shadow: none;
}

body[data-theme="minimal"] .nav-icon {
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
}

body[data-theme="minimal"] .nav-item.active {
  color: #ffffff;
}

.nav-item .badge {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
}

.server-status {
  min-height: 88px;
  border-top: 1px solid var(--soft-line);
  padding: 16px 10px;
  color: #16f26e;
  font-size: 13px;
}

.server-status span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16e367;
}

.server-status small {
  text-align: center;
  margin-top: 14px;
}

.server-status a {
  color: var(--blue);
  text-decoration: none;
}

.server-status a:hover {
  text-decoration: underline;
}

.workspace {
  min-width: 0;
  background: var(--bg);
}

.topbar {
  height: 56px;
  border-bottom: 1px solid var(--soft-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 28px;
}

.topbar h2 {
  margin: 0;
  font-size: 20px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--dim);
  font-size: 14px;
}

.top-actions select {
  width: auto;
  min-height: 36px;
  border-radius: 18px;
  color: var(--text);
}

#globalThemeSelect {
  min-width: 118px;
}

.content {
  padding: 28px;
  display: grid;
  gap: 24px;
}

.app-footer {
  border-top: 1px solid var(--soft-line);
  padding: 18px 28px 24px;
}

.legal-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.legal-hero {
  padding: 48px 24px 28px;
  border-bottom: 1px solid var(--soft-line);
  background: var(--panel);
}

.legal-hero-inner,
.legal-content {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.legal-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

.legal-hero p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  background: var(--field);
  color: var(--secondary-text);
  text-decoration: none;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.legal-content {
  display: grid;
  gap: 22px;
  padding: 28px 0 48px;
}

.legal-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 24px;
}

.legal-section h2 {
  margin: 0 0 12px;
}

.legal-section h3 {
  margin: 22px 0 8px;
  font-size: 16px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-section ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.legal-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 22px;
  box-shadow: 0 18px 56px var(--shadow);
}

.legal-card strong {
  color: var(--primary-text);
  font-size: 18px;
}

.legal-card a {
  align-self: end;
  color: var(--accent);
  font-weight: 900;
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.policy-meta div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  padding: 14px;
}

.policy-meta strong,
.policy-meta span {
  display: block;
}

.policy-meta span {
  color: var(--muted);
  margin-top: 4px;
}

.readiness-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(69, 153, 255, .12), transparent 42%),
    var(--panel);
  padding: 26px;
  overflow: hidden;
}

.readiness-hero h3 {
  margin: 8px 0;
  font-size: 28px;
  line-height: 1.15;
}

.readiness-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.readiness-score {
  min-width: 150px;
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid var(--field-border);
  border-radius: 18px;
  background: var(--field);
  text-align: center;
}

.readiness-score strong,
.readiness-score span {
  display: block;
}

.readiness-score strong {
  font-size: 34px;
}

.readiness-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.readiness-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 22px;
}

.section-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  margin-right: 10px;
  border: 1px solid var(--field-border);
  border-radius: 9px;
  background: var(--field);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  vertical-align: middle;
}

.check-stack {
  display: grid;
  gap: 10px;
}

.readiness-item {
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: var(--field);
}

.readiness-item input {
  width: 16px;
  min-height: 16px;
  margin-top: 3px;
}

.readiness-item strong,
.readiness-item small {
  display: block;
}

.readiness-item small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.setup-step {
  position: relative;
  padding-top: 54px;
}

.step-number {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric-grid div {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-sm);
  background: var(--field);
  padding: 16px;
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  color: var(--text);
  font-size: 22px;
}

.metric-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ticket-thread {
  display: grid;
  gap: 14px;
}

.ticket-workspace {
  align-items: stretch;
}

.ticket-list {
  display: grid;
  gap: 10px;
  max-height: 590px;
  overflow-y: auto;
  padding-right: 4px;
}

.ticket-list-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--text);
  padding: 14px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.ticket-list-item:hover,
.ticket-list-item.active {
  border-color: var(--field-border);
  background: var(--notice-bg);
  transform: translateY(-1px);
}

.ticket-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ticket-row-top strong,
.ticket-route,
.ticket-preview,
.ticket-meta {
  display: block;
}

.ticket-route,
.ticket-meta {
  color: var(--muted);
  font-size: 12px;
}

.ticket-preview {
  color: var(--table-text);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ticket-messages {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.ticket-message {
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: var(--field);
  padding: 14px;
}

.ticket-message.mine {
  border-color: var(--field-border);
  background: var(--notice-bg);
}

.ticket-message strong,
.ticket-message small,
.attachment-pill {
  display: block;
}

.ticket-message p {
  margin: 6px 0;
  color: var(--table-text);
  line-height: 1.5;
}

.ticket-message small {
  color: var(--dim);
  font-size: 11px;
}

.attachment-pill {
  width: fit-content;
  margin: 8px 0;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  color: var(--secondary-text);
  background: var(--secondary-bg);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
}

.stat, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stat {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

body[data-theme="midnight"] .card,
body[data-theme="blackout"] .card,
body[data-theme="midnight"] .stat,
body[data-theme="blackout"] .stat {
  box-shadow: 0 0 0 1px rgba(69, 153, 255, .04), 0 18px 50px rgba(0, 0, 0, .34);
}

body[data-theme="midnight"] .stat-icon,
body[data-theme="blackout"] .stat-icon {
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .06), 0 0 24px rgba(69, 153, 255, .12);
}

body[data-theme="transparent"] .card,
body[data-theme="forest"] .card,
body[data-theme="transparent"] .stat,
body[data-theme="forest"] .stat {
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .26);
}

body[data-theme="graphite"] .card,
body[data-theme="graphite"] .stat {
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.stat strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.stat span {
  color: var(--dim);
  font-size: 13px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.card {
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.card h3 {
  margin: 0;
  font-size: 16px;
}

.card p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 13px;
}

.empty {
  min-height: 172px;
  display: grid;
  place-items: center;
  color: var(--dim);
  text-align: center;
}

.empty .big {
  display: block;
  color: var(--field-border);
  font-size: 36px;
  margin-bottom: 10px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.toolbar input {
  max-width: 100%;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  min-height: 31px;
  border: 1px solid var(--field-border);
  border-radius: 16px;
  color: var(--secondary-text);
  background: var(--field);
  padding: 0 14px;
}

.pill.active {
  color: #fff;
  border-color: var(--blue);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

th, td {
  height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

td {
  color: var(--table-text);
  font-size: 13px;
}

.card {
  overflow-x: auto;
}

.content table {
  min-width: 720px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border-radius: 12px;
  padding: 0 10px;
  font-weight: 800;
  font-size: 12px;
}

.online { background: rgba(36, 199, 101, .14); color: #29e574; }
.offline { background: rgba(239, 56, 56, .13); color: #ff6d6d; }
.paused { background: rgba(226, 157, 23, .13); color: #ffc85c; }

.security-note {
  border-color: rgba(239, 56, 56, .28);
  background: linear-gradient(135deg, rgba(239, 56, 56, .09), rgba(69, 153, 255, .06));
}

.lockout-card {
  max-width: 980px;
  margin: 0 auto;
  border-color: rgba(239, 56, 56, .32);
}

.security-flag {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(239, 56, 56, .28);
  border-radius: 12px;
  background: rgba(239, 56, 56, .08);
  color: var(--primary-text);
  padding: 14px;
  margin: 14px 0;
}

.security-flag span {
  color: var(--secondary-text);
  line-height: 1.5;
}

.row-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.icon-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--secondary-text);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
}

.checkline input {
  width: 16px;
  min-height: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dropzone {
  min-height: 180px;
  border: 2px dashed var(--field-border);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--field);
  margin-bottom: 20px;
  text-align: center;
}

.dropzone strong {
  color: var(--text);
}

.scan-panel {
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--field);
  color: var(--secondary-text);
  padding: 14px;
  margin: -4px 0 18px;
}

.scan-panel strong,
.scan-panel span {
  display: block;
}

.scan-panel span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.scan-panel ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.scan-panel.clean {
  border-color: rgba(36, 199, 101, .48);
}

.scan-panel.warning {
  border-color: rgba(226, 157, 23, .55);
}

.scan-panel.blocked {
  border-color: rgba(239, 56, 56, .6);
  background: rgba(239, 56, 56, .08);
}

.support-screen {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: clamp(220px, 42vw, 520px);
  max-height: calc(100vh - 320px);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(69, 153, 255, .1) 1px, transparent 1px),
    linear-gradient(rgba(69, 153, 255, .08) 1px, transparent 1px),
    var(--field);
  background-size: 44px 44px;
  display: grid;
  place-items: center;
  color: var(--dim);
}

.support-screen-state {
  padding: 18px;
  text-align: center;
  max-width: min(520px, calc(100% - 24px));
}

.support-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  align-items: start;
}

.support-card {
  min-width: 0;
}

.resilience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.capacity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resilience-grid div {
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--field);
  padding: 12px;
}

.resilience-grid strong,
.resilience-grid span {
  display: block;
}

.resilience-grid strong {
  font-size: 12px;
}

.capacity-grid strong {
  font-size: 22px;
  line-height: 1.1;
}

.resilience-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.remote-toolbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.notice {
  border-left: 4px solid var(--blue);
  background: var(--notice-bg);
  color: var(--secondary-text);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13px;
}

.agent-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--field-border);
  background: var(--field);
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
}

.agent-card strong,
.agent-card span {
  display: block;
}

.agent-card span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.download-link {
  width: auto;
  min-width: 190px;
}

#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 5;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--field-border);
  color: var(--text);
  box-shadow: 0 16px 34px var(--shadow);
}

.idle-warning {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 12, .72);
  backdrop-filter: blur(6px);
}

.idle-box {
  width: min(380px, calc(100vw - 32px));
  border: 1px solid var(--field-border);
  border-radius: 14px;
  background: var(--panel);
  padding: 22px;
  box-shadow: 0 28px 80px var(--shadow);
}

.idle-box strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.idle-box p {
  color: var(--muted);
  margin: 0 0 18px;
}

@media (max-width: 980px) {
  .landing-nav {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .landing-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-dropdown-menu {
    position: fixed;
    top: 92px;
    right: 18px;
  }

  .landing-hero,
  .split-band {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }

  .feature-grid,
  .pricing-grid,
  .contact-grid,
  .seo-grid,
  .comparison-grid,
  .defender-card-grid,
  .process-grid,
  .faq-grid,
  .legal-card-grid,
  .policy-meta {
    grid-template-columns: 1fr 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .panel-shell {
    grid-template-columns: 78px 1fr;
  }

  .side-brand div:not(.mini-logo), .nav-section, .nav-item span.label, .server-status small {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .stats, .grid-2, .grid-3, .form-grid, .readiness-grid, .readiness-hero {
    grid-template-columns: 1fr;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-screen {
    max-height: none;
  }

  .remote-toolbar,
  .resilience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-footer {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .landing-main {
    width: min(100% - 24px, 1200px);
  }

  .landing-nav {
    padding: 12px;
  }

  .landing-brand small {
    display: none;
  }

  .landing-links {
    display: flex;
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 0 2px;
    scrollbar-width: thin;
  }

  .landing-links a,
  .nav-dropdown > button {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .landing-login-btn {
    min-width: auto;
    padding: 10px 12px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .section-heading p,
  .split-band p {
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions a,
  .hero-actions button {
    width: 100%;
  }

  .landing-login-btn,
  .chat-input-row button,
  .pricing-grid button {
    width: auto;
  }

  .preview-grid,
  .feature-grid,
  .pricing-grid,
  .contact-grid,
  .seo-grid,
  .comparison-grid,
  .defender-card-grid,
  .process-grid,
  .faq-grid,
  .legal-card-grid,
  .policy-meta,
  .hero-proof {
    grid-template-columns: 1fr;
  }

  .tab-row {
    border-radius: 18px;
  }

  .tab-row a {
    flex: 1 1 46%;
    text-align: center;
  }

  .preview-device,
  .ticket-row-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-band {
    padding: 22px;
  }

  .contact-section,
  .comparison-section,
  .landing-footer {
    padding: 24px;
  }

  .chatbot {
    right: 12px;
    bottom: 12px;
  }

  .panel-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
  }

  .nav-item {
    width: auto;
    min-width: 48px;
  }

  .workspace {
    min-height: 100vh;
  }

  .topbar {
    padding: 0 14px;
    min-height: 72px;
    height: auto;
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .top-actions span {
    display: none;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .top-actions select {
    flex: 1 1 140px;
  }

  .card {
    max-width: 100%;
  }

  th,
  td {
    padding: 0 10px;
  }

  .support-screen {
    min-height: 180px;
  }

  .remote-toolbar,
  .resilience-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .readiness-score {
    min-width: 100%;
  }
}
