.page-home,
.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home {
  --home-glow-blue: 0 0 24px rgba(0,229,255,0.15);
  --home-glow-purple: 0 0 28px rgba(157,0,255,0.25);
  overflow-x: hidden;
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--white);
}

.page-home .breadcrumb {
  position: relative;
  z-index: 2;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 28px 24px 0;
  font-size: 12px;
  color: var(--metal);
  letter-spacing: 0.08em;
}

.page-home .breadcrumb .mono {
  color: var(--purple);
}

.page-home .hero-section {
  position: relative;
  border-bottom: 2px solid var(--purple);
  background: var(--bg-dark);
}

.page-home .hero-media {
  height: 260px;
  overflow: hidden;
  background: var(--bg-panel);
}

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.72;
}

.page-home .hero-inner {
  max-width: var(--container-w);
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.page-home .hero-copy .eyebrow {
  margin: 0 0 10px;
}

.page-home .hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  color: var(--white);
}

.page-home .hero-subtitle {
  font-family: var(--font-mono);
  color: var(--purple);
  font-size: 14px;
  letter-spacing: 0.04em;
  border-left: 3px solid var(--blue);
  padding-left: 12px;
  margin: 0 0 16px;
}

.page-home .hero-desc {
  color: var(--metal);
  font-size: 15px;
  line-height: 1.8;
  max-width: 54ch;
  margin: 0 0 20px;
}

.page-home .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-float);
}

.page-home .stat-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--metal);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.page-home .stat-item strong {
  font-family: var(--font-head);
  font-size: 30px;
  color: var(--white);
  margin-right: 2px;
  font-weight: 700;
}

.page-home .stat-item em {
  font-style: normal;
  color: var(--purple);
  font-size: 18px;
  margin-right: 4px;
}

.page-home .hero-chapters {
  border: 1px solid var(--bg-float);
  background: rgba(18, 20, 28, 0.72);
  padding: 16px 18px;
  align-self: end;
}

.page-home .chapters-label {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
}

.page-home .chapter-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--trans), padding-left var(--trans);
}

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

.page-home .chapter-link:hover,
.page-home .chapter-link:focus-visible {
  color: var(--blue);
  padding-left: 6px;
}

.page-home .chapter-num {
  font-family: var(--font-mono);
  color: var(--pink);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-home section[id] {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 56px 24px;
  scroll-margin-top: 72px;
}

.page-home .section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--bg-float);
}

.page-home .section-num {
  display: inline-block;
  font-size: 13px;
  color: var(--white);
  border: 1px solid var(--purple);
  background: rgba(157, 0, 255, 0.25);
  padding: 2px 8px;
  white-space: nowrap;
  line-height: 1.5;
}

.page-home .section-head h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: 0.015em;
  background: linear-gradient(100deg, #ffffff 15%, var(--purple) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-home .section-head p {
  color: var(--metal);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.page-home .archive-section .section-head {
  border-top-color: rgba(157, 0, 255, 0.45);
}

.page-home .category-section .section-head {
  border-top-color: rgba(0, 229, 255, 0.45);
}

.page-home .ios-section .section-head {
  border-top-color: rgba(255, 0, 229, 0.45);
}

.page-home .export-section .section-head {
  border-top-color: rgba(157, 0, 255, 0.45);
}

.page-home .updates-section .section-head {
  border-top-color: rgba(250, 204, 21, 0.4);
}

.page-home .archive-section .section-num {
  background: rgba(157, 0, 255, 0.25);
  border-color: var(--purple);
}

.page-home .category-section .section-num {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--blue);
}

.page-home .ios-section .section-num {
  background: rgba(255, 0, 229, 0.2);
  border-color: var(--pink);
}

.page-home .export-section .section-num {
  background: rgba(157, 0, 255, 0.25);
  border-color: var(--purple);
}

.page-home .updates-section .section-num {
  background: rgba(250, 204, 21, 0.16);
  border-color: var(--yellow);
}

