:root {
  --header-offset: 66px;
  --bg: #070910;
  --bg-soft: #101424;
  --card: #121727;
  --pharus-ink: #1b1e31;
  --fg: #f1f1f1;
  --muted: #8b90a0;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #f8c42b;
  --primary-soft: rgba(248, 196, 43, 0.15);
  --danger: #ef4444;
  --success: #0db66e;
  --accent: #0ea5e9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Nunito", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  line-height: 1.55;
  font-size: 14px;
  overflow-x: clip;
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(27, 30, 49, 0.45), transparent 60%),
    var(--bg);
}

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

img {
  max-width: 100%;
  height: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(248, 196, 43, 0.95);
  outline-offset: 2px;
}

section[id] {
  scroll-margin-top: calc(var(--header-offset) + 12px);
}

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 200;
  background: var(--primary);
  color: #111318;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.68rem;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(27, 30, 49, 0.78), rgba(10, 12, 19, 0.72));
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

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

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
}

.brand span {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1rem;
}

.header-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-nav a {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.header-nav a:hover {
  color: var(--primary);
}

.header-cta {
  padding-inline: 1.05rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: #f3f3f4;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

.section {
  position: relative;
  padding: clamp(3.2rem, 6vw, 5.4rem) 0;
  overflow: hidden;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.section-head h2 {
  margin: 0.3rem auto 1rem;
  max-width: 900px;
  font-size: clamp(1.16rem, 2.25vw, 2.06rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-head p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  line-height: 1.6;
}

.label {
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 600;
}

.label-primary {
  color: var(--primary);
}

.label-danger {
  color: var(--danger);
}

.label-success {
  color: var(--success);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #ffe58a 55%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-danger {
  color: var(--danger);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  min-height: 44px;
  padding: 0.78rem 1.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28), transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn-primary {
  background: var(--primary);
  color: #111318;
  box-shadow: 0 0 0 rgba(248, 196, 43, 0);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(248, 196, 43, 0.35), 0 0 0 1px rgba(248, 196, 43, 0.45) inset;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #e9e9ea;
}

.btn-ghost:hover {
  border-color: rgba(248, 196, 43, 0.55);
  color: var(--primary);
  box-shadow: 0 0 22px rgba(27, 30, 49, 0.55), 0 0 0 1px rgba(248, 196, 43, 0.2) inset;
}

.card {
  background: linear-gradient(180deg, rgba(27, 30, 49, 0.36), rgba(16, 20, 36, 0.78) 48%, rgba(12, 15, 24, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: rgba(248, 196, 43, 0.26);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(27, 30, 49, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 30, 49, 0.42) 1px, transparent 1px);
  background-size: 60px 60px;
}

#site-main {
  opacity: 0;
  transition: opacity 0.6s ease;
  padding-top: var(--header-offset);
}

body.ready #site-main {
  opacity: 1;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--bg);
  overflow: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader::before,
.preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.preloader::before {
  z-index: 2;
  background:
    radial-gradient(560px 260px at 50% 28%, rgba(248, 196, 43, 0.13), transparent 72%),
    linear-gradient(180deg, rgba(2, 4, 10, 0.3), rgba(0, 0, 0, 0.68));
}

.preloader::after {
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 225, 123, 0.24) 48%,
    rgba(255, 245, 189, 0.92) 50%,
    rgba(255, 225, 123, 0.24) 52%,
    transparent 100%
  );
  mix-blend-mode: screen;
  transform: translateX(-75%);
}

.preloader .grid-overlay {
  opacity: 0.33;
  z-index: 0;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-sequence {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 1rem;
  width: min(760px, 92vw);
  transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
}

.preloader-word-stage {
  position: relative;
  width: min(760px, 88vw);
  height: clamp(52px, 8vw, 96px);
  perspective: 900px;
  transition: opacity 0.48s ease, transform 0.48s ease, filter 0.48s ease;
}

.preloader-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(1.22rem, 4.4vw, 2.66rem);
  font-weight: 800;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: rgba(215, 222, 239, 0.98);
  text-shadow: 0 0 24px rgba(248, 196, 43, 0.22);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.preloader-word-current {
  opacity: 1;
}

.preloader-word-next {
  opacity: 0;
}

.preloader-word-stage.is-flipping[data-direction="up"] .preloader-word-current {
  animation: flipOutUp 0.48s cubic-bezier(0.58, 0.08, 0.36, 0.99) forwards;
}

.preloader-word-stage.is-flipping[data-direction="up"] .preloader-word-next {
  animation: flipInUp 0.48s cubic-bezier(0.2, 0.66, 0.2, 1) forwards;
}

.preloader-word-stage.is-flipping[data-direction="down"] .preloader-word-current {
  animation: flipOutDown 0.48s cubic-bezier(0.58, 0.08, 0.36, 0.99) forwards;
}

.preloader-word-stage.is-flipping[data-direction="down"] .preloader-word-next {
  animation: flipInDown 0.48s cubic-bezier(0.2, 0.66, 0.2, 1) forwards;
}

.preloader-logo {
  width: min(260px, 52vw);
  text-align: center;
  opacity: 0;
  transform: translateY(28px) scale(0.88);
  transition: opacity 0.78s cubic-bezier(0.2, 0.68, 0.2, 1), transform 0.78s cubic-bezier(0.2, 0.68, 0.2, 1);
}

.preloader-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.preloader-logo-wrap::before,
.preloader-logo-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 32%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.preloader-logo-wrap::before {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 240, 163, 0.98) 0%, rgba(248, 196, 43, 0.44) 22%, rgba(248, 196, 43, 0) 72%);
  filter: blur(4px);
  animation: lighthouseHalo 1.6s ease-in-out infinite;
  animation-play-state: paused;
}

