.page-home {
  --home-gap: 16px;
  --home-card-bg: rgba(26, 26, 28, 0.92);
  --home-card-border: rgba(255, 255, 255, 0.08);
  --home-red-glow: 0 0 32px rgba(255, 59, 48, 0.45);
  color: var(--white);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 44px;
  margin-bottom: 48px;
}

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

.page-home .home-hero__deco {
  position: absolute;
  top: -72px;
  right: -72px;
  width: 280px;
  height: 280px;
  border-radius: 48px;
  border: 1px solid rgba(255, 59, 48, 0.22);
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.14), rgba(255, 215, 0, 0.04));
  transform: rotate(18deg);
  z-index: 0;
  pointer-events: none;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.page-home .home-hero__container {
  position: relative;
  z-index: 2;
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .home-hero__version {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  padding: 32px 24px;
  background: linear-gradient(160deg, rgba(34, 34, 38, 0.96), rgba(16, 16, 18, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-hero__version::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--apple-red));
}

.page-home .home-hero__tag {
  align-self: flex-start;
}

.page-home .home-hero__eyebrow {
  margin: 16px 0 4px;
  color: var(--gray);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.page-home .home-hero__version-num {
  margin: 0;
  font-size: clamp(76px, 14vw, 116px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-home .home-hero__version-main {
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 58%, #FF3B30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: home-glow-pulse 3.2s ease-in-out infinite;
}

.page-home .home-hero__version-minor {
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.42em;
  letter-spacing: 0;
}

@keyframes home-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.12)); }
  50% { filter: drop-shadow(0 0 16px rgba(255, 59, 48, 0.4)); }
}

.page-home .home-hero__version-desc {
  margin: 12px 0 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .home-hero__version-desc strong {
  color: var(--white);
  font-weight: 700;
}

.page-home .home-hero__meta {
  margin: 14px 0 0;
  color: var(--gray);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.page-home .home-hero__update {
  padding: 24px;
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius);
}

.page-home .home-hero__update-title {
  margin: 12px 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

.page-home .home-hero__update-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.page-home .home-hero__update-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apple-red);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.6);
}

.page-home .home-hero__quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.page-home .home-hero__quick-nav a {
  color: var(--gray);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .home-hero__quick-nav a:hover,
.page-home .home-hero__quick-nav a:focus-visible {
  color: var(--apple-red);
}

.page-home .home-hero__download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.14), rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 59, 48, 0.28);
  border-radius: var(--radius);
}

.page-home .home-hero__download-btn {
  margin-top: 10px;
  box-shadow: var(--home-red-glow);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.page-home .home-hero__download-btn:hover,
.page-home .home-hero__download-btn:focus-visible {
  box-shadow: 0 0 48px rgba(255, 59, 48, 0.75), 0 0 80px rgba(255, 59, 48, 0.3);
  transform: translateY(-2px);
}

.page-home .home-hero__download-note {
  margin: 10px 0 0;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.6;
}

.page-home .home-hero__status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 24px;
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius);
}

.page-home .home-hero__status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--apple-red);
  box-shadow: 0 0 14px rgba(255, 59, 48, 0.8);
  margin-bottom: 10px;
  animation: home-status-pulse 2s ease-in-out infinite;
}

@keyframes home-status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.86); }
}

.page-home .home-hero__status-label {
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.1em;
}

.page-home .home-hero__status-time {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

.page-home .home-hero__status-note {
  font-size: 13px;
  color: var(--gray);
}

.page-home .home-comparison {
  padding: 20px 0 56px;
}

.page-home .home-comparison__container,
.page-home .home-service__container,
.page-home .home-news__container,
.page-home .home-faq__container,
.page-home .home-records__container {
  min-width: 0;
}

.page-home .section__header {
  margin-bottom: 28px;
}

.page-home .section-label {
  color: var(--apple-red);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-home .section-title {
  margin: 8px 0 6px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-home .section-description {
  margin: 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  max-width: 640px;
}

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

.page-home .home-comparison__table-wrap {
  overflow-x: auto;
  padding: 10px;
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius);
}

.page-home .home-comparison__table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .home-comparison__table th,
.page-home .home-comparison__table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.page-home .home-comparison__table thead th {
  color: var(--apple-red);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-home .home-comparison__table tbody th {
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.page-home .home-comparison__table tbody td {
  color: var(--gray);
}

.page-home .home-comparison__table tbody tr:last-child th,
.page-home .home-comparison__table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .home-comparison__note {
  margin: 14px 4px 4px;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.6;
}

.page-home .home-comparison__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 215, 0, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.36);
}

.page-home .home-service {
  padding: 24px 0 56px;
}

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

.page-home .home-service__card {
  position: relative;
  padding: 24px;
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-service__card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.12), transparent 70%);
  pointer-events: none;
}

