.page-home {
  --home-hero-gold: #D4A53F;
  --home-hero-red: #C7453B;
  --home-line: rgba(212, 165, 63, 0.35);
  --home-board: rgba(20, 45, 76, 0.85);
  --home-chip-bg: rgba(212, 165, 63, 0.12);
  --home-num-lg: 88px;
  --home-num-md: 40px;
  color: var(--color-off-white);
}

.page-home .container,
.page-home .section {
  position: relative;
  z-index: 1;
}

/* ---------- Hero ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-navy-900);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, rgba(212, 165, 63, 0.08) 0%, transparent 75%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--home-hero-gold) 0 18px, transparent 18px 36px);
  opacity: 0.65;
}

.page-home .home-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.page-home .home-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 0 40px;
}

.page-home .home-hero__content .sec-tag {
  color: var(--home-hero-gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-home .home-hero__content .display-type {
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.12;
  margin: 20px 0 20px;
  font-weight: 900;
}

.page-home .home-hero__lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-ice-blue);
  max-width: 540px;
  margin-bottom: 28px;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: var(--border-thick) solid transparent;
  cursor: pointer;
  transition: transform 125ms ease, box-shadow 125ms ease, background-color 125ms ease;
}

.page-home .btn-primary {
  background: var(--home-hero-gold);
  color: var(--color-navy-900);
  border-color: var(--color-gold-300);
  box-shadow: var(--shadow-hard);
}

.page-home .btn-primary:hover {
  background: var(--color-gold-300);
  transform: translateY(2px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.page-home .btn-ghost {
  background: transparent;
  color: var(--color-off-white);
  border-color: var(--color-steel-gray);
}

.page-home .btn-ghost:hover {
  border-color: var(--home-hero-gold);
  color: var(--home-hero-gold);
  transform: translateY(2px);
}

.page-home .home-hero__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: var(--color-ice-blue);
}

.page-home .home-hero__meta .data-text {
  color: var(--home-hero-gold);
  font-size: 18px;
  font-weight: 700;
  margin-right: 4px;
}

.page-home .home-hero__stage {
  position: relative;
  min-height: 260px;
  margin-top: 8px;
}

.page-home .home-hero__stage-bg {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
  background: var(--color-navy-700);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-hero__stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: grayscale(0.15) contrast(1.1);
}

.page-home .home-hero__stage .ghost-number {
  position: absolute;
  right: 6%;
  top: 8%;
  font-size: var(--home-num-lg);
  font-family: var(--font-data);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--home-hero-gold);
  opacity: 0.9;
  z-index: 1;
}

.page-home .home-hero__stage .vertical-note {
  position: absolute;
  right: 2%;
  top: 42%;
  writing-mode: vertical-rl;
  color: var(--color-gold-300);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
  border-right: 1px solid var(--home-line);
  padding-right: 8px;
}

/* ---------- Data section ---------- */
.page-home .home-data {
  background: var(--color-navy-900);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 80px 20px 90px;
  border-bottom: 1px solid rgba(168, 200, 232, 0.18);
}

.page-home .home-data__rail {
  position: relative;
  padding-top: 12px;
}

.page-home .home-data__rail .sec-tag {
  margin-bottom: 12px;
  color: var(--home-hero-gold);
  font-weight: 700;
}

.page-home .home-data__title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 18px;
}

.page-home .home-data__desc {
  color: var(--color-ice-blue);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 44ch;
}

.page-home .text-link {
  display: inline-block;
  color: var(--home-hero-gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 125ms ease;
  font-size: 15px;
}

.page-home .text-link:hover {
  border-bottom-color: var(--home-hero-gold);
}

.page-home .home-data__board {
  position: relative;
  background: var(--home-board);
  border: var(--border-thick) solid var(--color-gold-500);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
  padding: 28px 22px 24px;
  overflow: hidden;
}

.page-home .home-data__board-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-home .home-data__board-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.page-home .home-data__board-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--home-line);
  padding-bottom: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-home .round-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--home-chip-bg);
  border: 1px solid var(--home-line);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.page-home .round-dot {
  width: 8px;
  height: 8px;
  background: var(--color-data-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-data-green);
}

.page-home .round-text {
  color: var(--color-gold-300);
}

