:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-2: #080d15;
  --surface: rgba(12, 19, 30, 0.82);
  --surface-strong: rgba(17, 28, 44, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --light: #f4f7fb;
  --light-2: #e8eef5;
  --ink: #f5fbff;
  --ink-dark: #0c1420;
  --muted: #a8b8ca;
  --muted-2: #748599;
  --line: rgba(160, 198, 230, 0.16);
  --line-strong: rgba(55, 226, 255, 0.32);
  --cyan: #25e8ff;
  --cyan-2: #08a8d8;
  --teal: #33f0d3;
  --navy: #071b33;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 6%, rgba(37, 232, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 5% 30%, rgba(8, 168, 216, 0.14), transparent 31rem),
    linear-gradient(180deg, #020409 0%, var(--bg) 42%, #07101a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(37, 232, 255, 0.16);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(114, 178, 220, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(114, 178, 220, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, black 0%, transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

a:hover {
  color: var(--cyan);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 232, 255, 0.58);
  outline-offset: 4px;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

p,
li,
dd {
  overflow-wrap: anywhere;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.sr-only,
.skip-link:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus-visible {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  color: #001018;
  background: var(--cyan);
  border-radius: var(--radius);
  font-weight: 800;
}

.section {
  padding: clamp(72px, 8vw, 116px) 0;
}

#diagnostic,
#services,
#systeme,
#contact,
#main-content {
  scroll-margin-top: 104px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(3, 6, 11, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-surface {
  width: 218px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(37, 232, 255, 0.17);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(5, 11, 20, 0.96), rgba(13, 24, 38, 0.82));
  box-shadow: 0 0 34px rgba(37, 232, 255, 0.08);
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 0.93rem;
}

.nav-panel a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.nav-panel a:hover,
.nav-panel a[aria-current="page"] {
  color: #ffffff;
  background: rgba(37, 232, 255, 0.075);
  border-color: rgba(37, 232, 255, 0.15);
}

.nav-panel .nav-cta {
  margin-left: 6px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #a0f8ff);
  border-color: rgba(37, 232, 255, 0.42);
  font-weight: 800;
}

.nav-panel .nav-cta:hover {
  color: #001018;
  background: #a8f9ff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.menu-line {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(82px, 9vw, 132px);
}

.hero::after {
  content: "";
  position: absolute;
  right: -18vw;
  top: 10%;
  width: 52vw;
  height: 52vw;
  max-width: 820px;
  max-height: 820px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 232, 255, 0.14), transparent 64%);
  filter: blur(8px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.68fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: #8cf4ff;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 910px;
  margin-bottom: 26px;
  color: #ffffff;
  font-size: clamp(2.55rem, 5.35vw, 5.15rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.14rem;
  line-height: 1.28;
  text-wrap: balance;
}

.hero-text {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 24px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #9bf8ff);
  box-shadow: 0 18px 52px rgba(37, 232, 255, 0.18);
}

.button.primary:hover {
  color: #001018;
  background: #adfaff;
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
}

.button.secondary:hover {
  color: #ffffff;
  background: rgba(37, 232, 255, 0.08);
  border-color: var(--line-strong);
}

.hero-trust {
  display: grid;
  gap: 8px;
  max-width: 780px;
  color: #c7d6e6;
  font-size: 0.94rem;
}

.hero-trust p {
  margin: 0;
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.hero-logo-card,
.command-panel,
.workflow-card,
.service-card,
.approach-grid article,
.pain-grid article,
.contact-box,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 25, 39, 0.9), rgba(5, 10, 18, 0.88));
  box-shadow: var(--shadow);
}

.hero-logo-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(240px, 32vw, 410px);
  padding: clamp(16px, 3vw, 28px);
  overflow: hidden;
}

.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(37, 232, 255, 0.22), transparent 58%);
  filter: blur(12px);
}

.hero-logo-card img {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  border-radius: 7px;
  filter: drop-shadow(0 0 30px rgba(37, 232, 255, 0.18));
}

.command-panel {
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e9f7ff;
  font-weight: 800;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(51, 240, 211, 0.12);
}

.signal-map {
  position: relative;
  height: 128px;
  margin: 18px 0;
  border: 1px solid rgba(37, 232, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(37, 232, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 232, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}

.node {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(37, 232, 255, 0.72);
}

.node-a { left: 14%; top: 24%; }
.node-b { left: 42%; top: 58%; }
.node-c { right: 16%; top: 30%; }
.node-d { right: 30%; bottom: 20%; }

.path {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 232, 255, 0.78), transparent);
  transform-origin: left center;
}

.path-1 {
  left: 17%;
  top: 32%;
  width: 47%;
  transform: rotate(20deg);
}

.path-2 {
  left: 45%;
  top: 63%;
  width: 34%;
  transform: rotate(-27deg);
}

.path-3 {
  right: 18%;
  top: 40%;
  width: 28%;
  transform: rotate(72deg);
}

.system-metrics {
  display: grid;
  gap: 12px;
  margin: 0;
}

.system-metrics div {
  display: grid;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.system-metrics dt,
.identity-list dt,
.legal-list dt {
  color: #8cf4ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.system-metrics dd,
.identity-list dd,
.legal-list dd {
  margin: 0;
}

.system-metrics dd {
  color: var(--muted);
}

.diagnostic-section,
.approach-section {
  background: var(--light);
  color: var(--ink-dark);
}

.split-layout,
.system-layout,
.identity-grid,
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 62px);
  align-items: start;
}

