:root {
  color-scheme: dark;
  --ink: #f8f7ff;
  --muted: #bdb2d2;
  --soft: #eee8fb;
  --line: rgba(255, 255, 255, 0.13);
  --paper: #0c0714;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.095);
  --purple: #781b9d;
  --purple-bright: #b744d8;
  --orange: #f0643f;
  --blue: #0073ff;
  --cyan: #21b7ff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #0c0714 0%, #12081d 42%, #0d0b16 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(12, 7, 20, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 178px;
  min-width: 148px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-action {
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 122px clamp(22px, 6vw, 78px) 100px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 68, 216, 0.8), rgba(0, 115, 255, 0.7), transparent);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  opacity: 0.42;
  z-index: -3;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 7, 20, 0.98) 0%, rgba(12, 7, 20, 0.9) 43%, rgba(12, 7, 20, 0.36) 78%),
    linear-gradient(180deg, rgba(12, 7, 20, 0.44), rgba(12, 7, 20, 1));
}

.hero-content {
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 110px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 21px;
  line-height: 1.16;
}

.hero-copy {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 720;
}

.hero-subcopy {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 19px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 820;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--purple) 58%, var(--blue));
  box-shadow: 0 18px 46px rgba(120, 27, 157, 0.36);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
}

.section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro-section,
.outcome-section,
.split-section,
.infra-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
}

.section-heading.compact {
  max-width: 780px;
  margin-bottom: 36px;
}

.intro-copy,
.outcome-copy,
.plain-panel,
.infra-section p,
.contact-section p {
  color: var(--muted);
  font-size: 19px;
}

.intro-copy p,
.outcome-copy p,
.plain-panel p,
.contact-section p {
  margin: 0 0 18px;
}

.workflow-section {
  width: min(1220px, calc(100% - 44px));
}

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

.feature-card {
  min-height: 252px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.wide-card {
  grid-column: span 2;
  min-height: 190px;
}

.feature-icon {
  display: inline-flex;
  min-width: 46px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(240, 100, 63, 0.9), rgba(120, 27, 157, 0.9));
  border-radius: 8px;
  font-weight: 860;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.outcome-section,
.infra-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.automation-panel {
  min-height: 340px;
  padding: clamp(28px, 4vw, 46px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.automation-panel p {
  color: var(--muted);
  font-size: 19px;
}

.dark-panel {
  background:
    linear-gradient(145deg, rgba(120, 27, 157, 0.32), rgba(0, 115, 255, 0.18)),
    rgba(255, 255, 255, 0.04);
}

.plain-panel {
  align-self: stretch;
}

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

.metric-list div {
  display: grid;
  gap: 4px;
  padding: 20px 0 20px 24px;
  border-left: 4px solid var(--orange);
}

.metric-list div:nth-child(2) {
  border-left-color: var(--purple-bright);
}

.metric-list div:nth-child(3) {
  border-left-color: var(--blue);
}

.metric-list strong {
  font-size: 20px;
}

.metric-list span {
  color: var(--muted);
  font-size: 17px;
}

.infra-section p {
  margin: 0;
}

.contact-section {
  align-items: center;
  margin-bottom: 34px;
  padding: 54px clamp(22px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(240, 100, 63, 0.2), rgba(120, 27, 157, 0.36), rgba(0, 115, 255, 0.22)),
    rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-section .eyebrow,
.contact-section p {
  color: var(--soft);
}

.contact-section .button.primary {
  color: #fff;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(22px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 66px;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 22px 18px;
    background: rgba(12, 7, 20, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 14px 0;
  }

  .hero {
    min-height: 90vh;
    padding-top: 104px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(12, 7, 20, 0.98) 0%, rgba(12, 7, 20, 0.9) 62%, rgba(12, 7, 20, 0.54) 100%),
      linear-gradient(180deg, rgba(12, 7, 20, 0.5), rgba(12, 7, 20, 1));
  }

  .intro-section,
  .outcome-section,
  .split-section,
  .infra-section,
  .contact-section,
  .automation-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand {
    width: 140px;
    min-width: 126px;
  }

  .hero {
    min-height: 88vh;
    padding: 96px 22px 78px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 64px);
  }

  .section {
    width: calc(100% - 32px);
    padding: 66px 0;
  }

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

  .wide-card {
    grid-column: span 1;
  }

  .feature-card {
    min-height: 210px;
  }

  .button {
    width: 100%;
  }

  .contact-section {
    width: calc(100% - 32px);
    padding: 36px 20px;
  }
}
