:root {
  --bg: #101315;
  --bg-elevated: #171b1f;
  --ink: #f4f1eb;
  --ink-muted: #b9c1bd;
  --paper: #f5f2ea;
  --paper-soft: #ebe6dc;
  --text: #1d2425;
  --text-muted: #52605d;
  --line: rgba(244, 241, 235, 0.16);
  --line-dark: rgba(29, 36, 37, 0.12);
  --cyan: #38c7d5;
  --green: #55c681;
  --amber: #d99f45;
  --red: #dc6b62;
  --max: 1180px;
  --header-height: 74px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--paper);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 6px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  background: rgba(16, 19, 21, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 720;
  font-size: 18px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 199, 213, 0.42);
  border-radius: 8px;
  background: rgba(56, 199, 213, 0.09);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
}

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

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  padding: 12px 13px;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.nav-links .nav-cta {
  color: var(--text);
  background: var(--paper);
  margin-left: 8px;
  font-weight: 650;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus {
  color: var(--text);
  background: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  width: 100%;
  min-height: calc(88svh - var(--header-height));
  margin: 0;
  padding: clamp(46px, 6vw, 78px) 0 clamp(38px, 5vw, 56px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(16, 19, 21, 0.98) 0%, rgba(16, 19, 21, 0.88) 34%, rgba(16, 19, 21, 0.5) 68%, rgba(16, 19, 21, 0.28) 100%),
    url("/assets/hero-console.png") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.93;
  letter-spacing: 0;
  max-width: 760px;
}

.hero-copy {
  margin-top: 26px;
  color: var(--ink-muted);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.5;
  max-width: 670px;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 720;
  font-size: 15px;
  line-height: 1.2;
}

.button-primary {
  color: #0e1313;
  background: var(--cyan);
}

.button-primary:hover,
.button-primary:focus {
  background: #58d7e3;
  outline: none;
}

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

.button-secondary:hover,
.button-secondary:focus {
  border-color: rgba(244, 241, 235, 0.32);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.hero-metrics {
  width: min(100%, 690px);
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-metrics div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-metrics dt {
  margin: 0 0 7px;
  color: var(--ink);
  font-weight: 760;
}

.hero-metrics dd {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.42;
}

.not-found {
  min-height: 100svh;
}

.section {
  padding: clamp(72px, 9vw, 118px) 0;
}

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

.section-light {
  background: var(--paper);
  color: var(--text);
}

.section-dark {
  background: #151a1b;
  color: var(--ink);
}

.section-muted {
  background: var(--paper-soft);
  color: var(--text);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading.compact {
  max-width: 880px;
  display: block;
  margin-bottom: 36px;
}

.section-heading h2,
.two-column h2,
.company-panel h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.section-heading p,
.two-column > div:first-child p,
.company-panel p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.62;
}

.section-dark .section-heading p,
.section-dark .two-column > div:first-child p {
  color: var(--ink-muted);
}

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

.feature-card {
  min-height: 266px;
  padding: 23px;
  background: #ffffff;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(56, 199, 213, 0.12);
  color: #0b8793;
}

.feature-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card:nth-child(2) .feature-icon {
  color: #347a55;
  background: rgba(85, 198, 129, 0.14);
}

.feature-card:nth-child(3) .feature-icon {
  color: #a36d13;
  background: rgba(217, 159, 69, 0.16);
}

.feature-card:nth-child(4) .feature-icon {
  color: #a73f38;
  background: rgba(220, 107, 98, 0.14);
}

.feature-card h3 {
  margin: 58px 0 12px;
  font-size: 20px;
  line-height: 1.16;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.model-list {
  border-top: 1px solid var(--line);
}

.model-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.model-item span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 820;
}

.model-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.model-item p {
  color: var(--ink-muted);
  line-height: 1.58;
  max-width: 640px;
}

.deployment-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #ffffff;
}

.deployment-strip div {
  min-height: 190px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.deployment-strip div + div {
  border-left: 1px solid var(--line-dark);
}

.deployment-strip strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.deployment-strip span {
  display: block;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.company-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.company-panel .button {
  white-space: nowrap;
}

.contact-hero {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(54px, 8vw, 104px) 0;
  background:
    linear-gradient(90deg, rgba(16, 19, 21, 0.98) 0%, rgba(16, 19, 21, 0.9) 48%, rgba(16, 19, 21, 0.58) 100%),
    url("/assets/hero-console.png") center right / cover no-repeat;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.74fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: start;
}

.contact-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 6.8vw, 78px);
  line-height: 0.96;
}

.contact-copy p {
  margin-top: 26px;
  max-width: 680px;
  color: var(--ink-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.56;
}

.contact-notes {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-notes div {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.contact-notes strong,
.contact-notes span {
  display: block;
}

.contact-notes strong {
  margin-bottom: 12px;
  font-size: 17px;
}

.contact-notes span {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.48;
}

.contact-form {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 242, 234, 0.97);
  color: var(--text);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row label {
  color: #35403f;
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(29, 36, 37, 0.22);
  border-radius: 8px;
  padding: 12px 13px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.form-row textarea {
  min-height: 156px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #0b8793;
  outline: 3px solid rgba(56, 199, 213, 0.22);
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.66;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-status-ok {
  color: #1f6f49;
}

.form-status-error {
  color: #a73f38;
}

.site-footer {
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

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

.footer-inner p,
.footer-inner a:not(.brand) {
  color: var(--ink-muted);
  font-size: 14px;
}

.footer-inner a:not(.brand) {
  text-decoration: none;
}

.footer-inner a:not(.brand):hover,
.footer-inner a:not(.brand):focus {
  color: var(--ink);
}

@media (max-width: 1040px) {
  .hero {
    min-height: calc(84svh - var(--header-height));
    background:
      linear-gradient(90deg, rgba(16, 19, 21, 0.98) 0%, rgba(16, 19, 21, 0.9) 54%, rgba(16, 19, 21, 0.56) 100%),
      url("/assets/hero-console.png") center right / cover no-repeat;
  }

  .hero-content {
    padding-left: 0;
  }

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

  .section-heading,
  .two-column,
  .contact-layout,
  .company-panel {
    grid-template-columns: 1fr;
  }

  .company-panel .button {
    width: max-content;
  }
}

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

  .nav {
    width: min(100% - 24px, var(--max));
  }

  .nav-toggle {
    display: inline-grid;
    align-content: center;
    gap: 5px;
  }

  .nav-links {
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(var(--header-height) + 10px);
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    background: #171b1f;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.45);
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a,
  .nav-links .nav-cta {
    margin: 0;
    padding: 14px;
  }

  .hero {
    padding-top: 44px;
    min-height: calc(78svh - var(--header-height));
    background:
      linear-gradient(180deg, rgba(16, 19, 21, 0.98) 0%, rgba(16, 19, 21, 0.9) 55%, rgba(16, 19, 21, 0.62) 100%),
      url("/assets/hero-console.png") center / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .hero-metrics {
    display: none;
  }

  .contact-hero {
    padding-top: 44px;
    background:
      linear-gradient(180deg, rgba(16, 19, 21, 0.98) 0%, rgba(16, 19, 21, 0.9) 60%, rgba(16, 19, 21, 0.72) 100%),
      url("/assets/hero-console.png") center / cover no-repeat;
  }

  .contact-notes {
    display: none;
  }

  .contact-copy h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .contact-copy p {
    margin-top: 22px;
    font-size: 17px;
  }

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

  .deployment-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

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

  .feature-card h3 {
    margin-top: 38px;
  }

  .footer-inner {
    min-height: 0;
    padding: 30px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    flex-direction: column;
  }

  .button,
  .company-panel .button {
    width: 100%;
  }

  .model-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

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