:root {
  color-scheme: dark;
  --background: #0e0e10;
  --surface: #151518;
  --panel: #1b1b1e;
  --text: #faf6f0;
  --muted: #bbb6b0;
  --accent: #ff9a57;
  --accent-hover: #ffb482;
  --line: #373438;
  --radius: 12px;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h2 {
  font-size: clamp(2.35rem, 5.2vw, 4.65rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.wrap {
  width: min(calc(100% - var(--gutter) * 2), var(--measure));
  margin-inline: auto;
}

.section {
  padding-block: clamp(60px, 8vw, 112px);
  scroll-margin-top: 80px;
}

.section-surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 740px;
  margin-bottom: clamp(28px, 4vw, 45px);
}

.section-heading > p:not(.eyebrow) {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 3;
  padding: 8px 16px;
  translate: 0 -170%;
  background: var(--accent);
  color: var(--background);
  border-radius: 6px;
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgb(14 14 16 / 95%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 38px);
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
}

.site-nav a,
.site-footer {
  color: var(--muted);
  font-size: 0.875rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  white-space: nowrap;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 740;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

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

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

.button-outline {
  border-color: #6a5a52;
  color: var(--text);
  background: rgb(14 14 16 / 47%);
}

.button-outline:hover {
  border-color: var(--accent);
  background: #291f1b;
}

.header-action {
  flex: none;
  min-height: 44px;
  padding-inline: 14px;
  font-size: 0.875rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #171112;
}

.hero-image,
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  left: auto;
  width: min(91%, 1800px);
  object-fit: cover;
  object-position: center 47%;
}

.hero::after {
  content: "";
  background:
    linear-gradient(0deg, #0e0e10 1%, rgb(14 14 16 / 16%) 37%, transparent 64%),
    linear-gradient(90deg, #111013 0%, rgb(17 16 19 / 96%) 12%, rgb(17 16 19 / 78%) 37%, rgb(17 16 19 / 12%) 73%);
}

.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(550px, 47vw, 705px);
  padding-block: 70px 95px;
}

.hero-copy {
  width: min(100%, 760px);
}

.hero h1 {
  font-size: clamp(3.25rem, 7.3vw, 6.85rem);
  font-weight: 800;
  letter-spacing: -0.058em;
  line-height: 0.98;
  word-spacing: 0.035em;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero-intro {
  max-width: 49ch;
  margin-top: 26px;
  color: #e0d9d3;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

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

.hero-credit {
  position: absolute;
  right: 0;
  bottom: 23px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e0d9d3;
  font-size: 0.875rem;
}

.hero-credit::before {
  width: 24px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.project-highlights {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.highlights-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.highlights-list li {
  display: grid;
  gap: 3px;
  padding: 20px clamp(14px, 3vw, 35px);
}

.highlights-list li:first-child {
  padding-left: 0;
}

.highlights-list li + li {
  border-left: 1px solid var(--line);
}

.highlights-list span {
  color: var(--muted);
  font-size: 0.875rem;
}

.service-grid,
.pricing-grid {
  display: grid;
  gap: 14px;
}

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

.service-card,
.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(21px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-card::before {
  width: 28px;
  height: 2px;
  margin-bottom: 6px;
  background: var(--accent);
  content: "";
}

.service-card p,
.price-card > p:last-child,
.case-copy > p:not(.eyebrow),
.operator-tools p,
.process-list p,
.demo-copy > p:not(.eyebrow),
.funding-copy p,
.faq-list p,
.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.service-card .text-link {
  margin-top: auto;
  padding-top: 6px;
}

.text-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgb(255 154 87 / 54%);
  text-underline-offset: 4px;
  font-weight: 680;
}

.text-link:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

.case-grid,
.demo-grid,
.split-section,
.contact-grid {
  display: grid;
  align-items: start;
  gap: clamp(28px, 5.5vw, 80px);
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
}

.case-grid,
.demo-grid {
  align-items: center;
}

.case-copy > p:not(.eyebrow),
.demo-copy > p:not(.eyebrow),
.contact-copy > p:not(.eyebrow) {
  margin-top: 20px;
  max-width: 52ch;
}

.case-media video,
.demo-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0909;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.case-facts {
  margin-block: 24px 16px;
}

.case-facts > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding-block: 9px;
  border-top: 1px solid var(--line);
}

.case-facts dt {
  color: var(--muted);
}

.case-facts dd {
  font-weight: 650;
}

.operator-tools {
  display: grid;
  grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1.38fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: clamp(36px, 6vw, 75px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

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

.price-card {
  gap: 10px;
}

.price-card-featured {
  border-color: #a76b46;
  background: linear-gradient(145deg, #291e19, var(--surface) 72%);
}

.price-card h3 {
  margin-bottom: 8px;
}

.price {
  color: var(--accent);
  font-size: clamp(1.6rem, 2.8vw, 2.45rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.price span,
.duration {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 710;
  letter-spacing: 0;
}

.duration {
  margin-bottom: 6px;
}

.section-action {
  margin-top: 26px;
}

.scope-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  gap: 20px;
  padding-block: 17px;
  border-bottom: 1px solid var(--line);
}

.scope-list > div:first-child {
  padding-top: 0;
}

.scope-list dt {
  font-weight: 720;
}

.scope-list dd {
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  position: relative;
  counter-increment: step;
  padding: 44px 12px 0 0;
  border-top: 1px solid #71523d;
}

.process-list li::before {
  position: absolute;
  top: 10px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 750;
  content: counter(step, decimal-leading-zero);
}

.process-list p {
  margin-top: 10px;
}

.demo-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

.funding-copy p + p {
  margin-top: 14px;
}

.funding-copy .text-link {
  margin-top: 18px;
}

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

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 17px;
  list-style: none;
  font-weight: 700;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  flex: none;
  width: 20px;
  color: var(--accent);
  content: "+";
  text-align: center;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary:hover {
  color: var(--accent);
}

.faq-list p {
  padding: 0 24px 17px 0;
}

.contact-section {
  background: radial-gradient(ellipse at 9% 12%, #30211b, transparent 52%), var(--background);
}

.contact-copy .text-link {
  margin-top: 20px;
}

.project-form {
  min-width: 0;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

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

.field label {
  font-size: 0.875rem;
  font-weight: 700;
}

.field label span {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #565159;
  border-radius: 5px;
  background: var(--background);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
}

.field select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, #d7d0c8 50%),
    linear-gradient(135deg, #d7d0c8 50%, transparent 50%);
  background-position: calc(100% - 17px) center, calc(100% - 12px) center;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  text-overflow: ellipsis;
}

.field textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 15px;
  align-items: center;
  margin-top: 18px;
}

.form-actions p {
  max-width: 35ch;
  color: var(--muted);
  font-size: 0.875rem;
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  min-height: 85px;
  padding-block: 12px;
}

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

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

  .operator-tools {
    grid-template-columns: 1fr 1fr;
  }

  .operator-tools h3 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 750px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 12px;
    padding-top: 8px;
  }

  .site-nav {
    order: 1;
    flex: 0 0 100%;
    gap: 4px clamp(8px, 2.8vw, 22px);
  }

  .section {
    scroll-margin-top: 110px;
  }

  .hero-image {
    width: 100%;
    object-position: 63% center;
  }

  .hero::after {
    background:
      linear-gradient(0deg, #0e0e10 0%, rgb(14 14 16 / 18%) 57%, transparent 100%),
      linear-gradient(90deg, rgb(17 16 19 / 91%), rgb(17 16 19 / 62%) 56%, rgb(17 16 19 / 20%) 100%);
  }

  .hero-inner {
    min-height: 550px;
  }

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

  .case-grid,
  .demo-grid,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split-section > .section-heading {
    margin-bottom: 0;
  }

  .demo-copy {
    grid-row: 1;
  }
}

@media (max-width: 440px) {
  .header-inner .brand img {
    width: 108px;
  }

  .header-action {
    padding-inline: 10px;
  }

  .site-nav {
    justify-content: space-between;
    gap: 0 5px;
  }

  .hero-inner {
    min-height: 535px;
    padding-block: 58px 75px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10.5vw, 3.25rem);
  }

  .highlights-list,
  .service-grid,
  .pricing-grid,
  .process-list,
  .operator-tools,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .highlights-list li,
  .highlights-list li:first-child {
    padding: 12px 0;
  }

  .highlights-list li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .operator-tools {
    gap: 14px;
  }

  .scope-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .process-list li {
    padding: 12px 0 0 36px;
  }
}

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

  .button {
    transition: none;
  }
}
