.page-home {
  --home-gold-line: rgba(212, 175, 55, 0.45);
  --home-gold-soft: rgba(212, 175, 55, 0.22);
  --home-paper-mist: rgba(253, 251, 246, 0.72);
  --home-ink-soft: rgba(30, 42, 74, 0.78);
  background: var(--warm-paper);
}

.page-home .home-masthead {
  position: relative;
  background: linear-gradient(142deg, var(--deep-navy) 0%, var(--royal-blue) 48%, #0D2B4E 100%);
  color: var(--mist-white);
  overflow: hidden;
  border-bottom: 1px solid var(--antique-gold);
}

.page-home .home-masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.page-home .home-masthead-inner {
  position: relative;
  z-index: 1;
  max-width: calc(var(--content-max) + 48px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px) clamp(40px, 5vw, 64px);
}

.page-home .home-masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-home .home-edition {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pale-gold);
}

.page-home .home-edition-mark {
  color: var(--antique-gold);
  font-size: 0.6rem;
}

.page-home .home-catalog {
  color: var(--pale-gold);
  opacity: 0.85;
}

.page-home .home-masthead-main {
  display: flex;
  flex-direction: column;
}

.page-home .home-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.05rem, 5.6vw, 3.9rem);
  line-height: 1.1;
  color: var(--mist-white);
  letter-spacing: 0.02em;
}

.page-home .home-tagline {
  margin: 12px 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  color: var(--antique-gold);
  letter-spacing: 0.3em;
  line-height: 1.4;
}

.page-home .home-lead {
  margin: 0 0 32px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.85;
  color: var(--mist-white);
  opacity: 0.9;
  max-width: 58ch;
}

.page-home .home-entry-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.page-home .home-entry-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-size: 1.02rem;
  box-shadow: 0 4px 28px rgba(212, 175, 55, 0.25);
  transition: box-shadow 0.35s var(--ease), transform 0.2s var(--ease);
}

.page-home .home-entry-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-22deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}

.page-home .home-entry-btn:hover,
.page-home .home-entry-btn:focus-visible {
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.8), 0 8px 48px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.page-home .home-entry-btn:hover::after {
  left: 150%;
}

.page-home .home-qr-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.page-home .home-qr-img {
  width: 132px;
  height: 132px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.page-home .home-qr-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--pale-gold);
  letter-spacing: 0.08em;
}

.page-home .home-cloud-svg {
  position: absolute;
  top: 110px;
  right: clamp(20px, 5vw, 80px);
  width: 200px;
  height: auto;
  color: rgba(212, 175, 55, 0.5);
  display: none;
  pointer-events: none;
}

.page-home .home-toc {
  padding: 14px 16px;
  border-top: 1px solid var(--home-gold-line);
  border-bottom: 1px solid var(--home-gold-line);
  background: rgba(212, 175, 55, 0.05);
}

.page-home .home-toc-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
}

.page-home .home-toc-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--plum-red);
  text-transform: uppercase;
}

.page-home .home-toc-link {
  color: var(--ink-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  padding: 2px 0;
}

.page-home .home-toc-link:hover {
  border-bottom-color: var(--antique-gold);
  color: var(--royal-blue);
}

.page-home .home-section {
  padding: clamp(40px, 7vw, 72px) clamp(20px, 4vw, 56px);
  max-width: var(--content-max);
  margin: 0 auto;
}

.page-home .home-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--home-gold-line);
  padding-bottom: 12px;
}

.page-home .home-section-no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--plum-red);
  letter-spacing: 0.12em;
}

.page-home .home-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink-blue);
  margin: 0;
}

.page-home .home-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--royal-blue);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 2px solid var(--antique-gold);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
  margin-top: 6px;
}

.page-home .home-more-link:hover {
  gap: 12px;
  color: var(--plum-red);
}

.page-home .home-browser-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-browser-copy p {
  font-family: var(--font-sans);
  color: var(--ink-blue);
  line-height: 1.85;
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.page-home .home-browser-figure {
  margin: 0;
  padding: 18px 16px 12px;
  background: var(--deep-navy);
  border-radius: 10px;
  text-align: center;
}

.page-home .home-browser-icon {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.page-home .home-browser-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--pale-gold);
}

.page-home .home-scope-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-scope-copy p {
  font-family: var(--font-sans);
  color: var(--ink-blue);
  line-height: 1.85;
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.page-home .home-scope-figure {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--deep-navy);
}

.page-home .home-scope-figure::before,
.page-home .home-scope-figure::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 1;
}

.page-home .home-scope-figure::before {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--antique-gold);
  border-left: 2px solid var(--antique-gold);
}

