:root {
  --bt-bg: #070f20;
  --bt-bg-soft: #0b1628;
  --bt-surface: #101c32;
  --bt-surface-2: #13213a;
  --bt-card: #111d35;
  --bt-text: #f8fafc;
  --bt-muted: #a0b3cc;
  --bt-dim: #6b7f99;
  --bt-border: #1f3356;
  --bt-primary: #4a90f7;
  --bt-primary-dark: #2563eb;
  --bt-accent: #34d399;
  --bt-warning: #fbbf24;
  --bt-danger: #f87171;
  --bt-shadow: 0 18px 50px rgba(0, 0, 0, .24);
  --bt-shadow-soft: 0 10px 28px rgba(0, 0, 0, .18);
  --bt-radius-sm: 10px;
  --bt-radius: 16px;
  --bt-radius-lg: 24px;
  --bt-radius-xl: 32px;
  --bt-space: clamp(18px, 3vw, 32px);
  --bt-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.bt-app {
  min-width: 320px;
  margin: 0;
  color: var(--bt-text);
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(74, 144, 247, .24), transparent 60%),
    radial-gradient(760px 460px at 100% 0%, rgba(52, 211, 153, .12), transparent 58%),
    linear-gradient(180deg, #070f20 0%, #091426 46%, #070f20 100%);
  font-family: Aptos, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.bt-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .82), transparent 72%);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(74, 144, 247, .72);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-130%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bt-primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

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

.bt-shell {
  width: min(var(--bt-max), calc(100% - 32px));
  margin: 0 auto;
}

.bt-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(7, 15, 32, .82);
  backdrop-filter: blur(18px);
}

.bt-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

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

.bt-brand-mark,
.bt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(74, 144, 247, .26);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(74, 144, 247, .18), rgba(52, 211, 153, .08));
  color: var(--bt-primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.bt-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.bt-brand span span {
  display: block;
  margin-top: 2px;
  color: var(--bt-dim);
  font-size: 12px;
  font-weight: 650;
}

.bt-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.bt-nav-links a,
.bt-mobile-menu a {
  border-radius: 999px;
  color: var(--bt-muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.bt-nav-links a {
  padding: 9px 11px;
}

.bt-nav-links a:hover,
.bt-nav-links a[aria-current="page"],
.bt-mobile-menu a:hover,
.bt-mobile-menu a[aria-current="page"] {
  color: var(--bt-text);
  background: rgba(255, 255, 255, .055);
}

.bt-nav-links .bt-nav-cta,
.bt-mobile-menu .bt-nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--bt-primary), var(--bt-primary-dark));
  box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
}

.bt-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--bt-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  color: var(--bt-text);
  font: inherit;
  font-weight: 850;
}

.bt-mobile-menu {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 16px;
}

.bt-mobile-menu[data-open="true"] {
  display: grid;
}

.bt-mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .035);
}

.bt-main {
  padding: clamp(24px, 4vw, 46px) 0 0;
}

.bt-section {
  padding: clamp(28px, 5vw, 62px) 0;
}

.bt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(18px, 3vw, 34px) 0 clamp(30px, 6vw, 72px);
}

.bt-panel,
.bt-card,
.bt-hero-card,
.bt-feature-card,
.bt-form-card {
  border: 1px solid rgba(255, 255, 255, .085);
  background:
    radial-gradient(520px 240px at 0% 0%, rgba(74, 144, 247, .13), transparent 62%),
    linear-gradient(180deg, rgba(17, 29, 53, .96), rgba(13, 24, 44, .96));
  box-shadow: var(--bt-shadow-soft);
}

.bt-hero-card {
  min-height: 520px;
  border-radius: var(--bt-radius-xl);
  padding: clamp(24px, 5vw, 48px);
}

.bt-hero-side {
  display: grid;
  gap: 14px;
}

.bt-kicker,
.bt-chip,
.bt-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid rgba(52, 211, 153, .18);
  border-radius: 999px;
  background: rgba(52, 211, 153, .095);
  color: var(--bt-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.bt-kicker,
.bt-chip {
  padding: 8px 11px;
}

.bt-kicker::before,
.bt-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.bt-status {
  padding: 7px 10px;
  text-transform: none;
  letter-spacing: 0;
}

.bt-chip {
  border-color: rgba(74, 144, 247, .22);
  background: rgba(74, 144, 247, .1);
  color: #9ec8ff;
}

.bt-chip.success,
.bt-status.success {
  border-color: rgba(52, 211, 153, .2);
  background: rgba(52, 211, 153, .1);
  color: var(--bt-accent);
}

.bt-chip.warn,
.bt-status.warn {
  border-color: rgba(251, 191, 36, .2);
  background: rgba(251, 191, 36, .1);
  color: var(--bt-warning);
}

.bt-chip.danger,
.bt-status.danger {
  border-color: rgba(248, 113, 113, .22);
  background: rgba(248, 113, 113, .1);
  color: var(--bt-danger);
}

.bt-chip.neutral {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .055);
  color: var(--bt-muted);
}

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

.bt-hero h1 {
  max-width: 850px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -.065em;
}

.bt-page-hero h1,
.bt-narrow-hero h1 {
  max-width: 920px;
  margin: 16px 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.06em;
}

