/* Zenith Meridian — Appily Sixtyfive home (independent visual system) */

:root {
  --zv-void: #04151A;
  --zv-ink: #0B2A32;
  --zv-slate: #1A4550;
  --zv-pearl: #EEF6F4;
  --zv-mist: #D2E6E1;
  --zv-teal: #0F8A7A;
  --zv-teal-bright: #14B89F;
  --zv-flash: #E85A2E;
  --zv-chart: #B6D11D;
  --zv-mute: #5C7E79;
  --zv-line: rgba(11, 42, 50, 0.12);
  --zv-glow-soft: rgba(15, 138, 122, 0.18);
  --font-display: 'Archivo', 'Segoe UI', sans-serif;
  --font-body: 'Figtree', 'Segoe UI', sans-serif;
  --zv-dock-w: 4.75rem;
  --zv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.zv-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--zv-ink);
  background:
    linear-gradient(125deg, rgba(15, 138, 122, 0.07) 0%, transparent 42%),
    linear-gradient(320deg, rgba(232, 90, 46, 0.05) 0%, transparent 38%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 71px,
      rgba(11, 42, 50, 0.035) 71px,
      rgba(11, 42, 50, 0.035) 72px
    ),
    linear-gradient(180deg, #E4F0ED 0%, var(--zv-pearl) 48%, #D8EBE6 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.zv-root { min-height: 100vh; display: flex; flex-direction: column; }
.zv-dock-pad { padding-left: 0; padding-bottom: 5.5rem; }
.page-main { flex: 1; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0);
}

@media (min-width: 960px) {
  .zv-dock-pad { padding-left: calc(var(--zv-dock-w) + 1.25rem); padding-bottom: 0; }
}

.zv-stage { display: flex; flex-direction: column; }

/* ——— Full-bleed hero ——— */
.zv-hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--zv-pearl);
}

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

.zv-hero-plane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.05);
  will-change: transform;
}

.zv-hero-mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(4, 21, 26, 0.92) 0%, rgba(4, 21, 26, 0.68) 38%, rgba(4, 21, 26, 0.22) 62%, rgba(4, 21, 26, 0.55) 100%),
    linear-gradient(0deg, rgba(4, 21, 26, 0.78) 0%, transparent 48%);
}

.zv-hero-meridian {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 18px,
      rgba(182, 209, 29, 0.07) 18px 19px
    );
  mix-blend-mode: soft-light;
  animation: zv-drift 22s linear infinite;
}

@keyframes zv-drift {
  from { background-position: 0 0; }
  to { background-position: 120px 80px; }
}

.zv-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

.zv-brand {
  margin: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 9.5vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.zv-brand span:last-child {
  color: var(--zv-chart);
}

.zv-headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 22ch;
  color: rgba(238, 246, 244, 0.92);
}

.zv-lede {
  margin: 0 0 1.6rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(210, 230, 225, 0.88);
  max-width: 34ch;
}

.zv-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.zv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.35rem;
  border-radius: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--zv-ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s var(--zv-ease);
}

.zv-btn-primary {
  background: var(--zv-flash);
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 90, 46, 0.28);
}

.zv-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: #f06a42;
  box-shadow: 0 14px 32px rgba(232, 90, 46, 0.38);
}

.zv-btn-ghost {
  background: transparent;
  color: var(--zv-pearl);
  border-color: rgba(238, 246, 244, 0.45);
}

.zv-btn-ghost:hover {
  background: rgba(238, 246, 244, 0.1);
  border-color: var(--zv-chart);
  color: var(--zv-chart);
  transform: translateY(-2px);
}

[data-zv-rise] {
  opacity: 0;
  transform: translateY(18px);
  animation: zv-rise 0.85s var(--zv-ease) forwards;
}
[data-zv-rise]:nth-child(1) { animation-delay: 0.08s; }
[data-zv-rise]:nth-child(2) { animation-delay: 0.2s; }
[data-zv-rise]:nth-child(3) { animation-delay: 0.32s; }
[data-zv-rise]:nth-child(4) { animation-delay: 0.44s; }

@keyframes zv-rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-zv-rise] { opacity: 1; transform: none; animation: none; }
  .zv-hero-meridian { animation: none; }
}

/* ——— Dashboard corridors ——— */
.zv-dash,
.zv-rail,
.zv-signal {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.zv-dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}

.zv-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zv-teal);
}

.zv-kicker-invert { color: var(--zv-chart); }

.zv-dash-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.zv-dash-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--zv-slate);
  font-variant-numeric: tabular-nums;
}

.zv-dash-meta i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 1px;
  background: var(--zv-flash);
  display: inline-block;
}

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