.preloader-logo-wrap::after {
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background:
    conic-gradient(
      from 270deg,
      transparent 0deg 104deg,
      rgba(248, 196, 43, 0.54) 116deg 132deg,
      rgba(248, 196, 43, 0.1) 132deg 148deg,
      transparent 148deg 212deg,
      rgba(248, 196, 43, 0.54) 224deg 240deg,
      rgba(248, 196, 43, 0.1) 240deg 256deg,
      transparent 256deg 360deg
    );
  filter: blur(10px);
  mix-blend-mode: screen;
  animation: lighthouseBeam 2.8s ease-in-out infinite;
  animation-play-state: paused;
}

.preloader-logo img {
  display: block;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 16px 38px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 16px rgba(248, 196, 43, 0.12));
  animation: lighthouseLogoFloat 2.2s ease-in-out infinite;
}

.light-step {
  position: absolute;
  left: 50%;
  border-radius: 999px;
  background: rgba(255, 228, 123, 0.94);
  opacity: 0;
  transform: translate(-50%, 0) scale(0.34);
  z-index: 3;
  box-shadow: 0 0 0 rgba(248, 196, 43, 0);
}

.light-step-1 {
  width: 9px;
  height: 9px;
  bottom: 21%;
}

.light-step-2 {
  width: 11px;
  height: 11px;
  bottom: 37%;
}

.light-step-3 {
  width: 14px;
  height: 14px;
  bottom: 56%;
}

.preloader-logo small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.preloader.show-logo .preloader-word-stage {
  opacity: 0;
  transform: translateY(-30px) scale(0.94);
  filter: blur(1.2px);
}

.preloader.is-suspense::before {
  opacity: 1;
}

.preloader.is-suspense::after {
  opacity: 1;
  animation: authoritySweep 0.9s cubic-bezier(0.27, 0.78, 0.28, 1) forwards;
}

.preloader.is-suspense .preloader-sequence {
  transform: scale(0.96);
  filter: saturate(0.72) contrast(1.08);
}

.preloader.is-suspense .preloader-word-stage {
  opacity: 0.06;
  transform: translateY(-18px) scale(0.94);
  filter: blur(2px);
}

.preloader.show-logo .preloader-logo {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: logoAuthorityIn 0.82s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.preloader.show-logo .preloader-logo-wrap::before,
.preloader.show-logo .preloader-logo-wrap::after {
  animation-play-state: running;
}

.preloader.show-logo .light-step-1 {
  animation:
    lighthouseIgnite 0.85s ease-out 0.06s forwards,
    lighthousePulse 1.6s ease-in-out 0.95s infinite;
}

.preloader.show-logo .light-step-2 {
  animation:
    lighthouseIgnite 0.85s ease-out 0.3s forwards,
    lighthousePulse 1.6s ease-in-out 1.2s infinite;
}

.preloader.show-logo .light-step-3 {
  animation:
    lighthouseIgnite 0.85s ease-out 0.54s forwards,
    lighthousePulse 1.6s ease-in-out 1.45s infinite;
}

@keyframes flipOutUp {
  0% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-44%) rotateX(88deg);
  }
}