.page-home .home-data__board-ref {
  color: var(--color-ice-blue);
  font-size: 13px;
}

.page-home .home-data__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 24px;
}

.page-home .home-data__stat {
  background: rgba(11, 31, 58, 0.8);
  border-left: 4px solid var(--home-hero-gold);
  padding: 14px 12px;
}

.page-home .home-data__stat dt {
  font-size: 12px;
  color: var(--color-ice-blue);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.page-home .home-data__stat dd {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--color-off-white);
}

.page-home .home-data__stat--warn dd {
  color: var(--home-hero-red);
}

.page-home .home-data__stat--warn {
  border-left-color: var(--home-hero-red);
}

.page-home .home-data__progress {
  position: relative;
  margin-top: 4px;
}

.page-home .home-data__progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-ice-blue);
  margin-bottom: 8px;
}

.page-home .home-data__progress-meta .data-text {
  color: var(--color-gold-300);
}

.page-home .home-data__progress-track {
  height: 10px;
  background: var(--color-navy-900);
  border: 1px solid rgba(168, 200, 232, 0.3);
}

.page-home .home-data__progress-fill {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--home-hero-gold) 0 14px, var(--color-gold-300) 14px 18px);
}

/* ---------- Switch section ---------- */
.page-home .home-switch {
  background: var(--color-navy-700);
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 90px 20px 90px;
  position: relative;
  overflow: hidden;
}

.page-home .home-switch::before {
  content: "SWITCH";
  position: absolute;
  right: -2%;
  top: 4%;
  font-family: var(--font-data);
  font-size: clamp(48px, 9vw, 112px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 165, 63, 0.25);
  pointer-events: none;
  letter-spacing: -0.04em;
}

.page-home .home-switch__intro {
  position: relative;
  z-index: 1;
}

.page-home .home-switch__index {
  display: block;
  font-family: var(--font-data);
  font-size: var(--home-num-md);
  font-weight: 700;
  color: var(--home-hero-gold);
  line-height: 1;
  margin-bottom: 14px;
}

.page-home .home-switch__intro .sec-tag {
  color: var(--home-hero-gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-home .home-switch__title {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 900;
  margin: 0 0 16px;
}

.page-home .home-switch__title br {
  display: none;
}

.page-home .home-switch__desc {
  color: var(--color-ice-blue);
  line-height: 1.8;
  max-width: 48ch;
  margin-bottom: 26px;
}

.page-home .home-switch__demo {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-switch__device {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  border: var(--border-thick) solid var(--home-hero-gold);
  box-shadow: var(--shadow-hard);
  background: var(--color-navy-900);
}

.page-home .home-switch__device-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.8;
}

.page-home .home-switch__device-bar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 8px;
  background: var(--home-hero-gold);
  border-radius: 20px;
  opacity: 0.85;
}

.page-home .home-switch__sim {
  position: absolute;
  bottom: 18px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  background: rgba(11, 31, 58, 0.9);
  border: 1px solid var(--home-line);
  padding: 12px 14px;
  text-align: center;
}

.page-home .home-switch__sim-team {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-off-white);
}

.page-home .home-switch__sim-team:last-child {
  text-align: right;
}

.page-home .home-switch__sim-team:first-child {
  text-align: left;
}

.page-home .home-switch__sim-score {
  font-family: var(--font-data);
  font-size: 26px;
  font-weight: 800;
  color: var(--home-hero-gold);
  background: var(--home-chip-bg);
  padding: 4px 12px;
  border-radius: 2px;
}

.page-home .home-switch__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .home-switch__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: rgba(11, 31, 58, 0.55);
  border: 1px solid rgba(168, 200, 232, 0.25);
  padding: 16px 14px;
  transition: border-color 125ms ease, background-color 125ms ease;
}

.page-home .home-switch__step:hover {
  border-color: var(--home-hero-gold);
  background: rgba(11, 31, 58, 0.85);
}

.page-home .home-switch__step-num {
  font-family: var(--font-data);
  font-size: 22px;
  font-weight: 700;
  color: var(--home-hero-gold);
  line-height: 1.2;
}