@media (min-width: 720px) {
  .zv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

.zv-cell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 11.5rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--zv-line);
  border-radius: 0.45rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--zv-ease), border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s var(--zv-ease);
}

.zv-cell::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--zv-teal), var(--zv-chart));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--zv-ease);
  z-index: 2;
}

.zv-cell:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 138, 122, 0.35);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(4, 21, 26, 0.1);
}

.zv-cell:hover::before { transform: scaleX(1); }

.zv-cell-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--zv-mute);
  z-index: 1;
}

.zv-cell-visual {
  position: absolute;
  right: -8%;
  top: 18%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50% 12% 40% 20%;
  overflow: hidden;
  opacity: 0.55;
  z-index: 0;
  transition: opacity 0.35s ease, transform 0.5s var(--zv-ease);
}

.zv-cell-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 0.55s var(--zv-ease);
}

.zv-cell:hover .zv-cell-visual {
  opacity: 0.85;
  transform: rotate(-6deg) scale(1.06);
}

.zv-cell:hover .zv-cell-visual img {
  transform: scale(1.08);
}

.zv-cell-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: auto;
}

.zv-cell-copy strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.zv-cell-copy em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--zv-mute);
}

.zv-cell-go {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.65rem;
  height: 1.65rem;
  border: 1.5px solid var(--zv-line);
  border-radius: 0.25rem;
  z-index: 1;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s var(--zv-ease);
}

.zv-cell-go::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid var(--zv-ink);
  border-right: 2px solid var(--zv-ink);
  transform: rotate(45deg) translate(-1px, 1px);
}

.zv-cell:hover .zv-cell-go {
  background: var(--zv-teal);
  border-color: var(--zv-teal);
  transform: translate(2px, -2px);
}

.zv-cell:hover .zv-cell-go::after {
  border-color: #fff;
}

/* ——— Featured strip ——— */
.zv-rail {
  background:
    linear-gradient(180deg, transparent, rgba(15, 138, 122, 0.06) 30%, rgba(15, 138, 122, 0.06) 70%, transparent);
}

.zv-rail-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.zv-nudge {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.3rem;
  border: 1.5px solid var(--zv-line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--zv-ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.3s var(--zv-ease);
}

.zv-nudge:hover {
  background: var(--zv-ink);
  border-color: var(--zv-ink);
  color: var(--zv-pearl);
  transform: scale(1.05);
}

.zv-text-link {
  margin-left: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--zv-teal);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.zv-text-link:hover {
  color: var(--zv-flash);
  border-bottom-color: var(--zv-flash);
}

.zv-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--zv-teal) transparent;
}

.zv-tile {
  flex: 0 0 min(72vw, 15.5rem);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--zv-line);
  border-radius: 0.45rem;
  overflow: hidden;
  transition: transform 0.4s var(--zv-ease), box-shadow 0.4s var(--zv-ease), border-color 0.3s ease;
}

.zv-tile:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  border-color: rgba(15, 138, 122, 0.4);
  box-shadow: 0 20px 44px rgba(4, 21, 26, 0.12);
}

.zv-tile-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--zv-mist);
}

.zv-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--zv-ease);
}

.zv-tile:hover .zv-tile-media img {
  transform: scale(1.08);
}

.zv-tile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem 1.1rem;
}

.zv-tile-aisle {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zv-mute);
}

.zv-tile-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.zv-tile-price {
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--zv-teal);
  font-variant-numeric: tabular-nums;
}

/* ——— Signal board ——— */
.zv-signal {
  display: grid;
  gap: 2rem;
  background: var(--zv-void);
  color: var(--zv-pearl);
  margin: 0 clamp(0.75rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 0.6rem;
  padding: clamp(2rem, 5vw, 3.25rem);
}

@media (min-width: 860px) {
  .zv-signal {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 3rem;
  }
}

.zv-signal-lead h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.zv-signal-lead p {
  margin: 0 0 1.4rem;
  color: rgba(210, 230, 225, 0.82);
  line-height: 1.55;
  max-width: 36ch;
}

.zv-signal-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zv-signal-board li {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(238, 246, 244, 0.14);
  border-radius: 0.4rem;
  background: rgba(238, 246, 244, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s var(--zv-ease);
}

.zv-signal-board li:hover {
  background: rgba(20, 184, 159, 0.12);
  border-color: rgba(182, 209, 29, 0.45);
  transform: translateX(6px);
}

.zv-signal-board strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.zv-signal-board span {
  font-size: 0.9rem;
  color: rgba(210, 230, 225, 0.75);
}

/* Section reveal */
[data-zv-section] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--zv-ease), transform 0.7s var(--zv-ease);
}

[data-zv-section].is-in {
  opacity: 1;
  transform: none;
}