@keyframes flipInUp {
  0% {
    opacity: 0;
    transform: translateY(44%) rotateX(-88deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes flipOutDown {
  0% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(44%) rotateX(-88deg);
  }
}

@keyframes flipInDown {
  0% {
    opacity: 0;
    transform: translateY(-44%) rotateX(88deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes authoritySweep {
  0% {
    transform: translateX(-70%);
  }
  100% {
    transform: translateX(70%);
  }
}

@keyframes logoAuthorityIn {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.84);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.03);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes lighthouseIgnite {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.34);
    box-shadow: 0 0 0 rgba(248, 196, 43, 0);
  }
  52% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.16);
    box-shadow: 0 0 18px rgba(248, 196, 43, 0.85), 0 0 34px rgba(248, 196, 43, 0.56);
  }
  100% {
    opacity: 0.84;
    transform: translate(-50%, 0) scale(1);
    box-shadow: 0 0 14px rgba(248, 196, 43, 0.66), 0 0 24px rgba(248, 196, 43, 0.44);
  }
}

@keyframes lighthousePulse {
  0%,
  100% {
    opacity: 0.62;
    filter: brightness(0.86);
  }
  50% {
    opacity: 1;
    filter: brightness(1.16);
  }
}

@keyframes lighthouseHalo {
  0%,
  100% {
    opacity: 0.16;
    transform: translate(-50%, -50%) scale(0.88);
  }
  52% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1.13);
  }
}

@keyframes lighthouseBeam {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-12deg) scale(0.84);
  }
  24% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.68;
    transform: translate(-50%, -50%) rotate(12deg) scale(1);
  }
  74% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-12deg) scale(0.84);
  }
}

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

/* Hero */
.hero {
  min-height: calc(100svh - var(--header-offset));
  display: grid;
  place-items: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/background-1.png") center/cover no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.22;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(9, 10, 13, 1), rgba(9, 10, 13, 0.7), transparent),
    linear-gradient(to right, rgba(9, 10, 13, 0.66), transparent 40%, rgba(9, 10, 13, 0.66));
}

.hero-grid {
  opacity: 0.2;
}

.hero-beam {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(248, 196, 43, 0.8), transparent);
  opacity: 0.2;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 880px;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(1.48rem, 3.95vw, 3.15rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-sub {
  max-width: 680px;
  margin: 1.2rem auto 1.7rem;
  color: var(--muted);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: var(--muted);
}

.scroll-indicator small {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
}

.scroll-mouse {
  width: 18px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  position: relative;
}

.scroll-mouse i {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(248, 196, 43, 0.9);
  animation: mouseWheel 1.4s ease-in-out infinite;
}

@keyframes mouseWheel {
  0% { opacity: 0.95; transform: translate(-50%, 0); }
  60% { opacity: 0.25; transform: translate(-50%, 8px); }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* Pain */
.pain-section {
  background: linear-gradient(to bottom, rgba(9, 10, 13, 0.95), rgba(9, 10, 13, 1));
}

.pain-section .texture {
  display: none;
}

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

.pain-grid .card {
  padding: 1.4rem;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.card-top b {
  color: var(--danger);
}

.pain-grid h3 {
  margin: 0;
  color: var(--danger);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
}

.pain-grid p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.bar {
  margin-top: 1rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: rgba(239, 68, 68, 0.65);
  border-radius: inherit;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.quote {
  text-align: center;
  margin: 2.6rem auto 0;
  max-width: 650px;
  color: rgba(139, 144, 160, 0.7);
  font-style: italic;
  font-size: 0.88rem;
}

/* Turning point */
.turning-point {
  text-align: center;
}

.turning-point .container {
  max-width: 900px;
}

.turning-point h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.35rem, 2.8vw, 2.3rem);
  line-height: 1;
}

.turning-point p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.86rem, 1vw, 0.95rem);
  text-wrap: pretty;
}

