:root {
  color-scheme: light;
  --ink: #18222b;
  --muted: #5f6b75;
  --paper: #f6f4ef;
  --line: #d7d9dd;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --coral: #d65f4d;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f1eee7;
  --dialog-backdrop: rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf2f4;
  --muted: #a4b0bb;
  --paper: #101418;
  --line: #2c353d;
  --accent: #2a9d8f;
  --accent-strong: #23867a;
  --white: #ffffff;
  --surface: #171d22;
  --surface-soft: #13191e;
  --dialog-backdrop: rgba(0, 0, 0, 0.56);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.botflow-landing {
  --bot-bg: #070b12;
  --bot-panel: rgba(15, 23, 42, 0.72);
  --bot-panel-strong: rgba(18, 28, 48, 0.92);
  --bot-line: rgba(148, 163, 184, 0.22);
  --bot-text: #f8fafc;
  --bot-muted: #9aa8bb;
  --bot-cyan: #22d3ee;
  --bot-green: #38bdf8;
  --bot-accessible-accent: #22d3ee;
  --bot-violet: #a78bfa;
  color: var(--bot-text);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 32%),
    linear-gradient(225deg, rgba(167, 139, 250, 0.13), transparent 34%),
    var(--bot-bg);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
}

.botflow-landing .topbar {
  z-index: 4;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  border: 1px solid var(--bot-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(7, 11, 18, 0.76);
  backdrop-filter: blur(18px);
}

.botflow-landing .brand {
  font-size: 17px;
  letter-spacing: 0;
}

.botflow-landing .nav-actions {
  gap: 6px;
}

.botflow-landing .nav-link,
.botflow-landing .ghost-button {
  border-radius: 10px;
  padding: 10px 12px;
  color: #dce7f7;
  font-size: 14px;
}

.botflow-landing .ghost-button,
.botflow-landing .theme-toggle {
  border-color: var(--bot-line);
  background: rgba(255, 255, 255, 0.06);
}

.botflow-landing .theme-toggle {
  color: var(--bot-text);
}

.botflow-hero {
  min-height: 0;
  isolation: isolate;
  background:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.18), transparent 36%),
    #070b12;
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.botflow-hero::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.12), #070b12 92%),
    linear-gradient(90deg, rgba(7, 11, 18, 0.94), rgba(7, 11, 18, 0.58));
}

.botflow-hero-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 30px;
  align-items: center;
  margin: 0 auto;
  padding: 56px 0 64px;
}

.botflow-hero .hero-copy {
  max-width: none;
  padding: 0;
}

.botflow-hero .hero-copy p,
.botflow-process p,
.botflow-cta p {
  color: var(--bot-cyan);
  font-weight: 800;
}

.botflow-hero .hero-copy h1 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: clamp(42px, 5.2vw, 70px);
  line-height: 0.96;
}

.botflow-hero .hero-copy span {
  max-width: 640px;
  color: #b8c5d8;
}

.botflow-hero .primary-action {
  border-color: var(--bot-cyan);
  color: #041018;
  background: linear-gradient(135deg, var(--bot-cyan), var(--bot-green));
  box-shadow: 0 18px 52px rgba(34, 211, 238, 0.2);
}

.botflow-hero .secondary-action {
  border-color: var(--bot-line);
  color: var(--bot-text);
  background: rgba(255, 255, 255, 0.06);
}

.platform-preview {
  overflow: hidden;
  border: 1px solid var(--bot-line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.12), transparent 36%),
    var(--bot-panel);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--bot-line);
  padding: 14px 16px;
  color: #d9e7ff;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}

.preview-topbar span:first-child {
  background: #fb7185;
}

.preview-topbar span:nth-child(2) {
  background: #facc15;
}

.preview-topbar span:nth-child(3) {
  background: var(--bot-cyan);
}

.preview-topbar strong {
  margin-left: auto;
  font-size: 13px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 350px;
}

.preview-grid aside {
  display: grid;
  align-content: start;
  gap: 10px;
  border-right: 1px solid var(--bot-line);
  padding: 18px;
  color: var(--bot-muted);
  background: rgba(2, 6, 23, 0.32);
}

.preview-grid aside b {
  margin-bottom: 8px;
  color: var(--bot-text);
}

.preview-grid aside span {
  border-radius: 10px;
  padding: 10px;
}

.preview-grid aside .active {
  color: #06121f;
  background: var(--bot-cyan);
}

.preview-grid section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
  padding: 18px;
}

.preview-metric,
.preview-table {
  border: 1px solid var(--bot-line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.68);
}

