/* Aira Zenith Deck — polished home UI */
:root {
  --zd-ink: #0b1f2a;
  --zd-ink-soft: #163445;
  --zd-steel: #eef3f6;
  --zd-mist: #d7e2ea;
  --zd-mute: #5a7180;
  --zd-line: rgba(11, 31, 42, 0.12);
  --zd-fire: #e85d04;
  --zd-fire-deep: #c44d03;
  --zd-teal: #00a896;
  --zd-teal-deep: #007f72;
  --zd-amber: #f4a261;
  --zd-paper: #f7fafc;
  --zd-font-display: "Archivo Black", "Arial Black", sans-serif;
  --zd-font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --zd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --zd-dock: 6.75rem;
}

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

body.aira-zenith {
  margin: 0;
  min-height: 100vh;
  font-family: var(--zd-font-body);
  color: var(--zd-ink);
  background: var(--zd-steel);
  -webkit-font-smoothing: antialiased;
}

body.aira-zenith .aira-bare-main {
  padding: 0 !important;
  max-width: none !important;
  width: 100%;
  min-height: 100vh;
  display: block;
}

.zd-deck {
  position: relative;
  min-height: 100vh;
  padding-bottom: calc(var(--zd-dock) + 1.25rem);
  overflow-x: clip;
}

.zd-aurora {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% -8%, rgba(232, 93, 4, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 45% at -8% 55%, rgba(0, 168, 150, 0.14), transparent 50%),
    linear-gradient(165deg, #e6eef4 0%, var(--zd-steel) 48%, #d4e0e8 100%);
}

.zd-main {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* Hero */
.zd-hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 680px);
  display: flex;
  align-items: flex-end;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  padding: 2.25rem clamp(1.15rem, 4vw, 2.5rem) 3.25rem;
  overflow: hidden;
}

.zd-hero-plane {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.zd-hero-plane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  will-change: transform;
}

.zd-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 31, 42, 0.92) 0%, rgba(11, 31, 42, 0.62) 42%, rgba(11, 31, 42, 0.28) 100%),
    linear-gradient(0deg, rgba(11, 31, 42, 0.78) 0%, transparent 42%);
}

.zd-hero-copy {
  width: min(36rem, 100%);
  color: var(--zd-paper);
}

.zd-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--zd-amber);
}

.zd-brand {
  margin: 0 0 0.25rem;
  font-family: var(--zd-font-display);
  font-size: clamp(2.8rem, 11vw, 5.75rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.zd-tag {
  margin: 0 0 0.75rem;
  font-family: var(--zd-font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  font-weight: 400;
  color: #7fd4c8;
}

.zd-lede {
  margin: 0 0 1.35rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.55;
  color: rgba(247, 250, 252, 0.86);
  max-width: 38ch;
}

.zd-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.zd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.15rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 2px;
  transition: transform 0.2s var(--zd-ease), background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.zd-btn-fire {
  background: var(--zd-fire);
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.32);
}

.zd-btn-fire i {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--zd-ease);
}

.zd-btn-fire:hover {
  background: var(--zd-fire-deep);
  transform: translateY(-2px);
}

.zd-btn-fire:hover i {
  transform: rotate(45deg) translate(2px, -2px);
}

.zd-btn-ghost {
  color: var(--zd-paper);
  border: 1px solid rgba(247, 250, 252, 0.4);
  background: rgba(11, 31, 42, 0.25);
  backdrop-filter: blur(6px);
}

.zd-btn-ghost:hover {
  border-color: #7fd4c8;
  color: #7fd4c8;
  transform: translateY(-2px);
}

[data-zd-rise] {
  opacity: 0;
  transform: translateY(16px);
  animation: zd-rise 0.65s var(--zd-ease) forwards;
}
.zd-eyebrow[data-zd-rise] { animation-delay: 0.04s; }
.zd-brand[data-zd-rise] { animation-delay: 0.1s; }
.zd-tag[data-zd-rise] { animation-delay: 0.16s; }
.zd-lede[data-zd-rise] { animation-delay: 0.22s; }
.zd-cta[data-zd-rise] { animation-delay: 0.28s; }

/* Dashboard */
.zd-dash {
  padding: 2.25rem 0 1.5rem;
}

.zd-dash-head {
  margin-bottom: 1.25rem;
}

.zd-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--zd-teal-deep);
}