.page-home .timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 14px;
  margin-bottom: 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--bg-panel);
  scroll-snap-type: x proximity;
}

.page-home .timeline-scroll::-webkit-scrollbar {
  height: 6px;
}

.page-home .timeline-scroll::-webkit-scrollbar-track {
  background: var(--bg-panel);
}

.page-home .timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--purple);
}

.page-home .timeline-track {
  display: flex;
  gap: 16px;
  min-width: max-content;
}

.page-home .timeline-year {
  display: flex;
  flex-direction: column;
  width: 240px;
  scroll-snap-align: start;
}

.page-home .year-marker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-home .year-dot {
  width: 12px;
  height: 12px;
  background: var(--purple);
  transform: rotate(45deg);
  box-shadow: var(--shadow-glow);
  transition: background var(--trans), box-shadow var(--trans);
}

.page-home .year-label {
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
}

.page-home .year-card {
  background: var(--bg-panel);
  border: 1px solid var(--bg-float);
  padding: 16px;
  min-height: 148px;
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}

.page-home .year-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--white);
}

.page-home .year-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--metal);
  margin: 0;
}

.page-home .timeline-year:hover .year-card,
.page-home .timeline-year:focus-within .year-card {
  border-color: var(--purple);
  box-shadow: var(--home-glow-purple);
  transform: translateY(-4px);
}

.page-home .timeline-year:hover .year-dot,
.page-home .timeline-year:focus-within .year-dot {
  background: var(--pink);
  box-shadow: 0 0 16px rgba(255, 0, 229, 0.5);
}

.page-home .section-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-float);
}

.page-home .section-foot .mono {
  color: var(--metal);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.page-home .text-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
  transition: color var(--trans);
}

.page-home .text-link:hover,
.page-home .text-link:focus-visible {
  color: var(--pink);
}

.page-home .category-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

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

.page-home .category-card {
  --cat-color: var(--purple);
  display: block;
  position: relative;
  padding: 16px 14px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--bg-float);
  border-left: 4px solid var(--cat-color);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  text-decoration: none;
  color: var(--white);
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}

.page-home .category-card[data-cat="video"] {
  --cat-color: var(--blue);
}

.page-home .category-card[data-cat="image"] {
  --cat-color: var(--purple);
}

.page-home .category-card[data-cat="social"] {
  --cat-color: var(--pink);
}

.page-home .category-card[data-cat="system"] {
  --cat-color: var(--yellow);
}

.page-home .category-card[data-cat="privacy"] {
  --cat-color: var(--blue);
}

.page-home .category-card[data-cat="manager"] {
  --cat-color: var(--purple);
}

.page-home .category-card[data-cat="core"] {
  --cat-color: var(--pink);
}

.page-home .category-card:nth-child(7) {
  grid-column: 1 / -1;
}

.page-home .cat-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cat-color);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.page-home .category-card h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--white);
}

.page-home .category-card p {
  color: var(--metal);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.page-home .category-card:hover,
.page-home .category-card:focus-visible {
  transform: translateY(-3px) rotate(-0.6deg);
  border-color: var(--cat-color);
  box-shadow: var(--shadow-glow);
}

.page-home .category-figure {
  margin: 0;
  border: 1px solid var(--bg-float);
  background: var(--bg-panel);
  align-self: start;
}

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

.page-home figcaption {
  font-size: 12px;
  color: var(--metal);
  padding: 9px 12px;
  border-top: 1px solid var(--bg-float);
  background: var(--bg-panel);
  letter-spacing: 0.08em;
}

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

.page-home .ios-figure {
  margin: 0;
  border: 1px solid var(--bg-float);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), transparent 55%);
  padding: 12px;
}

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

.page-home .ios-copy p {
  color: var(--metal);
  line-height: 1.8;
  font-size: 15px;
  margin: 0 0 8px;
}

.page-home .ios-points {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
}

.page-home .ios-points li {
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
  color: var(--metal);
  font-size: 14px;
  line-height: 1.5;
}