.center-beam {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(248, 196, 43, 0.6), rgba(248, 196, 43, 0.2), transparent);
  box-shadow: 0 0 32px rgba(248, 196, 43, 0.23);
}

.radial-glow {
  position: absolute;
  width: 620px;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(248, 196, 43, 0.08), transparent 68%);
  pointer-events: none;
}

/* Storytelling */
.timeline {
  position: relative;
  display: grid;
  gap: 2.3rem;
  padding: 1rem 0;
}

.timeline-line,
.timeline-progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 2px;
  border-radius: 999px;
}

.timeline-line {
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-progress {
  height: 0;
  background: linear-gradient(to bottom, var(--danger), var(--accent), var(--success));
  box-shadow: 0 0 20px rgba(248, 196, 43, 0.2);
}

.timeline-item {
  position: relative;
  width: calc(50% - 54px);
  padding: 0.25rem 0;
}

.timeline-left {
  margin-right: auto;
  text-align: right;
}

.timeline-right {
  margin-left: auto;
  text-align: left;
}

.timeline-item small {
  display: block;
  color: rgba(139, 144, 160, 0.75);
  margin-bottom: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.timeline-item h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(0.92rem, 1.2vw, 1.14rem);
  font-weight: 700;
}

.timeline-item p {
  margin: 0;
  max-width: 332px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.58;
  text-wrap: pretty;
}

.timeline-left p {
  margin-left: auto;
}

.dot {
  position: absolute;
  top: 1.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg), 0 0 22px rgba(248, 196, 43, 0.24);
}

.timeline-left .dot {
  right: -59px;
}

.timeline-right .dot {
  left: -59px;
}

.dot-danger { background: var(--danger); }
.dot-primary { background: var(--primary); }
.dot-success { background: var(--success); }
.dot-accent { background: var(--accent); }

.timeline-item.active h3 {
  color: #ffd970;
}

.timeline-item.active p {
  color: rgba(255, 220, 128, 0.92);
}

.timeline-item.active small {
  color: rgba(255, 220, 128, 0.8);
}

/* Ecosystem */
.ecosystem {
  padding: clamp(2.4rem, 4.8vw, 3.6rem) 0;
  overflow: visible;
  background: var(--bg);
}

.eco-stage {
  position: relative;
  overflow: visible;
}

.eco-pin {
  position: sticky;
  top: 0;
  min-height: clamp(500px, 76svh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  overflow: hidden;
  background: var(--bg);
  z-index: 2;
}

.eco-pin .container {
  width: min(1250px, calc(100% - 3rem));
}

.ecosystem .section-head {
  text-align: left;
  margin-bottom: 1.3rem;
}

.ecosystem .section-head h2 {
  margin-left: 0;
  max-width: 620px;
}

.ecosystem .section-head p {
  margin-left: 0;
}

.eco-viewport {
  overflow: hidden;
}

.eco-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0 0 0.8rem 0.6rem;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.eco-card {
  flex: 0 0 min(300px, 76vw);
  min-height: 265px;
  padding: 1.05rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.eco-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.eco-top span {
  color: var(--primary);
  font-size: 0.95rem;
}

.eco-top small {
  color: var(--muted);
  letter-spacing: 0.15em;
  font-size: 0.65rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.eco-card h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
}

.eco-sub {
  margin: 0.3rem 0 0.85rem;
  color: rgba(248, 196, 43, 0.85);
  font-size: 0.76rem;
  font-weight: 500;
}

.eco-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.kpis span {
  font-size: 0.65rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: rgba(248, 196, 43, 0.92);
  border: 1px solid rgba(248, 196, 43, 0.2);
  background: rgba(248, 196, 43, 0.08);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
}

/* Simulator */
.simulator {
  overflow: hidden;
  padding-block: clamp(2.4rem, 4.6vw, 3.6rem);
}

.js .simulator {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(4px);
}

.js .simulator.simulator-fade-in {
  animation: simulatorSectionFade 0.72s cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.simulator .section-head {
  margin-bottom: 0.8rem;
}

.simulator .section-head p {
  font-size: 0.78rem;
}

.sim-glow {
  position: absolute;
  width: 820px;
  aspect-ratio: 1;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(248, 196, 43, 0.06), transparent 62%);
}

.sim-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 0.8rem;
}

.sim-controls,
.sim-results {
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(27, 30, 49, 0.46), rgba(16, 20, 36, 0.88) 52%, rgba(9, 11, 18, 0.94));
}