[data-zv-section].is-in .zv-cell,
[data-zv-section].is-in .zv-signal-board li {
  animation: zv-cell-in 0.55s var(--zv-ease) both;
}

[data-zv-section].is-in .zv-cell:nth-child(1),
[data-zv-section].is-in .zv-signal-board li:nth-child(1) { animation-delay: 0.05s; }
[data-zv-section].is-in .zv-cell:nth-child(2),
[data-zv-section].is-in .zv-signal-board li:nth-child(2) { animation-delay: 0.1s; }
[data-zv-section].is-in .zv-cell:nth-child(3),
[data-zv-section].is-in .zv-signal-board li:nth-child(3) { animation-delay: 0.15s; }
[data-zv-section].is-in .zv-cell:nth-child(4) { animation-delay: 0.2s; }
[data-zv-section].is-in .zv-cell:nth-child(5) { animation-delay: 0.25s; }
[data-zv-section].is-in .zv-cell:nth-child(6) { animation-delay: 0.3s; }

@keyframes zv-cell-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-zv-section] { opacity: 1; transform: none; transition: none; }
  [data-zv-section].is-in .zv-cell,
  [data-zv-section].is-in .zv-signal-board li { animation: none; }
}

/* ——— Left vertical dock (desktop) / bottom dock (mobile) ——— */
.zv-dock {
  position: fixed;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(4, 21, 26, 0.92);
  color: var(--zv-pearl);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(238, 246, 244, 0.12);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--zv-ease), transform 0.5s var(--zv-ease);
}

.zv-dock.is-up {
  opacity: 1;
  transform: none;
}

/* Mobile: bottom minimalist dock */
.zv-dock {
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 16px);
  width: min(94vw, 34rem);
  padding: 0.45rem;
  border-radius: 0.55rem;
  justify-content: space-between;
}

.zv-dock.is-up {
  transform: translate(-50%, 0);
}

@media (min-width: 960px) {
  .zv-dock {
    left: 1rem;
    top: 50%;
    bottom: auto;
    width: var(--zv-dock-w);
    flex-direction: column;
    padding: 0.65rem 0.45rem;
    border-radius: 0.7rem;
    gap: 0.25rem;
    transform: translate(-12px, -50%);
  }

  .zv-dock.is-up {
    transform: translate(0, -50%);
  }
}

.zv-dock-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.35rem;
  text-decoration: none;
  color: var(--zv-pearl);
  border-radius: 0.35rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.zv-dock-brand em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  color: var(--zv-chart);
}

.zv-dock-brand strong {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.zv-dock-brand:hover {
  background: rgba(20, 184, 159, 0.18);
  color: var(--zv-chart);
}

.zv-dock-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  min-height: 2.55rem;
  padding: 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(238, 246, 244, 0.72);
  border-radius: 0.3rem;
  transition: color 0.25s ease, background 0.25s ease, transform 0.3s var(--zv-ease);
}

.zv-dock-link:hover {
  color: #fff;
  background: rgba(238, 246, 244, 0.1);
  transform: translateY(-1px);
}

.zv-dock-link.is-on {
  color: var(--zv-void);
  background: var(--zv-chart);
}

.zv-dock-link.is-on:hover {
  color: var(--zv-void);
  background: #c5e03a;
}

.zv-dock-cart em {
  position: absolute;
  top: 0.2rem;
  right: 0.15rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 0.2rem;
  background: var(--zv-flash);
  color: #fff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1rem;
  text-align: center;
}

.zv-dock-seek {
  display: none;
}

@media (min-width: 960px) {
  .zv-dock-link {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    min-height: 4.2rem;
    padding: 0.55rem 0;
  }

  .zv-dock-link:hover {
    transform: rotate(180deg) translateX(-2px);
  }

  .zv-dock-seek {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
  }

  .zv-dock-seek input {
    width: 100%;
    writing-mode: horizontal-tb;
    border: 0;
    border-radius: 0.25rem;
    background: rgba(238, 246, 244, 0.1);
    color: var(--zv-pearl);
    font-size: 0.65rem;
    padding: 0.45rem 0.25rem;
    text-align: center;
    outline: none;
  }

  .zv-dock-seek input::placeholder {
    color: rgba(238, 246, 244, 0.45);
  }

  .zv-dock-seek input:focus {
    background: rgba(20, 184, 159, 0.22);
  }
}

/* Footer */
.zv-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem) 1.75rem;
  font-size: 0.82rem;
  color: var(--zv-mute);
  border-top: 1px solid var(--zv-line);
}

.zv-foot a {
  color: var(--zv-slate);
  text-decoration: none;
  margin-left: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.zv-foot a:hover { color: var(--zv-flash); }

.zv-foot-links { display: flex; flex-wrap: wrap; }
