:root {
  --bg: #070a10;
  --panel: #0f141f;
  --panel-soft: #121a27;
  --panel-deep: #111722;
  --text: #ecf0ff;
  --muted: #a7b3c7;
  --line: #1f2a38;
  --accent: #2a90ff;
  --accent-soft: #4ec0ff;
  --focus: #7dd0ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Sora", "Avenir Next", sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 3.9vw, 4rem);
  margin: 0.2rem 0 1rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin: 0.2rem 0 1rem;
}

p {
  margin: 0;
}

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

a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

ul {
  padding-left: 1.2rem;
  margin: 0.6rem 0 0;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -100%;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1rem;
  transition: top 0.15s ease;
  z-index: 40;
}

.skip-link:focus {
  top: 0.6rem;
  left: 0.6rem;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 10, 16, 0.8);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 1rem;
  color: #fff;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.site-nav a {
  color: #d7e0ed;
  font-size: 0.92rem;
}

.site-nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.language-switch,
.btn-primary,
.btn-ghost,
.contact-mail {
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-weight: 600;
  display: inline-block;
}

.language-switch {
  border: 1px solid var(--line);
  color: #d7e0ed;
}

.btn-primary,
.btn-ghost {
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #4ea5ff;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

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

.nav-toggle {
  display: none;
}

.hero {
  padding-top: 5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--panel);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.8rem;
}

.section-kicker,
.mono-tag {
  font-family: "IBM Plex Mono", "Source Code Pro", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
}

.lead {
  color: #ced8e8;
  font-size: 1.1rem;
  max-width: 54ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.channel-tags {
  margin-top: 2rem;
  color: #9fb3cb;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
}

.hero-viz {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: radial-gradient(140% 120% at 15% 0%, rgba(42, 144, 255, 0.22), transparent 60%), var(--panel-soft);
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.flow-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.flow-node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  white-space: nowrap;
  font-weight: 600;
  left: var(--x);
  top: var(--y);
  background: rgba(8, 12, 20, 0.75);
  color: #d4dcf0;
}

.flow-node.source {
  border-color: #2e3f57;
}

.flow-node.core {
  border-color: var(--accent);
  color: #f6fbff;
  box-shadow: 0 0 0 4px rgba(42, 144, 255, 0.13);
  font-size: 0.8rem;
}

.flow-node.stage {
  border-color: #3f618e;
}

.flow-node.outcome {
  border-color: #5c8fc9;
}

.flow-conn {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--len);
  height: 2px;
  background: linear-gradient(90deg, rgba(42, 144, 255, 0), rgba(42, 144, 255, 0.75), rgba(42, 144, 255, 0));
  transform-origin: left center;
  transform: rotate(var(--angle, 0deg));
  animation: flowPulse 4s linear infinite;
  animation-delay: var(--delay, 0s);
}

.flow-conn.flow-down {
  transform-origin: top center;
  transform: rotate(90deg);
  height: var(--len);
  width: 2px;
}

.flow-conn::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
  top: 50%;
  left: -1px;
  transform: translateY(-50%);
  animation: flowToken 4s linear infinite;
  animation-delay: var(--delay, 0s);
}

.flow-conn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px dashed rgba(78, 178, 255, 0.2);
  border-radius: 999px;
}

.flow-conn.flow-horizontal {
  width: var(--len);
}

.flow-conn.flow-down::after {
  left: 50%;
  top: -2px;
  transform: translateX(-50%);
}

.section-intro {
  color: #c8d2e3;
  max-width: 75ch;
}

.card-grid,
.case-grid,
.benefits-grid {
  margin-top: 2rem;
}

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

.card,
.case-card,
.benefit {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  background: var(--panel);
}

.card h3,
.case-card h3,
.benefit h3 {
  margin-bottom: 0.75rem;
  margin-top: 0.35rem;
  font-size: 1.2rem;
}

.card li,
.case-card p,
.benefit p {
  color: #d2dced;
}

.data-layout {
  margin-top: 2.5rem;
  background: linear-gradient(180deg, rgba(18, 26, 39, 0), rgba(18, 26, 39, 0.75));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem 1rem;
}

.dc-flow {
  display: grid;
  grid-template-columns: 1.15fr auto 1.15fr;
  gap: 1rem;
  align-items: center;
}