.preview-metric span {
  display: block;
  color: var(--bot-muted);
  font-size: 13px;
}

.preview-metric strong {
  display: block;
  margin-top: 14px;
  font-size: 40px;
}

.preview-metric.accent {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(56, 189, 248, 0.13));
}

.preview-table {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.preview-table div {
  display: grid;
  grid-template-columns: 1fr 0.7fr 0.7fr;
  gap: 12px;
  align-items: center;
  color: #cbd5e1;
}

.preview-table div:first-child {
  color: var(--bot-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.pill {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.pill.live {
  color: #042016;
  background: var(--bot-green);
}

.pill.draft {
  color: #271802;
  background: #fbbf24;
}

.botflow-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
  border: 1px solid var(--bot-line);
  border-radius: 18px;
  overflow: hidden;
  border-top: 1px solid var(--bot-line);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), transparent 48%),
    rgba(15, 23, 42, 0.3);
}

.botflow-showcase .section-intro,
.botflow-showcase article {
  color: var(--bot-text);
  background: #0b1220;
}

.botflow-strip div {
  color: var(--bot-text);
}

.botflow-strip span,
.botflow-showcase article p {
  color: var(--bot-muted);
}

.botflow-strip .strip-card {
  position: relative;
  min-height: 245px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
  gap: 12px;
  border-right: 1px solid var(--bot-line);
  background: transparent;
}

.botflow-strip .strip-card:last-child {
  border-right: 0;
}

.strip-card i {
  position: relative;
  display: block;
  width: 100%;
  height: 92px;
  align-self: end;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(56, 189, 248, 0.06)),
    rgba(7, 11, 18, 0.38);
}

.strip-card i::before,
.strip-card i::after {
  content: "";
  position: absolute;
}

.strip-card-api i::before {
  inset: 18px 20px auto;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bot-cyan) 0 38%, rgba(255, 255, 255, 0.22) 38% 100%);
  box-shadow:
    0 20px 0 rgba(255, 255, 255, 0.18),
    0 40px 0 rgba(255, 255, 255, 0.12);
}

.strip-card-api i::after {
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 24px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.22);
}

.strip-card-beacon i::before {
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bot-cyan);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 18px rgba(34, 211, 238, 0.16),
    0 0 0 36px rgba(34, 211, 238, 0.08);
}

.strip-card-beacon i::after {
  left: 22px;
  right: 22px;
  bottom: 17px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.52), transparent);
}

.strip-card-ai i::before {
  inset: 18px auto auto 24px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(34, 211, 238, 0.6) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(34, 211, 238, 0.6) 47% 53%, transparent 53%),
    rgba(34, 211, 238, 0.12);
}

.strip-card-ai i::after {
  right: 24px;
  top: 24px;
  width: 132px;
  height: 44px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 16px 50%, var(--bot-cyan) 0 5px, transparent 6px),
    radial-gradient(circle at 66px 50%, rgba(255, 255, 255, 0.44) 0 5px, transparent 6px),
    radial-gradient(circle at 116px 50%, rgba(255, 255, 255, 0.25) 0 5px, transparent 6px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.42), rgba(34, 211, 238, 0.08));
}

.botflow-showcase {
  width: min(1180px, calc(100% - 40px));
  margin: 72px auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--bot-line);
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  background: var(--bot-line);
}

.botflow-showcase .section-intro {
  min-height: 360px;
}

.botflow-showcase .module-intro {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 34px;
  align-items: center;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), transparent 42%),
    #0b1220;
}

.module-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--bot-line);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.95), rgba(11, 18, 32, 0.28), rgba(11, 18, 32, 0.06)),
    url("/assets/hero.png") center / cover,
    linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(167, 139, 250, 0.16)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.module-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.9), rgba(11, 18, 32, 0.18), rgba(11, 18, 32, 0));
  pointer-events: none;
}

