/* ==========================================================================
   FCP LIVE AGENCY
   Theme lock:  dark only. The brand is a live-streaming product; a single
                dark mode is a deliberate brand decision, not an oversight.
   Accent lock: one violet (--vi). No second accent anywhere on the page.
   Radius rule: buttons + pills  -> full round
                cards + media    -> 16px
                inputs           -> 12px
   ========================================================================== */

:root {
  --bg:        #07040d;
  --bg-2:      #0d0716;
  --bg-3:      #150d24;

  --line:      rgba(167, 139, 250, 0.13);
  --line-2:    rgba(167, 139, 250, 0.26);

  --txt:       #f4f1fa;
  --txt-2:     #a79cbd;
  --txt-3:     #857a9c;   /* 5.1:1 on --bg, 4.9:1 on --bg-2. AA on both. */

  --vi:        #7f3fff;
  --vi-hi:     #9a66ff;
  --vi-soft:   #c9b4ff;

  --r-card:    16px;
  --r-input:   12px;

  --shell:     1240px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --section:   clamp(5rem, 10vw, 8.5rem);

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);

  --font:      "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:      "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--vi-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- film grain -----------------------------------------------------------
   Deliberately NO mix-blend-mode. A full-viewport position:fixed element with
   a blend mode makes iOS Safari paint a frozen snapshot of the page over the
   live page while scrolling, which reads as two sites stacked on top of each
   other. Plain low opacity gives the same texture and composites safely.     */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("noise.svg");
  background-repeat: repeat;
}

/* ---------------------------------------------------------------- layout - */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.pad { padding-block: var(--section); }

/* ------------------------------------------------------------ typography - */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; }

.display {
  font-size: clamp(2.6rem, 6.6vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.07;
  letter-spacing: -0.04em;
}

.h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.25; }

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--txt-2);
  max-width: 46ch;
  margin: 0;
}

.body { color: var(--txt-2); margin: 0; max-width: 62ch; }
.body-sm { color: var(--txt-2); font-size: 0.94rem; margin: 0; max-width: 48ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vi-soft);
  margin: 0;
}

.vi { color: var(--vi-soft); }

/* --------------------------------------------------------------- buttons - */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  white-space: nowrap;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              transform 0.15s var(--ease), color 0.25s var(--ease);
}
.btn i { font-size: 1.05em; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--vi); color: #ffffff; }
.btn-primary:hover { background: var(--vi-hi); }

.btn-ghost {
  background: rgba(167, 139, 250, 0.04);
  border-color: var(--line-2);
  color: var(--txt);
}
.btn-ghost:hover { border-color: var(--vi); background: rgba(127, 63, 255, 0.14); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ---------------------------------------------------------------- duotone -
   The violet tint comes from a filter chain, not a blend mode, so nothing on
   this page relies on compositing that mobile browsers get wrong.
   sepia() lays down a single hue, hue-rotate() swings it to violet.          */
.duo { position: relative; overflow: hidden; border-radius: var(--r-card); }
.duo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) sepia(1) hue-rotate(212deg) saturate(2.6)
          brightness(0.72) contrast(1.15);
}
.duo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(205deg, rgba(162, 118, 255, 0.22) 0%, rgba(74, 29, 158, 0.24) 55%, rgba(18, 10, 32, 0.5) 100%);
}
.duo::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(7, 4, 13, 0.74), rgba(7, 4, 13, 0) 58%);
}

/* ------------------------------------------------------------------- nav - */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 68px;
  display: flex; align-items: center;
  background: rgba(7, 4, 13, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(7, 4, 13, 0.92); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }

.brand { display: flex; align-items: baseline; gap: 0.5rem; }
.brand-mark { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.05em; }
.brand-sub {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--txt-3);
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.92rem; color: var(--txt-2); transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--txt); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-2); border-radius: 999px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem;
}

.drawer {
  position: fixed; inset: 68px 0 auto 0; z-index: 49;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem var(--gutter) 1.75rem;
  display: none; flex-direction: column;
}
.drawer.is-open { display: flex; }
.drawer a {
  padding: 0.9rem 0; font-size: 1.05rem; color: var(--txt-2);
  border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: 1.25rem; }

