:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-deep: #08111f;
  --surface: #1e293b;
  --surface-2: #111c2f;
  --surface-3: #162238;
  --line: rgba(148, 163, 184, 0.2);
  --line-strong: rgba(248, 250, 252, 0.16);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --orange: #f97316;
  --orange-2: #fb923c;
  --green: #22c55e;
  --blue: #38bdf8;
  --red: #f43f5e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg-deep) 48%, var(--bg));
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 31, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand strong {
  font-size: 20px;
  line-height: 1;
}

.brand strong span {
  color: var(--orange);
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.main-nav a,
.products-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: inherit;
}

.main-nav a:hover,
.products-menu:hover .products-trigger,
.products-menu:focus-within .products-trigger {
  color: var(--text);
}

.products-menu {
  position: relative;
}

.products-trigger {
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: default;
}

.products-trigger span {
  color: var(--orange);
}

.products-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 260px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  padding: 8px;
  transition: 160ms ease;
}

.products-menu:hover .products-dropdown,
.products-menu:focus-within .products-dropdown {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.products-dropdown a {
  display: grid;
  min-height: auto;
  padding: 12px;
  border-radius: 6px;
  color: var(--muted);
  gap: 3px;
}

.products-dropdown a:hover {
  background: var(--surface);
  color: var(--text);
}

.products-dropdown small {
  color: var(--soft);
  font-weight: 650;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  transition: 160ms ease;
}

.btn-primary {
  background: var(--orange);
  color: #111827;
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.22);
}

.btn-primary:hover {
  background: var(--orange-2);
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: rgba(248, 250, 252, 0.04);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(249, 115, 22, 0.5);
  color: var(--orange-2);
}

.btn-outline {
  border-color: rgba(249, 115, 22, 0.7);
  color: var(--orange-2);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(249, 115, 22, 0.1);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(64px, 8vw, 110px) 0 clamp(48px, 6vw, 76px);
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-tight {
  padding: clamp(44px, 6vw, 72px) 0;
}

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

.hero-grid,
.split,
.diagnostic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split {
  align-items: start;
}

.eyebrow {
  color: var(--orange-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 940px;
  margin-top: 14px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.99;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-top: 12px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 790px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.microcopy {
  max-width: 680px;
  margin-top: 14px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

.signal-panel,
.metric-panel,
.form-card,
.demo-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--surface-2);
  box-shadow: var(--shadow);
}

.signal-panel {
  padding: 24px;
}

.panel-label {
  color: var(--orange-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pain-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

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

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

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

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.3em;
  color: var(--green);
  font-weight: 900;
  content: "✓";
}

.dark-band,
.orange-band,
.surface-band {
  border-block: 1px solid var(--line);
}

.dark-band {
  background: rgba(8, 17, 31, 0.7);
}

.surface-band {
  background: rgba(30, 41, 59, 0.52);
}

.orange-band {
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(56, 189, 248, 0.06)),
    rgba(8, 17, 31, 0.85);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.grid-2,
.grid-3,
.grid-4,
.product-grid,
.module-grid,
.steps-grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

.card,
.product-card,
.step-card,
.sector-card,
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.58);
  padding: 22px;
}

.product-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  border-top: 4px solid var(--orange);
}

.product-card p,
.card p,
.step-card p,
.sector-card p,
.case-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.58;
}

.card a,
.product-card a,
.case-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 20px;
  color: var(--orange-2);
  font-weight: 850;
}

.tag {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--orange-2);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 14px;
}

.step-card span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.14);
  color: var(--orange-2);
  font-weight: 900;
  margin-bottom: 16px;
}

.negative-card {
  border-color: rgba(244, 63, 94, 0.28);
  background: rgba(244, 63, 94, 0.07);
}

.positive-card {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(34, 197, 94, 0.06);
}

.product-hero-name {
  color: var(--orange-2);
}

.diagnostic-section {
  border-top: 1px solid var(--line);
  background: rgba(8, 17, 31, 0.86);
}

.form-card {
  padding: 24px;
}

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

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

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

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

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

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.94);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(249, 115, 22, 0.75);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.form-note {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.footer {
  border-top: 1px solid var(--line);
  background: #08111f;
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) repeat(3, minmax(160px, 0.6fr));
  gap: 28px;
}

.footer p,
.footer a {
  color: var(--muted);
  line-height: 1.55;
}

.footer h3 {
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--soft);
  font-size: 13px;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.breadcrumb {
  color: var(--soft);
  font-size: 14px;
  margin-bottom: 22px;
}

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

.breadcrumb a:hover {
  color: var(--orange-2);
}

.demo-panel {
  padding: 24px;
}

.metric-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.metric-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--muted);
}

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

.page-hero {
  padding: clamp(62px, 8vw, 96px) 0 clamp(44px, 6vw, 72px);
}

.anchor-offset {
  scroll-margin-top: 96px;
}

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

.post-card {
  min-height: 300px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.article-wrap {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) 0;
}

.article-content {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.article-content > * + * {
  margin-top: 20px;
}

.article-content h2,
.article-content h3 {
  color: var(--text);
  margin-top: 38px;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 10px;
  padding-left: 0;
}

.article-content li {
  position: relative;
  padding-left: 24px;
}

.article-content li::before {
  position: absolute;
  left: 0;
  color: var(--orange-2);
  font-weight: 900;
  content: "•";
}

.article-cta {
  margin-top: 38px;
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: var(--radius);
  background: rgba(249, 115, 22, 0.08);
  padding: 24px;
}

@media (max-width: 1120px) {
  .grid-3,
  .product-grid,
  .module-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .main-nav {
    gap: 12px;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    max-height: calc(100vh - 76px);
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 17, 31, 0.98);
    padding: 14px 16px 18px;
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .main-nav a,
  .products-trigger {
    min-height: 46px;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }

  .products-dropdown {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 8px 10px;
  }

  .products-menu:hover .products-dropdown,
  .products-menu:focus-within .products-dropdown {
    transform: none;
  }

  .header-actions .btn-outline {
    display: none;
  }

  .hero-grid,
  .split,
  .diagnostic-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 680px) {
  .header-inner {
    min-height: 68px;
  }

  .main-nav {
    inset: 68px 0 auto 0;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  h1 {
    font-size: 42px;
  }

  .grid-3,
  .grid-4,
  .product-grid,
  .module-grid,
  .blog-grid,
  .steps-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .section-tight,
  .page-hero {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .section-actions .btn,
  .diagnostic-form .btn {
    width: 100%;
  }
}
