:root {
  --bg: #080d17;
  --surface: #101827;
  --surface-2: #151f32;
  --text: #f7f9fc;
  --muted: #aeb9c8;
  --border: rgba(255, 255, 255, 0.12);
  --brand: #ff6600;
  --brand-2: #2563eb;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --container: 1180px;
}

html[data-theme="light"] {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #111827;
  --muted: #566276;
  --border: rgba(17, 24, 39, 0.12);
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 13, 23, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.86);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.site-logo {
  height: 52px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.2rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--surface-2);
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
}

.theme-toggle {
  width: 42px;
  height: 42px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
}

.hero {
  padding: 92px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 720px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--border);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
}

.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 28px;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.06), transparent);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  padding: 24px;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.page-hero {
  padding: 76px 0 38px;
}

.content-block {
  max-width: 900px;
}

.list {
  padding-left: 20px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 26px;
  background: var(--surface);
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
  color: var(--muted);
}

.footer-grid ul {
  padding-left: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 20px;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 68px;
  }

  .site-logo {
    height: 46px;
  }

  .brand-text small {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    border-radius: 12px;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 62px;
  }
}