/*
  Premium glowing landing page styles.
  - Color theme defaults to Netflix-inspired palette; tweak CSS variables to match your brand.
  - All visible elements receive a soft glow; intensity is tuned for readability.
*/

:root {
  /* Brandable palette */
  --brand: #e50914;        /* primary brand (Netflix red) */
  --brand-2: #b20710;      /* darker accent */
  --accent: #ff3b3b;       /* warm accent glow */

  --bg-1: #0b0b0f;         /* deep background */
  --bg-2: #141414;         /* secondary background */
  --text: #f2f2f2;         /* primary text */
  --muted: #b9bcc6;        /* muted text */

  --radius: 16px;
  --radius-sm: 12px;

  /* Softer, more professional glow */
  --shadow-strong: 0 0 18px rgba(229, 9, 20, 0.28), 0 0 36px rgba(229, 9, 20, 0.12);
  --shadow-soft: 0 0 10px rgba(229, 9, 20, 0.2), 0 0 20px rgba(229, 9, 20, 0.1);
  --shadow-text-strong: 0 0 18px rgba(229, 9, 20, 0.36), 0 0 42px rgba(229, 9, 20, 0.16);
  --shadow-text-soft: 0 0 10px rgba(229, 9, 20, 0.28), 0 0 22px rgba(229, 9, 20, 0.14);

  --container-w: 1100px;
  --apply-bar-h: 60px; /* used on mobile to offset content when sticky button is visible */
}

/* Global reset */
* { box-sizing: border-box }
html, body { height: 100% }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 10%, #1b1b20, transparent 60%),
              radial-gradient(1500px 900px at 90% 20%, #181820, transparent 60%),
              linear-gradient(180deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

/* Background: animated gradient veil + blurred blobs; canvas on top */
.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(60% 80% at 20% 10%, rgba(229, 9, 20, 0.22), transparent 60%),
              radial-gradient(70% 80% at 80% 20%, rgba(255, 59, 59, 0.16), transparent 60%),
              radial-gradient(80% 90% at 50% 80%, rgba(178, 7, 16, 0.22), transparent 65%);
  filter: blur(30px) saturate(120%);
  transform: translateZ(0);
  pointer-events: none;
}

.bg-blobs {
  position: fixed;
  inset: -10vmax;
  background:
    radial-gradient(closest-side, rgba(229, 9, 20, 0.15), transparent 70%) 10% 20% / 40vmax 40vmax no-repeat,
    radial-gradient(closest-side, rgba(255, 59, 59, 0.12), transparent 72%) 80% 15% / 45vmax 45vmax no-repeat,
    radial-gradient(closest-side, rgba(178, 7, 16, 0.18), transparent 70%) 50% 70% / 60vmax 60vmax no-repeat;
  filter: blur(60px);
  animation: float-blobs 24s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes float-blobs {
  0% { transform: translate3d(0, 0, 0) scale(1) }
  50% { transform: translate3d(0, -1.5%, 0) scale(1.02) }
  100% { transform: translate3d(0.75%, 1%, 0) scale(1.01) }
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.container {
  position: relative;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: clamp(1.25rem, 2vw + 1rem, 2.75rem);
}

.hero {
  text-align: center;
  padding-top: clamp(6rem, 10vh, 10rem);
  padding-bottom: clamp(2rem, 4vh, 4rem);
}

.glow-strong { text-shadow: var(--shadow-text-strong) }
.glow-soft { text-shadow: var(--shadow-text-soft) }

.hero #brandName {
  display: inline-block;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--text);
}

.hero .hero-sub {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: #fff;
  opacity: 0.95;
}

.hero-copy {
  max-width: 860px;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.hero-meta {
  margin: 0.5rem auto 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA */
.cta-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 2.25rem;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: saturate(130%) blur(6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), var(--shadow-strong);
  transition: transform 320ms ease, box-shadow 420ms ease, background 420ms ease;
}

.cta-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.45), 0 0 40px rgba(229, 9, 20, 0.35);
}

.cta-button .cta-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; /* gradient border */
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.85), rgba(255,59,59,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta-button:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(229, 9, 20, 0.42), 0 0 56px rgba(229, 9, 20, 0.18) }

.cta-label { position: relative; z-index: 1 }

/* Steps */
.steps {
  padding: clamp(1.5rem, 4vh, 3rem) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr }
}

.step {
  position: relative;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.028));
  backdrop-filter: blur(6px) saturate(120%);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 240ms ease, box-shadow 320ms ease;
}

.step:hover { transform: translateY(-1px); box-shadow: var(--shadow-strong) }

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--accent);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.85), rgba(178, 7, 16, 0.85));
  box-shadow: var(--shadow-soft);
}

.icon-glow { filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.5)) drop-shadow(0 0 18px rgba(229, 9, 20, 0.25)) }

.step-title {
  margin: 0.75rem 0 0.35rem;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}