.module-visual-grid {
  position: absolute;
  inset: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.module-visual-grid span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  color: #b8f7ff;
  background: rgba(7, 11, 18, 0.62);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.motion-ready .botflow-showcase .module-intro {
  opacity: 1 !important;
  transform: none !important;
}

.module-visual-phone {
  position: absolute;
  right: 28px;
  top: 34px;
  z-index: 2;
  width: min(46%, 220px);
  min-height: 232px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  padding: 18px;
  background: rgba(7, 11, 18, 0.78);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.module-visual-flow {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  width: 48%;
  display: grid;
  gap: 10px;
}

.module-visual-flow span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.module-visual-flow span:first-child {
  width: 82%;
  background: rgba(34, 211, 238, 0.78);
}

.module-visual-flow span:nth-child(2) {
  width: 62%;
}

.module-visual-flow span:nth-child(3) {
  width: 74%;
}

.module-visual-phone span {
  display: block;
  width: 48px;
  height: 5px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.module-visual-phone strong {
  display: block;
  margin-bottom: 18px;
  color: #f8fafc;
}

.module-visual-phone i {
  display: block;
  height: 36px;
  margin-top: 10px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.7), rgba(52, 211, 153, 0.38));
}

.botflow-showcase article {
  position: relative;
  display: flex;
  flex-direction: column;
  align-content: start;
  justify-content: flex-start;
  overflow: hidden;
}

.botflow-showcase article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(34, 211, 238, 0.34);
  opacity: 0;
  transition: opacity 220ms ease;
}

.botflow-showcase article:hover::before {
  opacity: 1;
}

.botflow-showcase article span {
  border-color: var(--bot-line);
  color: var(--bot-cyan);
}

.botflow-showcase article a {
  color: var(--bot-cyan);
}

.botflow-showcase .section-intro p,
.botflow-process p {
  color: var(--bot-cyan);
}

.botflow-process {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
  padding: 72px clamp(20px, 5vw, 72px);
  color: var(--bot-text);
  background: #070b12;
}

.botflow-process h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.botflow-process ol {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.botflow-process li {
  border: 1px solid var(--bot-line);
  border-radius: 16px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.68);
}

.botflow-process strong {
  display: block;
  margin-bottom: 8px;
  color: var(--bot-text);
}

.botflow-process span {
  color: var(--bot-muted);
  line-height: 1.6;
}

.botflow-cta {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(167, 139, 250, 0.16)),
    #0b1220;
}

.botflow-cta .primary-action {
  color: #041018;
  background: linear-gradient(135deg, var(--bot-cyan), var(--bot-green));
  border-color: transparent;
}

.corporate-footer {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 24px;
  align-items: start;
  margin: 0 auto;
  border-top: 1px solid var(--bot-line);
  padding: 34px 0 42px;
  color: var(--bot-muted);
  background: #070b12;
}

.corporate-footer div {
  display: grid;
  gap: 10px;
}

.corporate-footer p,
.corporate-footer small {
  margin: 0;
  line-height: 1.6;
}

.footer-brand {
  color: var(--bot-text);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.corporate-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.corporate-footer a {
  color: #dce7f7;
  text-decoration: none;
}

.corporate-footer a:hover {
  color: var(--bot-cyan);
}

.corporate-footer small {
  grid-column: 1 / -1;
  color: #6f7f94;
}

:root[data-theme="light"] .botflow-landing {
  --bot-bg: #f7fafc;
  --bot-panel: rgba(255, 255, 255, 0.86);
  --bot-panel-strong: rgba(255, 255, 255, 0.96);
  --bot-line: rgba(15, 23, 42, 0.14);
  --bot-text: #0f172a;
  --bot-muted: #475569;
  --bot-accessible-accent: #22d3ee;
  color: var(--bot-text);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(225deg, rgba(59, 130, 246, 0.12), transparent 34%),
    var(--bot-bg);
}

:root[data-theme="light"] .botflow-landing .topbar {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .botflow-landing .brand,
:root[data-theme="light"] .botflow-landing .nav-link,
:root[data-theme="light"] .botflow-landing .ghost-button,
:root[data-theme="light"] .botflow-hero .secondary-action,
:root[data-theme="light"] .corporate-footer a {
  color: var(--bot-text);
}

:root[data-theme="light"] .botflow-landing .ghost-button,
:root[data-theme="light"] .botflow-landing .theme-toggle,
:root[data-theme="light"] .botflow-hero .secondary-action {
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .botflow-landing .theme-toggle {
  border-color: rgba(15, 23, 42, 0.26);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05), 0 10px 26px rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .botflow-hero {
  color: var(--bot-text);
  background:
    linear-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.2), transparent 38%),
    #f7fafc;
}

:root[data-theme="light"] .botflow-hero::after {
  background:
    linear-gradient(180deg, rgba(247, 250, 252, 0.2), #f7fafc 94%),
    linear-gradient(90deg, rgba(247, 250, 252, 0.92), rgba(247, 250, 252, 0.58));
}

:root[data-theme="light"] .botflow-hero .hero-copy span,
:root[data-theme="light"] .preview-metric span,
:root[data-theme="light"] .botflow-strip span,
:root[data-theme="light"] .botflow-showcase article p,
:root[data-theme="light"] .botflow-process span,
:root[data-theme="light"] .corporate-footer {
  color: var(--bot-muted);
}

:root[data-theme="light"] .platform-preview,
:root[data-theme="light"] .preview-metric,
:root[data-theme="light"] .preview-table,
:root[data-theme="light"] .botflow-showcase .section-intro,
:root[data-theme="light"] .botflow-showcase article,
:root[data-theme="light"] .botflow-process li {
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .preview-topbar,
:root[data-theme="light"] .preview-grid aside b,
:root[data-theme="light"] .preview-metric strong,
:root[data-theme="light"] .botflow-strip div,
:root[data-theme="light"] .botflow-process strong,
:root[data-theme="light"] .footer-brand {
  color: var(--bot-text);
}

:root[data-theme="light"] .preview-grid aside {
  color: var(--bot-muted);
  background: rgba(241, 245, 249, 0.72);
}

:root[data-theme="light"] .preview-table div {
  color: #334155;
}

:root[data-theme="light"] .preview-table div:first-child,
:root[data-theme="light"] .corporate-footer small {
  color: #64748b;
}

:root[data-theme="light"] .botflow-strip,
:root[data-theme="light"] .botflow-showcase {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.62);
}

:root[data-theme="light"] .strip-card i {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.08)),
    rgba(255, 255, 255, 0.8);
}