.dc-col,
.dc-col .dc-outcome,
.dc-col .dc-node {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dc-node,
.dc-outcome {
  border: 1px dashed rgba(116, 157, 205, 0.52);
  border-radius: 12px;
  padding: 0.68rem 0.85rem;
  background: rgba(14, 22, 34, 0.6);
  text-align: left;
  color: #d8e0ef;
  font-size: 0.9rem;
  cursor: pointer;
}

.dc-core-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.dc-core {
  border: 1px solid rgba(42, 144, 255, 0.52);
  border-radius: 16px;
  text-align: center;
  padding: 1rem;
  width: min(340px, 100%);
  background: linear-gradient(180deg, rgba(42, 144, 255, 0.15), transparent);
}

.dc-core-tag {
  margin: 0;
  color: #9fc7ff;
  font-size: 0.82rem;
}

.dc-hint {
  color: #9aa8bf;
  font-size: 0.8rem;
  text-align: center;
}

.dc-mobile-journey {
  display: none;
}

.dc-mobile-node {
  border: 1px solid rgba(90, 170, 255, 0.45);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  color: #e6effd;
  background: rgba(11, 17, 28, 0.75);
  text-align: center;
}

.dc-mobile-node p {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93baf5;
  font-weight: 700;
}

.dc-mobile-node small {
  color: #b8c7de;
  line-height: 1.4;
}

.dc-mobile-arrow {
  height: 24px;
  width: 2px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(74, 175, 255, 0.04), rgba(74, 175, 255, 0.8), rgba(74, 175, 255, 0.04));
  position: relative;
}

.dc-mobile-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid rgba(74, 175, 255, 0.8);
}

.dc-info {
  margin: 0;
  padding: 0.8rem 0.9rem;
  width: 100%;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e1624;
  min-height: 56px;
}

.dc-node.active,
.loop-step.active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(42, 144, 255, 0.22);
}

.benefits-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.statement {
  grid-column: 1 / -1;
  border: 1px solid rgba(76, 171, 255, 0.45);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  font-size: 1.35rem;
  color: #f4faff;
  letter-spacing: 0.02em;
}

.loop-track {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.loop-step {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.01);
}

.loop-index {
  color: var(--accent);
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.loop-step p {
  color: #d2dced;
}

.statement-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

blockquote {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding: 0.7rem 1rem;
  color: #e8effc;
  background: rgba(42, 144, 255, 0.07);
  border-radius: 0 12px 12px 0;
}

.case-card .big-metric {
  margin: 0.6rem 0;
  font-size: 2rem;
  line-height: 1;
  color: #eaf1ff;
}

.case-label {
  color: #9cb4d3;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.mini-metric {
  margin-bottom: 0.85rem;
  color: #9cc4ff;
}

.text-columns {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-panel {
  background: radial-gradient(130% 140% at 20% 0%, rgba(42, 144, 255, 0.14), transparent 58%), var(--panel);
  border: 1px solid rgba(42, 144, 255, 0.28);
  border-radius: 22px;
  padding: 1.7rem;
  text-align: center;
}

.contact-mail {
  margin-top: 1rem;
  display: inline-flex;
  border: 1px dashed var(--line);
  color: #cbe0ff;
}

footer {
  background: #070b12;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0 2.4rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: #b6bed0;
}

.footer-links,
.footer-meta,
.footer-inner {
  color: #9ca7bb;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: #dce7ff;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes flowPulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

@keyframes flowToken {
  0% {
    transform: translateY(-50%) translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) translateX(calc(var(--len) - 5px));
    opacity: 0;
  }
}

@media (max-width: 940px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid var(--line);
    color: #dce3f0;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: transparent;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
    display: none;
    padding-top: 0.4rem;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-viz {
    min-height: 300px;
  }

  .hide-mobile {
    display: none;
  }

  .dc-flow {
    display: none;
  }

  .dc-mobile-journey {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .loop-track,
  .statement-grid,
  .card-grid,
  .benefits-grid,
  .text-columns,
  .case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .dc-core {
    width: 100%;
  }

  .site-header {
    position: relative;
  }

  h1 {
    font-size: clamp(1.8rem, 11vw, 2.6rem);
  }

  .section {
    padding: 3.2rem 0;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.6rem;
  }
}

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

  .flow-conn,
  .flow-conn::after,
  .reveal,
  .reveal.is-visible {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
