:root {
  color-scheme: light;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --surface-strong: #e5ebe6;
  --text: #17201a;
  --muted: #5a665d;
  --border: #cbd7cf;
  --primary: #217346;
  --primary-strong: #005931;
  --primary-soft: #dff2e6;
  --blue: #315f91;
  --amber: #a66200;
  --red: #b42318;
  --shadow: 0 18px 50px rgba(25, 45, 32, 0.10);
  --shadow-soft: 0 8px 28px rgba(25, 45, 32, 0.08);
  --radius: 8px;
  --radius-sm: 5px;
  --container: 1180px;
  --font: "Inter", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101613;
  --surface: #17201b;
  --surface-soft: #1d2922;
  --surface-strong: #26332b;
  --text: #ecf4ef;
  --muted: #a9b9ae;
  --border: #37483d;
  --primary: #7bdc9e;
  --primary-strong: #a2f2bd;
  --primary-soft: #173625;
  --blue: #8fb8e8;
  --amber: #e8b76a;
  --red: #ff9a90;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.24);
}

:root[data-theme="light"][data-accent="light-green"] {
  --bg: #fbfdf8;
  --surface-soft: #eef7ed;
  --surface-strong: #dcefd9;
  --border: #c9dec8;
  --primary: #5aa866;
  --primary-strong: #2f7d43;
  --primary-soft: #e7f6e7;
  --blue: #2f7584;
  --amber: #9f6a17;
  --shadow: 0 18px 50px rgba(47, 125, 67, 0.12);
  --shadow-soft: 0 8px 28px rgba(47, 125, 67, 0.09);
}

:root[data-theme="light"][data-accent="teal"] {
  --bg: #f7fbfb;
  --surface-soft: #e9f3f3;
  --surface-strong: #d7ebeb;
  --border: #c2dada;
  --primary: #0f8f87;
  --primary-strong: #006d67;
  --primary-soft: #ddf3f1;
  --blue: #256a96;
  --amber: #9b6815;
  --shadow: 0 18px 50px rgba(0, 109, 103, 0.12);
  --shadow-soft: 0 8px 28px rgba(0, 109, 103, 0.09);
}

:root[data-theme="light"][data-accent="blue"] {
  --bg: #f7faff;
  --surface-soft: #edf3fb;
  --surface-strong: #dce8f7;
  --border: #c6d6ea;
  --primary: #3278c6;
  --primary-strong: #1f5fa8;
  --primary-soft: #e4effc;
  --blue: #1f5fa8;
  --amber: #9b6716;
  --shadow: 0 18px 50px rgba(31, 95, 168, 0.12);
  --shadow-soft: 0 8px 28px rgba(31, 95, 168, 0.09);
}

:root[data-theme="light"][data-accent="graphite"] {
  --bg: #f8fafc;
  --surface-soft: #eef1f4;
  --surface-strong: #e0e5ea;
  --border: #cbd3dc;
  --primary: #667085;
  --primary-strong: #475467;
  --primary-soft: #eef1f5;
  --blue: #3a6c93;
  --amber: #9a6616;
  --shadow: 0 18px 50px rgba(71, 84, 103, 0.12);
  --shadow-soft: 0 8px 28px rgba(71, 84, 103, 0.09);
}

:root[data-theme="light"][data-accent="warm-gold"] {
  --bg: #fdfbf6;
  --surface-soft: #f6f0e4;
  --surface-strong: #eadfc8;
  --border: #decfae;
  --primary: #b9892d;
  --primary-strong: #8a6318;
  --primary-soft: #f5ecd8;
  --blue: #386f8d;
  --amber: #8a6318;
  --shadow: 0 18px 50px rgba(138, 99, 24, 0.12);
  --shadow-soft: 0 8px 28px rgba(138, 99, 24, 0.09);
}

:root[data-theme="dark"][data-accent="light-green"] {
  --primary: #9ee3a5;
  --primary-strong: #c1f4c5;
  --primary-soft: #173923;
  --border: #334b37;
}

:root[data-theme="dark"][data-accent="teal"] {
  --primary: #75d7cf;
  --primary-strong: #a7f1eb;
  --primary-soft: #123a39;
  --border: #304d4b;
}

:root[data-theme="dark"][data-accent="blue"] {
  --primary: #8fc4ff;
  --primary-strong: #badbff;
  --primary-soft: #152e4c;
  --border: #334963;
}

:root[data-theme="dark"][data-accent="graphite"] {
  --primary: #c8d0dc;
  --primary-strong: #eff3f7;
  --primary-soft: #2a313a;
  --border: #4b5563;
}

:root[data-theme="dark"][data-accent="warm-gold"] {
  --primary: #e8c57a;
  --primary-strong: #f5deb0;
  --primary-soft: #3c2e14;
  --border: #5d4b27;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 max(20px, calc((100vw - var(--container)) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-strong);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--primary-strong);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text {
  color: var(--primary-strong);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  padding: 24px 0 22px;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-strong);
  border-color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-action,
