:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #15212d;
  --muted: #5d6f80;
  --line: #dce4eb;
  --accent: #0f7b63;
  --accent-dark: #0b5f4c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

.demo-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(47, 111, 237, 0.12), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(15, 123, 99, 0.12), transparent 26%),
    linear-gradient(180deg, #fbfcfd 0%, #eef3f7 100%);
}

.wrap {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  padding: 22px 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 900;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero {
  padding: 64px 0 42px;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(520px, 1.12fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 86px);
  padding-top: 32px;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-home h1 {
  max-width: 620px;
  font-size: clamp(44px, 6.8vw, 82px);
}

.hero-home .hero-copy p:not(.eyebrow) {
  max-width: 600px;
}

.home-demo-wrap {
  display: grid;
  gap: 12px;
}

.home-demo {
  min-height: 580px;
}

.home-demo .demo-screen {
  min-height: 536px;
}

.home-demo .demo-scene h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.demo-underlink {
  justify-self: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 15px;
  background: #ffffff;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

section {
  padding: 28px 0;
}

.explainer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
  padding: 22px;
  box-shadow: 0 18px 40px rgba(21, 33, 45, 0.07);
}

.explainer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.explainer h2 {
  max-width: 720px;
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.explainer h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.explainer p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.mini-flow {
  display: grid;
  grid-template-columns: 84px 1fr 140px;
  gap: 12px;
  align-items: center;
  min-height: 92px;
}

.file-card,
.platform-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(21, 33, 45, 0.08);
}

.file-card {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: var(--accent);
  font-weight: 900;
}

.platform-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  font-size: 18px;
  font-weight: 900;
}

.pulse-line {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px);
}

.pulse-line::after {
  position: absolute;
  top: -5px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  animation: flowPulse 2.6s ease-in-out infinite;
}

.explainer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 14px;
}

.explain-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 20px 20px 18px;
}

.step-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
  content: "✓";
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.check-grid span {
  display: grid;
  min-height: 86px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.flow-step {
  position: relative;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 15px 12px;
}

.flow-step + .flow-step::before {
  position: absolute;
  top: 22px;
  left: -13px;
  color: var(--accent);
  font-weight: 900;
  content: "→";
}

.flow-step span {
  display: block;
  color: var(--text);
  font-weight: 900;
}

.flow-step small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 14px;
  margin-top: 14px;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.result-metrics div,
.why-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.result-metrics span {
  display: block;
  color: var(--text);
  font-size: 26px;
  font-weight: 900;
}

.result-metrics small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.why-list h3 {
  margin-bottom: 10px;
}

.compact {
  gap: 7px;
}

.one-line {
  margin-top: 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 17px;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.demo-link-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.demo-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(560px, 1.22fr);
  gap: 30px;
  align-items: center;
  min-height: 710px;
  padding-top: 32px;
  padding-bottom: 34px;
}

.demo-copy h1 {
  margin: 0;
  color: #101820;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.demo-copy p:not(.eyebrow) {
  max-width: 540px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.demo-device {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(152, 167, 183, 0.5);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 34px 90px rgba(21, 33, 45, 0.16);
  backdrop-filter: blur(22px);
}

.device-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  border-bottom: 1px solid rgba(220, 228, 235, 0.9);
  padding: 0 16px;
}

.device-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.device-top span:nth-child(1) {
  background: #ff5f57;
}

.device-top span:nth-child(2) {
  background: #ffbd2e;
}

.device-top span:nth-child(3) {
  background: #28c840;
}

.device-top strong {
  margin-left: auto;
  color: #8a98a8;
  font-size: 13px;
}

.demo-screen {
  position: relative;
  min-height: 560px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 252, 0.86)),
    radial-gradient(circle at 20% 20%, rgba(47, 111, 237, 0.08), transparent 32%);
}