.page-home .home-service__num {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 800;
  color: var(--apple-red);
  letter-spacing: -0.02em;
}

.page-home .home-service__card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.page-home .home-service__card-text {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .home-service__records {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(90deg, rgba(255, 59, 48, 0.12), rgba(255, 215, 0, 0.05));
  border-left: 4px solid var(--apple-red);
  border-radius: var(--radius);
}

.page-home .home-service__records-tag {
  flex-shrink: 0;
}

.page-home .home-service__records-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .home-service__records-link {
  flex-shrink: 0;
}

.page-home .home-news {
  padding: 20px 0 56px;
}

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

.page-home .home-news__feature {
  overflow: hidden;
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-home .home-news__feature:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 59, 48, 0.45);
}

.page-home .home-news__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-news__content {
  padding: 22px 24px 26px;
}

.page-home .home-news__title {
  margin: 10px 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.page-home .home-news__text {
  margin: 0 0 14px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .home-news__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--apple-red);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.page-home .home-news__link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.page-home .home-news__link:hover::after {
  transform: translateX(4px);
}

.page-home .home-news__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-news__item {
  display: block;
  padding: 18px 20px;
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-home .home-news__item:hover {
  transform: translateX(6px);
  border-color: rgba(255, 59, 48, 0.4);
}

.page-home .home-news__item-title {
  margin: 10px 0 6px;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
}

.page-home .home-news__item-text {
  margin: 0;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.6;
}

.page-home .home-faq {
  padding: 20px 0 56px;
}

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

.page-home .home-faq__accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-faq__item {
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius);
  transition: border-color 0.22s ease;
}

.page-home .home-faq__item[open] {
  border-color: rgba(255, 59, 48, 0.45);
}

.page-home .home-faq__question {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.page-home .home-faq__question::-webkit-details-marker {
  display: none;
}

.page-home .home-faq__question::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--apple-red);
  line-height: 1;
  transition: transform 0.25s ease;
}

.page-home .home-faq__item[open] .home-faq__question::after {
  content: "−";
}

.page-home .home-faq__answer {
  padding: 0 20px 18px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-home .home-faq__answer p {
  margin: 12px 0 0;
}

.page-home .home-faq__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--home-card-border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.page-home .home-records {
  position: relative;
  margin-bottom: 56px;
  padding: 56px 0;
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.2), rgba(28, 28, 30, 0.4) 45%, rgba(255, 215, 0, 0.08));
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 59, 48, 0.28);
}

.page-home .home-records__deco {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 14px,
    rgba(255, 215, 0, 0.035) 14px 28px
  );
  pointer-events: none;
  z-index: 1;
}

.page-home .home-records__container {
  position: relative;
  z-index: 2;
}

.page-home .home-records__content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.page-home .home-records__title {
  margin-top: 10px;
}

.page-home .home-records__text {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.8;
  max-width: 560px;
}

.page-home .home-records__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.page-home .home-records__btn {
  box-shadow: 0 4px 24px rgba(255, 215, 0, 0.28);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.page-home .home-records__btn:hover {
  box-shadow: 0 0 36px rgba(255, 215, 0, 0.55);
  transform: translateY(-2px);
}

.page-home .home-records__btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.page-home .home-records__btn-outline:hover,
.page-home .home-records__btn-outline:focus-visible {
  border-color: var(--apple-red);
  color: var(--apple-red);
}

@media (min-width: 640px) {
  .page-home {
    --home-gap: 20px;
  }

  .page-home .home-hero {
    padding: 40px 0 56px;
  }

  .page-home .home-hero__version {
    min-height: 300px;
    padding: 40px 32px;
  }

  .page-home .home-service__records {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .page-home .home-service__records-text {
    flex: 1 1 240px;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto auto;
  }

  .page-home .home-hero__version {
    grid-column: 1;
    grid-row: 1;
    min-height: 320px;
  }

  .page-home .home-hero__update {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .home-hero__download {
    grid-column: 1;
    grid-row: 2;
  }

  .page-home .home-hero__status {
    grid-column: 2;
    grid-row: 2;
  }

  .page-home .home-comparison__layout {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
    gap: 28px;
  }

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

  .page-home .home-news__layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
  }

  .page-home .home-faq__layout {
    grid-template-columns: 1fr 0.72fr;
    align-items: center;
    gap: 32px;
  }

  .page-home .home-faq__img {
    border-radius: calc(var(--radius) + 4px);
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero__version {
    min-height: 360px;
  }

  .page-home .home-hero__version-num {
    font-size: 120px;
  }
}
