.page-home {
  --page-hero-pad: 148px;
  --page-gold: #E8C547;
  --page-gold-soft: rgba(232, 197, 71, 0.12);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: var(--page-hero-pad) 0 52px;
  background: radial-gradient(ellipse at 82% -8%, rgba(27, 58, 107, 0.8), transparent 58%), var(--color-bg);
  border-bottom: 1px solid rgba(232, 197, 71, 0.18);
}

.page-home .home-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  z-index: 0;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.42) 0%, rgba(13, 27, 42, 0.94) 96%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(rgba(232, 197, 71, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 197, 71, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: skewY(-2.4deg) scale(1.02);
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 44px;
}

.page-home .home-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(232, 197, 71, 0.08);
  color: var(--color-accent);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.page-home .home-hero__status .status-dot--live {
  width: 8px;
  height: 8px;
}

.page-home .home-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.page-home .home-hero__lead {
  margin: 0;
  color: var(--color-text-dim);
  max-width: 560px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.page-home .home-hero__lead b {
  color: var(--color-accent);
  font-weight: 600;
}

.page-home .home-hero__direct {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-home .home-direct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  color: var(--color-primary);
  background: linear-gradient(135deg, #E8C547, #F2DA7E, #D9B52E);
  box-shadow: 0 8px 32px rgba(232, 197, 71, 0.35), 0 0 0 1px rgba(232, 197, 71, 0.4) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pageHomeGiltPulse 3.2s ease-in-out infinite;
}

.page-home .home-direct-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 42px rgba(232, 197, 71, 0.5), 0 0 0 1px rgba(232, 197, 71, 0.5) inset;
}

.page-home .home-direct-btn::after {
  content: "→";
  font-size: 1.2em;
  line-height: 1;
}

.page-home .home-hero__direct-tip {
  color: var(--color-text-dim);
  font-size: 0.8125rem;
}

.page-home .home-hero__vnote {
  display: none;
}

@keyframes pageHomeGiltPulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(232, 197, 71, 0.32), 0 0 0 1px rgba(232, 197, 71, 0.4) inset;
  }
  50% {
    box-shadow: 0 10px 48px rgba(232, 197, 71, 0.58), 0 0 0 1px rgba(232, 197, 71, 0.55) inset;
  }
}

.page-home .home-entry-stack {
  display: grid;
  gap: 14px;
  position: relative;
}

.page-home .home-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(18, 42, 62, 0.92), rgba(10, 31, 68, 0.9));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  transform: rotate(-1deg);
}

.page-home .home-entry:hover {
  transform: rotate(0deg) translateX(8px) translateY(-2px);
  border-color: rgba(232, 197, 71, 0.65);
  box-shadow: var(--shadow-lift);
}

.page-home .home-entry--sub {
  transform: rotate(-2deg) translateX(-2px);
}

.page-home .home-entry--export {
  transform: rotate(1.4deg) translateX(6px);
}

.page-home .home-entry--help {
  transform: rotate(-1.2deg) translateX(1px);
}

.page-home .home-entry--product {
  transform: rotate(2deg) translateX(-2px);
}

.page-home .home-entry__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(232, 197, 71, 0.7);
  font-size: 0.875rem;
}

.page-home .home-entry__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
}

.page-home .home-entry__brief {
  color: var(--color-text-dim);
  font-size: 0.8125rem;
  width: 100%;
}

.page-home .home-entry__arrow {
  margin-left: auto;
  color: var(--color-accent);
  font-size: 1.25rem;
  transform: translateX(-2px);
  transition: transform 0.25s ease;
}

.page-home .home-entry:hover .home-entry__arrow {
  transform: translateX(4px);
}

.page-home .home-console {
  padding-top: 64px;
  padding-bottom: 72px;
}

.page-home .home-console__head,
.page-home .home-fee__head {
  margin-bottom: 30px;
}

.page-home .home-console__head h2,
.page-home .home-fee__head h2,
.page-home .home-notice h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.page-home .home-console__head p,
.page-home .home-fee__head p {
  margin: 0;
  color: var(--color-text-dim);
  max-width: 620px;
  line-height: 1.7;
}

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

.page-home .home-console-card {
  background: linear-gradient(155deg, rgba(18, 42, 62, 0.95), rgba(10, 31, 68, 0.88));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-home .home-console-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(232, 197, 71, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-home .home-console-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 197, 71, 0.4);
  box-shadow: var(--shadow-lift);
}

.page-home .home-console-card:hover::before {
  opacity: 1;
}

.page-home .home-console-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-home .home-console-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-accent);
  opacity: 0.8;
}

.page-home .home-console-card__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.page-home .home-console-card__head .badge,
.page-home .home-console-card__head .status-dot--live {
  margin-left: auto;
}

.page-home .home-console-card p {
  margin: 0;
  color: var(--color-text-dim);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.page-home .home-console-card__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  background: var(--color-primary);
}

.page-home .home-console-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .home-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  margin-top: 4px;
}

.page-home .home-chart__bar {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #E8C547, #B8922C);
  min-height: 16px;
}

.page-home .home-chart__bar--1 {
  height: 32%;
  opacity: 0.7;
}

.page-home .home-chart__bar--2 {
  height: 52%;
  opacity: 0.8;
}

.page-home .home-chart__bar--3 {
  height: 100%;
}

