.page-home {
  --home-gold: linear-gradient(135deg, #f5b40f 0%, #d48a00 100%);
  --home-gold-soft: rgba(245,180,15,0.14);
  --home-purple: #6b21a8;
  --home-purple-deep: #4c1d95;
  background:
    radial-gradient(800px 400px at 90% -5%, rgba(107,33,168,0.20), transparent 70%),
    radial-gradient(600px 300px at 10% 30%, rgba(245,180,15,0.06), transparent 70%),
    var(--ink-900);
  color: var(--paper-50);
  overflow-x: hidden;
  padding-bottom: 48px;
}

.page-home .container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
}

.page-home .btn-ghost {
  background: rgba(245,240,230,0.05);
  color: var(--gold-500);
  border: 1px solid rgba(245,180,15,0.35);
}

.page-home .btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.page-home .section-head {
  margin-bottom: 24px;
}

.page-home .section-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.page-home .section-head h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper-50);
  margin: 8px 0 8px;
}

.page-home .section-subtitle {
  font-size: 14px;
  line-height: 1.8;
  color: var(--paper-200);
  max-width: 60ch;
  margin: 0;
}

/* ---------- hero ---------- */
.home-hero {
  padding: 32px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hero-focus {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding: 28px 20px 32px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(245,180,15,0.25);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hero-focus:hover {
  transform: translateY(-4px);
  border-color: rgba(245,180,15,0.5);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.6);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.94) 100%);
  z-index: 1;
}

.hero-focus::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(245,180,15,0.35), transparent 65%);
  z-index: 2;
  pointer-events: none;
}

.hero-focus::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  background: repeating-linear-gradient(135deg, rgba(107,33,168,0.35) 0 6px, transparent 6px 14px);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: 100%;
  z-index: 3;
}

.hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(245,180,15,0.45);
  border-radius: 999px;
  color: var(--gold-500);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: rgba(10,10,10,0.45);
}

.hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  margin: 16px 0 12px;
  color: var(--paper-50);
}

.hero-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--paper-200);
  max-width: 36em;
  margin: 0 0 22px;
}

.hero-lead strong {
  color: var(--gold-500);
}

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

.page-home .crown-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #0a0a0a;
  border: none;
  padding: 14px 24px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(245,180,15,0.3);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-home .crown-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}

.page-home .crown-btn:hover::before {
  transform: translateX(100%);
}

.page-home .crown-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(245,180,15,0.45);
}

.crown-btn__icon {
  width: 24px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: var(--paper-200);
}

/* ---------- hero status ---------- */
.hero-status {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(245,240,230,0.14);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(245,240,230,0.08), rgba(245,240,230,0.02));
  position: relative;
}

.hero-status::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--purple-500), transparent);
  border-radius: 2px;
}

.status-head {
  margin-bottom: 16px;
}

.status-head h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--paper-50);
  margin: 6px 0 0;
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(245,240,230,0.12);
}

.status-list li:first-child {
  border-top: 1px dashed rgba(245,240,230,0.12);
}

.status-label {
  font-size: 14px;
  color: var(--paper-200);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-value {
  font-size: 14px;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--paper-50);
  text-align: right;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(45,212,191,0.18);
  flex: none;
}

.status-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(107,33,168,0.4);
  font-size: 12px;
  line-height: 1.7;
  color: var(--paper-200);
}

/* ---------- vault ---------- */
.home-vault {
  padding: 40px 0 8px;
}

.vault-grid--primary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.vault-cell {
  position: relative;
  padding: 24px;
  background: linear-gradient(160deg, rgba(245,240,230,0.06), rgba(245,240,230,0.02));
  border: 1px solid rgba(245,240,230,0.10);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.vault-cell::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, transparent 50%, rgba(245,180,15,0.5) 50%);
  border-radius: 0 0 0 4px;
  pointer-events: none;
}

.vault-cell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: repeating-linear-gradient(135deg, rgba(245,180,15,0.3) 0 8px, transparent 8px 16px);
  opacity: 0.5;
  pointer-events: none;
}

.vault-cell:hover {
  transform: translateY(-3px);
  border-color: rgba(245,180,15,0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.cell-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.cell-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex: none;
  margin-top: 2px;
}

.cell-heading h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--paper-50);
  margin: 0 0 4px;
}

.cell-sub {
  font-size: 12px;
  color: var(--paper-200);
  font-family: var(--mono);
}

.cell-more {
  margin-left: auto;
  font-size: 13px;
  color: var(--gold-500);
  text-decoration: none;
  white-space: nowrap;
  padding-top: 4px;
}

.cell-more:hover {
  text-decoration: underline;
}

.news-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.news-figure {
  margin: 0;
}

.news-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.news-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--paper-200);
}

.page-home .tab-list {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(245,240,230,0.14);
  margin-bottom: 14px;
}

.page-home .tab-btn {
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--paper-200);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.page-home .tab-btn.is-active {
  color: var(--gold-500);
  border-bottom-color: var(--purple-500);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.news-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper-50);
  padding: 8px 0;
  border-bottom: 1px dashed rgba(245,240,230,0.1);
}

