:root {
  color-scheme: light;
  --ink: #122025;
  --muted: #5d6b70;
  --paper: #f7f9fb;
  --surface: #ffffff;
  --line: #dbe4e7;
  --teal: #0ca6a6;
  --blue: #1677e6;
  --coral: #ff6b4a;
  --amber: #d69b2d;
  --deep: #0d171b;
  --deep-2: #18272d;
  --shadow: 0 18px 48px rgba(18, 32, 37, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

body::selection {
  color: #fff;
  background: var(--teal);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px 32px;
  border-bottom: 1px solid rgba(219, 228, 231, 0.82);
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a,
.language-switch button,
.button {
  min-height: 40px;
  border-radius: 8px;
  font: inherit;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #344348;
  font-size: 0.93rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--deep);
  background: #eaf1f3;
  outline: none;
}

.language-switch {
  display: grid;
  grid-template-columns: repeat(2, 44px);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-switch button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.language-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--deep);
}

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  color: #fff;
  background: var(--deep);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  content: "";
  background: linear-gradient(to top, rgba(13, 23, 27, 0.95), rgba(13, 23, 27, 0));
  pointer-events: none;
}

#signal-canvas,
.hero-watermark {
  position: absolute;
  inset: 0;
}

#signal-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.68;
}

.hero-watermark {
  top: 9%;
  right: -8%;
  left: auto;
  width: 54vw;
  max-width: 720px;
  min-width: 420px;
  height: auto;
  opacity: 0.1;
  clip-path: circle(48% at 50% 50%);
  mix-blend-mode: screen;
  filter: saturate(1.1);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 84px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #76e2da;
}

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

h1,
h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: 5.4rem;
}

h2 {
  max-width: 760px;
  font-size: 2.45rem;
}

.hero-title {
  max-width: 660px;
  margin: 18px 0 0;
  color: #e6f9fb;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.18;
}

.hero-copy {
  max-width: 690px;
  margin: 22px 0 0;
  color: #c6d5d9;
  font-size: 1.1rem;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 760;
}

.button svg,
.contact-list svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  flex: 0 0 auto;
}

.button-primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 14px 26px rgba(12, 166, 166, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #0b8f92;
  outline: none;
}

.button-secondary {
  color: #e5f2f3;
  border-color: rgba(229, 242, 243, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(229, 242, 243, 0.44);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 42px 0 0;
  list-style: none;
}

.keyword-list li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #f4fbfc;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

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

.services-section {
  padding-top: 64px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

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

.service-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 316px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(18, 32, 37, 0.07);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--deep);
}

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

.service-card:nth-child(2) .service-icon {
  background: var(--teal);
}

.service-card:nth-child(3) .service-icon {
  background: var(--blue);
}

.service-card:nth-child(4) .service-icon {
  background: var(--coral);
}

.service-card h3 {
  min-height: 58px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.service-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 44px;
  align-items: center;
}

.about-copy p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.78;
}

.ops-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f4fbfc;
  background: var(--deep-2);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.panel-header span:nth-child(2) {
  background: var(--amber);
}

.panel-header span:nth-child(3) {
  background: var(--coral);
}

.panel-line {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-line strong {
  color: #86e1dd;
  font-size: 0.88rem;
}

.panel-line span {
  max-width: 56%;
  text-align: right;
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: end;
  height: 92px;
  margin-top: 22px;
}

.signal-bars span {
  display: block;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--teal), var(--blue));
}

.signal-bars span:nth-child(1) { height: 42%; }
.signal-bars span:nth-child(2) { height: 68%; }
.signal-bars span:nth-child(3) { height: 54%; }
.signal-bars span:nth-child(4) { height: 82%; }
.signal-bars span:nth-child(5) { height: 64%; }
.signal-bars span:nth-child(6) { height: 92%; background: linear-gradient(180deg, var(--coral), var(--amber)); }

.stack-section {
  width: 100%;
  padding-right: max(24px, calc((100vw - 1160px) / 2));
  padding-left: max(24px, calc((100vw - 1160px) / 2));
  background: #edf4f3;
}

.stack-table {
  overflow: hidden;
  border: 1px solid #cfdcdf;
  border-radius: 8px;
  background: #fff;
}

.stack-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  border-bottom: 1px solid var(--line);
}

.stack-row:last-child {
  border-bottom: 0;
}

.stack-category,
.stack-tools {
  padding: 20px 22px;
}

.stack-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  background: #f8fbfb;
}

.stack-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  flex: 0 0 auto;
}

.stack-row:nth-child(2n) .stack-dot {
  background: var(--blue);
}

.stack-row:nth-child(3n) .stack-dot {
  background: var(--coral);
}

.stack-tools {
  color: var(--muted);
  line-height: 1.6;
}

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

.contact-section p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  font-style: normal;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  border-color: var(--teal);
  outline: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

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

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
    padding: 10px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .language-switch {
    grid-template-columns: repeat(2, 40px);
  }

  .hero {
    min-height: 78vh;
  }

  .hero-watermark {
    top: 20%;
    right: -34%;
    min-width: 380px;
    opacity: 0.1;
  }

  .hero-inner {
    width: calc(100% - 32px);
    max-width: 1160px;
    padding: 98px 0 58px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .hero-title {
    font-size: 1.42rem;
    width: 22rem;
    max-width: 100%;
  }

  .hero-copy,
  .about-copy p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-copy {
    width: 22rem;
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    width: 22rem;
    max-width: 100%;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: flex-start;
  }

  .button span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .keyword-list {
    width: 22rem;
    max-width: 100%;
  }

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

  .section-heading {
    display: block;
  }

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

  .service-card {
    min-height: 0;
  }

  .service-card h3 {
    min-height: 0;
  }

  .stack-section {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .stack-tools {
    padding-top: 0;
  }

  .panel-line {
    display: grid;
    gap: 8px;
  }

  .panel-line span {
    max-width: none;
    text-align: left;
  }

  .site-footer {
    display: grid;
    padding: 24px 18px;
  }
}

@media (max-width: 380px) {
  .hero-title,
  .hero-copy,
  .hero-actions,
  .keyword-list {
    width: 18rem;
  }
}