.step-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Availability Notice */
.availability { padding: clamp(2rem, 6vh, 4rem) 0 clamp(4rem, 8vh, 6rem) }
.availability-card {
  margin: 0 auto;
  max-width: 920px;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.035));
  box-shadow: 0 0 22px rgba(229, 9, 20, 0.28), inset 0 0 26px rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Snapshot Bar */
.snapshot { padding: 0.75rem 0 1.25rem }
.snapshot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  list-style: none;
  padding-left: 0;
  margin: 0 auto;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
}
.chip-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--brand);
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.7);
}

/* Process Preview */
.section-title { text-align: center; margin: 0 0 1rem; font-size: clamp(1.1rem, 2vw, 1.25rem) }
.process { padding: 0.5rem 0 1.5rem }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr } }
.process-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.03));
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-soft);
}
.pi-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(229,9,20,0.14); color: #fff; box-shadow: var(--shadow-soft) }
.pi-title { margin: 0 0 0.2rem; font-size: 1rem }
.pi-text { margin: 0; color: var(--muted) }

/* Responsibilities & Requirements */
.rr { padding: 0.75rem 0 1.5rem }
.rr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem }
@media (max-width: 900px) { .rr-grid { grid-template-columns: 1fr } }
.rr-sub { margin: 0 0 0.4rem; font-size: 1rem }
.rr-list { margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.6 }

/* FAQ */
.faq { padding: 0.75rem 0 2rem }
.faq-items { max-width: 920px; margin: 0 auto; display: grid; gap: 0.5rem }
.faq-items details { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.03)); box-shadow: var(--shadow-soft) }
.faq-items summary { list-style: none; cursor: pointer; padding: 0.9rem 1rem; font-weight: 600 }
.faq-items summary::-webkit-details-marker { display: none }
.faq-body { padding: 0 1rem 0.9rem; color: var(--muted) }

/* Sticky Apply Bar (top, button only, no backdrop) */
.apply-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 60; pointer-events: none; }
.apply-bar[hidden] { display: none }
.apply-bar-inner {
  max-width: var(--container-w); margin: 0 auto; display: flex; gap: 0; align-items: center; justify-content: center;
  padding: max(8px, env(safe-area-inset-top)) 0 8px 0;
  background: transparent; border: 0;
  position: relative;
}
.apply-blur { pointer-events: none; border-radius: 16px; backdrop-filter: blur(10px) saturate(120%); background: rgba(12,12,16,0.35); box-shadow: 0 6px 24px rgba(0,0,0,0.2); }
.apply-button { pointer-events: auto; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; color: #fff; text-decoration: none; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow-soft); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); margin: 6px; }

/* Fake search (visual only, static) */
.fake-search-static {
  position: relative;
  display: flex; align-items: center; gap: 0.6rem;
  width: 100%;
  box-sizing: border-box;
  color: var(--muted); pointer-events: none; white-space: nowrap;
  padding: 0.7rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(12,12,16,0.28); backdrop-filter: blur(10px) saturate(120%);
  box-shadow: var(--shadow-soft);
  /* Pull up into the reserved sticky area, then add a small buffer */
  margin: calc(-1 * var(--apply-bar-h) + 20px) 0 12px 0;
}
.fake-search-static svg { opacity: 0.9 }
.apply-button:hover { box-shadow: 0 0 18px rgba(229, 9, 20, 0.38), 0 0 42px rgba(229, 9, 20, 0.16) }
/* Vouch notifications */
.vouch {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  min-width: 240px;
  max-width: min(90vw, 360px);
  pointer-events: none;
}

.vouch-inner {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.035));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px) saturate(120%);
  padding: 0.75rem 0.9rem;
  overflow-wrap: anywhere;
}

.vouch-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.vouch-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.vouch-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.7), 0 0 14px rgba(229, 9, 20, 0.3);
}

.vouch-meta {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Mobile refinements */
@media (max-width: 600px) {
  .container { padding-left: 1rem; padding-right: 1rem; padding-top: 0.25rem }
  .hero { padding-top: 4.5rem; padding-bottom: 1.25rem }
  .hero #brandName { font-size: clamp(1.75rem, 9vw, 2.4rem) }
  .hero .hero-sub { font-size: clamp(1rem, 4.8vw, 1.2rem) }
  .hero-meta { display: none }
  .hero-copy { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.95rem; margin-top: 0.5rem }
  .cta-wrap { padding: 0.75rem 0 1.25rem }
  .cta-button { width: 100%; max-width: 420px }
  body { padding-top: calc(var(--apply-bar-h) + env(safe-area-inset-top)) }
  .chip { font-size: 0.95rem; padding: 0.45rem 0.65rem }
  .step { padding: 1rem 1rem 0.95rem }
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion adjustments */
@media (prefers-reduced-motion: reduce) {
  .bg-blobs { animation: none }
  .cta-button, .step { transition: none }
}
/* Professional divider */
.section-divider {
  height: 1px;
  margin: 0.5rem auto 2rem;
  max-width: 960px;
  background: linear-gradient(90deg, rgba(229,9,20,0), rgba(229,9,20,0.3), rgba(229,9,20,0));
  box-shadow: 0 0 12px rgba(229,9,20,0.18);
}
