.modern-header-inner {
  min-height: 96px;
}

.brand {
  gap: 1.15rem;
}

.brand img {
  width: 124px;
  height: 76px;
}

.brand-name {
  font-size: 1.18rem;
}

.brand-tagline {
  font-size: .87rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
}

.hero-visual {
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 1.25rem;
  min-height: 520px;
}

.hero-logo-stage {
  position: relative;
  width: min(100%, 520px);
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.hero-logo-stage::before,
.hero-logo-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  pointer-events: none;
}

.hero-logo-stage::before {
  width: 44%;
  height: 18%;
  border-radius: var(--radius-circle);
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent-primary) 36%, transparent), var(--accent-soft) 50%, transparent 72%);
  filter: blur(12px);
  transform: translateX(-50%);
  animation: forge-base-pulse 3.8s ease-in-out infinite;
}

.hero-logo-stage::after {
  width: 34%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent-primary) 22%, transparent);
  border-radius: var(--radius-circle);
  transform: translate(-50%, 28%);
  animation: sunburst-ring 3.6s ease-out infinite;
}

.hero-logo-halo {
  top: 0;
  width: min(100%, 480px);
  animation: halo-breathe 4.8s ease-in-out infinite;
}

.hero-logo {
  width: 100%;
  max-width: 520px;
  transform: rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform .35s ease, filter .5s ease;
  animation: phoenix-ignite 1.35s cubic-bezier(.2,.75,.25,1) both;
}

.hero-logo-stage:hover .hero-logo {
  filter: drop-shadow(0 28px 48px color-mix(in srgb, var(--bg) 42%, transparent)) drop-shadow(0 0 22px color-mix(in srgb, var(--accent-primary) 24%, transparent));
}

.status-panel {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(100%, 520px);
  margin: 0;
  padding: 1.35rem 1.5rem;
  animation: panel-forge-in .9s .55s cubic-bezier(.2,.75,.25,1) both;
}

.status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-row {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 1.5rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border-faint);
  font-size: .82rem;
  opacity: 0;
  transform: translateY(8px);
  animation: initiative-light .55s ease forwards;
}

.status-row:nth-of-type(2) { animation-delay: .9s; }
.status-row:nth-of-type(3) { animation-delay: 1.05s; }
.status-row:nth-of-type(4) { animation-delay: 1.2s; }
.status-row:nth-of-type(5) { animation-delay: 1.35s; }

.status-row:last-child {
  border-bottom: 0;
  padding-bottom: .15rem;
}

.status-row strong {
  line-height: 1.45;
}

.status-row span {
  color: var(--muted);
  line-height: 1.45;
  text-align: left;
}

.motion-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  filter: blur(4px);
  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.2,.75,.25,1),
    filter .75s ease;
}

.motion-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.motion-enabled .feature-card[data-reveal]:nth-child(2),
.motion-enabled .trust-item[data-reveal]:nth-child(2) { transition-delay: .08s; }
.motion-enabled .feature-card[data-reveal]:nth-child(3),
.motion-enabled .trust-item[data-reveal]:nth-child(3) { transition-delay: .16s; }
.motion-enabled .feature-card[data-reveal]:nth-child(4),
.motion-enabled .trust-item[data-reveal]:nth-child(4) { transition-delay: .24s; }
.motion-enabled .feature-card[data-reveal]:nth-child(5) { transition-delay: .32s; }
.motion-enabled .feature-card[data-reveal]:nth-child(6) { transition-delay: .4s; }

@keyframes phoenix-ignite {
  0% { opacity: 0; transform: translateY(22px) scale(.965); filter: brightness(.55) saturate(.6) blur(3px); }
  55% { opacity: 1; filter: brightness(1.2) saturate(1.25) drop-shadow(0 0 28px color-mix(in srgb, var(--accent-primary) 34%, transparent)); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 25px 40px var(--shadow-overlay)); }
}

@keyframes panel-forge-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes initiative-light {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes halo-breathe {
  0%, 100% { opacity: .65; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes forge-base-pulse {
  0%, 100% { opacity: .45; transform: translateX(-50%) scale(.9); }
  50% { opacity: .9; transform: translateX(-50%) scale(1.08); }
}

@keyframes sunburst-ring {
  0% { opacity: .65; transform: translate(-50%, 28%) scale(.65); }
  75%, 100% { opacity: 0; transform: translate(-50%, 28%) scale(1.5); }
}

@media (max-width: 1120px) {
  .modern-header-inner {
    min-height: auto;
    padding: .8rem 0;
    gap: 1rem;
  }

  .brand img {
    width: 104px;
    height: 68px;
  }

  .modern-nav a {
    padding-inline: .65rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
    gap: 3rem;
  }
}

@media (max-width: 960px) {
  .brand img {
    width: 118px;
    height: 74px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-logo-stage,
  .status-panel {
    width: min(100%, 600px);
  }
}

@media (max-width: 680px) {
  .modern-header-inner {
    align-items: stretch;
  }

  .brand img {
    width: 96px;
    height: 62px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero-logo {
    width: 100%;
  }

  .status-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
  }

  .status-row {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-logo-halo,
  .hero-logo-stage::before,
  .hero-logo-stage::after,
  .status-panel,
  .status-row {
    animation: none !important;
  }

  .status-row { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}