.news-list li:last-child {
  border-bottom: none;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(107,33,168,0.35);
  color: var(--paper-50);
  white-space: nowrap;
  flex: none;
}

.tag--week {
  background: rgba(245,180,15,0.18);
  color: var(--gold-500);
}

.tag--month {
  background: rgba(45,212,191,0.15);
  color: var(--teal-400);
}

.cell-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--gold-500);
  text-decoration: none;
  font-weight: 600;
}

.cell-link:hover {
  text-decoration: underline;
}

.cell-media {
  margin: 0 0 14px;
  border-radius: 12px;
  overflow: hidden;
}

.cell-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.cell-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--paper-200);
  margin: 0 0 16px;
}

.docs-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.docs-list li {
  padding: 10px 14px;
  background: rgba(107,33,168,0.15);
  border-left: 3px solid var(--purple-500);
  font-size: 14px;
  color: var(--paper-50);
  border-radius: 4px;
}

.download-flex {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.download-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--paper-200);
  margin: 0;
  max-width: 44em;
}

/* ---------- paths ---------- */
.home-paths {
  padding: 40px 0 8px;
}

.paths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.path-card {
  padding: 26px;
  border: 1px solid rgba(245,240,230,0.12);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(245,240,230,0.05), rgba(10,10,10,0.3));
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245,180,15,0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.path-card--android {
  border-top: 3px solid var(--teal-400);
}

.path-card--pc {
  border-top: 3px solid var(--purple-500);
}

.path-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, transparent 50%, rgba(245,180,15,0.1) 50%);
  pointer-events: none;
}

.path-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--home-gold-soft);
  border: 1px solid rgba(245,180,15,0.2);
  color: var(--gold-500);
}

.path-icon svg {
  width: 34px;
  height: 34px;
}

.path-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--paper-50);
  margin: 0 0 10px;
}

.path-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--paper-200);
  margin: 0;
}

.path-card p strong {
  color: var(--gold-500);
}

.path-steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: path-step;
  display: grid;
  gap: 10px;
}

.path-steps li {
  counter-increment: path-step;
  position: relative;
  padding: 10px 14px 10px 42px;
  background: rgba(245,240,230,0.04);
  border-radius: 8px;
  font-size: 14px;
  color: var(--paper-50);
  line-height: 1.5;
}

.path-steps li::before {
  content: counter(path-step);
  position: absolute;
  left: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #0a0a0a;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-steps strong {
  color: var(--gold-500);
}

/* ---------- latest ---------- */
.home-latest {
  padding: 40px 0 8px;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.latest-card {
  padding: 24px 60px 24px 24px;
  border: 1px solid rgba(245,240,230,0.1);
  border-radius: 16px;
  background: rgba(245,240,230,0.03);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.latest-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245,180,15,0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.latest-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--paper-50);
  margin: 0;
}

.latest-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper-200);
  margin: 0;
}

.card-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245,180,15,0.12);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.card-arrow:hover {
  background: var(--gold-500);
  color: #0a0a0a;
  transform: translateX(2px);
}

/* ---------- trust ---------- */
.home-trust {
  padding: 40px 0 8px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

.trust-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(107,33,168,0.35);
}

.trust-media img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.trust-copy h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  margin: 8px 0 12px;
}

.trust-copy > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--paper-200);
  margin: 0 0 18px;
}

.trust-points {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.trust-points li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--paper-50);
  padding: 12px 16px;
  background: rgba(245,240,230,0.04);
  border-left: 3px solid var(--gold-500);
  border-radius: 4px;
}

.trust-num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-500);
  min-width: 72px;
}

.trust-note {
  font-size: 13px;
  color: var(--paper-200);
  padding: 12px 16px;
  border: 1px dashed rgba(107,33,168,0.5);
  border-radius: 10px;
  margin: 0 0 18px;
}

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

.trust-extra a {
  color: var(--gold-500);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.trust-extra a:hover {
  text-decoration: underline;
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .page-home {
    padding-bottom: 72px;
  }

  .home-hero {
    padding: 48px 0 0;
  }

  .hero-grid {
    grid-template-columns: 8fr 4fr;
    gap: 20px;
  }

  .hero-focus {
    min-height: 560px;
    padding: 36px 32px 40px;
  }

  .hero-content h1 {
    font-size: clamp(32px, 3.4vw, 46px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-status {
    padding: 28px;
  }

  .home-vault {
    padding: 48px 0 12px;
  }

  .vault-grid--primary {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 20px;
  }

  .page-home .vault-cell--two-thirds {
    grid-column: span 8;
  }

  .page-home .vault-cell--third {
    grid-column: span 4;
  }

  .vault-cell {
    padding: 28px;
  }

  .news-split {
    grid-template-columns: 1fr 0.9fr;
    gap: 24px;
  }

  .download-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .home-paths,
  .home-latest,
  .home-trust {
    padding-top: 48px;
  }

  .paths-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .latest-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition: none !important;
    animation: none !important;
  }
}
