:root {
  --bg: #0b0c0e;
  --surface: #131518;
  --surface-light: #191c20;
  --text: #f4f1eb;
  --muted: #a5a5a1;
  --faint: #6e7073;
  --line: rgba(244, 241, 235, 0.12);
  --line-strong: rgba(244, 241, 235, 0.22);
  --accent: #ff6a2a;
  --accent-hover: #ff7d46;
  --max-width: 1200px;
  --radius: 3px;
  --header-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

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

.section {
  position: relative;
  padding-block: 140px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  background: rgba(11, 12, 14, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(11, 12, 14, 0.94);
  border-color: var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.wordmark {
  font-size: 22px;
  font-weight: 690;
  letter-spacing: -0.04em;
}

.wordmark span {
  color: var(--accent);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #ccccc8;
  font-size: 14px;
}

.primary-nav > a:not(.button) {
  transition: color 160ms ease;
}

.primary-nav > a:not(.button):hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 54px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.button-small {
  min-height: 42px;
  padding: 11px 17px;
  font-size: 13px;
}

.button-primary {
  background: var(--accent);
  color: #121212;
}

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

.button-dark {
  background: var(--bg);
  color: var(--text);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.eyebrow-dark {
  color: rgba(11, 12, 14, 0.68);
}

.eyebrow-dark > span {
  background: var(--bg);
}

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

h1,
h2 {
  margin-bottom: 0;
  font-weight: 580;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

h1 {
  max-width: 820px;
  font-size: clamp(58px, 7.4vw, 108px);
}

h2 {
  font-size: clamp(46px, 6vw, 82px);
}

h1 em,
h2 em {
  color: var(--accent);
  font-style: normal;
}

.hero {
  display: flex;
  align-items: center;
  min-height: max(760px, 100svh);
  padding-top: calc(var(--header-height) + 84px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 5%, transparent 78%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 4%;
  right: -14%;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 106, 42, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 100px rgba(255, 106, 42, 0.025),
    0 0 0 220px rgba(255, 106, 42, 0.018);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr);
  align-items: end;
  gap: 70px;
}

.hero-copy,
.hero-system {
  position: relative;
}

.hero-lead {
  max-width: 720px;
  margin: 42px 0 0;
  color: #b8b8b4;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 42px;
}

.text-link,
.inline-link {
  padding-block: 8px;
  border-bottom: 1px solid var(--line-strong);
  color: #d7d6d1;
  font-size: 14px;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link:hover,
.inline-link:hover {
  border-color: var(--accent);
  color: var(--text);
}

.hero-system {
  padding: 22px;
  background: rgba(19, 21, 24, 0.85);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.3);
}

.system-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.system-status i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.system-flow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-flow li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.flow-number {
  color: var(--faint);
  font-size: 10px;
}

.system-flow strong,
.system-flow small {
  display: block;
}

.system-flow strong {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.system-flow small {
  color: var(--faint);
  font-size: 11px;
}

.flow-state {
  padding: 5px 7px;
  background: rgba(244, 241, 235, 0.05);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.flow-state-accent {
  background: rgba(255, 106, 42, 0.12);
  color: #ff9a70;
}

.system-note {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

.solutions {
  border-top: 1px solid var(--line);
  background: #0e0f11;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 88px;
}

.split-heading > p,
.section-lead {
  max-width: 540px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.solution-item {
  border-top: 1px solid var(--line);
}

.solution-item:last-child {
  border-bottom: 1px solid var(--line);
}

.solution-item summary {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 20px;
  min-height: 100px;
  cursor: pointer;
  list-style: none;
}

.solution-item summary::-webkit-details-marker {
  display: none;
}

.solution-marker {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px transparent;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.solution-title {
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 540;
  letter-spacing: -0.035em;
}

.accordion-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.solution-item[open] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.solution-item[open] .solution-marker {
  box-shadow: 0 0 0 4px rgba(255, 106, 42, 0.16);
  transform: scale(1.1);
}

.solution-item[open] .accordion-icon::before,
.solution-item[open] .accordion-icon::after {
  background: var(--accent);
}

.solution-body {
  max-width: 780px;
  padding: 0 30px 42px 74px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.solution-body p {
  margin-bottom: 0;
}

.solution-body .inline-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--text);
}

.value {
  overflow: hidden;
}

.value h2 {
  max-width: 1050px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 100px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.value-grid li {
  min-height: 250px;
  padding: 30px 26px 0 0;
  border-right: 1px solid var(--line);
}

.value-grid li:not(:first-child) {
  padding-left: 26px;
}

.value-grid li:last-child {
  border-right: 0;
}

.value-grid span,
.value-grid strong {
  display: block;
}

.value-grid .value-marker {
  width: 6px;
  height: 6px;
  margin-bottom: 64px;
  background: var(--accent);
  border-radius: 50%;
}

.value-grid strong {
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 590;
}

.value-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.custom-solution {
  padding-block: 0;
}

.custom-card {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: end;
  gap: 80px;
  padding: 74px;
  background: var(--accent);
  color: var(--bg);
}

.custom-card h2 {
  font-size: clamp(42px, 5.5vw, 72px);
}

.custom-copy p {
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 1.62;
}

.demo-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 40px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.demo-placeholder::before,
.demo-placeholder::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 106, 42, 0.12);
  border-radius: 50%;
}

.demo-placeholder::before {
  width: 430px;
  height: 430px;
}

.demo-placeholder::after {
  width: 280px;
  height: 280px;
}

.demo-placeholder small {
  position: relative;
  z-index: 1;
}

.demo-placeholder small {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact {
  background: #0e0f11;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}

.contact-intro {
  position: sticky;
  top: 130px;
  align-self: start;
}

.contact-intro h2 {
  font-size: clamp(44px, 5.5vw, 72px);
}

.contact-intro > p:last-child {
  max-width: 480px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.contact-email {
  display: inline-block;
  margin-top: 24px;
  color: var(--text);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 106, 42, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.contact-form {
  padding: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #d4d2cc;
  font-size: 12px;
  font-weight: 600;
}

.field label span {
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #0f1113;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input {
  height: 52px;
  padding: 0 15px;
}

.field textarea {
  min-height: 168px;
  padding: 15px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(244, 241, 235, 0.34);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 42, 0.12);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #e76c6c;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 8px;
}

.form-footer p {
  max-width: 310px;
  margin: 0;
  color: var(--faint);
  font-size: 11px;
}

.form-footer p a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  min-height: 0;
  margin: 0;
  color: #ddddd8;
  font-size: 13px;
}

.form-status:not(:empty) {
  margin-top: 22px;
  padding: 14px;
  background: rgba(255, 106, 42, 0.08);
  border-left: 2px solid var(--accent);
}

.site-footer {
  padding-block: 70px 30px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 70px;
}

.footer-main p {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.footer-main nav {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 13px;
}

.footer-main nav a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 980px) {
  .section {
    padding-block: 110px;
  }

  .hero {
    min-height: auto;
    padding-top: 170px;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 70px;
  }

  .hero-system {
    max-width: 620px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .value-grid li:nth-child(2) {
    border-right: 0;
  }

  .value-grid li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .value-grid li:nth-child(3) {
    padding-left: 0;
  }

  .custom-card {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact-grid {
    gap: 64px;
  }

  .contact-intro {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

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

  .section {
    padding-block: 88px;
  }

  .site-header {
    height: var(--header-height);
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px 16px 28px;
    background: rgba(11, 12, 14, 0.98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav > a:not(.button) {
    padding: 17px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .primary-nav .button {
    margin-top: 20px;
  }

  .hero {
    padding-top: 138px;
  }

  .hero-glow {
    top: 2%;
    right: -360px;
  }

  h1 {
    font-size: clamp(52px, 15.5vw, 72px);
  }

  h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-lead {
    margin-top: 30px;
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    margin-top: 32px;
  }

  .hero-actions .text-link {
    align-self: flex-start;
  }

  .hero-system {
    padding: 18px;
  }

  .system-flow li {
    grid-template-columns: 24px 1fr;
  }

  .flow-state {
    display: none;
  }

  .split-heading {
    margin-bottom: 58px;
  }

  .split-heading > p,
  .section-lead {
    font-size: 16px;
  }

  .solution-item summary {
    grid-template-columns: 28px 1fr 22px;
    gap: 12px;
    min-height: 88px;
  }

  .solution-tag {
    display: none;
  }

  .solution-title {
    font-size: 20px;
  }

  .solution-body {
    padding: 0 8px 34px 40px;
    font-size: 15px;
  }

  .value-grid {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }

  .value-grid li,
  .value-grid li:not(:first-child),
  .value-grid li:nth-child(3) {
    min-height: auto;
    padding: 26px 0 32px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .value-grid li:first-child {
    border-top: 0;
  }

  .value-grid .value-marker {
    margin-bottom: 30px;
  }

  .custom-solution {
    padding-block: 0;
  }

  .custom-card {
    width: 100%;
    padding: 58px 24px;
  }

  .custom-copy p {
    font-size: 16px;
  }

  .demo-placeholder {
    min-height: 0;
  }

  .contact-form {
    padding: 26px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-main {
    gap: 50px;
  }

  .footer-main nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