.zd-dash-head h2 {
  margin: 0;
  font-family: var(--zd-font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 400;
}

.zd-gauges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 820px) {
  .zd-gauges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.zd-gauge {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 22px rgba(11, 31, 42, 0.05);
  transition: transform 0.25s var(--zd-ease), box-shadow 0.25s ease;
}

.zd-gauge:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(11, 31, 42, 0.09);
}

.zd-gauge svg {
  width: min(100%, 132px);
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

.zd-gauge-track {
  fill: none;
  stroke: rgba(11, 31, 42, 0.1);
  stroke-width: 8;
  stroke-linecap: round;
}

.zd-gauge-fill {
  fill: none;
  stroke: var(--zd-teal);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 1.15s var(--zd-ease);
}

.zd-gauge-fill.zd-gauge-teal { stroke: var(--zd-teal); }
.zd-gauge-fill.zd-gauge-amber { stroke: var(--zd-amber); }
.zd-gauge-fill.zd-gauge-fire { stroke: var(--zd-fire); }

.zd-gauge.is-lit .zd-gauge-fill {
  stroke-dashoffset: calc(157 - (157 * var(--zd-pct, 50) / 100));
}

.zd-gauge strong {
  display: block;
  margin-top: -0.2rem;
  font-family: var(--zd-font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 400;
  line-height: 1.05;
}

.zd-gauge > span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--zd-mute);
}

.zd-gauge-link:hover strong {
  color: var(--zd-fire);
}

/* Constellation */
.zd-constellation {
  margin-bottom: 2.25rem;
}

.zd-stars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .zd-stars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .zd-stars {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.zd-star {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--zd-ink);
  padding: 1rem 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 3px solid transparent;
  transition: transform 0.25s var(--zd-ease), border-color 0.2s ease, background 0.2s ease;
}

.zd-star:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--zd-fire);
  background: #fff;
}

.zd-star-orb {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  transition: transform 0.3s var(--zd-ease), box-shadow 0.3s ease;
}

.zd-star:hover .zd-star-orb {
  transform: scale(1.1);
  box-shadow: 0 0 0 5px rgba(232, 93, 4, 0.14);
}