:root[data-theme="light"] .strip-card-api i::before {
  box-shadow:
    0 20px 0 rgba(15, 23, 42, 0.14),
    0 40px 0 rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .strip-card-ai i::after {
  background:
    radial-gradient(circle at 16px 50%, var(--bot-cyan) 0 5px, transparent 6px),
    radial-gradient(circle at 66px 50%, rgba(15, 23, 42, 0.32) 0 5px, transparent 6px),
    radial-gradient(circle at 116px 50%, rgba(15, 23, 42, 0.18) 0 5px, transparent 6px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.3), rgba(34, 211, 238, 0.08));
}

:root[data-theme="light"] .botflow-showcase .module-intro {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .botflow-process,
:root[data-theme="light"] .corporate-footer {
  background: #f7fafc;
}

.landing-page {
  font-size: calc(16px * var(--landing-text-scale, 1));
}

:root[data-accessibility-contrast="high"] {
  --ink: #050505;
  --muted: #262626;
  --paper: #ffffff;
  --line: #111111;
  --accent: #003f8f;
  --accent-strong: #002f6c;
  --surface: #ffffff;
  --surface-soft: #f5f5f5;
}

:root[data-theme="dark"][data-accessibility-contrast="high"] {
  --ink: #ffffff;
  --muted: #f2f2f2;
  --paper: #000000;
  --line: #ffffff;
  --accent: #76b7ff;
  --accent-strong: #9ccbff;
  --surface: #000000;
  --surface-soft: #111111;
}

:root[data-accessibility-spacing="readable"] body {
  line-height: 1.75;
}

:root[data-accessibility-spacing="readable"] p,
:root[data-accessibility-spacing="readable"] span,
:root[data-accessibility-spacing="readable"] a,
:root[data-accessibility-spacing="readable"] button {
  word-spacing: 0.08em;
}

:focus {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 6px;
  padding: 10px 14px;
  color: #000;
  background: #ffbf47;
  font-weight: 700;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.hero {
  position: relative;
  min-height: min(76vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 16, 22, 0.93), rgba(9, 16, 22, 0.7), rgba(9, 16, 22, 0.36));
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar,
.hero-copy {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
}

.brand {
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link {
  border-radius: 6px;
  padding: 10px 8px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.current {
  background: rgba(255, 255, 255, 0.14);
}

.ghost-button,
button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 11px 16px;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  cursor: pointer;
}

.ghost-button:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.18);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 18px;
}

.hero-copy {
  max-width: 620px;
  padding: 0 clamp(20px, 5vw, 72px) 56px;
}

.accessibility-panel {
  position: absolute;
  top: 82px;
  right: clamp(20px, 5vw, 72px);
  z-index: 2;
  width: min(92vw, 480px);
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  color: var(--white);
  background: rgba(9, 16, 22, 0.95);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.accessibility-panel[hidden] {
  display: none;
}

.accessibility-panel h2,
.accessibility-panel p {
  margin: 0;
}

.accessibility-panel h2 {
  font-size: 20px;
}

.accessibility-panel p {
  margin-top: 6px;
  color: #edf2f4;
  line-height: 1.5;
}

.accessibility-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.accessibility-options button[aria-pressed="true"] {
  border-color: #ffbf47;
  background: #ffbf47;
  color: #000;
}

.botflow-landing .accessibility-panel h2 {
  color: var(--bot-cyan);
}

.botflow-landing .accessibility-options button[aria-pressed="true"] {
  border-color: var(--bot-accessible-accent);
  color: #041018;
  background: var(--bot-accessible-accent);
}

.hero-copy p,
.dashboard-header p,
.login-panel p {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
}

.hero-copy span {
  display: block;
  max-width: 540px;
  line-height: 1.6;
  font-size: 18px;
}

.enterprise-hero {
  max-width: 820px;
}

.enterprise-hero h1 {
  max-width: 800px;
  line-height: 1.04;
}

.enterprise-hero span {
  max-width: 680px;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  border: 1px solid var(--coral);
  color: var(--white);
  background: var(--coral);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.primary-action:hover {
  filter: brightness(0.95);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.2);
}

.enterprise-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: var(--line);
}

.enterprise-strip div {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
}

.enterprise-strip strong {
  font-size: 18px;
}

.enterprise-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.solution-showcase {
  display: grid;
  grid-template-columns: 1.1fr repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 56px clamp(20px, 5vw, 72px);
  background: var(--line);
}

.solution-showcase .section-intro,
.solution-showcase article {
  background: var(--surface);
}

.solution-showcase .section-intro {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 28px;
}

.solution-showcase article {
  min-height: 240px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 26px;
}

.solution-showcase article span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-strong);
  font-weight: 700;
}

