.page-home {
  --home-gap: clamp(3.5rem, 8vw, 7rem);
  --home-line: rgba(217, 217, 217, 0.14);
  --home-gold: rgba(245, 197, 24, 0.24);
  --home-gold-soft: rgba(245, 197, 24, 0.08);
  --home-orange-glow: rgba(255, 107, 53, 0.12);
  --home-text-secondary: rgba(244, 235, 224, 0.72);
  --home-text-muted: rgba(244, 235, 224, 0.58);
  position: relative;
  background: var(--bg-deep);
  color: var(--cream);
  overflow-x: hidden;
}

.page-home .hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
  align-items: center;
  background:
    radial-gradient(ellipse at 80% 10%, var(--home-orange-glow), transparent 52%),
    radial-gradient(ellipse at 90% 90%, var(--home-gold-soft), transparent 45%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 88%);
  border-bottom: 1px solid var(--home-line);
}

.page-home .hero-copy {
  max-width: 580px;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.page-home .hero-kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.page-home .hero-copy h1 {
  font-family: var(--font-head);
  font-weight: var(--weight-head);
  font-size: clamp(2.1rem, 7.5vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin: 0 0 1.25rem;
}

.page-home .hero-lead {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--home-text-secondary);
  margin-bottom: 1.75rem;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.page-home .hero-actions .btn-primary {
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.35),
    0 10px 30px rgba(255, 107, 53, 0.18);
}

.page-home .hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--home-line);
  max-width: 460px;
}

.page-home .metric-cell {
  min-width: 0;
}

.page-home .metric-cell + .metric-cell {
  border-left: 1px solid var(--home-line);
  padding-left: 0.9rem;
}

.page-home .metric-cell dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.35rem;
}

.page-home .metric-cell dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--cream);
}

.page-home .hero-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--home-text-muted);
}

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

.page-home .hero-frame {
  position: relative;
  display: block;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-mid);
}

.page-home .hero-visual-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0.9;
}

.page-home .hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.page-home .section-head {
  margin-bottom: 2rem;
}

.page-home .section-kicker {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.8rem;
}

.page-home .section-head h2 {
  font-family: var(--font-head);
  font-weight: var(--weight-head);
  font-size: clamp(1.55rem, 4.5vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin: 0 0 0.7rem;
}

.page-home .section-excerpt {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--home-text-secondary);
  max-width: 44em;
}

.page-home .service-bento {
  padding: 3.25rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
  border-top: 1px solid rgba(245, 197, 24, 0.18);
}

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

.page-home .service-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  padding: 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--cream);
  background: linear-gradient(135deg, rgba(18, 61, 102, 0.45), rgba(11, 31, 58, 0.72));
  border: 1px solid var(--home-line);
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.page-home .service-card:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(18, 61, 102, 0.68), rgba(11, 31, 58, 0.85));
  transform: translateY(-2px);
}

.page-home .service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  min-height: 88px;
}

.page-home .service-icon {
  width: 68px;
  height: 68px;
  object-fit: contain;
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(245, 197, 24, 0.26);
  background: rgba(7, 20, 38, 0.55);
  margin-left: auto;
}

.page-home .service-card h3 {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--cream);
  margin: 0;
}

.page-home .service-card p {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--home-text-secondary);
  margin: 0;
  flex: 1;
}

.page-home .service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.page-home .service-card:hover .service-link {
  color: var(--accent);
  border-color: var(--accent);
}

.page-home .update-rhythm {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3.25rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
  background:
    linear-gradient(135deg, rgba(18, 61, 102, 0.32), transparent 58%),
    var(--carbon);
  border-top: 1px solid rgba(245, 197, 24, 0.18);
  border-bottom: 1px solid var(--home-line);
}

.page-home .rhythm-copy h2 {
  font-family: var(--font-head);
  font-weight: var(--weight-head);
  font-size: clamp(1.55rem, 4.5vw, 2.3rem);
  line-height: 1.32;
  color: var(--cream);
  margin: 0 0 1rem;
}

.page-home .rhythm-lead {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--home-text-secondary);
  max-width: 44em;
  margin-bottom: 1.75rem;
}

.page-home .rhythm-schedule {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.page-home .rhythm-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: rgba(11, 31, 58, 0.5);
  border: 1px solid var(--home-line);
  border-radius: 4px;
}

.page-home .rhythm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
  animation: pageHomeDotPulse 2s ease-in-out infinite;
}

.page-home .rhythm-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.page-home .rhythm-item strong {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
}

.page-home .rhythm-item span {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--home-text-muted);
}

.page-home .rhythm-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
}

.page-home .rhythm-stat {
  padding: 1rem;
  background: var(--home-gold-soft);
  border: 1px solid rgba(245, 197, 24, 0.24);
  border-radius: 4px;
}

.page-home .rhythm-stat dt {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.45rem;
}

.page-home .rhythm-stat dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--gold);
}

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

