:root {
  color-scheme: dark;
  --site-primary: #67dceb;
  --site-on-primary: #071418;
  --site-secondary: #202833;
  --site-on-secondary: #f0f4f8;
  --site-background: #101318;
  --site-on-background: #f3f5f7;
  --site-font-body:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --site-font-heading:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --site-heading-scale: 1;
  --site-spacing-scale: 1;
  --site-radius-scale: 1;
  --site-decoration-opacity: 1;
  --bg: #101318;
  --surface: #171c23;
  --surface-2: #1d242d;
  --text: #f3f5f7;
  --muted: #a9b4c0;
  --line: #303945;
  --accent: var(--site-primary);
  --accent-soft: #172d33;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--site-font-body);
  line-height: 1.6;
}

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

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

#app {
  min-height: 100vh;
  width: 100%;
  border-radius: 0;
  background-color: var(--site-background);
  color: var(--site-on-background);
  overflow: hidden;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 19, 24, 0.96);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: calc(8px * var(--site-radius-scale));
  font-size: 14px;
  font-weight: 800;
}

.brand span:last-child {
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: calc(7px * var(--site-radius-scale));
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--site-on-primary);
}

.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 11px;
}

.hero {
  position: relative;
  padding: 90px 0 78px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -190px;
  top: -180px;
  background: radial-gradient(
    circle,
    rgba(103, 220, 235, 0.1),
    transparent 68%
  );
  opacity: var(--site-decoration-opacity);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 62px;
  position: relative;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 25px;
  height: 1px;
  background: currentColor;
}

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

h1 {
  font-family: var(--site-font-heading);
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  max-width: 700px;
  margin-bottom: 24px;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-copy {
  max-width: 570px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 29px;
}

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

.hero-note {
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(103, 220, 235, 0.12);
}

.system-panel {
  position: relative;
  padding: 22px;
  border: 1px solid #303a45;
  background: linear-gradient(145deg, #1a222b, #12171d);
  border-radius: 12px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid #303a45;
  color: #aab6c3;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-dots {
  display: flex;
  gap: 5px;
}

.panel-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #52606d;
}

.architecture {
  padding: 28px 0 20px;
  display: grid;
  gap: 12px;
}

.arch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.arch-node {
  min-width: 0;
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border: 1px solid #3b4a56;
  background: #1d2933;
  color: #d9e3ea;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}

.arch-node.highlight {
  border-color: #5bc8d8;
  background: #193139;
  color: #a4f2fb;
}

.arch-connector {
  text-align: center;
  color: #6d8491;
  height: 14px;
  font-size: 15px;
  line-height: 14px;
}

.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #303a45;
  padding-top: 15px;
  color: #98a6b4;
  font-size: 10px;
}

.panel-foot strong {
  color: #80e5ef;
  font-weight: 650;
}

.proof-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 25px 22px;
  border-right: 1px solid var(--line);
}

.proof-item:first-child {
  padding-left: 0;
}

.proof-item:last-child {
  border-right: 0;
}

.proof-number {
  font-size: 25px;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.proof-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

section {
  padding: 88px 0;
}

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

.section-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(30px, 3.4vw, 43px);
  line-height: 1.12;
  letter-spacing: -0.05em;
  margin-bottom: 0;
}

.section-intro {
  color: var(--muted);
  max-width: 430px;
  margin-bottom: 3px;
  font-size: 14px;
}

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

.problem-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: calc(9px * var(--site-radius-scale));
  background: var(--surface);
  min-height: 208px;
}

.icon-box {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #31525a;
  background: var(--accent-soft);
  border-radius: 8px;
  color: #8eeaf3;
  margin-bottom: 24px;
}

.icon-box svg {
  width: 19px;
  height: 19px;
}

h3 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.problem-card p,
.service-card p,
.case-card p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
  line-height: 1.7;
}

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

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

.service-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: calc(9px * var(--site-radius-scale));
  display: flex;
  flex-direction: column;
  min-height: 310px;
}

