:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-elevated: rgba(12, 24, 42, 0.78);
  --bg-soft: #0e1b2e;
  --panel: rgba(16, 31, 52, 0.86);
  --panel-strong: #14233a;
  --text: #eef6ff;
  --muted: #9fb2ca;
  --line: rgba(150, 179, 216, 0.2);
  --accent: #4dd7c8;
  --accent-strong: #70e4aa;
  --blue: #72a7ff;
  --warning: #f6c96c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f8fb;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --bg-soft: #eaf1f8;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #dfeaf4;
  --text: #07111f;
  --muted: #52657a;
  --line: rgba(24, 48, 78, 0.14);
  --accent: #00a99d;
  --accent-strong: #2fbd7f;
  --blue: #3e78d6;
  --warning: #9c6b10;
  --shadow: 0 24px 70px rgba(24, 48, 78, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(77, 215, 200, 0.12), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(114, 167, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #091321 42%, #08101c 100%);
  line-height: 1.55;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 169, 157, 0.14), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(62, 120, 214, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbfd 0%, #edf4f8 52%, #f6f9fb 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.site-header[data-elevated="true"] {
  border-bottom: 1px solid var(--line);
}

.brand,
.header-actions,
.main-nav,
.lang-switcher {
  display: flex;
  align-items: center;
}

.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] .lang-switcher {
  background: rgba(255, 255, 255, 0.72);
}

.brand {
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(77, 215, 200, 0.45);
  border-radius: var(--radius);
  color: #07111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 32px rgba(77, 215, 200, 0.22);
}

.main-nav {
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--text);
}

.header-actions {
  gap: 10px;
}

.lang-switcher {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 20, 34, 0.72);
}

.lang-button {
  min-width: 36px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-button.active {
  color: #06131f;
  background: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button-primary {
  color: #06131f;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 42px rgba(77, 215, 200, 0.18);
}

[data-theme="light"] .button-primary,
[data-theme="light"] .brand-mark,
[data-theme="light"] .pain-card span,
[data-theme="light"] .timeline span,
[data-theme="light"] .lang-button.active {
  color: #ffffff;
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding-top: 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: 54px;
  align-items: center;
  width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #c5d4e7;
  font-size: 19px;
}

[data-theme="light"] .hero-lead {
  color: #314256;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 44px 0 0;
}

.hero-metrics div,
.pain-card,
.offer-grid article,
.pilot-card,
.insight-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.hero-metrics div {
  min-height: 112px;
  padding: 18px;
}

.hero-metrics dt {
  color: var(--accent-strong);
  font-size: 28px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  min-height: 560px;
  display: grid;
  place-items: center;
}

.system-panel {
  width: min(100%, 520px);
  padding: 16px;
  border: 1px solid rgba(114, 167, 255, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(20, 35, 58, 0.95), rgba(9, 18, 32, 0.94)),
    var(--panel);
  box-shadow: var(--shadow);
}

[data-theme="light"] .system-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(234, 242, 248, 0.94)),
    var(--panel);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  color: var(--muted);
  font-size: 13px;
}

.panel-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line);
}

.panel-top strong {
  margin-left: auto;
  font-weight: 700;
}

.workflow {
  position: relative;
  min-height: 330px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
}

.workflow-node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 118px;
  min-height: 54px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #f8fbff;
  background: rgba(13, 29, 50, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

[data-theme="light"] .workflow-node {
  color: #07111f;
  background: rgba(255, 255, 255, 0.92);
}

.node-client {
  top: 42px;
  left: 26px;
}

.node-ai {
  top: 132px;
  left: calc(50% - 44px);
  width: 88px;
  min-width: 88px;
  border-color: rgba(77, 215, 200, 0.72);
  color: #07111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

[data-theme="light"] .node-ai {
  color: #ffffff;
}

.node-spec {
  top: 42px;
  right: 26px;
}

.node-mr {
  bottom: 46px;
  left: 92px;
}

.node-review {
  right: 74px;
  bottom: 46px;
}

.workflow-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77, 215, 200, 0), var(--accent), rgba(114, 167, 255, 0));
  transform-origin: left center;
}