.page-home .home-chart__bar--4 {
  height: 76%;
  background: linear-gradient(180deg, #A0AAB5, #6C7A89);
}

.page-home .home-chart__bar--5 {
  height: 88%;
  background: linear-gradient(180deg, #C77B5A, #8F4E32);
}

.page-home .home-chart__labels {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.page-home .home-chart__labels span {
  flex: 1;
  text-align: center;
  font-size: 0.625rem;
  color: var(--color-text-dim);
}

.page-home .home-terminal {
  background: #081120;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-home .home-terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-dim);
  font-size: 0.75rem;
}

.page-home .home-terminal__dots {
  display: inline-flex;
  gap: 5px;
}

.page-home .home-terminal__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-terracotta);
  font-style: normal;
}

.page-home .home-terminal__dots i:nth-child(2) {
  background: var(--color-accent);
}

.page-home .home-terminal__dots i:nth-child(3) {
  background: var(--color-olive);
}

.page-home .home-terminal__bar > span:last-child {
  margin-left: 6px;
  font-family: 'Consolas', 'Menlo', monospace;
}

.page-home .home-terminal__body {
  padding: 14px 16px;
}

.page-home .home-terminal__body p {
  margin: 6px 0;
  color: #9BB0C3;
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.page-home .home-terminal__body p::before {
  content: "> ";
  color: var(--color-accent);
  font-weight: 700;
}

.page-home .home-doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-platform-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-platform-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--color-text);
}

.page-home .home-platform-list .status-dot {
  width: 7px;
  height: 7px;
}

.page-home .home-console-card .btn--small {
  margin-top: auto;
  align-self: flex-start;
}

.page-home .home-fee {
  padding-bottom: 76px;
}

.page-home .home-fee__grid {
  display: grid;
  gap: 24px;
}

.page-home .home-fee-table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  background: var(--color-surface);
}

.page-home .home-fee-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.page-home .home-fee-table th,
.page-home .home-fee-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.page-home .home-fee-table th {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(232, 197, 71, 0.07);
}

.page-home .home-fee-table td {
  color: var(--color-text);
  font-size: 0.9375rem;
}

.page-home .home-fee-table td:first-child {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.0625rem;
}

.page-home .home-fee-table tbody tr {
  transition: background 0.2s ease;
}

.page-home .home-fee-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.page-home .home-fee-table tr.is-active td {
  background: rgba(232, 197, 71, 0.12);
  border-left: 4px solid var(--color-accent);
  color: #fff;
}

.page-home .home-fee-table tr.is-active td:first-child {
  color: var(--color-accent);
}

.page-home .home-fee-table tr:last-child td {
  border-bottom: 0;
}

.page-home .home-version {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .home-version__window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #0D1B2A, #0A1F44);
  border: 1px solid var(--color-border);
}

.page-home .home-version__titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--color-border);
}

.page-home .home-version__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-terracotta);
}

.page-home .home-version__dot--yellow {
  background: var(--color-accent);
}

.page-home .home-version__dot--green {
  background: var(--color-olive);
}

.page-home .home-version__file {
  margin-left: 8px;
  color: var(--color-text-dim);
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 0.75rem;
}

.page-home .home-version__content {
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.page-home .home-version__label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.page-home .home-version__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-accent);
  text-shadow: 0 0 24px rgba(232, 197, 71, 0.35);
  margin: 4px 0;
}

.page-home .home-version__meta {
  color: var(--color-text-dim);
  font-size: 0.875rem;
}

.page-home .home-version__platforms {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.page-home .home-version__platforms span {
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.03);
}

.page-home .home-version__history {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .home-version__history li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-dim);
  font-size: 0.875rem;
}

.page-home .home-version__history li:last-child {
  border-bottom: 0;
}

.page-home .home-notice {
  padding-bottom: 80px;
}

.page-home .home-notice__card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 31, 68, 0.92), rgba(18, 42, 62, 0.8));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.page-home .home-notice__decor {
  position: relative;
  min-height: 220px;
}

.page-home .home-notice__decor img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-notice__content {
  padding: 28px 24px;
}

.page-home .home-notice__content p {
  color: var(--color-text-dim);
  line-height: 1.7;
  margin: 0 0 20px;
}

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

.page-home .home-notice__stat {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.page-home .home-notice__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.page-home .home-notice__stat span {
  color: var(--color-text-dim);
  font-size: 0.8125rem;
  line-height: 1.4;
  display: block;
}

@media (min-width: 640px) {
  .page-home .home-console__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .home-notice__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-notice__content {
    padding: 36px 32px;
  }
}

@media (min-width: 900px) {
  .page-home {
    --page-hero-pad: 190px;
  }

  .page-home .home-hero {
    padding: var(--page-hero-pad) 0 90px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .home-hero__vnote {
    display: block;
    position: absolute;
    top: 120px;
    right: 0;
    writing-mode: vertical-rl;
    color: rgba(232, 197, 71, 0.65);
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
  }

  .page-home .home-entry-stack {
    padding-left: 28px;
  }

  .page-home .home-console__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-home .home-console-card--sub,
  .page-home .home-console-card--product {
    grid-column: span 4;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
    align-items: stretch;
  }

  .page-home .home-console-card--sub .home-console-card__media,
  .page-home .home-console-card--product .home-console-card__media {
    position: relative;
    height: auto;
    min-height: 260px;
  }

  .page-home .home-console-card--sub .home-console-card__media img,
  .page-home .home-console-card--product .home-console-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .page-home .home-console-card--export,
  .page-home .home-console-card--help {
    grid-column: span 2;
  }

  .page-home .home-fee__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 28px;
  }

  .page-home .home-notice__card {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .page-home .home-notice__decor {
    min-height: 320px;
  }
}