.page-home .rhythm-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--home-line);
}

.page-home .rhythm-wave {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 52px;
  padding: 0.6rem 0.7rem;
  background: rgba(7, 20, 38, 0.58);
  border: 1px solid rgba(217, 217, 217, 0.2);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.page-home .wave-bar {
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  border-radius: 2px 2px 0 0;
  opacity: 0.75;
  animation: pageHomeWave 2.4s ease-in-out infinite;
}

.page-home .wave-bar:nth-child(1) {
  height: 32%;
  animation-delay: 0s;
}

.page-home .wave-bar:nth-child(2) {
  height: 58%;
  animation-delay: 0.2s;
}

.page-home .wave-bar:nth-child(3) {
  height: 42%;
  animation-delay: 0.4s;
}

.page-home .wave-bar:nth-child(4) {
  height: 72%;
  animation-delay: 0.1s;
}

.page-home .wave-bar:nth-child(5) {
  height: 48%;
  animation-delay: 0.3s;
}

.page-home .brand-note {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3.25rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
  border-top: 1px solid rgba(245, 197, 24, 0.18);
}

.page-home .brand-note-copy h2 {
  font-family: var(--font-head);
  font-weight: var(--weight-head);
  font-size: clamp(1.55rem, 4.5vw, 2.3rem);
  line-height: 1.32;
  color: var(--cream);
  margin: 0 0 1rem;
}

.page-home .brand-lead {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--home-text-secondary);
  margin-bottom: 1.4rem;
}

.page-home .brand-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: 0.6rem;
}

.page-home .brand-list li {
  position: relative;
  padding-left: 1.4rem;
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--home-text-secondary);
}

.page-home .brand-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.65rem;
  height: 1px;
  background: var(--accent);
}

.page-home .brand-note-visual {
  position: relative;
}

.page-home .brand-note-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--home-line);
  box-shadow: var(--shadow);
}

.page-home .brand-note-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.12), transparent 42%);
  pointer-events: none;
}

.page-home .insight-preview {
  padding: 3.25rem clamp(1.25rem, 4vw, 3rem) 1rem;
  background: linear-gradient(180deg, rgba(18, 61, 102, 0.36), transparent 100%);
  border-top: 1px solid rgba(245, 197, 24, 0.18);
}

.page-home .insight-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.page-home .insight-more {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.page-home .insight-more:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

.page-home .insight-card {
  padding: 1.5rem;
  background: rgba(11, 31, 58, 0.55);
  border: 1px solid var(--home-line);
  border-radius: 6px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.page-home .insight-card:hover {
  border-color: rgba(245, 197, 24, 0.55);
  background: rgba(18, 61, 102, 0.4);
}

.page-home .insight-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cream);
  margin: 0.75rem 0 0.6rem;
}

.page-home .insight-card p {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--home-text-secondary);
  margin: 0 0 1rem;
}

.page-home .insight-link {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.page-home .insight-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.page-home .insight-trust {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--home-line);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--stone);
}

.page-home .home-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin: 2.5rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(245, 197, 24, 0.06));
  border: 1px solid rgba(255, 107, 53, 0.32);
  border-radius: 6px;
}

.page-home .home-strip p {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--cream);
  margin: 0;
}

@keyframes pageHomeWave {
  0%, 100% {
    transform: scaleY(0.72);
    opacity: 0.65;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes pageHomeDotPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 6px rgba(42, 157, 143, 0.08);
  }
}

@media (min-width: 900px) {
  .page-home .hero-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4rem;
    padding: 4.5rem clamp(2.5rem, 5vw, 5rem) 5rem;
  }

  .page-home .hero-copy {
    max-width: 580px;
  }

  .page-home .hero-actions {
    margin-bottom: 2.5rem;
  }

  .page-home .service-bento {
    padding: 4.5rem clamp(2.5rem, 5vw, 5rem) 5rem;
  }

  .page-home .services-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .page-home .card-setting {
    grid-column: span 7;
  }

  .page-home .card-recover {
    grid-column: span 5;
  }

  .page-home .card-query {
    grid-column: span 5;
  }

  .page-home .card-favorite {
    grid-column: span 7;
  }

  .page-home .service-card {
    padding: 1.75rem;
  }

  .page-home .service-card-top {
    min-height: 96px;
  }

  .page-home .update-rhythm {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
    padding: 4.5rem clamp(2.5rem, 5vw, 5rem) 5rem;
  }

  .page-home .brand-note {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
    padding: 4.5rem clamp(2.5rem, 5vw, 5rem) 5rem;
  }

  .page-home .insight-preview {
    padding: 4.5rem clamp(2.5rem, 5vw, 5rem) 1.5rem;
  }

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

  .page-home .home-strip {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 3rem clamp(2.5rem, 5vw, 5rem) 4.5rem;
    padding: 1.5rem 2rem;
  }

  .page-home .home-strip p {
    font-size: 1rem;
  }
}