.zd-star.tone-veg .zd-star-orb { background: #7cb518; }
.zd-star.tone-flw .zd-star-orb { background: #e76f51; }
.zd-star.tone-hrb .zd-star-orb { background: #2a9d8f; }
.zd-star.tone-fru .zd-star-orb { background: #e9c46a; }
.zd-star.tone-spc .zd-star-orb { background: #bc4749; }
.zd-star.tone-frg .zd-star-orb { background: #588157; }

.zd-star-title {
  font-family: var(--zd-font-display);
  font-size: 0.92rem;
  font-weight: 400;
}

.zd-star-n {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--zd-mute);
}

/* Ticker */
.zd-ticker-wrap {
  margin-bottom: 0.5rem;
}

.zd-ticker-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.zd-ticker-head h3 {
  margin: 0;
  font-family: var(--zd-font-display);
  font-size: 1.1rem;
  font-weight: 400;
}

.zd-ticker-head a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--zd-teal-deep);
  text-decoration: none;
}

.zd-ticker-head a:hover {
  color: var(--zd-fire);
}

.zd-ticker {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.85rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.zd-chip {
  flex: 0 0 min(16.5rem, 78vw);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
  color: var(--zd-ink);
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-left: 3px solid var(--zd-teal);
  transition: transform 0.22s var(--zd-ease), border-color 0.2s ease, box-shadow 0.22s ease;
  animation: zd-rise 0.5s var(--zd-ease) both;
  animation-delay: calc(var(--zd-i, 0) * 0.04s);
}

.zd-chip:hover {
  transform: translateY(-3px);
  border-left-color: var(--zd-fire);
  box-shadow: 0 12px 24px rgba(11, 31, 42, 0.1);
}

.zd-chip img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  display: block;
  background: var(--zd-mist);
}

.zd-chip-body {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.zd-chip-body em {
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--zd-mute);
}

.zd-chip-body strong {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zd-chip-body b {
  font-family: var(--zd-font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--zd-fire);
}

.zd-foot {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 0 0.5rem;
  border-top: 1px solid var(--zd-line);
  font-size: 0.8rem;
  color: var(--zd-mute);
}

.zd-foot strong {
  font-family: var(--zd-font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--zd-ink);
}

.zd-foot p {
  margin: 0;
}

.zd-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.zd-foot a {
  color: var(--zd-ink);
  font-weight: 600;
  text-decoration: none;
}

.zd-foot a:hover {
  color: var(--zd-fire);
}

/* Scrim + compass dock */
.zd-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(11, 31, 42, 0.42);
  backdrop-filter: blur(2px);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.zd-scrim[hidden] {
  display: none !important;
}

.zd-compass {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.85rem max(0.85rem, env(safe-area-inset-bottom));
  pointer-events: none;
}

.zd-fan {
  pointer-events: auto;
  width: min(100%, 26rem);
  margin-bottom: 0.75rem;
  padding: 0.9rem 0.85rem 0.95rem;
  background: rgba(247, 250, 252, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 40px rgba(11, 31, 42, 0.22);
  transform-origin: bottom center;
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  transition: transform 0.28s var(--zd-ease), opacity 0.22s ease;
}

.zd-compass.is-open .zd-fan:not([hidden]) {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.zd-fan[hidden] {
  display: none !important;
}

.zd-fan-label {
  margin: 0 0 0.55rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--zd-mute);
  text-align: center;
}

.zd-fan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

@media (min-width: 520px) {
  .zd-fan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.zd-fan-link {
  display: grid;
  gap: 0.15rem;
  text-align: center;
  text-decoration: none;
  color: var(--zd-ink);
  padding: 0.65rem 0.35rem;
  background: rgba(11, 31, 42, 0.04);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--zd-ease);
  animation: zd-rise 0.35s var(--zd-ease) both;
  animation-delay: calc(var(--zd-i, 0) * 0.03s);
}

.zd-fan-link:hover {
  background: var(--zd-ink);
  color: var(--zd-paper);
  transform: translateY(-2px);
}

.zd-fan-short {
  font-family: var(--zd-font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.zd-fan-full {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.7;
}

.zd-hub {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
}

.zd-hub-cart {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 0.55rem;
  background: var(--zd-teal);
  color: #fff;
  text-decoration: none;
  font-family: var(--zd-font-display);
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(0, 168, 150, 0.35);
  transition: transform 0.2s var(--zd-ease), background 0.2s ease;
}

.zd-hub-cart:hover {
  background: var(--zd-teal-deep);
  transform: translateY(-2px);
}

.zd-hub-core {
  position: relative;
  appearance: none;
  border: 0;
  width: 5.1rem;
  height: 5.1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(145deg, var(--zd-ink-soft), var(--zd-ink));
  color: var(--zd-paper);
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 0.05rem;
  box-shadow:
    0 0 0 4px rgba(232, 93, 4, 0.28),
    0 12px 28px rgba(11, 31, 42, 0.32);
  transition: transform 0.25s var(--zd-ease), box-shadow 0.25s ease;
}

.zd-hub-core:hover {
  transform: scale(1.05);
}

.zd-compass.is-open .zd-hub-core {
  box-shadow:
    0 0 0 5px rgba(0, 168, 150, 0.35),
    0 14px 30px rgba(11, 31, 42, 0.35);
}

.zd-hub-pulse {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(232, 93, 4, 0.4);
  animation: zd-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.zd-hub-mark {
  font-family: var(--zd-font-display);
  font-size: 1.3rem;
  line-height: 1;
}

.zd-hub-word {
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.72;
}

@keyframes zd-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zd-pulse {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.32); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  [data-zd-rise],
  .zd-chip,
  .zd-hub-pulse,
  .zd-fan,
  .zd-fan-link,
  .zd-gauge-fill {
    animation: none !important;
    transition: none !important;
  }
  [data-zd-rise],
  .zd-chip {
    opacity: 1;
    transform: none;
  }
  .zd-compass.is-open .zd-fan:not([hidden]) {
    opacity: 1;
    transform: none;
  }
}