.icon-action,
.primary-action,
.button {
  border-radius: var(--radius-sm);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.ghost-action {
  padding: 0 11px;
  color: var(--muted);
  font-size: 13px;
}

.icon-action {
  width: 38px;
  padding: 0;
}

.primary-action,
.button-primary {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #ffffff;
  padding: 0 16px;
  font-weight: 700;
}

.button-secondary {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--primary-strong);
  border-color: color-mix(in srgb, var(--primary) 70%, var(--border));
  padding: 0 16px;
  font-weight: 700;
}

.ghost-action:hover,
.icon-action:hover,
.primary-action:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-main {
  padding-top: 72px;
}

.page-hero {
  padding: 92px 0 56px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 72%, transparent), transparent 58%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
}

.page-hero p:last-child {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.page-section {
  padding: 64px 0;
}

.page-section.muted {
  background: var(--surface-soft);
}

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

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

.info-card,
.pricing-card,
.doc-card,
.status-card,
.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.info-card p,
.pricing-card p,
.doc-card p,
.status-card p,
.policy-card p,
.page-lede {
  color: var(--muted);
}

.page-lede {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: 18px;
}

.detail-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

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

.pricing-card.highlight {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.price {
  display: block;
  margin: 18px 0;
  color: var(--primary-strong);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
}

.doc-nav {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.doc-nav a {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: var(--radius-sm);
}

.doc-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.doc-stack {
  display: grid;
  gap: 16px;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.api-table th,
.api-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.api-table th {
  color: var(--primary-strong);
  background: var(--surface-soft);
}

.api-table code,
.doc-card code,
.policy-card code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--primary-strong);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-strong);
  font-weight: 700;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #20a55f;
  box-shadow: 0 0 0 3px color-mix(in srgb, #20a55f 18%, transparent);
}

.policy-card {
  max-width: 920px;
}

.policy-card h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 28px;
}

.policy-card h2:first-child {
  margin-top: 0;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.22;
}

:root[data-theme="dark"] .hero-bg img {
  opacity: 0.16;
}

.hero-overlay {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 84%, transparent) 46%, color-mix(in srgb, var(--bg) 38%, transparent) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 28%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 132px 0 54px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--primary-strong);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
  color: var(--primary-strong);
}

h2 {
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 34px 0 42px;
}

.button {
  min-height: 46px;
  padding: 0 20px;
}

.button-icon {
  width: 15px;
  height: 15px;
  position: relative;
  flex: 0 0 auto;
}

.button-icon.download::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 2px;
  height: 10px;
  background: currentColor;
}

.button-icon.download::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.button-icon.arrow::after {
  content: "";
  position: absolute;
  inset: 3px 2px 2px 3px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 12px;
  margin: 0;
}

.hero-metrics div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: var(--shadow-soft);
}

.hero-metrics dt {
  color: var(--primary-strong);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 86px 0;
}

.muted {
  background: var(--surface-soft);
}

.two-column,
.pane-layout,
.admin-layout,
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.section-lede {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading p:last-child {
  color: var(--muted);
}

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

.feature-card,
.admin-list article,
.flow-node,
.tab-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  min-height: 210px;
  padding: 24px;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 56%, var(--border));
  box-shadow: var(--shadow);
}

.feature-card p,
.admin-list p,
.pane-copy p,
.download p,
.tab-panel p {
  color: var(--muted);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-block;
  border-radius: 8px;
  margin-bottom: 20px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  position: relative;
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  border-color: var(--primary-strong);
}

.feature-icon.chat::before {
  inset: 10px 8px 14px;
  border: 2px solid var(--primary-strong);
  border-radius: 5px;
}

.feature-icon.chat::after {
  width: 8px;
  height: 8px;
  left: 13px;
  bottom: 9px;
  border-left: 2px solid var(--primary-strong);
  border-bottom: 2px solid var(--primary-strong);
  transform: skew(-20deg);
}

.feature-icon.run::before {
  left: 13px;
  top: 10px;
  width: 15px;
  height: 19px;
  background: var(--primary-strong);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.feature-icon.login::before {
  left: 10px;
  top: 19px;
  width: 22px;
  height: 13px;
  border: 2px solid var(--primary-strong);
  border-radius: 3px;
}

.feature-icon.login::after {
  left: 14px;
  top: 9px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--primary-strong);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.feature-icon.history::before {
  left: 10px;
  top: 9px;
  width: 22px;
  height: 24px;
  border: 2px solid var(--primary-strong);
  border-radius: 4px;
}

.feature-icon.history::after {
  left: 15px;
  top: 16px;
  width: 12px;
  height: 9px;
  border-top: 2px solid var(--primary-strong);
  border-bottom: 2px solid var(--primary-strong);
}

.feature-icon.mic::before {
  left: 15px;
  top: 8px;
  width: 12px;
  height: 19px;
  border: 2px solid var(--primary-strong);
  border-radius: 999px;
}

.feature-icon.mic::after {
  left: 12px;
  top: 22px;
  width: 18px;
  height: 11px;
  border-left: 2px solid var(--primary-strong);
  border-right: 2px solid var(--primary-strong);
  border-bottom: 2px solid var(--primary-strong);
  border-radius: 0 0 12px 12px;
}

.feature-icon.audit::before {
  left: 11px;
  top: 9px;
  width: 20px;
  height: 24px;
  border: 2px solid var(--primary-strong);
  border-radius: 4px;
}

.feature-icon.audit::after {
  left: 16px;
  top: 16px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--blue);
  border-radius: 999px;
}

