/* ==========================================================================
   Revells.ai — Custom styles (layered on top of Tailwind CDN utilities)
   Palette: White #FFFFFF · Orange #FF6A00 · Black #000000 · Dark Gray #1A1A1A / #333333
   Type: Aria, Helvetica, Arial, sans-serif
   ========================================================================== */

:root {
  --white: #ffffff;
  --orange: #ff6a00;
  --black: #000000;
  --gray-900: #1a1a1a;
  --gray-700: #333333;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

html { scroll-behavior: smooth; }

body {
  font-family: Aria, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
}

/* Editorial display type — lighter weight, tight tracking, large scale */
.headline { letter-spacing: -0.03em; line-height: 0.98; font-weight: 600; }
.display  { letter-spacing: -0.04em; line-height: 0.92; font-weight: 500; }
.eyebrow  { letter-spacing: 0.24em; }

/* Small uppercase micro-label */
.micro { letter-spacing: 0.18em; font-size: 0.7rem; text-transform: uppercase; font-weight: 600; }

/* Editorial meta row: label · label · label separated by hairlines */
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.meta-row > span { position: relative; padding-right: 0.9rem; }
.meta-row > span::after {
  content: ""; position: absolute; right: 0; top: 50%;
  height: 11px; width: 1px; transform: translateY(-50%);
  background: currentColor; opacity: 0.35;
}
.meta-row > span:last-child { padding-right: 0; }
.meta-row > span:last-child::after { display: none; }

/* Hairline rules for editorial structure */
.hairline { height: 1px; width: 100%; background: currentColor; opacity: 0.14; }

/* Generous body reading measure */
.lede { line-height: 1.65; }

/* Accent underline used on links / active nav */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 220ms var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

/* Primary CTA button */
.btn-primary {
  background: var(--orange);
  color: var(--white);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(255, 106, 0, 0.6);
}

.btn-ghost {
  border: 1px solid var(--gray-700);
  transition: border-color 200ms var(--ease), color 200ms var(--ease), background 200ms var(--ease);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* Card hover lift */
.card {
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.35);
  border-color: var(--orange);
}

/* Product cards — per-category accent via --accent custom property */
.pcard {
  --accent: var(--orange);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.35);
}
.pcard .p-num { color: var(--accent); }
.pcard .p-label { color: var(--accent); }
.pcard .p-rule { background: var(--accent); }
.pcard .p-tick { color: var(--accent); }
.p-btn {
  background: var(--accent);
  color: #fff;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), opacity 200ms var(--ease);
}
.p-btn:hover { transform: translateY(-2px); opacity: 0.92; box-shadow: 0 12px 26px -12px var(--accent); }

/* Industry cards — uniform size, per-industry accent frame, photo + tags */
.icard {
  --accent: var(--orange);
  border: 2px solid var(--accent);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.icard:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.35);
}
.icard .i-photo-ph {
  background: color-mix(in srgb, var(--accent) 10%, #f4f4f5);
  color: var(--accent);
}
.icard .i-tag {
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* Video carousel */
.vcarousel { position: relative; aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .vcarousel { aspect-ratio: 3 / 4; } }
.vslide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease);
}
.vslide.is-active { opacity: 1; pointer-events: auto; }
.vvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voverlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.35) 100%);
}
.vcontent { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem; }
@media (min-width: 1024px) { .vcontent { padding: 3.5rem; } }
.vdots { position: absolute; right: 1.5rem; bottom: 1.5rem; display: flex; gap: 0.5rem; z-index: 5; }
.vdot {
  height: 8px; width: 8px; border-radius: 9999px;
  background: rgba(255,255,255,0.4); border: 0; cursor: pointer; padding: 0;
  transition: width 240ms var(--ease), background 240ms var(--ease);
}
.vdot.is-active { width: 24px; background: var(--orange); }

/* Carousel copy: +4px on every text element, orange slide titles */
.vcontent .micro { font-size: calc(0.7rem + 4px); }
.vcontent .lede  { font-size: calc(1rem + 4px); }
.vcontent h2 {
  color: var(--orange);
  font-size: calc(2.25rem + 4px); /* 4xl + 4px */
}
@media (min-width: 1024px) {
  .vcontent h2 { font-size: calc(3.75rem + 4px); } /* 6xl + 4px */
}

/* Gated download modal */
.gate-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.gate-modal.hidden { display: none; }
.gate-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}
.gate-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  background: #fff; border-radius: 1.5rem; padding: 2rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
  animation: gatePop 240ms var(--ease);
}
@keyframes gatePop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Hero intro — plays on load: logo first, headline words cascade, button last */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-anim { opacity: 0; animation: heroIn 500ms var(--ease) forwards; }
.hero-word { display: inline-block; opacity: 0; animation: heroIn 500ms var(--ease) forwards; }
/* Rotating hero: cross-fade between products */
.hero-fade { transition: opacity 500ms var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .hero-anim, .hero-word { opacity: 1; animation: none; transform: none; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  max-width: 760px; margin: 0 auto;
  background: #1a1a1a; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  display: flex; flex-direction: column; gap: 1rem;
  animation: gatePop 260ms var(--ease);
}
@media (min-width: 640px) {
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
}
.cookie-banner.hidden { display: none; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }

/* Header shadow once scrolled */
.site-header { transition: background 240ms var(--ease), box-shadow 240ms var(--ease); }
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Pages with a dark hero: header is transparent (reads black) at the top,
   so nav + hamburger go white. Once scrolled the bar turns white, revert to dark. */
.site-header.on-dark .nav-link { color: #fff; }
.site-header.on-dark [data-menu-toggle] span { background-color: #fff; }
.site-header.on-dark.scrolled .nav-link { color: var(--gray-900); }
.site-header.on-dark.scrolled [data-menu-toggle] span { background-color: #000; }

/* Mobile menu */
.mobile-menu { transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
.mobile-menu.hidden-menu { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* Thin top marquee-free divider accent */
.rule-accent { height: 3px; width: 56px; background: var(--orange); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
