:root {
  --ink: #101418;
  --ink-soft: #3c454e;
  --paper: #f4f7f8;
  --paper-deep: #e7edf0;
  --white: #ffffff;
  --line: rgba(16, 20, 24, 0.12);
  --dark: #090c0f;
  --dark-2: #121820;
  --teal: #1fb7aa;
  --cyan: #66e7ff;
  --amber: #8fb6bd;
  --platinum: #d7e1e5;
  --shadow: 0 28px 80px rgba(9, 12, 15, 0.18);
  --radius: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

img,
canvas {
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  overflow: clip;
  background:
    linear-gradient(180deg, rgba(244, 247, 248, 0.94), rgba(231, 237, 240, 0.84)),
    radial-gradient(circle at 20% 12%, rgba(31, 183, 170, 0.07), transparent 28%),
    var(--paper);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 240ms ease, color 240ms ease, box-shadow 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(244, 247, 248, 0.88);
  box-shadow: 0 8px 30px rgba(16, 20, 24, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  filter: drop-shadow(0 8px 18px rgba(5, 10, 13, 0.22));
}

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

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  opacity: 0.82;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .language-switch {
  min-width: 38px;
  padding: 7px 9px;
  border: 1px solid currentColor;
  border-radius: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  opacity: 1;
}

.site-nav .language-switch::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: currentColor;
  background: transparent;
  place-items: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 220ms ease;
}

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

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

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 72px) 96px;
  color: var(--white);
  background: var(--dark);
  isolation: isolate;
}

.hero-media,
.hero-shade,
.signal-canvas {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background-image: url("./assets/hero-technology.png");
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) contrast(1.05);
  transform: scale(1.01);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, 0.92) 0%, rgba(5, 7, 9, 0.74) 38%, rgba(5, 7, 9, 0.26) 72%, rgba(5, 7, 9, 0.62) 100%),
    linear-gradient(180deg, rgba(5, 7, 9, 0.12), rgba(5, 7, 9, 0.88));
}

.signal-canvas {
  z-index: -1;
  opacity: 0.48;
  mix-blend-mode: screen;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12) 0,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1px,
    transparent 88px
  );
  opacity: 0.24;
  pointer-events: none;
}

.hero-content {
  width: min(1120px, 100%);
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 100%;
  font-size: 88px;
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
  word-break: keep-all;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 21px;
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-weight: 720;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button.primary {
  color: #06100f;
  border-color: var(--teal);
  background: var(--teal);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.36);
}

.button.ghost.dark {
  color: var(--ink);
  background: transparent;
  border-color: rgba(16, 20, 24, 0.2);
}

.hero-status {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: 28px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.74);
}

.hero-status span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

.hero-status span:last-child {
  border-right: 0;
}

.section {
  position: relative;
  padding: clamp(76px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section-kicker {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 22px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
}

.intro-copy h2,
.section-head h2,
.capability-copy h2,
.compliance-panel h2,
.contact-copy h2 {
  margin-bottom: 18px;
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-copy p,
.capability-copy p,
.contact-copy p {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.9;
}

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

.stats div {
  min-height: 164px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.46);
}

.stats strong {
  display: block;
  margin-bottom: 28px;
  font-size: 32px;
  color: var(--teal);
}

.stats span {
  color: var(--ink-soft);
  line-height: 1.7;
}

.services {
  background:
    linear-gradient(180deg, rgba(10, 16, 20, 0.02), rgba(10, 16, 20, 0.055)),
    var(--paper-deep);
}

.section-head {
  max-width: 920px;
  margin-bottom: clamp(28px, 5vw, 56px);
}

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

.service-card,
.scene-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border: 1px solid rgba(16, 20, 24, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card::before,
.scene-card::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}

.service-card:hover,
.scene-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 183, 170, 0.4);
  box-shadow: var(--shadow);
}

.service-card:hover::before,
.scene-card:hover::before {
  transform: scaleX(1);
}

.card-index {
  display: block;
  margin-bottom: 58px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 850;
}

.service-card h3,
.scene-card h3 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.35;
}

.service-card p,
.scene-card p,
.timeline-item p,
.compliance-panel p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.capability {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(40px, 8vw, 108px);
  align-items: start;
  background: var(--dark);
  color: var(--white);
}

.capability::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.95));
  pointer-events: none;
}

.capability > * {
  position: relative;
  z-index: 1;
}

.capability-copy p {
  color: rgba(255, 255, 255, 0.68);
}

.timeline {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline-item {
  display: grid;
  grid-template-columns: 58px 160px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline-item span {
  color: var(--cyan);
  font-weight: 850;
}

.timeline-item strong {
  font-size: 20px;
}

.timeline-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
}

.scenes {
  background: var(--paper);
}

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

.scene-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.compliance {
  padding-top: 0;
  background: var(--paper);
}

.compliance-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 6vw, 84px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(31, 183, 170, 0.16), transparent 35%),
    linear-gradient(180deg, #151a1f, #0c1014);
  box-shadow: var(--shadow);
}

.compliance-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  background: var(--paper-deep);
}

.contact-copy p {
  margin-bottom: 0;
}

.contact-actions {
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.62);
  background: var(--dark);
  font-size: 14px;
}

.site-footer a {
  color: var(--white);
}

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

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

@media (max-width: 1080px) {
  h1 {
    font-size: 62px;
  }

  .intro-copy h2,
  .section-head h2,
  .capability-copy h2,
  .compliance-panel h2,
  .contact-copy h2 {
    font-size: 52px;
  }

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

  .capability,
  .contact,
  .intro-grid,
  .compliance-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 68px;
    padding-inline: 16px;
  }

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

  .nav-toggle {
    display: grid;
    position: relative;
    z-index: 25;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 21;
    display: grid;
    place-content: center;
    gap: 24px;
    color: var(--ink);
    background: var(--paper);
    transform: translateY(-120vh);
    transition: transform 260ms ease;
    font-size: 22px;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-header.is-open {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .hero {
    min-height: 94svh;
    padding: 96px 18px 132px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 7, 9, 0.93), rgba(5, 7, 9, 0.58)),
      linear-gradient(180deg, rgba(5, 7, 9, 0.22), rgba(5, 7, 9, 0.9));
  }

  h1 {
    font-size: 32px;
  }

  .hero-copy {
    font-size: 16px;
  }

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

  .button {
    width: 100%;
  }

  .hero-status {
    left: 18px;
    right: 18px;
    bottom: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-status span {
    min-height: 44px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero-status span:nth-child(2n) {
    border-right: 0;
  }

  .section {
    padding: 72px 18px;
  }

  .intro-copy h2,
  .section-head h2,
  .capability-copy h2,
  .compliance-panel h2,
  .contact-copy h2 {
    font-size: 40px;
  }

  .intro-copy p,
  .capability-copy p,
  .contact-copy p,
  .compliance-panel p {
    font-size: 16px;
  }

  .stats,
  .service-grid,
  .scene-strip {
    grid-template-columns: 1fr;
  }

  .stats div {
    min-height: 132px;
  }

  .service-card,
  .scene-card {
    min-height: 230px;
    padding: 24px;
  }

  .card-index {
    margin-bottom: 44px;
  }

  .timeline-item {
    grid-template-columns: 42px 1fr;
    gap: 12px 16px;
  }

  .timeline-item p {
    grid-column: 2;
  }

  .compliance {
    padding-top: 0;
  }

  .compliance-panel {
    padding: 26px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 27px;
  }

  .intro-copy h2,
  .section-head h2,
  .capability-copy h2,
  .compliance-panel h2,
  .contact-copy h2 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .signal-canvas {
    display: none;
  }
}
