/* ============================================================
   Homepage v3 — "Copper & Oak" UI. Loaded ONLY by index.html,
   after /styles.css, so every rule wins the cascade against the
   compiled Tailwind build without touching any other page.

   Full visual rebuild on a warm palette:
   · dark coffee-brown surfaces across the whole page
   · copper/burnt-orange primary, golden-amber accent
   · Syne display font for headings (already shipped in /assets/fonts)
   · glass cards, gradient borders, warm glow accents
   · restructured hero (markup in index.html) + micro-interactions
   ============================================================ */

:root {
  --nx-bg: #0d0805;          /* page base — near-black brown */
  --nx-surface: #160f08;     /* was bg-white */
  --nx-surface-2: #1a1109;   /* was bg-blue-50 */
  --nx-surface-3: #120c06;   /* was bg-gray-50 */
  --nx-raise: #2a1c0e;       /* chips / was bg-gray-100 */
  --nx-line: rgba(255, 255, 255, 0.09);
  --nx-text: #faf5ec;        /* was text-gray-900 */
  --nx-text-mid: #ded2bf;    /* was text-gray-700 */
  --nx-text-soft: #b5a58c;   /* was text-gray-600 */
  --nx-copper: #ea580c;      /* primary — was violet */
  --nx-copper-deep: #c2410c;
  --nx-copper-soft: #fdba74;
  --nx-amber: #fbbf24;       /* accent — was cyan */
  --nx-amber-light: #fcd34d;
  --nx-amber-pale: #fde68a;
  --nx-glow: #fb923c;        /* warm glow — was fuchsia */
  --nx-ink-on-amber: #2c1503;
  --nx-display: "Syne", "Inter", system-ui, sans-serif;
}

/* ---------------- Global canvas & typography ---------------- */

body {
  background: var(--nx-bg);
  color: var(--nx-text-mid);
}
main h1,
main h2 {
  font-family: var(--nx-display);
  letter-spacing: -0.01em;
}

