/* ============================================================
   FILVA AI Foundations — custom tokens & component polish
   Layered on top of Tailwind CDN. Tailwind handles layout/
   utilities; this file owns the color system, fonts, and the
   premium component details Tailwind alone won't carry.
   ============================================================ */

:root {
  --bg-900:   #FFFFFF;  /* page background */
  --bg-800:   #FFFFFF;  /* light surfaces */
  --bg-700:   #FFFFFF;  /* cards and raised surfaces */
  --text-100: #000000;  /* primary text */
  --text-300: #34343A;  /* secondary text */
  --accent:   #E4483D;  /* red — primary accent */
  --accent-2: #F26B60;  /* lighter red for hovers/gradients */
  --line: rgba(0, 0, 0, 0.14); /* hairline dividers */
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-900);
  color: var(--text-100);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #FFFFFF; }

/* Generous reading width for body copy blocks */
.measure { max-width: 60ch; }

/* ---------- Typography ---------- */
.font-display { font-family: 'Inter', system-ui, sans-serif; }

h1, h2, h3, .h-display {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.hero-h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.65rem, 4.6vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.section-h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.label-sm {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-300);
}

.lead { color: var(--text-300); font-size: 1.0625rem; line-height: 1.65; }

/* ---------- Layout helpers ---------- */
.container-x { max-width: 1200px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.section-y { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 1024px) { .section-y { padding-top: 8rem; padding-bottom: 8rem; } }

.hairline { border-color: var(--line); }
.bg-800 { background-color: var(--bg-800); }
.bg-700 { background-color: var(--bg-700); }
.text-300 { color: var(--text-300); }
.text-accent { color: var(--accent); }
.section-dark { background-color: #0B0B0F; color: #F5F4EF; }
.section-dark .section-h2 { color: #F5F4EF; }
.section-dark .lead,
.section-dark .text-300 { color: #B9B7AE; }
.section-dark .btn-outline { color: #F5F4EF; border-color: rgba(245,244,239,0.28); }
.section-dark .btn-outline:hover { color: #F5F4EF; border-color: var(--accent); background: rgba(228,72,61,0.12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  cursor: pointer;
  line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.btn-accent,
.btn-gold {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 8px 24px -10px rgba(228, 72, 61, 0.55);
}
.btn-accent:hover,
.btn-gold:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(228, 72, 61, 0.65);
}

.btn-outline {
  background: transparent;
  color: var(--text-100);
  border: 1px solid var(--line);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(228, 72, 61, 0.06);
}

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  background-color: #FFFFFF;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled {
  background-color: #FFFFFF;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-link {
  color: var(--text-300);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color .18s ease;
  padding: 0.25rem 0;
}
.nav-link:hover { color: var(--text-100); }
.nav-link.active { color: var(--text-100); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.wordmark { font-family: 'Inter', system-ui, sans-serif; font-weight: 900; letter-spacing: -0.01em; }

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { max-height: 420px; }

/* ---------- Cards ---------- */
.card {
  background-color: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--bg-700);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.22);
}

.card-img-wrap { overflow: hidden; }
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-img { transform: scale(1.06); }

.card-dim { opacity: 0.55; }
.card-dim:hover { transform: none; box-shadow: none; border-color: var(--line); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
}
.badge-available { color: var(--accent); border-color: rgba(228,72,61,0.4); background: rgba(228,72,61,0.08); }
.badge-soon { color: var(--text-300); background: rgba(0,0,0,0.04); }
.badge-free { color: #9ad1b0; border-color: rgba(154,209,176,0.4); background: rgba(154,209,176,0.08); }
.badge-paid { color: var(--accent); border-color: rgba(228,72,61,0.4); background: rgba(228,72,61,0.08); }

/* Placeholder marker — makes stubbed content easy to find & replace */
.is-placeholder { position: relative; }
.ph-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0B0B0F;
  background: var(--accent-2);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  vertical-align: middle;
}

/* ---------- Full-bleed background hero ---------- */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 5rem;
  overflow: hidden;
  background: #0B0B0F;
  border-bottom: 1px solid var(--line);
}
.hero-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,11,15,0.62) 0%, rgba(11,11,15,0.28) 47%, rgba(11,11,15,0.05) 72%);
}
.hero-background-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}
.hero-copy { max-width: 700px; }
.hero-copy .hero-h1 { color: #F5F4EF; }
.hero-copy .lead { max-width: 42rem; color: #E1DFD8; }
.hero-copy .btn-outline { color: #F5F4EF; border-color: rgba(245,244,239,0.46); }
.hero-copy .btn-outline:hover { color: #F5F4EF; border-color: var(--accent); background: rgba(228,72,61,0.15); }
@media (max-width: 900px) {
  .hero-background-image { object-position: 62% center; }
  .hero-background-overlay {
    background: linear-gradient(90deg, rgba(11,11,15,0.84) 0%, rgba(11,11,15,0.65) 58%, rgba(11,11,15,0.28) 100%);
  }
  .hero-copy { max-width: 650px; }
}
@media (max-width: 640px) {
  .hero-section { min-height: auto; }
  .hero-background-image { object-position: 68% center; }
  .hero-background-overlay { background: rgba(11,11,15,0.76); }
  .hero-background-content { padding-top: 5rem; padding-bottom: 5rem; }
  .hero-h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
}

/* ---------- Video placeholder ---------- */
.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--bg-700);
}
.welcome-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px) {
  .video-frame { min-height: 220px; }
}

/* ---------- Price block ---------- */
.price-now { font-family: 'Inter', system-ui, sans-serif; font-weight: 900; color: var(--accent); }
.price-was { color: var(--text-300); text-decoration: line-through; }

/* ---------- Trust strip ---------- */
.trust-item { color: var(--text-300); font-size: 0.85rem; }
.trust-item .dot { color: var(--accent); }

/* ---------- Accordion ---------- */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-100);
  background: transparent;
}
.accordion-trigger:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; border-radius: 6px; }
.accordion-icon { transition: transform .3s ease; color: var(--accent); flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.accordion-panel-inner { padding-bottom: 1.4rem; color: var(--text-300); }

/* ---------- Certificate mockup ---------- */
.certificate {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(228,72,61,0.35);
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow: 0 30px 60px -36px rgba(0,0,0,0.28);
}
.certificate::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(228,72,61,0.25);
  border-radius: 0.4rem;
  pointer-events: none;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Footer ---------- */
.site-footer { background-color: var(--bg-800); border-top: 1px solid var(--line); }
.footer-link { color: var(--text-300); transition: color .18s ease; }
.footer-link:hover { color: var(--accent-2); }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  color: var(--text-300);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.social-icon:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); }
.accent-rule,
.gold-rule { width: 56px; height: 3px; background: var(--accent); border-radius: 3px; }
.cta-band {
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(228,72,61,0.12) 0%, rgba(228,72,61,0.0) 55%),
    var(--bg-800);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
