/* RAVENLYX — shared styles (no build step; Tailwind CDN handles utilities) */

html {
  scroll-behavior: smooth;
  background-color: #050505;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background-color: #050505;
  overflow-x: hidden;
}

::selection {
  background: #ffffff;
  color: #000000;
}

/* ============ Particle canvas (Three.js) ============ */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.page-shell {
  position: relative;
  z-index: 1;
}

/* ============ Reveal utility (GSAP-driven; CSS sets the resting state) ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transform: none; }
  .reveal-word { transform: none; }
  #mobile-menu a { transform: none; }
}

/* Safety net: if the GSAP CDN fails to load, don't leave content permanently invisible. */
.no-anim-fallback [data-reveal],
.no-anim-fallback .reveal-word,
.no-anim-fallback .tier-card,
.no-anim-fallback #mobile-menu a {
  opacity: 1 !important;
  transform: none !important;
}

/* ============ Nav ============ */
.nav-link {
  position: relative;
  color: #c9c9c9;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6rem 1.75rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#mobile-menu a {
  opacity: 0;
  transform: translateX(24px);
}

/* ============ Buttons ============ */
.btn-outline,
.btn-solid {
  position: relative;
  display: inline-block;
  padding: 0.95rem 2.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.btn-outline:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
.btn-solid {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}
.btn-solid:hover {
  background-color: #050505;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #ffffff;
}
.btn-solid:disabled,
.btn-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============ Form fields ============ */
.field,
select.field {
  display: block;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.9rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field::placeholder {
  color: rgba(255, 255, 255, 0.35);
  transition: opacity 0.25s ease;
}
.field:focus {
  outline: none;
  border-color: #c9c9c9;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(201, 201, 201, 0.4), 0 0 18px rgba(201, 201, 201, 0.15);
}
.field:focus::placeholder {
  opacity: 0.5;
}
textarea.field {
  resize: vertical;
  min-height: 130px;
}
select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23c9c9c9'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
select.field option {
  background-color: #0a0a0a;
  color: #ffffff;
}

.form-status {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #c9c9c9;
}

/* ============ Callout notices ============ */
.notice-todo {
  border: 1px dashed rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #d4d4d4;
}
.notice-todo strong { color: #ffffff; }

.divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.numeral {
  font-family: "Jura", sans-serif;
  font-weight: 300;
  color: #c9c9c9;
}

/* ============ Product cards ============ */
.tier-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  padding: 2.25rem 1.75rem;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), border-color 0.4s ease;
  transform: translateY(0);
}
.tier-card::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: 0 24px 60px rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.tier-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.4);
}
.tier-card:hover::after {
  opacity: 1;
}
.tier-card.is-featured {
  border-color: rgba(201, 201, 201, 0.55);
}
.tier-card ul li {
  position: relative;
  padding-left: 1.25rem;
}
.tier-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: #c9c9c9;
}

@media (prefers-reduced-motion: reduce) {
  .tier-card,
  .tier-card::after {
    transition: opacity 0.15s ease, border-color 0.15s ease;
  }
  .tier-card:hover { transform: none; }
}

/* ============ Raven mark ============ */
.raven-stage {
  filter: drop-shadow(0 0 40px rgba(201, 201, 201, 0.12));
}
.rv-facet {
  fill: url(#silverGrad);
  stroke: #050505;
  stroke-width: 2;
  stroke-linejoin: round;
}
#rv-eye { fill: #050505; }
#rv-glint { fill: #f5f5f5; opacity: 0; }
#rv-shine {
  mix-blend-mode: screen;
  opacity: 0;
  filter: blur(10px);
}

@media (prefers-reduced-motion: reduce) {
  .raven-stage { filter: none; }
}

/* ============ Hero video (replaces the SVG raven mark on Home) ============ */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px 0;
  overflow: hidden;
}

.hero-raven-video {
  max-width: 90%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(200, 200, 200, 0.1));
}

@media (max-width: 768px) {
  .hero-video-container {
    height: 300px;
  }
}