::selection { background: var(--nx-copper); color: #fff; }

* { scrollbar-width: thin; scrollbar-color: #5c4630 transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #5c4630;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--nx-copper); background-clip: content-box; }

/* ---------------- Surface re-map (light → dark warm) ---------------- */

.bg-white { background-color: var(--nx-surface); }
.bg-blue-50 { background-color: var(--nx-surface-2); }
.bg-gray-50 { background-color: var(--nx-surface-3); }
.bg-gray-100 { background-color: var(--nx-raise); }
.bg-gray-300 { background-color: #5c4630; }
.bg-blue-100 { background-color: #3a2410; }
.bg-yellow-100 { background-color: rgba(251, 191, 36, 0.16); }
.bg-green-100 { background-color: rgba(52, 211, 153, 0.16); }
.hover\:bg-gray-100:hover { background-color: #33230f; }
.hover\:bg-gray-50:hover { background-color: var(--nx-raise); }
.hover\:bg-blue-50:hover { background-color: #2a1c0e; }
.bg-gray-900 { background-color: #0a0603; }
.bg-gray-800 { background-color: #201509; }
.hover\:bg-gray-700:hover { background-color: #3b2812; }
.border-gray-700 { border-color: #33240f; }

/* Client-logo tiles inside the marquee stay white so logos stay legible */
.marquee-fade .bg-white { background-color: #ffffff; }

/* Copper fills: buttons/chips stay vivid; full sections become dark panels */
.bg-blue-600 { background-color: var(--nx-copper); }
section.bg-blue-600 { background: linear-gradient(160deg, #1a0f06 0%, #241505 60%, #321c08 100%); }
div.w-full.bg-blue-600 { background: linear-gradient(90deg, var(--nx-copper), var(--nx-amber)); }
div.bg-blue-600.rounded-2xl { background: linear-gradient(145deg, #33200d, #5a2e0e); border: 1px solid var(--nx-line); }
.bg-blue-700 { background-color: var(--nx-copper-deep); }
.bg-blue-800 { background-color: #9a3412; }
.bg-blue-900 { background-color: #7c2d12; }
.bg-blue-500 { background-color: #f97316; }
.bg-blue-300 { background-color: var(--nx-glow); }
.hover\:bg-blue-700:hover { background-color: var(--nx-copper-deep); }
.hover\:bg-blue-900:hover { background-color: #7c2d12; }
.group:hover .group-hover\:bg-blue-600 { background-color: var(--nx-copper); }

/* Accent: yellow → golden amber */
.bg-yellow-400 { background-color: var(--nx-amber); }
.hover\:bg-yellow-300:hover { background-color: var(--nx-amber-light); }
.text-yellow-400 { color: var(--nx-amber); }

/* ---------------- Text re-map (dark ink → warm light) ---------------- */

.text-gray-900 { color: var(--nx-text); }
.text-gray-700 { color: var(--nx-text-mid); }
.text-gray-600 { color: var(--nx-text-soft); }
.text-black { color: var(--nx-text-mid); }
.text-blue-600 { color: var(--nx-copper-soft); }
.text-blue-800 { color: #fed7aa; }
.text-blue-900 { color: var(--nx-ink-on-amber); } /* dark ink on amber CTAs */
.text-blue-500 { color: var(--nx-copper-soft); }
.text-blue-400 { color: var(--nx-copper-soft); }
.text-blue-200 { color: #f5e7d0; }
.text-blue-100 { color: #f0e4cf; }
.text-green-600 { color: #34d399; }
.hover\:text-blue-600:hover { color: #fed7aa; }
.hover\:text-blue-700:hover { color: #fed7aa; }
.hover\:text-blue-400:hover { color: var(--nx-copper-soft); }
.group:hover .group-hover\:text-blue-800 { color: #fed7aa; }
.group:hover .group-hover\:text-blue-600 { color: #fed7aa; }
.group:hover .group-hover\:text-blue-400 { color: var(--nx-copper-soft); }

/* ---------------- Borders & focus ---------------- */

.border-gray-100 { border-color: var(--nx-line); }
.border-gray-200 { border-color: var(--nx-line); }
.border-gray-600 { border-color: #3b2812; }
.border-blue-100 { border-color: rgba(234, 88, 12, 0.28); }
.border-blue-600 { border-color: #f97316; }
.group:hover .group-hover\:border-blue-300 { border-color: rgba(249, 115, 22, 0.55); }
.hover\:border-blue-500:hover { border-color: #f97316; }
.focus\:border-blue-500:focus { border-color: #f97316; }

/* ---------------- Gradient utilities re-map ---------------- */

.from-blue-600 {
  --tw-gradient-from: var(--nx-copper) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(234 88 12 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-800 {
  --tw-gradient-from: var(--nx-copper) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(234 88 12 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-50 {
  --tw-gradient-from: #2a1a0b var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(42 26 11 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-blue-700 {
  --tw-gradient-to: rgb(194 65 12 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--nx-copper-deep) var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.to-blue-800 { --tw-gradient-to: #9a3412 var(--tw-gradient-to-position); }
.to-blue-700 { --tw-gradient-to: var(--nx-glow) var(--tw-gradient-to-position); }
.to-blue-50 { --tw-gradient-to: var(--nx-amber) var(--tw-gradient-to-position); } /* gradient-border panel */
.to-indigo-50 { --tw-gradient-to: #33200d var(--tw-gradient-to-position); }
.hover\:from-blue-700:hover {
  --tw-gradient-from: var(--nx-copper-deep) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(194 65 12 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.hover\:to-blue-800:hover { --tw-gradient-to: #b45309 var(--tw-gradient-to-position); }
.from-yellow-400 {
  --tw-gradient-from: var(--nx-amber) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(251 191 36 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-yellow-300 { --tw-gradient-to: var(--nx-amber-pale) var(--tw-gradient-to-position); }
.hover\:shadow-yellow-400\/25:hover {
  --tw-shadow-color: rgb(251 191 36 / 0.35);
  --tw-shadow: var(--tw-shadow-colored);
}

/* ---------------- Header: dark glass ---------------- */

header.bg-white {
  background: rgba(13, 8, 4, 0.85) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-color: var(--nx-line);
}
header .bg-white { background: transparent; } /* mobile menu panel inherits header glass */
header, header a, header button {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.2s ease;
}
header.nx-scrolled { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55); }
header nav a { position: relative; }
header nav a::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--nx-copper), var(--nx-amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s ease;
}
header nav a:hover::after { transform: scaleX(1); }

/* ---------------- Scroll progress bar ---------------- */

.nx-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--nx-copper), var(--nx-glow) 55%, var(--nx-amber));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------------- Hero v3 ---------------- */

.nx-hero {
  display: flex;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(58rem 34rem at 82% 8%, rgba(234, 88, 12, 0.3), transparent 65%),
    radial-gradient(44rem 30rem at 8% 92%, rgba(251, 191, 36, 0.12), transparent 60%),
    var(--nx-bg);
}
.nx-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.nx-orb {
  position: absolute;
  border-radius: 9999px;
  will-change: transform;
  animation: nx-drift 12s ease-in-out infinite;
}
.nx-orb-a {
  width: 30rem;
  height: 30rem;
  top: -9rem;
  right: -7rem;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.45) 0%, rgba(234, 88, 12, 0.13) 45%, transparent 70%);
}
.nx-orb-b {
  width: 22rem;
  height: 22rem;
  bottom: -6rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.32) 0%, rgba(251, 191, 36, 0.09) 45%, transparent 70%);
  animation-duration: 15s;
  animation-delay: 2s;
}
.nx-orb-c {
  width: 14rem;
  height: 14rem;
  top: 38%;
  left: 56%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.28) 0%, rgba(251, 146, 60, 0.08) 45%, transparent 70%);
  animation-duration: 18s;
  animation-delay: 4s;
}
@keyframes nx-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -26px, 0) scale(1.06); }
}
.nx-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60rem 36rem at 30% 45%, black 30%, transparent 75%);
  mask-image: radial-gradient(60rem 36rem at 30% 45%, black 30%, transparent 75%);
}
.nx-hero-inner { padding-top: 9.5rem; padding-bottom: 8rem; width: 100%; }

.nx-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--nx-amber-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.nx-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--nx-amber);
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6);
  animation: nx-ping 2s ease-out infinite;
}
@keyframes nx-ping {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.nx-h1 {
  font-family: var(--nx-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.75rem;
  max-width: 60rem;
}
.nx-grad-text {
  background: linear-gradient(92deg, var(--nx-amber) 10%, #f97316 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nx-hero .typed-cursor { color: var(--nx-amber); font-weight: 400; }

.nx-hero-sub {
  max-width: 40rem;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #d3c4ab;
  margin-bottom: 2.5rem;
}

.nx-hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }

.nx-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--nx-line);
  padding-top: 2rem;
  max-width: 44rem;
}
.nx-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-right: 2.5rem;
  margin-right: 2.5rem;
  border-right: 1px solid var(--nx-line);
}
.nx-stat:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.nx-stat-num {
  font-family: var(--nx-display);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--nx-amber);
  line-height: 1;
}
.nx-stat-label { font-size: 0.85rem; color: #a08a6b; letter-spacing: 0.04em; }

/* Hero entrance choreography */
@keyframes nx-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.nx-pill { animation: nx-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both, none; }
.nx-h1 { animation: nx-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.nx-hero-sub { animation: nx-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both; }
.nx-hero-cta { animation: nx-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; }
.nx-stats { animation: nx-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both; }

/* Scroll cue (injected by inline script) */
.nx-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 20;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  pointer-events: none;
}
@keyframes nx-cue {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}
.nx-scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 10px;
  border-radius: 9999px;
  background: var(--nx-amber);
  animation: nx-cue 1.8s ease-in-out infinite;
}

/* ---------------- Shared buttons ---------------- */

.nx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--nx-amber), var(--nx-amber-pale));
  color: var(--nx-ink-on-amber);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.nx-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(251, 191, 36, 0.4); }
.nx-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.6) 50%, transparent 80%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.nx-btn:hover::before { left: 130%; }
.nx-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.nx-btn-ghost:hover {
  border-color: var(--nx-amber-light);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}

/* ---------------- Cards & sections, dark treatment ---------------- */

main .rounded-2xl.shadow-lg,
main .rounded-xl.shadow-lg { border: 1px solid var(--nx-line); }
.card-hover { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(234, 88, 12, 0.22); }

/* Accent bar under centered section headings */
main .text-center > h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 1.1rem auto 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--nx-copper), var(--nx-amber));
}

/* Kicker labels ("* OUR SERVICES", "HOW IT WORK", …) become amber ticks */
main p.uppercase.tracking-wider { color: var(--nx-amber-light) !important; letter-spacing: 0.16em; }

/* Pause marquees on hover */
.animate-marquee:hover,
.animate-marquee-slow:hover { animation-play-state: paused; }

/* Scroll-reveal: replace the transition-based effect from styles.css with a
   keyframe animation. Transitions that start while the renderer is stalled
   or the tab is occluded can stay frozen at their start value (section stuck
   invisible); animations recover on the next produced frame. */
@keyframes nx-reveal {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal-up { opacity: 0; transform: translateY(28px); transition: none; }
.reveal-up.is-visible {
  opacity: 1;
  transform: none;
  animation: nx-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------------- Back-to-top ---------------- */

.nx-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 9999px;
  background: var(--nx-copper);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
}
.nx-top.nx-show { opacity: 1; visibility: visible; transform: translateY(0); }
.nx-top:hover { background: var(--nx-copper-deep); transform: translateY(-3px); }

/* ---------------- Distillery & Spirits section ---------------- */

.nx-distill {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(40rem 26rem at 90% 0%, rgba(234, 88, 12, 0.22), transparent 65%),
    radial-gradient(36rem 24rem at 0% 100%, rgba(251, 191, 36, 0.1), transparent 60%),
    #110a05;
  color: #fff;
  border-top: 1px solid var(--nx-line);
  border-bottom: 1px solid var(--nx-line);
}
.nx-distill::before,
.nx-distill::after {
  content: "";
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  opacity: 0.4;
  pointer-events: none;
  will-change: transform;
}
.nx-distill::before {
  top: -8rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.45) 0%, rgba(251, 191, 36, 0.14) 45%, transparent 70%);
  animation: nx-drift 9s ease-in-out infinite;
}
.nx-distill::after {
  bottom: -10rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.45) 0%, rgba(251, 146, 60, 0.14) 45%, transparent 70%);
  animation: nx-drift 11s ease-in-out 2s infinite;
}
.nx-distill > div { position: relative; z-index: 1; }

.nx-kicker {
  color: var(--nx-amber-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.nx-distill h2 { color: #fff; }
.nx-distill .nx-lede { color: #dcccb2; }

.nx-dgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
}
@media (min-width: 768px) { .nx-dgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nx-dgrid { grid-template-columns: repeat(3, 1fr); } }

.nx-dcard {
  position: relative;
  border-radius: 1.25rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--nx-line);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease;
}
.nx-dcard:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(252, 211, 77, 0.45);
  box-shadow: 0 24px 48px rgba(10, 5, 2, 0.6);
}
.nx-ico {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 146, 60, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nx-dcard:hover .nx-ico { transform: scale(1.12) rotate(-6deg); }
.nx-dcard h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.nx-dcard p {
  color: #dcccb2;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}
.nx-dcard a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--nx-amber-light);
  font-weight: 600;
  font-size: 0.9rem;
}
.nx-dcard a:hover { color: var(--nx-amber-pale); }
.nx-dcard a span:last-child { transition: transform 0.3s ease; }
.nx-dcard a:hover span:last-child { transform: translateX(4px); }

/* Staggered card entrance once the section reveals — animation-based for the
   same stall-immunity as nx-reveal (noscript override in the page head keeps
   cards visible for no-JS visitors) */
.nx-distill.reveal-up:not(.is-visible) .nx-dcard { opacity: 0; }
.nx-distill.is-visible .nx-dcard { animation: nx-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.nx-distill.is-visible .nx-dcard:nth-child(2) { animation-delay: 70ms; }
.nx-distill.is-visible .nx-dcard:nth-child(3) { animation-delay: 140ms; }
.nx-distill.is-visible .nx-dcard:nth-child(4) { animation-delay: 210ms; }
.nx-distill.is-visible .nx-dcard:nth-child(5) { animation-delay: 280ms; }
.nx-distill.is-visible .nx-dcard:nth-child(6) { animation-delay: 350ms; }
.nx-distill.is-visible .nx-dcard:nth-child(7) { animation-delay: 420ms; }
.nx-distill.is-visible .nx-dcard:nth-child(8) { animation-delay: 490ms; }
.nx-distill.is-visible .nx-dcard:nth-child(9) { animation-delay: 560ms; }

.nx-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

/* ---------------- Hero floating proof badges ---------------- */

.nx-badges {
  position: absolute;
  top: 0;
  right: 2rem;
  bottom: 0;
  width: 0;
  z-index: 10;
  pointer-events: none;
  display: none;
  transition: transform 0.25s ease-out;
}
@media (min-width: 1024px) { .nx-badges { display: block; } }
.nx-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.7rem 1.2rem;
  border-radius: 9999px;
  background: rgba(22, 15, 8, 0.78);
  border: 1px solid var(--nx-line);
  color: var(--nx-text);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  animation: nx-drift 7s ease-in-out infinite;
}
.nx-badge-1 { top: 24%; right: 3rem; animation-delay: 0.5s; }
.nx-badge-2 { top: 44%; right: 11rem; animation-delay: 1.6s; }
.nx-badge-3 { top: 64%; right: 4rem; animation-delay: 2.7s; }

/* ---------------- Cursor spotlight on cards ---------------- */

.nx-spot { position: relative; overflow: hidden; }
.nx-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(251, 191, 36, 0.13), transparent 60%);
}
.nx-spot:hover::after { opacity: 1; }

/* ---------------- Section rhythm: warm hairline separators ---------------- */

main > section.reveal-up { position: relative; }
main > section.reveal-up:not(.nx-distill)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.16), transparent);
  pointer-events: none;
}

/* Tilted tools marquee band for a bit of energy between sections */
div.w-full.bg-blue-600 {
  transform: rotate(-1.2deg) scale(1.03);
  margin: 1.5rem 0;
}

/* Testimonial dots morph into a pill when active */
#testimonial-dots button { transition: background-color 0.3s ease, width 0.3s ease; }
#testimonial-dots button.bg-blue-600 { width: 1.75rem; }

/* Anchor targets clear the sticky header */
#faq, #distillery-marketing { scroll-margin-top: 5rem; }

/* ---------------- FAQ accordions ---------------- */

.nx-faq-item {
  border: 1px solid var(--nx-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.nx-faq-item[open] {
  border-color: rgba(252, 211, 77, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.nx-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--nx-text);
}
.nx-faq-item summary::-webkit-details-marker { display: none; }
.nx-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--nx-amber);
  transition: transform 0.3s ease;
}
.nx-faq-item[open] summary::after { transform: rotate(45deg); }
.nx-faq-body {
  padding: 0 1.5rem 1.4rem;
  color: var(--nx-text-soft);
  line-height: 1.7;
}
.nx-faq-body a { color: var(--nx-amber-light); text-decoration: underline; text-underline-offset: 3px; }
.nx-faq-body a:hover { color: var(--nx-amber-pale); }

/* ---------------- Proven Results panel ---------------- */

.nx-results-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 3rem;
  border-radius: 1.5rem;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--nx-surface), var(--nx-surface)) padding-box,
    linear-gradient(120deg, var(--nx-copper), var(--nx-amber)) border-box;
}
@media (min-width: 1024px) {
  .nx-results-panel { flex-direction: row; align-items: center; gap: 4rem; }
  .nx-results-copy { flex: 1; }
  .nx-results-grid { flex: 1.2; }
}
.nx-results-copy h2 {
  color: var(--nx-text);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.nx-results-copy .nx-lede { color: var(--nx-text-soft); line-height: 1.7; margin-bottom: 2rem; }
.nx-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.nx-result {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--nx-line);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.nx-result:hover { border-color: rgba(252, 211, 77, 0.4); transform: translateY(-4px); }
.nx-result-num {
  font-family: var(--nx-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  background: linear-gradient(92deg, var(--nx-amber), #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nx-result-label { font-size: 0.88rem; color: var(--nx-text-soft); line-height: 1.5; }

/* ---------------- Final CTA banner ---------------- */

.nx-final-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(42rem 26rem at 50% 120%, rgba(234, 88, 12, 0.28), transparent 70%),
    radial-gradient(30rem 18rem at 12% 0%, rgba(251, 191, 36, 0.1), transparent 60%),
    #110a05;
  border-top: 1px solid var(--nx-line);
}
.nx-final-cta h2 { color: var(--nx-text); }
.nx-final-cta .nx-lede { color: #dcccb2; }
.nx-final-cta .nx-cta-row { margin-top: 2rem; }

/* ---------------- Keyboard focus (accessibility) ---------------- */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--nx-amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  .nx-pill, .nx-h1, .nx-hero-sub, .nx-hero-cta, .nx-stats,
  .nx-orb, .nx-pill-dot, .nx-badge,
  .nx-distill::before, .nx-distill::after,
  .nx-scroll-cue span {
    animation: none !important;
  }
  .nx-spot::after { display: none; }
  div.w-full.bg-blue-600 { transform: none; }
  .nx-scroll-cue { display: none; }
  .reveal-up { opacity: 1 !important; transform: none !important; }
  .reveal-up.is-visible, .nx-distill.is-visible .nx-dcard { animation: none !important; }
  .nx-dcard { transition: none; opacity: 1 !important; transform: none !important; }
  .card-hover, .card-hover:hover, .nx-btn, .nx-btn-ghost { transition: none; transform: none; }
}
