.page-home {
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
}

.page-home .hero {
  position: relative;
  padding: clamp(1.75rem, 5vw, 3rem) 0 clamp(2.5rem, 7vw, 5rem);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: -22% -12% auto auto;
  width: min(620px, 92vw);
  height: min(620px, 92vw);
  background: radial-gradient(circle at 50% 50%, rgba(61, 232, 255, 0.16), transparent 62%);
  pointer-events: none;
}

.page-home .hero-inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

.page-home .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.page-home .breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--line);
}

.page-home .breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
}

.page-home .breadcrumbs a:hover,
.page-home .breadcrumbs a:focus-visible {
  color: var(--cyan);
}

.page-home .breadcrumbs [aria-current="page"] {
  color: var(--paper);
}

.page-home .hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 9vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0.55rem 0 1rem;
}

.page-home .hero h1 .accent {
  color: var(--cyan);
}

.page-home .hero-lead {
  max-width: 34ch;
  margin: 0;
  color: var(--mist);
  font-size: clamp(0.95rem, 2.4vw, 1.06rem);
  line-height: 1.85;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-home .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--paper);
  line-height: 1.1;
}

.page-home .hero-stats li:first-child .stat-num {
  color: var(--cyan);
}

.page-home .stat-label {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.page-home .hero-visual {
  position: relative;
}

.page-home .hero-frame {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--night);
  box-shadow: var(--shadow-float);
}

.page-home .hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .hero-visual .vertical-note {
  position: absolute;
  top: 0.5rem;
  right: 0.1rem;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--mist);
}

.page-home .hero-trace {
  position: absolute;
  left: -4%;
  bottom: -5%;
  width: min(300px, 65%);
  color: var(--cyan);
  opacity: 0.8;
  pointer-events: none;
}

.page-home .quick {
  padding: 0 0 clamp(3rem, 8vw, 5rem);
}

.page-home .quick-inner {
  display: grid;
  gap: 1.5rem;
}

.page-home .quick-panel {
  background: rgba(20, 40, 68, 0.62);
  border: 1px solid rgba(61, 232, 255, 0.24);
  border-radius: var(--radius-l);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(14px);
}

.page-home .quick-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.page-home .quick-head p {
  margin: 0;
  max-width: 52ch;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.8;
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0.5rem;
}

.page-home .filter-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mist);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  min-height: 40px;
  cursor: pointer;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.page-home .filter-btn:hover {
  color: var(--paper);
  border-color: var(--cyan);
}

.page-home .filter-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .filter-btn[aria-pressed="true"] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-home .quick-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.page-home .quick-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "code title"
    "meta link";
  gap: 0.3rem 0.85rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.page-home .quick-item:last-child {
  border-bottom: 0;
}

.page-home .quick-code {
  grid-area: code;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .quick-title {
  grid-area: title;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--paper);
}

.page-home .quick-meta {
  grid-area: meta;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .quick-link {
  grid-area: link;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.page-home .quick-link:hover,
.page-home .quick-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .quick-note {
  margin: 1.1rem 0 0;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .quick-note a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 200, 255, 0.5);
}

.page-home .quick-note a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .quick-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .quick-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .aside-caption {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .cats {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 23, 48, 0.92) 10%, rgba(11, 23, 48, 0.92) 90%, transparent 100%);
}

.page-home .sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.9rem;
  align-items: start;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .sec-index {
  grid-row: span 2;
  margin: 0;
  padding-top: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.page-home .sec-head h2 {
  grid-column: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.page-home .sec-lead {
  grid-column: 2;
  margin: 0.45rem 0 0;
  max-width: 46ch;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.85;
}

.page-home .sec-head--tight {
  margin-bottom: 0.75rem;
}

.page-home .cats-figure {
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--night);
}

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

.page-home .cats-filter {
  margin: 0 0 1.25rem;
}

.page-home .cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.page-home .cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem 1.15rem;
  min-height: 152px;
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.page-home .cat-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), transparent 72%);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.page-home .cat-card:hover,
.page-home .cat-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: var(--glass);
}