.solution-showcase h3,
.solution-showcase p {
  margin: 0;
}

.solution-showcase article p {
  color: var(--muted);
  line-height: 1.6;
}

.solution-showcase article a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

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

.solution-showcase.botflow-showcase .module-intro {
  grid-column: 1 / -1;
  grid-row: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 34px;
  align-items: center;
  max-width: none;
  min-height: 360px;
  margin-bottom: 0;
  padding: 42px;
}

.solution-showcase.botflow-showcase article span {
  border-color: var(--bot-line);
  color: var(--bot-cyan);
}

@media (max-width: 1100px) {
  .solution-showcase.botflow-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stats-band,
.feature-band {
  display: grid;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 72px);
}

.stats-band {
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
}

.stats-band div {
  display: grid;
  gap: 6px;
}

.stats-band strong {
  font-size: 28px;
}

.stats-band.elevated {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--accent-strong);
  color: var(--white);
}

.stats-band.elevated span {
  color: rgba(255, 255, 255, 0.82);
}

.feature-band {
  grid-template-columns: repeat(3, 1fr);
}

.insight-band {
  padding-top: 56px;
  padding-bottom: 56px;
}

.feature-band article h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.feature-band article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.industry-band,
.cta-band {
  display: grid;
  gap: 28px;
  padding: 56px clamp(20px, 5vw, 72px);
}

.industry-band {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  background: var(--surface);
}

.industry-band p,
.cta-band p {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.industry-band h2,
.cta-band h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.14;
}

.industry-band ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.industry-band li {
  border-left: 4px solid var(--coral);
  padding: 12px 0 12px 16px;
  background: var(--paper);
  font-weight: 700;
}

.cta-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: #1f2d3d;
  color: var(--white);
}

.cta-band p {
  color: #a7e1d8;
}

.cta-band h2 {
  max-width: 820px;
}

.content-page {
  min-height: 100vh;
  background: var(--paper);
}

.page-header {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 16, 22, 0.92), rgba(15, 118, 110, 0.78)),
    url("/assets/hero.png") center / cover;
}

.page-title {
  max-width: 900px;
  padding: 48px clamp(20px, 5vw, 72px) 72px;
}

.page-title p,
.section-intro p,
.showcase-band p,
.assurance-band p {
  margin: 0 0 12px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-title h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.08;
}

.page-grid,
.process-band,
.assurance-band,
.showcase-band,
.client-band {
  padding: 48px clamp(20px, 5vw, 72px);
}

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

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

.section-intro {
  grid-column: 1 / -1;
  max-width: 720px;
  margin-bottom: 8px;
}

.section-intro p,
.showcase-band p,
.assurance-band p {
  color: var(--accent-strong);
}

.section-intro h2,
.process-band h2,
.assurance-band h2,
.showcase-band h2,
.client-band h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
}

.info-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
}

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

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.process-band {
  background: var(--surface);
}