.service-index {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 30px;
}

.service-card h3 {
  font-size: 21px;
}

.service-card p {
  margin-bottom: 23px;
}

.service-list {
  padding: 0;
  margin: 0 0 25px;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.service-list li::before {
  content: "↗";
  color: var(--accent);
  margin-right: 9px;
}

.text-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

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

.case-card {
  border: 1px solid var(--line);
  border-radius: calc(9px * var(--site-radius-scale));
  overflow: hidden;
  background: var(--surface);
}

.case-art {
  min-height: 155px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #171f27;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.case-art svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.case-body {
  padding: 23px;
}

.case-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 13px;
}

.case-body h3 {
  font-size: 18px;
}

.case-body .text-link {
  margin-top: 19px;
}

.case-disclaimer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

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

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.process-step {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  counter-increment: step;
}

.process-step::before {
  content: "0" counter(step);
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}

.process-step p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.about-mark {
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(140deg, var(--surface-2), var(--surface));
  position: relative;
  overflow: hidden;
}

.about-mark::before,
.about-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(103, 220, 235, 0.22);
  border-radius: 50%;
  width: 220px;
  height: 220px;
}

.about-mark::after {
  width: 300px;
  height: 300px;
}

.about-mark strong {
  z-index: 1;
  font-size: 64px;
  letter-spacing: -0.08em;
  color: var(--accent);
}

.about-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin-top: 18px;
}

.about-facts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.fact-chip {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 11px;
}

.cta-section {
  padding: 65px 0;
  background: var(--site-secondary);
  color: var(--site-on-secondary);
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-inner h2 {
  max-width: 640px;
  font-size: clamp(29px, 3.4vw, 42px);
}

.cta-inner p {
  color: #b4c0cc;
  font-size: 13px;
  margin: 14px 0 0;
}

.cta-section .hero-actions {
  flex-shrink: 0;
}

.cta-section .btn {
  white-space: nowrap;
}

.site-footer {
  padding: 27px 0;
  background: var(--site-background);
  color: var(--site-on-background);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--muted);
  font-size: 11px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-company-details {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .hero-grid {
    gap: 34px;
    grid-template-columns: 1fr 0.85fr;
  }

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

  .problem-card:last-child,
  .service-card:last-child {
    grid-column: span 2;
  }

  .about-grid {
    gap: 35px;
  }
}

@media (max-width: 650px) {
  .wrap {
    width: min(100% - 32px, 520px);
  }

  .nav {
    min-height: 66px;
  }

  .brand span:last-child {
    font-size: 14px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    padding: 18px 20px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

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

  .nav-links a:not(.btn) {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .btn {
    margin-top: 14px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 58px 0 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  h1 {
    font-size: clamp(39px, 11vw, 54px);
  }

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

  .system-panel {
    padding: 15px;
  }

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

  .proof-item,
  .proof-item:first-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  section {
    padding: 62px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

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

  .problem-card:last-child,
  .service-card:last-child {
    grid-column: auto;
  }

  .problem-card {
    min-height: auto;
  }

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

  .service-index {
    margin-bottom: 20px;
  }

  .case-art {
    min-height: 140px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 27px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-mark {
    min-height: 210px;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-company-details {
    max-width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Footer navigation layout */
.site-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  width: 100%;
  align-items: start;
}

.site-footer .footer-links a {
  min-width: 0;
  width: fit-content;
}

@media (max-width: 650px) {
  .site-footer .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
  }
}

/* Navigation: highlight the current page */
.nav-links a:not(.btn) {
  position: relative;
  padding: 10px 0;
  transition: color 0.18s ease;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"]:not(.btn) {
  color: var(--accent);
}

.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]:not(.btn)::after {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"]:not(.btn) {
  font-weight: 800;
}

/* Highlight the contact button when Contact is the current page */
.nav-links a.btn[aria-current="page"] {
  box-shadow:
    0 0 0 2px var(--site-background),
    0 0 0 3px var(--accent);
}