.pane-section {
  background: var(--bg);
}

.pane-copy {
  align-self: center;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 15px;
  height: 8px;
  border-left: 2px solid var(--primary-strong);
  border-bottom: 2px solid var(--primary-strong);
  transform: rotate(-45deg);
}

.product-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-strong);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #20a55f;
  box-shadow: 16px 0 0 var(--amber), 32px 0 0 var(--red);
}

.window-bar small {
  color: var(--primary-strong);
  font-weight: 700;
}

.assistant-panel {
  padding: 18px;
}

.panel-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.panel-toolbar span {
  padding: 9px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.excel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  height: 230px;
  background: var(--border);
  border: 1px solid var(--border);
  overflow: hidden;
}

.excel-grid span {
  background: color-mix(in srgb, var(--surface) 86%, var(--primary-soft));
}

.excel-grid span.active {
  background: color-mix(in srgb, var(--primary) 34%, var(--surface));
}

.chat-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.chat-strip p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
}

.chat-strip button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  background: var(--primary-strong);
  color: #ffffff;
  font-weight: 700;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: flow;
}

.flow-node {
  position: relative;
  padding: 24px;
}

.flow-node::before {
  counter-increment: flow;
  content: "0" counter(flow);
  display: block;
  margin-bottom: 18px;
  color: var(--primary-strong);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.flow-node strong,
.flow-node span {
  display: block;
}

.flow-node span {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14px;
}

.admin-layout {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-list article {
  padding: 22px 24px;
}

.admin-list p {
  margin-bottom: 0;
}

.tabs {
  max-width: 920px;
  margin: 0 auto;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-button {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.tab-button.active {
  background: var(--primary-strong);
  color: #ffffff;
  border-color: var(--primary-strong);
}

.tab-panel {
  display: none;
  padding: 28px;
}

.tab-panel.active {
  display: block;
}

.tab-panel p {
  margin-bottom: 0;
  max-width: 720px;
}

.download {
  background: var(--primary-strong);
  color: #ffffff;
}

.download .section-kicker,
.download h2,
.download p {
  color: #ffffff;
}

.download p {
  opacity: 0.82;
}

.download-layout {
  align-items: center;
}

.download-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.download .button-primary {
  background: #ffffff;
  color: #005931;
  border-color: #ffffff;
}

.download .button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.58);
  background: transparent;
}

.site-footer {
  padding: 34px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 26px;
  align-items: center;
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.copyright {
  white-space: nowrap;
}

.redirect-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.redirect-box {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.redirect-box a {
  color: var(--primary-strong);
  font-weight: 700;
}

.style-switcher {
  position: relative;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.style-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary-strong);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.style-toggle::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #005931 0 24%, #5aa866 24% 42%, #0f8f87 42% 60%, #3278c6 60% 78%, #8a6318 78% 100%);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}

.style-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(260px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow);
  display: none;
  backdrop-filter: blur(14px);
}

.style-switcher.open .style-panel {
  display: block;
}

.style-panel-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.style-options {
  display: grid;
  gap: 8px;
}

.style-option {
  min-height: 38px;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.style-option:hover,
.style-option.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.style-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.style-check {
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--primary-strong);
  border-bottom: 2px solid var(--primary-strong);
  transform: rotate(-45deg);
  opacity: 0;
}

.style-option.active .style-check {
  opacity: 1;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: block;
    order: 2;
  }

  .brand {
    order: 1;
  }

  .header-actions {
    order: 3;
    justify-content: flex-end;
  }

  .site-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
    border-bottom: 0;
    border-radius: var(--radius-sm);
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: var(--primary-soft);
  }

  .primary-action {
    display: none;
  }

  .two-column,
  .pane-layout,
  .admin-layout,
  .download-layout {
    grid-template-columns: 1fr;
  }

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

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

  .content-grid,
  .content-grid.two,
  .pricing-grid,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-nav {
    position: static;
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    height: 64px;
    padding: 0 14px;
    gap: 10px;
  }

  .brand-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-logo {
    width: 32px;
    height: 34px;
  }

  .ghost-action {
    width: 40px;
    padding: 0;
    overflow: hidden;
  }

  .ghost-action span {
    width: 18px;
    overflow: hidden;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 106px 0 44px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  h2 {
    font-size: 32px;
  }

  .hero-actions,
  .download-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-metrics,
  .feature-grid,
  .flow,
  .content-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-main {
    padding-top: 64px;
  }

  .page-hero {
    padding: 70px 0 40px;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .api-table {
    display: block;
    overflow-x: auto;
  }

  .section {
    padding: 58px 0;
  }

  .chat-strip {
    grid-template-columns: 1fr;
  }

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

  .site-footer nav {
    flex-wrap: wrap;
  }
}
