/* ==========================================================================
   Daedalus Design — Homepage design elevation (OP #96)
   Loaded after home-2026.css / lead-capture.css / gold-glow.css on the
   homepage only, so every rule here refines what is already there instead of
   forking the base system.

   Principles:
   - Depth over decoration: layered surfaces, hairline gold rules, soft shadow.
   - Motion only where the visitor asks for it (prefers-reduced-motion guard).
   - Contrast preserved: text colours are never lowered; gold stays an accent.
   - Cookie banner, forms and legal links keep their existing hierarchy.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SECTION RHYTHM — soft tonal wash + hairline gold rule between sections
   -------------------------------------------------------------------------- */
main > section:nth-of-type(even) {
  /* background-image, not `background`: several sections (e.g. the trust strip)
     own a background-colour that must survive this layer. */
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0) 55%);
}
/* the trust strip already carries its own gold borders — no double rule there */
main > section.trust-signals::after {
  display: none;
}
main > section + section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 48px));
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-strong) 18%,
    var(--gold-line) 50%,
    var(--line-strong) 82%,
    transparent
  );
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   2. SECTION HEADINGS — eyebrow gains a drawn rule, lede gets breathing room
   -------------------------------------------------------------------------- */
.section-head .eyebrow,
.center-head .eyebrow {
  padding-bottom: 2px;
}
.section-head .h2,
.center-head .h2 {
  background: linear-gradient(180deg, var(--white), #DCE1E9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section-head .h2 .gold-text,
.center-head .h2 .gold-text {
  /* keep the gold words gold — the gradient clip above is only a lift for the
     neutral words, so re-fill spans that carry their own colour */
  -webkit-text-fill-color: currentColor;
  background: none;
}
.section-head .lede,
.center-head .lede {
  font-size: 1.06rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3. BUTTONS — focus ring for keyboard users, sheen sweep on the gold CTA
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-gold,
:where(.btn-primary:not(#acceptCookies)) {
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
}
.btn-gold::after,
:where(.btn-primary:not(#acceptCookies))::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn-gold:hover,
:where(.btn-primary:not(#acceptCookies)):hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.btn-gold:hover::after,
:where(.btn-primary:not(#acceptCookies)):hover::after {
  transform: translateX(120%);
}
.btn-dark {
  backdrop-filter: blur(6px);
}
.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   4. HERO — aurora behind the headline, glass badge, panelled stat cells
   -------------------------------------------------------------------------- */
.hero {
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 320px at 22% 34%, rgba(212, 175, 55, 0.10), transparent 65%),
    radial-gradient(640px 420px at 82% 18%, rgba(52, 211, 153, 0.06), transparent 70%);
}
.hero > .container {
  z-index: 1;
}
.hero-badge {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.10), rgba(212, 175, 55, 0.03));
  border-color: var(--gold-line);
  box-shadow: 0 10px 30px -18px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hero h1 {
  text-wrap: balance;
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
}
.hero h1 .gold-text {
  filter: drop-shadow(0 6px 26px rgba(212, 175, 55, 0.30));
}
.hero-lede {
  text-wrap: pretty;
}
.hero-stats {
  gap: 14px;
}
.hero-stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.hero-stat:hover {
  border-color: var(--gold-line);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.9);
}
.hero-stat .stat-num {
  letter-spacing: -0.01em;
}
.dae-card {
  transition: box-shadow var(--ease), transform var(--ease);
}
.dae-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 52px 110px -34px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(212, 175, 55, 0.14),
              0 0 60px -24px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   5. CARD SYSTEM — one shared hover language: lift, deepen, light the edge
   -------------------------------------------------------------------------- */
.tier,
.feature,
.pf-card,
.blog-card,
.mani,
.host-row,
.dae-panel,
.trust-signal-item,
.spec-banner,
.console-panel {
  transition: border-color var(--ease), transform var(--ease),
              box-shadow var(--ease), background var(--ease);
}
.tier:hover,
.feature:hover,
.pf-card:hover,
.blog-card:hover,
.mani:hover,
.host-row:hover,
.dae-panel:hover,
.trust-signal-item:hover {
  box-shadow: 0 26px 52px -26px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(212, 175, 55, 0.14);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.055), rgba(255, 255, 255, 0.015));
}
/* light the top edge on hover — reads as a lit architectural cornice */
.tier::before,
.feature::before,
.blog-card::before,
.mani::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}
.tier, .feature, .blog-card, .mani { position: relative; }
.tier:hover::before,
.feature:hover::before,
.blog-card:hover::before,
.mani:hover::before {
  opacity: 0.9;
}
.feature:hover,
.mani:hover {
  transform: translateY(-4px);
}
.tier-featured {
  box-shadow: 0 34px 80px -42px var(--gold-glow), 0 0 0 1px rgba(212, 175, 55, 0.16);
}
/* portfolio screenshots lean in and warm up on hover */
.pf-shot {
  transition: transform 0.6s ease, filter 0.6s ease;
}
.pf-card:hover .pf-shot {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}
.pf-card:hover h3 {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   6. TRUST STRIP, ADVISORY & ESTIMATOR — lifted surfaces
   -------------------------------------------------------------------------- */
.trust-signals {
  padding: 40px 0;
}
.trust-signal-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006));
}
.advisory {
  box-shadow: 0 50px 110px -60px rgba(0, 0, 0, 0.95),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.advisory::before {
  content: "";
  position: absolute;
  top: 0;
  left: 44px;
  right: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  pointer-events: none;
}
.advisory { position: relative; }
.estimator {
  box-shadow: 0 50px 110px -60px rgba(0, 0, 0, 0.95),
              0 0 70px -34px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   7. NAVBAR — crisper scrolled state
   -------------------------------------------------------------------------- */
.navbar.scrolled {
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.95);
}
.nav-links > li > a {
  position: relative;
}
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav-links > li > a:hover::after,
.nav-links > li > a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   8. FOOTER — gold hairline cap so the page closes on the brand
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 40%);
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 50%, transparent);
  pointer-events: none;
}
.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   9. MOTION POLICY — enhancements only where motion is welcome
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn-gold::after,
  :where(.btn-primary:not(#acceptCookies))::after {
    display: none;
  }
  .hero-stat:hover,
  .feature:hover,
  .mani:hover,
  .tier:hover,
  .pf-card:hover,
  .blog-card:hover,
  .host-row:hover,
  .dae-panel:hover,
  .trust-signal-item:hover,
  .dae-card:hover,
  .btn:hover,
  .btn-gold:hover,
  :where(.btn-primary:not(#acceptCookies)):hover,
  .btn-dark:hover {
    transform: none;
  }
  .pf-card:hover .pf-shot {
    transform: none;
    filter: none;
  }
  .nav-links > li > a::after {
    transition: none;
  }
}