.page-home .home-scope-figure::after {
  right: 10px;
  bottom: 10px;
  border-right: 2px solid var(--antique-gold);
  border-bottom: 2px solid var(--antique-gold);
}

.page-home .home-scope-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-scope-figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--pale-gold);
  background: rgba(6, 19, 43, 0.72);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.page-home .home-notice-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-notice-list {
  border-top: 1px solid var(--home-gold-line);
}

.page-home .home-notice-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 16px 0 6px;
}

.page-home .home-notice-tag {
  font-size: 0.72rem;
}

.page-home .home-notice-rule {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--home-ink-soft);
  letter-spacing: 0.04em;
}

.page-home .notice-item {
  border-bottom: 1px solid var(--home-gold-line);
  padding: 4px 0;
}

.page-home .notice-item summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  list-style: none;
}

.page-home .notice-item summary::-webkit-details-marker {
  display: none;
}

.page-home .notice-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--royal-blue);
  line-height: 1.4;
  transition: color 0.25s;
}

.page-home .notice-item summary:hover .notice-title {
  color: var(--plum-red);
}

.page-home .notice-bullet {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--antique-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

.page-home .notice-marker {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--antique-gold);
  font-size: 1.1rem;
  transition: transform 0.35s var(--ease);
}

.page-home .notice-item[open] .notice-marker {
  transform: rotate(45deg);
}

.page-home .notice-body {
  margin: 0 0 14px 22px;
  padding-left: 18px;
  border-left: 2px solid rgba(212, 175, 55, 0.4);
}

.page-home .notice-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--home-ink-soft);
  line-height: 1.8;
}

.page-home .home-notice-figure {
  margin: 0;
  align-self: start;
  border-radius: 10px;
  overflow: hidden;
  background: var(--deep-navy);
}

.page-home .home-notice-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.page-home .home-notice-figure figcaption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--pale-gold);
  letter-spacing: 0.06em;
}

.page-home .home-stats {
  background: linear-gradient(130deg, var(--deep-navy) 0%, var(--royal-blue) 60%, #0F2C5C 100%);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px);
  color: var(--mist-white);
}

.page-home .home-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.page-home .home-stat-item {
  text-align: center;
  padding: 22px 16px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.page-home .home-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--antique-gold);
  margin-bottom: 8px;
}

.page-home .home-stat-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--mist-white);
  opacity: 0.9;
}

.page-home .home-cats-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.page-home .home-cat-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 26px 24px 22px;
  background: var(--home-paper-mist);
  border: 1px solid var(--home-gold-line);
  border-radius: 10px;
  color: var(--ink-blue);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.page-home .home-cat-card:hover,
.page-home .home-cat-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(10, 31, 68, 0.12);
  border-color: var(--antique-gold);
}

.page-home .home-cat-no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--plum-red);
  margin-bottom: 12px;
}

.page-home .home-cat-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--royal-blue);
  margin-bottom: 8px;
}

.page-home .home-cat-desc {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--home-ink-soft);
}

.page-home .home-cat-card::after {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--antique-gold), transparent);
  margin-top: 18px;
}

.page-home .home-trust {
  padding-bottom: clamp(48px, 7vw, 72px);
}

.page-home .home-trust-inner {
  border: 1px solid var(--home-gold-line);
  border-radius: 12px;
  padding: 34px 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0) 65%);
}

.page-home .home-trust-text {
  max-width: 64ch;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--ink-blue);
}

.page-home .home-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
}

.page-home .home-trust-badge {
  font-size: 0.8rem;
  color: var(--royal-blue);
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
  border-radius: 30px;
  padding: 4px 14px;
}

.page-home .home-trust-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  align-items: center;
}

.page-home .home-trust-links a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--royal-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  transition: border-color 0.25s, color 0.25s;
}

.page-home .home-trust-links a:hover {
  border-bottom-color: var(--plum-red);
  color: var(--plum-red);
}

.page-home .home-trust-sep {
  color: rgba(212, 175, 55, 0.7);
  font-family: var(--font-mono);
}

@media (min-width: 860px) {
  .page-home .home-cloud-svg {
    display: block;
  }

  .page-home .home-masthead-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
  }

  .page-home .home-heading-group {
    max-width: 62ch;
  }

  .page-home .home-qr-figure {
    flex: 0 0 200px;
  }

  .page-home .home-qr-img {
    width: 180px;
    height: 180px;
  }

  .page-home .home-browser-content {
    grid-template-columns: 3fr 2fr;
    align-items: center;
    gap: 40px;
  }

  .page-home .home-scope-content {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 40px;
  }

  .page-home .home-notice-content {
    grid-template-columns: 1fr 240px;
    gap: 36px;
    align-items: start;
  }

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