.section-intro {
  max-width: 680px;
}

.section-intro p,
.section-heading p,
.approach-grid p,
.pain-grid p,
.workflow-stage p {
  color: var(--muted);
}

.diagnostic-section h2,
.diagnostic-section h3,
.approach-section h2,
.approach-section h3 {
  color: var(--ink-dark);
}

.diagnostic-section .eyebrow,
.approach-section .eyebrow {
  color: #08799b;
}

.diagnostic-section .section-intro p,
.approach-section .section-heading p,
.approach-grid p,
.pain-grid p {
  color: #586879;
}

.pain-grid,
.approach-grid {
  display: grid;
  gap: 14px;
}

.pain-grid article,
.approach-grid article {
  padding: 24px;
  background: #ffffff;
  border-color: #dbe5ee;
  box-shadow: 0 18px 44px rgba(12, 20, 32, 0.075);
}

.pain-grid span,
.approach-grid span,
.card-kicker,
.workflow-stage span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #08799b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.services-section {
  background:
    radial-gradient(circle at 88% 8%, rgba(37, 232, 255, 0.1), transparent 27rem),
    linear-gradient(180deg, rgba(5, 9, 15, 0.95), rgba(8, 15, 25, 0.98));
}

.section-heading {
  max-width: 860px;
  margin-bottom: 40px;
}

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

.service-card {
  min-height: 268px;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.service-card-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 232, 255, 0.16), transparent 20rem),
    linear-gradient(145deg, rgba(18, 35, 55, 0.96), rgba(5, 10, 18, 0.9));
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: #d9e8f5;
}

.service-card li {
  position: relative;
  padding-left: 18px;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.system-section {
  background:
    radial-gradient(circle at 10% 16%, rgba(37, 232, 255, 0.1), transparent 24rem),
    #070d16;
}

.workflow-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.workflow-stage {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.workflow-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -13px;
  width: 1px;
  height: 13px;
  background: var(--line-strong);
}

.workflow-stage strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.12rem;
}

.workflow-stage p {
  margin-bottom: 0;
}

.benefit-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.benefit-list div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.benefit-list strong {
  color: #ffffff;
}

.benefit-list span {
  color: var(--muted);
}

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

.identity-section {
  background:
    radial-gradient(circle at 78% 0%, rgba(37, 232, 255, 0.12), transparent 25rem),
    #06101a;
}

.identity-section p {
  color: var(--muted);
}

.identity-list,
.legal-list {
  margin: 0;
}

.identity-list {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.identity-list div,
.legal-list div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.identity-list div:last-child,
.legal-list div:last-child {
  border-bottom: 0;
}

.identity-list dd,
.legal-list dd {
  color: #ffffff;
  font-weight: 720;
}

.contact-section {
  padding-bottom: clamp(80px, 8vw, 126px);
  background: #070d16;
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 4vw, 42px);
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 232, 255, 0.15), transparent 22rem),
    linear-gradient(145deg, rgba(18, 34, 52, 0.96), rgba(5, 10, 18, 0.96));
}

.contact-box p {
  max-width: 700px;
  color: var(--muted);
  margin-bottom: 0;
}

.contact-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), #9bf8ff);
  border-radius: var(--radius);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  color: #001018;
  background: #adfaff;
}

.site-footer {
  background: #020409;
  color: rgba(245, 251, 255, 0.78);
  border-top: 1px solid var(--line);
}

.footer-content {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.footer-content p {
  margin: 0;
}

.footer-content a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.legal-hero {
  min-height: calc(100vh - 196px);
  background:
    radial-gradient(circle at 84% 12%, rgba(37, 232, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #06101a 0%, #080d15 100%);
}

.legal-intro {
  position: sticky;
  top: 116px;
}

.legal-intro p {
  color: var(--muted);
}

.legal-card {
  padding: clamp(22px, 3vw, 30px);
  background: rgba(12, 19, 30, 0.86);
}

.legal-card + .legal-card {
  grid-column: 2;
}

.legal-card h2 {
  font-size: 1.55rem;
}

.legal-list a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1060px) {
  .hero-grid,
  .split-layout,
  .system-layout,
  .identity-grid,
  .legal-layout,
  .contact-box {
    grid-template-columns: 1fr;
  }

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

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

  .legal-intro {
    position: static;
  }

  .legal-card + .legal-card {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    min-height: 76px;
  }

  .nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #05090f;
    box-shadow: var(--shadow);
  }

  .nav.is-open .nav-panel {
    display: flex;
  }

  .nav-panel a,
  .nav-panel .nav-cta {
    margin-left: 0;
    padding: 12px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand-surface {
    width: 174px;
    height: 46px;
  }

  h1 {
    font-size: clamp(2.38rem, 12.5vw, 3.45rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.82rem, 8.4vw, 2.48rem);
    line-height: 1.08;
  }

  .hero-actions,
  .footer-content {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .contact-link {
    width: 100%;
  }

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

  .service-card-large {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-logo-card {
    min-height: 220px;
  }

  .pain-grid article,
  .approach-grid article,
  .service-card,
  .workflow-stage,
  .identity-list,
  .command-panel {
    padding: 20px;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .brand-surface {
    width: 150px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