.sim-controls h3,
.sim-results h3 {
  margin: 0 0 1rem;
  font-size: 0.96rem;
}

.sim-impact {
  margin-bottom: 0.58rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(248, 196, 43, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(280px 120px at 20% 10%, rgba(248, 196, 43, 0.16), transparent 68%),
    linear-gradient(180deg, rgba(248, 196, 43, 0.14), rgba(248, 196, 43, 0.05));
}

.sim-impact small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(255, 232, 172, 0.86);
}

.sim-impact strong {
  display: block;
  margin-top: 0.22rem;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.sim-impact span {
  display: block;
  margin-top: 0.34rem;
  color: rgba(255, 232, 172, 0.9);
  font-size: 0.63rem;
}

.sim-help {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.sim-controls label {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.sim-controls label div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.sim-controls span {
  color: var(--muted);
  font-size: 0.78rem;
}

.sim-controls b {
  color: var(--primary);
  font-size: 0.8rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(248, 196, 43, 0.28), rgba(255, 255, 255, 0.12));
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(248, 196, 43, 0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(248, 196, 43, 0.5);
}

.sim-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sim-preset {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  padding: 0.38rem 0.62rem;
  cursor: pointer;
}

.sim-preset:hover,
.sim-preset.is-active {
  color: var(--primary);
  border-color: rgba(248, 196, 43, 0.4);
  background: rgba(248, 196, 43, 0.1);
}

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

.kpi {
  padding: 0.62rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.kpi.highlight {
  background: var(--primary-soft);
  border-color: rgba(248, 196, 43, 0.22);
}

.kpi small {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.kpi strong {
  font-size: clamp(0.86rem, 1vw, 1rem);
}

.kpi.highlight strong {
  color: var(--primary);
}

.sim-bars {
  margin-top: 0.65rem;
  min-height: 118px;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 0.45rem;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.015), transparent);
  border-radius: 10px;
}

.sim-bar-wrap {
  display: grid;
  justify-items: center;
  gap: 0.22rem;
}

.sim-bar-wrap small {
  font-size: 0.62rem;
  color: var(--muted);
}

.sim-bar-wrap em {
  font-style: normal;
  color: rgba(255, 232, 172, 0.92);
  font-size: 0.58rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.sim-bar {
  width: 100%;
  max-width: 38px;
  height: 50px;
  border-radius: 8px 8px 4px 4px;
  transition: height 0.35s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

.sim-crm { background: #f8c42b; }
.sim-auto { background: #0ea5e9; }
.sim-ret { background: #0db66e; }
.sim-efi { background: #9f7aea; }

@keyframes simulatorSectionFade {
  0% {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Results */
.results {
  padding-block: clamp(2.2rem, 4.8vw, 3.2rem);
}

.results .section-head {
  margin-bottom: 1rem;
}

.results .section-head h2 {
  font-size: clamp(1.12rem, 2.05vw, 1.82rem);
}

.results .section-head p {
  font-size: 0.78rem;
}

.results-glow {
  position: absolute;
  width: 820px;
  height: 420px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(13, 182, 110, 0.09), transparent 72%);
}

.results::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/background-2.png") center/cover no-repeat;
  opacity: 0.09;
  pointer-events: none;
}

.results::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/background-1.png") center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.chart-card {
  padding: 0.58rem 0.72rem 0.25rem;
  margin-bottom: 0.6rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.chart-header div {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.chart-header i {
  display: inline-block;
  width: 14px;
  height: 2px;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.line-before { background: rgba(239, 68, 68, 0.75); }
.line-after { background: rgba(13, 182, 110, 0.95); }

#resultsChart {
  width: 100%;
  height: auto;
  max-height: 158px;
  display: block;
}

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

.result-grid .card {
  text-align: center;
  padding: 0.65rem 0.35rem;
}

.result-grid h3 {
  margin: 0 0 0.25rem;
  color: var(--success);
  font-size: clamp(1.18rem, 2.8vw, 1.65rem);
}

.result-grid p {
  margin: 0;
  font-size: 0.72rem;
}

.result-grid small {
  color: var(--muted);
  font-size: 0.62rem;
}

/* Authority */
.authority {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.authority .grid-overlay {
  opacity: 0.2;
}

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

.authority-grid .card {
  padding: 0.92rem;
}

.authority-grid small {
  color: var(--muted);
}

.authority-grid h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1rem;
}

.authority-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

/* Final CTA */
.final-cta {
  text-align: center;
}

.final-cta .container {
  max-width: 870px;
}

.final-cta h2 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(1.35rem, 2.9vw, 2.4rem);
  line-height: 1;
}

.final-cta p {
  margin: 0 auto 1.5rem;
  max-width: 710px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
  text-wrap: pretty;
}

.cta-beam {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(248, 196, 43, 0.5), rgba(248, 196, 43, 0.15), transparent);
  box-shadow: 0 0 40px rgba(248, 196, 43, 0.16);
}

.cta-glow {
  position: absolute;
  width: 640px;
  height: 420px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(248, 196, 43, 0.08), transparent 72%);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand strong {
  letter-spacing: -0.03em;
  color: var(--primary);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-brand img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.footer-brand span,
.footer-brand small,
.footer small,
.footer nav a {
  color: var(--muted);
  font-size: 0.76rem;
}

.footer nav {
  display: flex;
  gap: 0.85rem;
}

.footer nav a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .header-nav {
    position: fixed;
    top: var(--header-offset);
    left: 0;
    right: 0;
    z-index: 35;
    display: none;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.8rem 0.75rem 1rem;
    background: linear-gradient(180deg, rgba(12, 16, 29, 0.98), rgba(9, 11, 20, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
  }

  body.nav-open .header-nav {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  .header-nav a {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.55rem 0.65rem;
    text-align: center;
  }

  .header-cta {
    display: none;
  }

  .section-head h2 {
    font-size: clamp(1.38rem, 5.2vw, 2.4rem);
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 9vw, 3.4rem);
  }

  .hero-sub {
    max-width: 560px;
  }

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

  .sim-layout {
    grid-template-columns: 1fr;
  }

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

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

  .timeline-line,
  .timeline-progress {
    left: 11px;
    transform: none;
  }

  .timeline-item,
  .timeline-left,
  .timeline-right {
    width: 100%;
    margin: 0;
    text-align: left;
    padding-left: 2rem;
  }

  .timeline-left p {
    margin-left: 0;
  }

  .timeline-left .dot,
  .timeline-right .dot {
    left: 6px;
    right: auto;
  }

  .ecosystem {
    padding: clamp(3.2rem, 6vw, 5.4rem) 0;
  }

  .eco-pin {
    position: sticky;
    top: var(--header-offset);
    min-height: calc(100svh - var(--header-offset));
    display: flex;
    align-items: center;
    padding-top: 0;
  }

  .eco-pin .container {
    width: min(1120px, calc(100% - 3rem));
  }

  .eco-viewport {
    overflow: hidden;
  }

  .eco-track {
    padding-bottom: 0.8rem;
  }

  .eco-card {
    flex-basis: min(280px, 86vw);
  }
}

@media (max-width: 680px) {
  :root {
    --header-offset: 72px;
  }

  .header-inner {
    min-height: 64px;
    grid-template-columns: auto 1fr auto;
    gap: 0.55rem;
    padding-block: 0.25rem;
  }

  .header-nav {
    top: var(--header-offset);
  }

  .header-nav a {
    font-size: 0.6rem;
    padding: 0.54rem 0.6rem;
  }

  .container {
    width: calc(100% - 1.5rem);
  }

  .section {
    padding: 3.4rem 0;
  }

  .pain-grid,
  .authority-grid {
    grid-template-columns: 1fr;
  }

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

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

  .sim-bars {
    display: none;
  }

  .hero .hero-actions,
  .final-cta .hero-actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .hero .hero-actions .btn,
  .final-cta .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.67rem;
    padding: 0.72rem 0.5rem;
    line-height: 1.2;
  }

  .chart-header {
    flex-direction: column;
    gap: 0.4rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
    width: 100%;
  }

  .footer nav {
    justify-content: center;
    width: 100%;
  }

  .footer small {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .sim-controls label div {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

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