.demo-scene {
  position: absolute;
  inset: 26px;
  display: grid;
  align-content: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.demo-scene.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.demo-scene h2 {
  margin: 0;
  color: #101820;
  font-size: 44px;
  line-height: 1.1;
}

.demo-scene p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.csv-card,
.platform-stack,
.scan-window,
.metric-strip div,
.issue-list span,
.export-grid div {
  border: 1px solid rgba(220, 228, 235, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(21, 33, 45, 0.08);
}

.csv-card {
  display: flex;
  align-items: center;
  width: min(440px, 100%);
  gap: 14px;
  padding: 18px;
  animation: cardFloat 5.2s ease-in-out infinite;
}

.csv-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 72px;
  border-radius: 14px;
  background: #effaf6;
  color: var(--accent);
  font-weight: 900;
}

.csv-card strong,
.platform-stack span,
.export-grid strong {
  display: block;
  color: #101820;
  font-size: 20px;
}

.csv-card small,
.export-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.platform-stack {
  display: grid;
  gap: 10px;
  width: 230px;
  padding: 20px;
  justify-self: end;
}

.route-line {
  height: 3px;
  width: 68%;
  margin: 2px auto;
  background: repeating-linear-gradient(90deg, rgba(15, 123, 99, 0.1) 0 14px, var(--accent) 14px 28px);
  animation: lineMove 2.5s linear infinite;
}

.scan-window {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.scan-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(15, 123, 99, 0.95), transparent);
  box-shadow: 0 0 28px rgba(15, 123, 99, 0.65);
  animation: scanAcross 3.2s ease-in-out infinite;
}

.data-row {
  display: flex;
  justify-content: space-between;
  border-radius: 12px;
  padding: 14px 16px;
  background: #f7fafc;
  color: #101820;
  font-weight: 800;
}

.data-row b {
  color: var(--accent);
}

.data-row.warn b {
  color: #c47d00;
}

.data-row.bad b {
  color: #d13b40;
}

.checks-orbit {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.checks-orbit span {
  display: grid;
  min-height: 78px;
  place-items: center;
  border-radius: 16px;
  background: rgba(239, 250, 246, 0.9);
  color: var(--accent-dark);
  font-weight: 900;
  text-align: center;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-strip div {
  padding: 18px;
}

.metric-strip strong {
  display: block;
  color: #101820;
  font-size: 33px;
  font-variant-numeric: tabular-nums;
}

.metric-strip small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.metric-strip .danger strong {
  color: #d13b40;
}

.metric-strip .amber strong {
  color: #c47d00;
}

.issue-list {
  display: grid;
  gap: 10px;
}

.issue-list span {
  padding: 14px 16px;
  color: #101820;
  font-weight: 800;
}

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

.export-grid div {
  padding: 20px;
}

.final-line {
  border-radius: 18px;
  background: #101820;
  color: #ffffff;
  padding: 18px;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

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

.faq h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

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

.faq h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

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

.card h2,
.panel h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.card p,
.panel p,
li {
  color: var(--muted);
  line-height: 1.6;
}

.panel {
  margin-bottom: 14px;
}

.workflow-panel {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: 18px;
  align-items: center;
}

.workflow-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.steps {
  margin: 0;
  padding-left: 22px;
}

footer {
  padding: 36px 0 44px;
  color: var(--muted);
}

@keyframes flowPulse {
  0% {
    transform: translateX(0);
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100% + 78px));
    opacity: 0.2;
  }
}

@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes lineMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 56px 0;
  }
}

@keyframes scanAcross {
  0%, 100% {
    transform: translateX(16px);
    opacity: 0.2;
  }
  45%, 55% {
    opacity: 1;
  }
  50% {
    transform: translateX(680px);
  }
}

@media (max-width: 760px) {
  nav,
  .grid,
  .workflow-panel,
  .explainer-head,
  .explainer-grid,
  .result-row,
  .hero-home,
  .demo-stage,
  .faq-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .mini-flow {
    grid-template-columns: 70px 1fr 120px;
  }

  .check-grid,
  .flow-steps,
  .result-metrics,
  .checks-orbit,
  .metric-strip,
  .export-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-step + .flow-step::before {
    display: none;
  }

  .explainer h2 {
    font-size: 28px;
  }

  .demo-stage {
    min-height: auto;
  }

  .hero-home {
    min-height: auto;
    padding-top: 28px;
  }

  .demo-screen {
    min-height: 620px;
  }

  .home-demo,
  .home-demo .demo-screen {
    min-height: 620px;
  }

  .demo-scene h2 {
    font-size: 32px;
  }
}