.line-a {
  top: 104px;
  left: 142px;
  width: 210px;
  transform: rotate(20deg);
}

.line-b {
  top: 196px;
  left: 186px;
  width: 190px;
  transform: rotate(-35deg);
}

.line-c {
  bottom: 96px;
  left: 202px;
  width: 170px;
}

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

.signal-grid div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
}

.signal-grid b {
  color: var(--accent);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 780px;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.problem-band {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - var(--max)) / 2));
  padding-left: max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.035);
  border-block: 1px solid var(--line);
}

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

.pain-card,
.offer-grid article,
.pilot-card {
  padding: 22px;
}

.pain-card span,
.timeline span {
  display: inline-grid;
  width: 34px;
  height: 28px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 6px;
  color: #06131f;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.pain-card p,
.offer-grid p,
.pilot-card li,
.timeline p {
  color: var(--muted);
}

.value-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: 18px;
}

.chart-card,
.case-card,
.teaser-inner,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.chart-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.58fr) minmax(160px, 1fr) 72px;
  gap: 14px;
  align-items: center;
  color: var(--muted);
}

.chart-row strong {
  color: var(--text);
  text-align: right;
}

.bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.insight-grid {
  display: grid;
  gap: 14px;
}

.insight-grid article {
  padding: 20px;
}

.insight-grid h3 {
  color: var(--accent-strong);
  font-size: 34px;
}

.source-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.timeline article {
  position: relative;
  min-height: 270px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  gap: 36px;
  padding: 34px;
}

.case-card p {
  color: var(--muted);
  font-size: 17px;
}

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
}

.case-stack span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(77, 215, 200, 0.32);
  border-radius: 999px;
  color: #c8fff7;
  background: rgba(77, 215, 200, 0.08);
  font-size: 14px;
  font-weight: 700;
}

[data-theme="light"] .case-stack span,
[data-theme="light"] .status-pill {
  border-color: rgba(0, 121, 113, 0.28);
  color: #143c3f;
  background: rgba(0, 169, 157, 0.12);
}

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

.pilot-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.metrics-card {
  border-color: rgba(77, 215, 200, 0.32);
}

.product-teaser {
  padding-top: 38px;
}

.teaser-inner {
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(77, 215, 200, 0.08), rgba(114, 167, 255, 0.08)),
    var(--bg-elevated);
}

.teaser-inner p:not(.eyebrow) {
  max-width: 740px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.68fr);
  gap: 40px;
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  color: var(--accent);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(4, 11, 20, 0.6);
  outline: none;
  padding: 12px 13px;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
  background: rgba(255, 255, 255, 0.78);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(77, 215, 200, 0.75);
  box-shadow: 0 0 0 3px rgba(77, 215, 200, 0.12);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .value-layout,
  .case-card,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 480px;
  }

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

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

  .timeline article {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(100% - 24px, var(--max));
    gap: 10px;
  }

  .brand-name,
  .header-actions .button {
    display: none;
  }

  .section {
    width: min(100% - 24px, var(--max));
    padding: 60px 0;
  }

  .hero-metrics,
  .pain-grid,
  .offer-grid,
  .pilot-grid,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

  .system-panel {
    padding: 12px;
  }

  .workflow {
    min-height: 300px;
  }

  .workflow-node {
    min-width: 96px;
    min-height: 48px;
    font-size: 12px;
  }

  .node-client {
    left: 14px;
  }

  .node-spec {
    right: 14px;
  }

  .node-mr {
    left: 34px;
  }

  .node-review {
    right: 28px;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .chart-row strong {
    text-align: left;
  }

  .case-card,
  .teaser-inner {
    padding: 24px;
  }

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