/* =====================================================================
   ZenVue — style.css
   Modern, calm, rounded. Aligned with the Zenith Solutions brand.
   Navy + soft gold, cream headings, soft shadows, generous space.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #081826;
  --navy-band:   #07131e;
  --navy-foot:   #06111a;
  --panel-a:     #0c2234;
  --panel-b:     #0a1b2b;
  --panel-inner: #091521;

  --gold:        #c8a96b;
  --gold-soft:   rgba(200, 169, 107, 0.22);
  --cream:       #f4ead7;
  --cream-bold:  #f8f4ec;

  --text:        rgba(255, 255, 255, 0.78);
  --text-dim:    rgba(255, 255, 255, 0.6);
  --line:        rgba(255, 255, 255, 0.1);
  --surface:     rgba(255, 255, 255, 0.04);
  --surface-2:   rgba(255, 255, 255, 0.06);

  --shadow:      0 20px 50px rgba(0, 0, 0, 0.3);
  --shadow-sm:   0 10px 30px rgba(0, 0, 0, 0.25);

  --radius-lg:   30px;
  --radius:      18px;
  --radius-sm:   14px;

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

.container { width: min(calc(100% - 48px), var(--maxw)); margin-inline: auto; }

:where(section[id]) { scroll-margin-top: 96px; }

/* ---------- Type ---------- */
.h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream-bold);
}
.h2 {
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--cream-bold);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}
.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.75;
  color: var(--text);
  max-width: 34rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.55rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.btn--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.btn--primary:hover { transform: translateY(-2px); opacity: 0.94; }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cream-bold);
}
.btn--ghost:hover { background: var(--surface); border-color: rgba(255,255,255,0.28); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 24, 38, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand__mark { width: 42px; height: 42px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--cream-bold);
}
.brand__accent { color: var(--gold); }
.brand__sub {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-dim);
}

.nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--cream-bold); }

.header__actions { display: flex; align-items: center; gap: 0.9rem; }
.header__login { padding: 0.7rem 1.3rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px; height: 1.5px; background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero__glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 70rem; height: 50rem;
  transform: translateX(-30%);
  background: radial-gradient(circle at 40% 40%, rgba(200,169,107,0.12), transparent 60%);
  pointer-events: none;
  filter: blur(10px);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy .eyebrow { display: inline-block; margin-bottom: 1.4rem; }
.h1 { margin-bottom: 1.5rem; }
.hero__note {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Layered teaser panel */
.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--panel-a), var(--panel-b));
  box-shadow: var(--shadow);
}
.panel__inner {
  border-radius: 22px;
  border: 1px solid var(--gold-soft);
  background: var(--panel-inner);
  padding: 1.8rem;
}
.panel__logo { width: 60px; height: 60px; object-fit: contain; margin-bottom: 1.2rem; }
.panel__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(200, 169, 107, 0.6);
}
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.teaser {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.teaser__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.teaser__value { font-size: 0.98rem; color: var(--cream); font-weight: 500; }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.band { background: var(--navy-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__head .eyebrow { display: inline-block; margin-bottom: 1rem; }
.section__head .h2 { margin-bottom: 1.1rem; }
.section__lead { color: var(--text); font-size: 1.08rem; line-height: 1.75; }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---------- Capability cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-soft); background: var(--surface-2); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem; height: 3.2rem;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  background: rgba(200, 169, 107, 0.08);
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.35rem; font-weight: 600; color: var(--cream-bold); margin-bottom: 0.7rem; }
.card__text { color: var(--text); font-size: 0.98rem; }

/* ---------- Approach ---------- */
.approach__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.approach__intro { position: sticky; top: 110px; }
.approach__intro .eyebrow { display: inline-block; margin-bottom: 1rem; }
.approach__intro .h2 { margin-bottom: 1.1rem; }
.approach__future {
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--cream);
}
.steps { display: flex; flex-direction: column; gap: 1rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem 1.6rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.step:hover { border-color: var(--gold-soft); background: var(--surface-2); }
.step__num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  width: 2.6rem; height: 2.6rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  flex-shrink: 0;
}
.step__title { font-size: 1.15rem; font-weight: 600; color: var(--cream-bold); margin-bottom: 0.3rem; }
.step__text { font-size: 0.95rem; color: var(--text); }

/* ---------- Dual CTA ---------- */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 60rem; margin-inline: auto; }
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--panel-a), var(--panel-b));
  padding: 2.4rem 2.2rem;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.cta-card__title { font-size: 1.5rem; font-weight: 600; color: var(--cream-bold); }
.cta-card__text { color: var(--text); font-size: 0.98rem; margin-bottom: 0.6rem; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--line); background: var(--navy-foot); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__mark { width: 38px; height: 38px; object-fit: contain; }
.footer__name { font-size: 1.2rem; font-weight: 700; color: var(--cream-bold); line-height: 1.1; }
.footer__sub { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.04em; }
.footer__copy { font-size: 0.85rem; color: var(--text-dim); }
.footer__link { font-size: 0.88rem; color: var(--cream); transition: color 0.2s var(--ease); }
.footer__link span { color: var(--gold); }
.footer__link:hover { color: var(--gold); }

/* =====================================================================
   FOCUS STATES
   ===================================================================== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0 24px;
    background: rgba(8, 24, 38, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  }
  .nav.is-open { max-height: 60vh; padding-block: 0.4rem 1.2rem; }
  .nav__link { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }

  .hero__grid { grid-template-columns: 1fr; }
  .panel { order: -1; }

  .cards { grid-template-columns: 1fr; }
  .approach__grid { grid-template-columns: 1fr; }
  .approach__intro { position: static; }
  .cta-grid { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 540px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .header__login { width: auto; }
}

/* =====================================================================
   MOTION
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform;
  }
  .reveal.in { opacity: 1; transform: none; }

  .dot { animation: pulse 2.6s ease-out infinite; }
  @keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(200, 169, 107, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(200, 169, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 169, 107, 0); }
  }
}