.page-home .home-switch__step p {
  margin: 0;
  color: var(--color-off-white);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Review section ---------- */
.page-home .home-review {
  background: var(--color-navy-900);
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 90px 20px 90px;
  position: relative;
}

.page-home .home-review::after {
  content: "REVIEW";
  position: absolute;
  left: -2%;
  bottom: 2%;
  font-family: var(--font-data);
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(199, 69, 59, 0.4);
  pointer-events: none;
}

.page-home .home-review__aside {
  position: relative;
  z-index: 1;
}

.page-home .home-review__aside-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 340px;
  border: var(--border-thick) solid var(--home-hero-red);
  box-shadow: var(--shadow-hard);
  opacity: 0.85;
}

.page-home .home-review__main {
  position: relative;
  z-index: 1;
}

.page-home .home-review__index {
  display: block;
  font-family: var(--font-data);
  font-size: var(--home-num-md);
  font-weight: 700;
  color: var(--home-hero-red);
  line-height: 1;
  margin-bottom: 14px;
}

.page-home .home-review__main .sec-tag {
  color: var(--home-hero-gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-home .home-review__title {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 18px;
  line-height: 1.25;
}

.page-home .home-review__desc {
  color: var(--color-ice-blue);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 52ch;
}

.page-home .home-review__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 12px;
}

.page-home .home-review__list li {
  padding-left: 20px;
  position: relative;
  color: var(--color-off-white);
  font-size: 15px;
  line-height: 1.65;
}

.page-home .home-review__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 3px;
  background: var(--home-hero-gold);
}

.page-home .home-review .btn {
  background: var(--home-hero-red);
  color: var(--color-off-white);
  border-color: var(--home-hero-red);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.page-home .home-review .btn:hover {
  background: #a6382f;
  transform: translateY(2px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

/* ---------- Animations ---------- */
@keyframes home-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.page-home [data-blink] {
  animation: home-blink 2.4s ease-in-out infinite;
  display: inline-block;
}

@keyframes home-enter-fade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home .home-data__stat,
.page-home .home-switch__step,
.page-home .home-review__list li {
  animation: home-enter-fade 400ms ease-out both;
}

.page-home .home-data__stat:nth-child(1) { animation-delay: 0ms; }
.page-home .home-data__stat:nth-child(2) { animation-delay: 80ms; }
.page-home .home-data__stat:nth-child(3) { animation-delay: 160ms; }
.page-home .home-data__stat:nth-child(4) { animation-delay: 240ms; }

/* ---------- Tablet ≥ 768px ---------- */
@media (min-width: 768px) {
  .page-home .home-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    padding: 80px 32px 96px;
    align-items: center;
  }

  .page-home .home-hero__content {
    padding: 0;
  }

  .page-home .home-hero__stage {
    min-height: 420px;
  }

  .page-home .home-hero__stage-bg {
    min-height: 420px;
  }

  .page-home .home-data {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    padding: 100px 48px 110px;
  }

  .page-home .home-data__title {
    font-size: 40px;
  }

  .page-home .home-data__board {
    padding: 32px 30px 28px;
  }

  .page-home .home-data__stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .page-home .home-data__stat dd {
    font-size: 32px;
  }

  .page-home .home-switch {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 52px;
    padding: 100px 48px 100px;
    align-items: center;
  }

  .page-home .home-switch__title br {
    display: block;
  }

  .page-home .home-switch__demo {
    grid-template-columns: 1fr;
  }

  .page-home .home-switch__device {
    max-width: 420px;
  }

  .page-home .home-switch__steps {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .page-home .home-review {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 52px;
    padding: 100px 48px 100px;
    align-items: center;
  }

  .page-home .home-review__aside-img {
    max-height: none;
    height: 100%;
  }

  .page-home .home-review__title {
    font-size: 40px;
  }
}

/* ---------- Desktop ≥ 1160px ---------- */
@media (min-width: 1160px) {
  .page-home .home-hero__inner {
    padding-left: 64px;
    padding-right: 64px;
  }

  .page-home .home-data,
  .page-home .home-switch,
  .page-home .home-review {
    padding-left: 64px;
    padding-right: 64px;
  }

  .page-home .home-data {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 80px;
  }

  .page-home .home-switch {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 80px;
  }

  .page-home .home-switch__demo {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
  }

  .page-home .home-switch__device {
    max-width: 340px;
  }

  .page-home .home-switch__steps {
    grid-template-columns: 1fr;
  }

  .page-home .home-review {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
  }
}
