:root {
  --bg: #090d12;
  --bg-soft: #0f151d;
  --panel: #141b24;
  --panel-strong: #1b2531;
  --text: #f5f7fa;
  --muted: #9aa7b6;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #4dd4ac;
  --accent-strong: #78f0c5;
  --amber: #f7b955;
  --red: #ff6f61;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 10%, rgba(77, 212, 172, 0.14), transparent 28rem),
    linear-gradient(180deg, #090d12 0%, #0c1117 48%, #f6f7f5 48%, #f6f7f5 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

.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;
}

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 13, 18, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(77, 212, 172, 0.42);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(77, 212, 172, 0.22), rgba(255, 255, 255, 0.04));
  color: var(--accent-strong);
  font-size: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

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

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.language-switcher button {
  min-width: 34px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--accent);
  color: #06110d;
}

.language-switcher button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 86px 0 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  color: #101820;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 30px;
  color: #c5ccd6;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

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

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

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #cbd3dd;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
}

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

.visual-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.visual-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.visual-topbar span:nth-child(2) {
  background: var(--amber);
}

.visual-topbar span:nth-child(3) {
  background: var(--accent);
}

.visual-topbar strong {
  margin-left: auto;
  color: #c9d2dd;
  font-size: 12px;
}

.system-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
}

.system-card {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.system-card.active {
  border-color: rgba(77, 212, 172, 0.48);
  background: rgba(77, 212, 172, 0.12);
}

.system-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.system-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 34px;
  line-height: 1;
}

.system-card span {
  color: #b7c0cb;
  font-size: 12px;
}

.pipeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 2px 18px 18px;
}

.pipeline-step {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #d8dee7;
  font-size: 12px;
  font-weight: 800;
}

.pipeline-step.complete {
  border-color: rgba(77, 212, 172, 0.36);
}

.pipeline-step.live {
  background: var(--accent);
  color: #06110d;
}

.pipeline-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 212, 172, 0.2), rgba(77, 212, 172, 0.86));
}

.console-window {
  position: relative;
  z-index: 1;
  margin: 0 18px 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(3, 7, 10, 0.72);
  color: #dce4ee;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.console-window p {
  margin: 0;
}

.console-window p + p {
  margin-top: 7px;
}

.console-window span {
  color: var(--accent-strong);
}

.console-window em {
  font-style: normal;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 92px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 24, 32, 0.12);
  color: #101820;
}

.proof-band div {
  min-height: 138px;
  padding: 22px;
  background: #fff;
}

.proof-band strong {
  display: block;
  margin-bottom: 18px;
  color: #1f7762;
  font-size: 13px;
}

.proof-band span {
  display: block;
  max-width: 270px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.split-section,
.systems-section,
.process-section,
.contact-section {
  padding: 92px 0;
  color: #101820;
}

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

.split-section .section-heading h2 {
  color: var(--text);
}

.split-section .section-heading .eyebrow {
  color: var(--accent-strong);
}

.section-heading .eyebrow,
.systems-copy .eyebrow,
.contact-copy .eyebrow {
  color: #1f7762;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card,
.process-step,
.stack-panel,
.contact-form {
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 44px rgba(16, 24, 32, 0.07);
}

.service-card {
  min-height: 288px;
  padding: 22px;
}

.service-index,
.process-step span {
  display: inline-flex;
  margin-bottom: 48px;
  color: #1f7762;
  font-size: 13px;
  font-weight: 900;
}

.service-card p,
.process-step p,
.systems-copy p,
.contact-copy p {
  color: #51606f;
}

.systems-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: 56px;
  align-items: center;
}

.systems-copy {
  max-width: 620px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #26313d;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 14px;
  height: 8px;
  border-bottom: 2px solid #1f7762;
  border-left: 2px solid #1f7762;
  transform: rotate(-45deg);
}

.stack-panel {
  overflow: hidden;
}

.stack-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 24px;
}

.stack-row + .stack-row {
  border-top: 1px solid rgba(16, 24, 32, 0.1);
}

.stack-row span {
  color: #1f7762;
  font-size: 13px;
  font-weight: 800;
}

.stack-row strong {
  color: #101820;
  font-size: 19px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.process-step {
  min-height: 260px;
  padding: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.92fr);
  gap: 52px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 110px;
}

.email-link {
  display: inline-flex;
  margin-top: 12px;
  color: #1f7762;
  font-weight: 900;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 24px;
}

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

.field-group.full,
.form-button,
.form-status {
  grid-column: 1 / -1;
}

label {
  color: #26313d;
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(16, 24, 32, 0.16);
  border-radius: 7px;
  background: #f8faf9;
  color: #101820;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(31, 119, 98, 0.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(77, 212, 172, 0.18);
}

.field-group.error input,
.field-group.error textarea {
  border-color: #c33a2c;
}

.field-group small {
  min-height: 18px;
  color: #a32d22;
  font-size: 12px;
  font-weight: 700;
}

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

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

.form-status.success {
  color: #1f7762;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 42px;
  color: #51606f;
}

.site-footer .brand {
  color: #101820;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  body {
    background:
      radial-gradient(circle at 78% 8%, rgba(77, 212, 172, 0.13), transparent 23rem),
      linear-gradient(180deg, #090d12 0%, #0c1117 42%, #f6f7f5 42%, #f6f7f5 100%);
  }

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

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

  .hero-visual {
    max-width: 560px;
  }

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

  .proof-band {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 700px) {
  .section-shell,
  .site-header {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    margin-top: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .language-switcher button {
    min-width: 30px;
    height: 28px;
    font-size: 11px;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 4px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(9, 13, 18, 0.96);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 12px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

  h2 {
    font-size: clamp(30px, 11vw, 44px);
  }

  .hero {
    gap: 34px;
    padding: 58px 0 54px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .signal-row span {
    width: 100%;
  }

  .system-grid,
  .service-grid,
  .process-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

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

  .pipeline-line {
    width: 1px;
    height: 22px;
    margin-left: 18px;
  }

  .split-section,
  .systems-section,
  .process-section,
  .contact-section {
    padding: 70px 0;
  }

  .service-card,
  .process-step {
    min-height: auto;
  }

  .service-index,
  .process-step span {
    margin-bottom: 28px;
  }

  .stack-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer p {
    text-align: left;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
