:root {
  --bg: #08080a;
  --bg-elevated: #1c1c1f;
  --panel: rgba(51, 51, 53, 0.92);
  --panel-strong: rgba(38, 38, 40, 0.96);
  --line: rgba(255, 255, 255, 0.22);
  --line-strong: rgba(242, 56, 69, 0.42);
  --text: #f2f2ed;
  --muted: rgba(242, 242, 237, 0.68);
  --accent: #f23845;
  --accent-warm: #bd1929;
  --accent-cold: #4d171f;
  --accent-soft: rgba(242, 56, 69, 0.12);
  --off-white: #e0e0db;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(242, 56, 69, 0.18), transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  background-size: auto, 22px 22px, 22px 22px, auto, auto;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

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

p,
li {
  line-height: 1.65;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(242, 56, 69, 0.08), transparent 55%),
    rgba(12, 12, 14, 0.92);
}

.brand,
.eyebrow,
h1,
h2,
.button,
.feature-index,
.footer-title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.brand img {
  display: block;
  width: clamp(108px, 12vw, 154px);
  height: auto;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.topnav a {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 24px;
  margin-top: 24px;
}

.hero-copy,
.hero-panel,
.feature-card,
.legal-strip,
.legal-card,
.legal-note,
.footer {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, transparent, rgba(77, 23, 31, 0.78));
  transform: rotate(18deg);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  line-height: 0.94;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
}

.lead {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: var(--off-white);
  border-color: var(--accent);
}

.button-secondary {
  background: transparent;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(242, 56, 69, 0.16), transparent 40%),
    var(--panel-strong);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(242, 56, 69, 0.75);
}

.hero-demo {
  position: relative;
  margin-top: 22px;
  margin-bottom: 22px;
}

.demo-shell {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(242, 56, 69, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    rgba(10, 10, 12, 0.72);
}

.demo-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-130%);
  animation: demoSweep 4.8s linear infinite;
  pointer-events: none;
}

.demo-bar,
.demo-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-caption,
.demo-counter-label,
.demo-service-kicker,
.demo-service-badge,
.demo-sync {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.demo-caption,
.demo-counter-label,
.demo-service-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.demo-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
}

.demo-sync-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(242, 56, 69, 0.7);
  animation: demoPulse 1.8s ease-in-out infinite;
}

.demo-counter {
  margin-top: 18px;
}

.demo-counter-window {
  height: 68px;
  margin-top: 8px;
  overflow: hidden;
}

.demo-counter-track {
  display: flex;
  flex-direction: column;
  animation: counterRoll 7.2s ease-in-out infinite;
}

.demo-counter-track span {
  display: flex;
  align-items: center;
  height: 68px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.demo-progress {
  height: 6px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.demo-progress span {
  display: block;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent));
  animation: progressGrow 7.2s ease-in-out infinite;
}

.demo-service-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(242, 56, 69, 0.28);
  background:
    linear-gradient(180deg, rgba(242, 56, 69, 0.12), transparent 55%),
    rgba(18, 18, 20, 0.92);
  animation: serviceNudge 3.8s ease-in-out infinite;
}

.demo-service-window {
  height: 166px;
  margin-top: 14px;
  overflow: hidden;
}

.demo-service-track {
  display: flex;
  flex-direction: column;
  animation: serviceQueueRoll 12s ease-in-out infinite;
}

.demo-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-service-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.demo-service-badge {
  padding: 4px 7px;
  border: 1px solid rgba(242, 56, 69, 0.35);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(242, 56, 69, 0.14);
}

.demo-service-title {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.demo-service-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.feature-card {
  padding: 26px;
}

.feature-index {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
}

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

.legal-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 28px;
  border-color: var(--line-strong);
  background:
    linear-gradient(90deg, rgba(77, 23, 31, 0.72), transparent 38%),
    var(--panel);
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 26px;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-copy {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
}

.legal-page {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.legal-hero,
.legal-card,
.legal-note {
  padding: 28px;
}

.legal-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

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

.legal-card a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.legal-note {
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
}

@keyframes counterRoll {
  0%,
  18% {
    transform: translateY(0);
  }

  26%,
  43% {
    transform: translateY(-68px);
  }

  51%,
  68% {
    transform: translateY(-136px);
  }

  76%,
  100% {
    transform: translateY(-204px);
  }
}

@keyframes progressGrow {
  0%,
  18% {
    width: 34%;
  }

  26%,
  43% {
    width: 48%;
  }

  51%,
  68% {
    width: 72%;
  }

  76%,
  100% {
    width: 86%;
  }
}

@keyframes demoPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes serviceNudge {
  0%,
  100% {
    transform: translateY(0);
    border-color: rgba(242, 56, 69, 0.28);
  }

  50% {
    transform: translateY(-3px);
    border-color: rgba(242, 56, 69, 0.45);
  }
}

@keyframes demoSweep {
  0% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

@keyframes serviceQueueRoll {
  0%,
  14% {
    transform: translateY(0);
  }

  20%,
  32% {
    transform: translateY(-54px);
  }

  38%,
  50% {
    transform: translateY(-108px);
  }

  56%,
  68% {
    transform: translateY(-162px);
  }

  74%,
  86% {
    transform: translateY(-216px);
  }

  92%,
  100% {
    transform: translateY(-270px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-shell::after,
  .demo-sync-dot,
  .demo-counter-track,
  .demo-progress span,
  .demo-service-card,
  .demo-service-track {
    animation: none;
  }
}

@media (max-width: 920px) {
  .hero,
  .feature-grid,
  .legal-strip,
  .footer {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .topbar,
  .hero-copy,
  .hero-panel,
  .feature-card,
  .legal-strip,
  .legal-hero,
  .legal-card,
  .legal-note,
  .footer {
    padding: 20px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.7rem, 14vw, 4.1rem);
  }

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

  .topnav {
    gap: 12px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
