:root {
  --bg: #020604;
  --panel: rgba(3, 11, 7, 0.72);
  --panel-solid: rgba(4, 13, 8, 0.9);
  --text: #f2fff6;
  --muted: #b6c7bd;
  --green: #66ff9f;
  --green-dark: #16a85d;
  --line: rgba(102, 255, 159, 0.26);
  --glow: rgba(102, 255, 159, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
}

.video-background {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #020604;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.08) brightness(0.82);
  transform: scale(1.012);
}

.video-shade,
.matrix-grid,
.scan-line {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-shade {
  background:
    linear-gradient(90deg, rgba(1, 5, 3, 0.76) 0%, rgba(1, 5, 3, 0.2) 50%, rgba(1, 5, 3, 0.58) 100%),
    linear-gradient(180deg, rgba(1, 5, 3, 0.22), rgba(1, 5, 3, 0.48));
}

.matrix-grid {
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(102, 255, 159, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 255, 159, 0.13) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.scan-line {
  height: 18vh;
  opacity: 0.18;
  background: linear-gradient(180deg, transparent, rgba(102, 255, 159, 0.12), transparent);
  animation: scan 8s linear infinite;
}

@keyframes scan {
  from { transform: translateY(-20vh); }
  to { transform: translateY(120vh); }
}

.brand-link {
  position: fixed;
  z-index: 20;
  top: 22px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(2, 9, 5, 0.66);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #021006;
  background: var(--green);
  box-shadow: 0 0 24px var(--glow);
  font-size: 0.72rem;
}

.scroll-status {
  position: fixed;
  z-index: 20;
  top: 50%;
  right: 24px;
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateY(-50%);
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.video-loading {
  position: fixed;
  z-index: 22;
  right: 24px;
  bottom: 22px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: rgba(2, 9, 5, 0.76);
  backdrop-filter: blur(14px);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.scroll-video-ready .video-loading {
  opacity: 0;
  visibility: hidden;
}

.status-track {
  position: relative;
  width: 3px;
  height: 150px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.status-track i {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  transform: scaleY(0);
  transform-origin: top;
}

.journey {
  position: relative;
  width: 100%;
}

.scroll-scene {
  position: relative;
  display: flex;
  min-height: 115svh;
  align-items: center;
  padding: clamp(90px, 10vw, 150px) clamp(24px, 8vw, 120px);
}

.intro-scene,
.finale-scene {
  min-height: 100svh;
}

.align-right {
  justify-content: flex-end;
}

.scene-panel {
  width: min(650px, calc(100vw - 110px));
  opacity: 0;
  transform: translateY(55px) scale(0.97);
  transition:
    opacity 700ms ease,
    transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 500ms ease;
}

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

.hero-panel {
  width: min(900px, calc(100vw - 110px));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.5rem, 8.2vw, 8rem);
  line-height: 0.9;
  text-wrap: balance;
}

.lead {
  max-width: 650px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.hero-tags span {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 17, 10, 0.62);
  backdrop-filter: blur(12px);
  color: #dcffe9;
  font-size: 0.82rem;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-hint i {
  position: relative;
  display: block;
  width: 28px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.scroll-hint i::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  transform: translateX(-50%);
  animation: scroll-dot 1.7s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 17px); }
}

.task-panel,
.dashboard-panel {
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(11, 31, 19, 0.78), rgba(2, 9, 5, 0.82));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(1.3);
}

.scroll-scene.is-active .task-panel {
  border-color: rgba(102, 255, 159, 0.5);
}

.task-panel header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.task-panel header .eyebrow {
  margin: 0;
}

.task-number {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: rgba(102, 255, 159, 0.08);
  box-shadow: 0 0 26px rgba(102, 255, 159, 0.1);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.task-panel h2,
.dashboard-panel h2 {
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  line-height: 0.98;
  text-wrap: balance;
}

.task-panel > p,
.dashboard-intro {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.7;
}

.todo-list {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.todo-list li {
  position: relative;
  padding: 12px 14px 12px 44px;
  border: 1px solid rgba(102, 255, 159, 0.12);
  border-radius: 13px;
  color: #d8e9df;
  background: rgba(2, 10, 5, 0.44);
  line-height: 1.45;
}

.todo-list li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 14px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  transform: translateY(-50%);
  font-size: 0.72rem;
}

.finale-scene {
  justify-content: center;
}

.dashboard-panel {
  width: min(1100px, calc(100vw - 110px));
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.kpi-grid article {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(1, 8, 4, 0.66);
}

.kpi-grid article::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(24px);
}

.kpi-grid span,
.kpi-grid small {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kpi-grid strong {
  display: block;
  margin: 24px 0 14px;
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 3.3vw, 3.4rem);
  line-height: 1;
}

.cta-link {
  display: inline-flex;
  margin-top: 26px;
  padding: 14px 20px;
  border-radius: 999px;
  color: #021006;
  background: var(--green);
  box-shadow: 0 12px 38px var(--glow);
  text-decoration: none;
  font-weight: 800;
}

.noscript-note {
  position: fixed;
  z-index: 99;
  right: 20px;
  bottom: 20px;
  padding: 14px;
  background: #fff;
  color: #111;
}

@media (max-width: 900px) {
  .video-shade {
    background: linear-gradient(180deg, rgba(1, 5, 3, 0.34), rgba(1, 5, 3, 0.64));
  }

  .scroll-scene,
  .align-right {
    justify-content: center;
    padding-inline: 20px;
  }

  .scene-panel,
  .hero-panel,
  .dashboard-panel {
    width: min(100%, 680px);
  }

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

@media (max-width: 620px) {
  .brand-link {
    top: 12px;
    left: 12px;
  }

  .brand-link > span:last-child {
    display: none;
  }

  .scroll-status {
    right: 9px;
  }

  .status-track {
    height: 100px;
  }

  .scroll-scene {
    min-height: 110svh;
    padding: 78px 28px 54px 14px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .task-panel,
  .dashboard-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .task-panel h2,
  .dashboard-panel h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
    overflow-wrap: anywhere;
  }

  .todo-list li {
    padding-left: 40px;
    font-size: 0.9rem;
  }

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

  .kpi-grid article {
    min-height: 135px;
    padding: 16px;
  }

  .kpi-grid strong {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }
}

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

  .scene-panel {
    transition: none;
  }

  .scan-line,
  .scroll-hint i::after {
    animation: none;
  }
}