.process-band ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.process-band li {
  display: grid;
  gap: 10px;
  border-top: 4px solid var(--accent);
  padding-top: 16px;
}

.process-band strong {
  font-size: 18px;
}

.process-band span,
.showcase-band span {
  color: var(--muted);
  line-height: 1.6;
}

.assurance-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  background: var(--surface);
}

.assurance-band ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.assurance-band li {
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 16px;
  line-height: 1.6;
}

.showcase-band {
  background: var(--surface);
}

.showcase-band div {
  max-width: 780px;
}

.showcase-band span {
  display: block;
  max-width: 660px;
  margin-top: 18px;
  font-size: 18px;
}

.client-band div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.client-band span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--surface);
  font-weight: 700;
}

.admin-body {
  min-height: 100vh;
}

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

.admin-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 24px 18px;
  background: #1f2d3d;
  color: #d9e2ec;
}

.sidebar-brand {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  border-radius: 6px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-main {
  min-width: 0;
}

.admin-navbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-navbar div:first-child {
  display: grid;
  gap: 2px;
}

.admin-navbar span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-navbar strong {
  font-size: 18px;
}

.admin-content {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 24px;
}

.login-panel,
.dashboard,
.settings-card {
  width: min(100%, 1040px);
}

.login-panel {
  width: min(100%, 420px);
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.login-panel h1,
.dashboard-header h1 {
  margin: 0;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--surface);
}

button {
  border-color: transparent;
  background: var(--accent);
  color: var(--white);
}

button:hover {
  background: var(--accent-strong);
}

.ghost-button.dark {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.dashboard {
  display: grid;
  gap: 20px;
}

.settings-card {
  width: min(100%, 520px);
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hidden {
  display: none;
}

.dashboard-header,
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tabs {
  display: inline-flex;
  gap: 8px;
}

.tabs button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.tabs button.active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.table-toolbar h2,
.table-toolbar p {
  margin: 0;
}

.table-toolbar p {
  color: var(--muted);
  margin-top: 6px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

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

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

td.actions {
  display: flex;
  gap: 8px;
}

td.actions button {
  padding: 8px 12px;
}

dialog {
  width: min(92vw, 520px);
  border: none;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
}

dialog::backdrop {
  background: var(--dialog-backdrop);
}

#record-form {
  padding: 20px;
}

#record-form header,
#record-form menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  margin: 0;
}

#record-form header button {
  width: 36px;
  height: 36px;
  padding: 0;
}

#form-fields {
  display: grid;
  gap: 14px;
}

@media (max-width: 760px) {
  .botflow-landing .topbar {
    width: calc(100% - 28px);
    margin-top: 14px;
  }

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

  .botflow-hero-grid {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 0 56px;
  }

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

  .platform-preview {
    border-radius: 16px;
  }

  .preview-grid,
  .preview-grid section,
  .botflow-process {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    min-height: 0;
  }

  .preview-grid aside {
    border-right: 0;
    border-bottom: 1px solid var(--bot-line);
  }

  .preview-table div {
    grid-template-columns: 1fr;
  }

  .botflow-showcase .section-intro {
    min-height: 0;
  }

  .solution-showcase.botflow-showcase .module-intro {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .module-visual {
    min-height: 260px;
  }

  .module-visual-phone {
    width: 58%;
    right: 16px;
  }

  .hero {
    min-height: 640px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .nav-link {
    text-align: center;
  }

  .nav-actions .ghost-button {
    text-align: center;
  }

  .accessibility-panel {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 0 20px;
  }

  .accessibility-options {
    grid-template-columns: 1fr;
  }

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

  .corporate-footer nav {
    justify-content: flex-start;
  }

  .hero-copy span {
    font-size: 16px;
  }

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

  .enterprise-strip,
  .solution-showcase,
  .industry-band,
  .cta-band {
    grid-template-columns: 1fr;
  }

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

  .enterprise-strip,
  .solution-showcase {
    padding-right: 20px;
    padding-left: 20px;
  }

  .solution-showcase .section-intro {
    min-height: 0;
  }

  .industry-band ul {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: start;
  }

  .cta-band .primary-action {
    width: 100%;
  }

  .stats-band,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .page-title {
    padding-top: 28px;
  }

  .page-grid,
  .page-grid.compact,
  .process-band ol,
  .assurance-band {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 0;
  }

  .dashboard-header,
  .table-toolbar,
  .admin-navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-wrapper {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    gap: 14px;
  }

  .sidebar-nav {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
