/* Additions for the static (vanilla) export only — loaded after styles.css.
   Everything else comes from the site's own compiled stylesheet. */

/* Page transitions between the .html pages, using the browser's cross-document
   View Transitions (Chrome/Edge 126+, Safari 18.2+; others just navigate).
   Disabled in Next.js SPA to prevent InvalidStateError aborted transition crashes. */
/*
@view-transition {
  navigation: auto;
}
*/

/* Named only while a transition runs: a permanent view-transition-name makes
   <main> its own rendering layer, which subtly changes text anti-aliasing
   versus the React site. */
html:active-view-transition main {
  view-transition-name: page;
}

::view-transition-old(page) {
  animation: hn-page-out 200ms cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(page) {
  animation: hn-page-in 520ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(page),
  ::view-transition-new(page) {
    animation: none;
  }
}

/* Form validation error styling */
[data-name-error],
[data-email-error],
[data-message-error],
.text-red-500,
.text-red-400 {
  color: #ef4444 !important;
}

.\!border-red-500,
.border-red-500 {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}


/* ==========================================================================
   LANDING PAGE (home-new) VISUAL FIXES & PROTECTION
   ========================================================================== */

/* 1. Eliminate harsh grid cage lines (vertical side borders and stark section dividers) */
.home-new .border-x,
.home-new section.border-x,
.home-new header.border-x,
.home-new footer.border-x {
  border-left-width: 0px !important;
  border-right-width: 0px !important;
}

.home-new section.border-b {
  border-bottom-width: 0px !important;
}

.home-new header.border-b {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.home-new .border-line {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* 2. Enforce dark card theme and prevent globals.css light-mode override */
.home-new .bg-card,
.home-new [class*="bg-card"] {
  background-color: #0d141b !important;
  color: #f4f8f9 !important;
}

.home-new .bg-card-2,
.home-new [class*="bg-card-2"] {
  background-color: #111a24 !important;
}

/* 3. Platform Diagram Node Cards: Solid dark background + crisp legible white text */
.home-new .size-node {
  background-color: #0d141b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7) !important;
}

.home-new .size-node span,
.home-new .size-node p {
  color: #f4f8f9 !important;
}

/* 4. Ensure platform hub diagram never overlaps section heading */
#platform .h-hub-diagram {
  margin-top: 4rem !important;
  padding-top: 1rem !important;
}