.page-home .ios-points li::before {
  content: "▹";
  color: var(--blue);
  margin-right: 8px;
}

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

.page-home .export-figure {
  margin: 0;
  border: 1px solid var(--bg-float);
  background: linear-gradient(135deg, rgba(157, 0, 255, 0.1), transparent 60%);
  padding: 12px;
}

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

.page-home .export-steps {
  display: grid;
  gap: 12px;
}

.page-home .export-step {
  background: var(--bg-panel);
  border: 1px solid var(--bg-float);
  transition: border-color var(--trans), box-shadow var(--trans);
}

.page-home .export-step[open] {
  border-color: var(--purple);
  box-shadow: var(--home-glow-purple);
}

.page-home .export-step summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 16px 44px 16px 16px;
  position: relative;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  transition: color var(--trans);
}

.page-home .export-step summary::-webkit-details-marker {
  display: none;
}

.page-home .export-step summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  transition: transform var(--trans);
}

.page-home .export-step[open] summary::after {
  content: "−";
  transform: translateY(-50%);
}

.page-home .export-step[open] summary {
  border-bottom: 1px solid var(--bg-float);
}

.page-home .export-step .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pink);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.page-home .export-step p {
  padding: 12px 16px 16px;
  margin: 0;
  color: var(--metal);
  font-size: 13px;
  line-height: 1.65;
}

.page-home .export-note {
  margin: 16px 0 14px;
  color: var(--metal);
  font-size: 13px;
  line-height: 1.7;
}

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

.page-home .update-item {
  padding: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--bg-float);
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}

.page-home .update-item .data-chip {
  display: inline-block;
  margin-bottom: 10px;
}

.page-home .update-item h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--white);
}

.page-home .update-item p {
  color: var(--metal);
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 12px;
}

.page-home .update-link {
  color: var(--purple);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color var(--trans);
}

.page-home .update-link:hover,
.page-home .update-link:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .update-item:hover,
.page-home .update-item:focus-within {
  border-color: var(--blue);
  box-shadow: var(--home-glow-blue);
}

.page-home .chapter-link:focus-visible,
.page-home .category-card:focus-visible,
.page-home .update-link:focus-visible,
.page-home .text-link:focus-visible,
.page-home .btn-primary:focus-visible,
.page-home .btn-ghost:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .page-home .breadcrumb {
    padding-top: 36px;
  }

  .page-home .hero-section {
    min-height: 720px;
    display: flex;
    align-items: center;
  }

  .page-home .hero-media {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .page-home .hero-media img {
    opacity: 0.42;
  }

  .page-home .hero-inner {
    position: relative;
    z-index: 1;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 48px;
    padding: 96px 24px 64px;
  }

  .page-home .hero-copy h1 {
    font-size: clamp(52px, 6vw, 80px);
  }

  .page-home .hero-desc {
    font-size: 16px;
  }

  .page-home .hero-chapters {
    padding: 20px 22px;
  }

  .page-home section[id] {
    padding: 72px 24px;
  }

  .page-home .section-head {
    align-items: center;
    margin-bottom: 34px;
  }

  .page-home .section-head h2 {
    font-size: 34px;
  }

  .page-home .category-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 32px;
  }

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

  .page-home .category-card:nth-child(7) {
    grid-column: 1 / -1;
  }

  .page-home .category-figure {
    margin-left: auto;
    max-width: 100%;
  }

  .page-home .ios-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 32px;
  }

  .page-home .ios-copy {
    padding-left: 12px;
  }

  .page-home .export-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 32px;
  }

  .page-home .export-copy {
    padding-right: 8px;
  }

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

  .page-home .section-foot {
    flex-wrap: nowrap;
    margin-top: 30px;
  }
}

@media (min-width: 1280px) {
  .page-home .hero-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .page-home .hero-copy h1 {
    font-size: 84px;
  }

  .page-home section[id] {
    padding-left: 32px;
    padding-right: 32px;
  }

  .page-home .category-card h3 {
    font-size: 21px;
  }
}