.page-home .cat-card:hover::after,
.page-home .cat-card:focus-visible::after {
  opacity: 1;
}

.page-home .cat-code {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .cat-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .cat-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .cat-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: auto 0 0;
  padding-top: 0.5rem;
}

.page-home .tag {
  display: inline-block;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .tag-two {
  color: var(--cyan);
  border-color: rgba(61, 232, 255, 0.45);
}

.page-home .tag-three {
  color: var(--mist);
  border-color: var(--line);
}

.page-home .tag-safe {
  color: var(--mint);
  border-color: rgba(111, 255, 194, 0.45);
}

.page-home .cat-promo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-s);
  border: 1px dashed rgba(61, 232, 255, 0.42);
  background: linear-gradient(140deg, rgba(61, 232, 255, 0.14), rgba(255, 138, 61, 0.14));
  color: var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.7;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.page-home .cat-promo strong {
  font-size: 1rem;
  font-weight: 800;
}

.page-home .cat-promo span {
  color: var(--mist);
}

.page-home .cat-promo:hover,
.page-home .cat-promo:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.page-home .shift {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.page-home .shift-grid {
  display: grid;
  gap: 1.25rem;
}

.page-home .shift-item {
  border-top: 2px solid var(--cyan);
  padding-top: 1rem;
}

.page-home .shift-num {
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(61, 232, 255, 0.45);
}

.page-home .shift-item h3 {
  margin: 0.7rem 0 0.5rem;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.page-home .shift-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .shift-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.15rem, 3vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--night);
}

.page-home .shift-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 3.6vw, 1.95rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1.1;
}

.page-home .shift-stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .steps {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.page-home .steps-inner {
  display: grid;
  gap: 1.75rem;
}

.page-home .steps-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--night);
}

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

.page-home .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

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

.page-home .step-num {
  grid-row: span 2;
  padding-top: 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.page-home .step h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.page-home .step p {
  margin: 0.2rem 0 0;
  font-size: 0.87rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .updates {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 23, 48, 0.88) 12%, rgba(11, 23, 48, 0.88) 88%, transparent 100%);
}

.page-home .update-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .update {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

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

.page-home .update-tag {
  justify-self: start;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(255, 200, 87, 0.45);
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.page-home .update-time {
  justify-self: end;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .update-text {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .updates-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.page-home .cta {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
}

.page-home .cta-box {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4.5vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(120deg, rgba(61, 232, 255, 0.14), rgba(255, 138, 61, 0.16));
}

.page-home .cta-box h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.2vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-home .cta-lead {
  margin: 0.6rem 0 0;
  max-width: 44ch;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .page-home .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .quick-item {
    grid-template-columns: 5rem minmax(0, 1fr) auto auto;
    grid-template-areas: "code title meta link";
    gap: 0.9rem;
  }

  .page-home .quick-link {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .page-home .hero-visual {
    margin-top: 1.5rem;
  }

  .page-home .shift-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .page-home .shift-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .update {
    grid-template-columns: 5.5rem 5rem minmax(0, 1fr);
    gap: 1.25rem;
  }

  .page-home .update-text {
    grid-column: 3;
    margin: 0;
  }
}

@media (min-width: 960px) {
  .page-home .steps-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .page-home .quick-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    align-items: start;
    gap: 2rem;
  }
}

@media (min-width: 1000px) {
  .page-home .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .cat-card--wide {
    grid-column: span 2;
  }

  .page-home .cta-box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (max-width: 599px) {
  .page-home .hero-trace {
    display: none;
  }

  .page-home .hero-visual .vertical-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .cat-card,
  .page-home .cat-promo,
  .page-home .filter-btn,
  .page-home .quick-link {
    transition: none;
  }

  .page-home .cat-card:hover,
  .page-home .cat-card:focus-visible,
  .page-home .cat-promo:hover,
  .page-home .cat-promo:focus-visible {
    transform: none;
  }
}