/* ------------------------------------------------------------------ hero - */
.hero { padding-top: clamp(2.5rem, 5vw, 5.5rem); padding-bottom: var(--section); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-media { position: relative; }
.hero-media .duo { aspect-ratio: 4 / 5; }
.hero-media::after {
  content: ""; position: absolute; inset: -1px;
  border-radius: var(--r-card);
  border: 1px solid var(--line-2);
  pointer-events: none;
}

/* ------------------------------------------------------------------ band - */
.band { border-block: 1px solid var(--line); background: var(--bg-2); }
.band-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.band-item { padding-inline: clamp(0rem, 2.5vw, 2.25rem); }
.band-item + .band-item { border-left: 1px solid var(--line); }
.band-item:first-child { padding-left: 0; }
.band-figure {
  font-family: var(--mono); font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 500; letter-spacing: -0.05em; color: var(--txt);
  line-height: 1; margin: 0 0 0.75rem;
}
.band-figure span { color: var(--vi-soft); }

/* ----------------------------------------------------------------- bento - */
.bento-head { max-width: 42ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.bento-head .body { margin-top: 1.1rem; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

.cell {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.7rem;
  min-height: 232px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.cell:hover { border-color: var(--line-2); transform: translateY(-3px); }
.cell .body-sm { max-width: 34ch; }

/* 5 services -> exactly 5 cells, three different row rhythms (4+2, 3+3, 6) */
.cell-a { grid-column: span 4; min-height: 380px; padding: 0; }
.cell-b { grid-column: span 2; }
.cell-c { grid-column: span 3; }
.cell-d { grid-column: span 3; }
.cell-e { grid-column: span 6; padding: 0; min-height: 300px; }

.cell-media { display: block; }
.cell-media .duo { position: absolute; inset: 0; border-radius: inherit; }
.cell-media .cell-copy {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.7rem;
  padding: clamp(1.5rem, 2.4vw, 2rem);
}
.cell-media .body-sm { color: #d3cbe3; }

.cell-tint {
  background:
    radial-gradient(125% 135% at 100% 0%, rgba(127, 63, 255, 0.34), transparent 62%),
    var(--bg-3);
}

.cell-icon { font-size: 1.4rem; color: var(--vi-soft); margin-bottom: auto; }

/* ----------------------------------------------------------------- steps - */
.steps-head { display: flex; flex-direction: column; gap: 1.1rem; max-width: 44ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { padding: 1.75rem 1.5rem 0 0; border-top: 1px solid var(--line-2); position: relative; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 34px; height: 3px; background: var(--vi);
}
.step h3 { margin-bottom: 0.6rem; }
.step .body-sm { max-width: 27ch; }

/* ------------------------------------------------------------------- fit - */
.fit-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.fit-media .duo { aspect-ratio: 5 / 6; }
.fit-copy { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }

.checks { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 1.05rem; }
.checks li { display: flex; gap: 0.85rem; align-items: flex-start; color: var(--txt-2); }
.checks i { color: var(--vi-soft); font-size: 1.15rem; line-height: 1.5; flex: none; }
.checks strong { color: var(--txt); font-weight: 500; }

/* ------------------------------------------------------------------- faq - */
.faq-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }

details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  font-weight: 500; letter-spacing: -0.02em;
  transition: color 0.2s var(--ease);
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--vi-soft); }
summary i { color: var(--vi-soft); font-size: 1.05rem; flex: none; transition: transform 0.3s var(--ease); }
details[open] summary i { transform: rotate(45deg); }
details .body { padding-bottom: 1.5rem; font-size: 0.97rem; }

/* ----------------------------------------------------------------- apply - */
.apply { background: var(--bg-2); border-top: 1px solid var(--line); }
.apply-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.apply-copy { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }

.form {
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: 1.15rem;
}
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--txt); }
.field .hint { font-size: 0.79rem; color: var(--txt-3); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-input);
  padding: 0.8rem 0.95rem;
  color: var(--txt);
  font-size: 0.97rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #8d82a6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(167, 139, 250, 0.42); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--vi); background: #1a1030;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: #1a1030; color: var(--txt); }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.form-error {
  display: none;
  font-size: 0.88rem; color: #ffbdcb;
  border: 1px solid rgba(255, 120, 150, 0.38);
  background: rgba(255, 90, 130, 0.08);
  border-radius: var(--r-input); padding: 0.7rem 0.9rem;
}
.form-error.is-on { display: block; }

.form-done {
  display: none;
  border: 1px solid var(--line-2); border-radius: var(--r-card);
  background: var(--bg); padding: clamp(2rem, 4vw, 3rem);
}
.form-done.is-on { display: block; }
.form-done i { font-size: 2rem; color: var(--vi-soft); }
.form-done h3 { margin: 1rem 0 0.6rem; }

.form-foot { font-size: 0.82rem; color: var(--txt-3); margin: 0; }

/* ---------------------------------------------------------------- footer - */
.footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2.5rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.footer-links a { font-size: 0.92rem; color: var(--txt-2); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--txt); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.82rem; color: var(--txt-3);
}

/* --------------------------------------------------------------- reveals -
   Gated behind .js so the page is fully readable if JavaScript never runs.
   main.js also carries a timer failsafe: content can never stay hidden.     */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive - */
@media (max-width: 1024px) {
  .nav-links { gap: 1.4rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero { padding-top: 2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { order: -1; }
  .hero-media .duo { aspect-ratio: 16 / 11; }

  .band-grid { grid-template-columns: 1fr; gap: 2rem; }
  .band-item { padding-inline: 0; }
  .band-item + .band-item { border-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; }

  .bento { grid-template-columns: 1fr; }
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e { grid-column: span 1; min-height: 220px; }
  .cell-a, .cell-e { min-height: 320px; }

  .fit-grid { grid-template-columns: 1fr; }
  .fit-media .duo { aspect-ratio: 16 / 11; }

  .apply-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 2rem; }
  .step { padding-right: 0; }
  .two-up { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