.bt-lead {
  max-width: 760px;
  margin: 0;
  color: var(--bt-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.66;
}

.bt-copy {
  color: var(--bt-muted);
}

.bt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.bt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  color: var(--bt-text);
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.bt-button:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 144, 247, .42);
  background: rgba(74, 144, 247, .12);
  text-decoration: none;
}

.bt-button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--bt-primary), var(--bt-primary-dark));
  color: #fff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .28);
}

.bt-button.success {
  border-color: transparent;
  background: linear-gradient(135deg, var(--bt-accent), #10b981);
  color: #03140f;
}

.bt-button.small {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.bt-card {
  border-radius: var(--bt-radius-lg);
  padding: clamp(18px, 3vw, 26px);
}

.bt-card h2,
.bt-card h3,
.bt-feature-card h3 {
  margin-bottom: 8px;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.bt-card p,
.bt-feature-card p,
.bt-card li {
  color: var(--bt-muted);
}

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

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

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

.bt-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.bt-feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  border-radius: var(--bt-radius-lg);
  padding: 22px;
  text-decoration: none;
}

.bt-feature-card:hover {
  border-color: rgba(74, 144, 247, .36);
  transform: translateY(-2px);
  text-decoration: none;
}

.bt-feature-card .bt-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 14px;
}

.bt-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.bt-section-head h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.bt-section-head p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--bt-muted);
}

.bt-stat-grid {
  display: grid;
  gap: 14px;
}

.bt-stat {
  border-radius: var(--bt-radius-lg);
  padding: 20px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .085);
}

.bt-stat strong {
  display: block;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -.055em;
}

.bt-stat span {
  display: block;
  margin-top: 7px;
  color: var(--bt-muted);
  font-size: 13px;
  font-weight: 700;
}

.bt-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

.bt-list li {
  padding-left: 18px;
  position: relative;
}

.bt-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--bt-primary);
}

.bt-page-hero,
.bt-narrow-hero {
  padding: clamp(20px, 4vw, 44px) 0 clamp(18px, 3vw, 32px);
}

.bt-page-hero .bt-panel,
.bt-narrow-hero .bt-panel {
  border-radius: var(--bt-radius-xl);
  padding: clamp(24px, 5vw, 46px);
}

.bt-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .52fr);
  gap: 14px;
  align-items: start;
}

.bt-form {
  display: grid;
  gap: 14px;
}

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

.bt-field {
  display: grid;
  gap: 7px;
}

.bt-field.full {
  grid-column: 1 / -1;
}

.bt-field label {
  color: var(--bt-muted);
  font-size: 13px;
  font-weight: 800;
}

.bt-field input,
.bt-field select,
.bt-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--bt-border);
  border-radius: 14px;
  background: rgba(5, 13, 28, .72);
  color: var(--bt-text);
  font: inherit;
  padding: 12px 13px;
}

.bt-field textarea {
  min-height: 150px;
  resize: vertical;
}

.bt-note {
  color: var(--bt-dim);
  font-size: 13px;
}

.bt-callout {
  border: 1px solid rgba(52, 211, 153, .2);
  border-radius: var(--bt-radius-lg);
  padding: clamp(20px, 4vw, 32px);
  background:
    radial-gradient(520px 240px at 0% 0%, rgba(52, 211, 153, .14), transparent 62%),
    linear-gradient(180deg, rgba(17, 29, 53, .95), rgba(10, 23, 40, .95));
}

.bt-footer {
  margin-top: clamp(42px, 7vw, 86px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(5, 12, 26, .62);
}

.bt-footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.8fr);
  gap: 28px;
  padding: clamp(28px, 5vw, 52px) 0;
}

.bt-footer p {
  color: var(--bt-muted);
}

.bt-footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bt-footer-links a {
  color: var(--bt-muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.bt-footer-links a:hover {
  color: var(--bt-text);
}

.bt-bottom {
  padding: 16px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: var(--bt-dim);
  font-size: 12px;
}

.bt-bottom a {
  color: var(--bt-muted);
}

.bt-hidden-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.bt-row-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, .035);
}

.bt-row-card h3 {
  margin-bottom: 3px;
}

.bt-row-card p {
  margin-bottom: 0;
  color: var(--bt-muted);
}

@media (max-width: 980px) {
  .bt-nav-links {
    display: none;
  }

  .bt-menu-toggle {
    display: inline-flex;
  }

  .bt-hero,
  .bt-split,
  .bt-footer-inner {
    grid-template-columns: 1fr;
  }

  .bt-hero-card {
    min-height: auto;
  }

  .bt-grid,
  .bt-grid.two,
  .bt-grid.four,
  .bt-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bt-section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .bt-shell {
    width: min(100% - 24px, var(--bt-max));
  }

  .bt-brand span span {
    display: none;
  }

  .bt-mobile-menu,
  .bt-grid,
  .bt-grid.two,
  .bt-grid.four,
  .bt-form-grid,
  .bt-footer-links,
  .bt-row-card {
    grid-template-columns: 1fr;
  }

  .bt-actions .bt-button,
  .bt-row-card .bt-button {
    width: 100%;
  }

  .bt-hero h1,
  .bt-page-hero h1,
  .bt-narrow-hero h1 {
    letter-spacing: -.05em;
  }

  .bt-hero-card,
  .bt-page-hero .bt-panel,
  .bt-narrow-hero .bt-panel,
  .bt-card,
  .bt-feature-card {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
