/* FightLink — fightlink.ai
   Mobile-first. /gyms gets opened in Instagram's in-app browser on a phone,
   so nothing may depend on hover, wide viewports, or JS to be readable. */

:root {
  --bg: #050b07;
  --bg-2: #081208;
  --panel: #0c150f;
  --panel-2: #101b14;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f2f5f2;
  --dim: #9fb0a4;
  --faint: #6b7d70;

  --green: #34c759;
  --green-deep: #0c3e1d;
  --button: #0c631d;
  --ink: #04120a;

  --display: "Anton", "Haettenschweiler", "Arial Narrow", sans-serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --r: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow. Fixed so it doesn't scroll with content and doesn't cost a
   repaint per section. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(12, 99, 29, 0.45), transparent 62%),
    radial-gradient(90% 60% at 8% 42%, rgba(12, 62, 29, 0.35), transparent 60%),
    linear-gradient(180deg, #071009 0%, var(--bg) 46%, #040906 100%);
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* Grid/flex children default to min-width:auto, which resolves to min-content —
   a 4K video or a tall screenshot then blows the track past the viewport. */
.grid > *, .angles > *, .hero-grid > *, .field-row > *, .split > * { min-width: 0; }

/* ---------- type ---------- */

h1, h2, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(3rem, 11vw, 5.3rem); }
h2 { font-size: clamp(2.4rem, 8.5vw, 4.1rem); margin-bottom: 18px; }

h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.lede {
  font-size: clamp(1.02rem, 3.4vw, 1.18rem);
  color: var(--dim);
  max-width: 48ch;
}

.accent { color: var(--green); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 13px;
  margin-bottom: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 0.01em;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2);
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

/* ---------- nav ---------- */

/* Floating pill nav — sits on the background rather than spanning it, so the
   whole page reads as panels on a surface instead of stacked bands. */
.nav {
  --nav-btn-font: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
  padding: 0 12px 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 16, 11, 0.74);
  backdrop-filter: saturate(170%) blur(16px);
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Nav mark matches the button at the right of the bar. That button's
   font-size comes from .nav-links a (0.9rem), which beats .btn-sm.
   Height is that font × the body line-height, plus 10px padding and a 1px border. */
.nav .brand-mark,
.footer .brand-mark {
  width: calc(var(--nav-btn-font, 0.9rem) * 1.6 + 22px);
  height: calc(var(--nav-btn-font, 0.9rem) * 1.6 + 22px);
  border-radius: 10px;
  overflow: hidden;
}

.brand span { color: var(--button); }

.nav .brand-word,
.nav .brand-word span { color: #fff; }

.nav-links { display: flex; align-items: center; gap: 26px; }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.btn,
.nav-links a.btn:hover {
  color: #fff;
  font-weight: 800;
  font-size: var(--nav-btn-font);
}

@media (max-width: 860px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--green-deep);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 8px 30px -10px rgba(12, 62, 29, 0.55);
}

.btn:hover { background: var(--button); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-sm { padding: 10px 20px; font-size: 0.88rem; border-radius: 10px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Deliberately a text link, not a third button — one primary action per view. */
.link-under {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.link-under:hover { color: var(--green); border-color: var(--green); }

/* ---------- layout ---------- */

/* Sections no longer own the vertical rhythm — the slabs do. Section padding is
   just the gap between panels. */
section { padding: 13px 0; position: relative; }

@media (min-width: 900px) { section { padding: 18px 0; } }

section:first-of-type { padding-top: 0; }
section:last-of-type { padding-bottom: 64px; }

/* The inset panel. Everything that isn't the hero lives in one of these. */
.slab {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 46px 24px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 900px) { .slab { padding: 80px 62px; border-radius: 32px; } }

.slab-dark {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.2));
}

/* The glow used to live in a box that ended 40% down the panel (inset bottom
   60%). The radial was still colored at that edge, so the box clipped a hard
   horizontal line through the headline. Cover the whole slab and fade to
   transparent inside it. */
.slab-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    130% 95% at 12% -8%,
    rgba(12, 99, 29, 0.5) 0%,
    rgba(12, 99, 29, 0.16) 42%,
    transparent 74%
  );
  pointer-events: none;
}

.slab > * { position: relative; }

/* Sized in rem, not ch: this div inherits the body font, so a `ch` max-width
   resolves against Plus Jakarta while the h2 inside it is set in Anton — which
   is far narrower, so the heading ends up crammed into a body-text column. */
.section-head { max-width: 44rem; margin-bottom: 46px; }
.section-head h2 { max-width: 15ch; }
.section-head .lede { max-width: 48ch; }
.cta-final .section-head h2 { max-width: none; }

.hero { padding: 60px 0 76px; }

@media (min-width: 980px) { .hero { padding: 108px 0 128px; } }

.hero-grid { display: grid; gap: 54px; }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1.06fr; gap: 56px; align-items: center; }
}

.hero h1 { margin-bottom: 26px; }

/* ---------- phone mockup ---------- */

.phone-stage { display: flex; justify-content: center; position: relative; }

.phone-stage::before {
  content: "";
  position: absolute;
  width: 84%;
  height: 62%;
  top: 16%;
  border-radius: 50%;
  background: rgba(12, 99, 29, 0.45);
  filter: blur(72px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(272px, 74vw);
  aspect-ratio: 1290 / 2796;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2c332e, #0d120f 42%, #232925);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.14) inset,
    0 44px 90px -30px rgba(0, 0, 0, 0.9);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  background: #000;
}

/* Dynamic island */
.phone::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 22px;
  border-radius: 999px;
  background: #050706;
  z-index: 2;
}

/* Hero pair — two screens side by side. Stays two-up at every width; the
   screens read as a set (what happened, and the footage of it happening). */
.phone-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.phone-pair .phone {
  width: 100%;
  padding: 6px;
  border-radius: 30px;
}

.phone-pair .phone img { border-radius: 25px; }
.phone-pair .phone::after { width: 36%; height: 13px; top: 11px; }

@media (min-width: 980px) {
  .phone-pair { gap: 16px; }
  .phone-pair .phone { padding: 8px; border-radius: 38px; }
  .phone-pair .phone img { border-radius: 31px; }
  .phone-pair .phone::after { height: 17px; top: 15px; }
}

.phone-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.phone-row .phone { width: min(210px, 42vw); }
.phone-row .phone::after { height: 17px; top: 17px; }

/* ---------- media / footage ---------- */

.media {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.9);
}

.media video, .media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.media-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--faint);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.angles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }

@media (min-width: 780px) { .angles { grid-template-columns: repeat(3, 1fr); } }

.angle {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.angle video, .angle img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.angle-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.angles .angle:last-child:nth-child(odd) { grid-column: span 2; }

@media (min-width: 780px) {
  .angles .angle:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- cards ---------- */

.grid { display: grid; gap: 18px; }

@media (min-width: 780px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.split { display: grid; gap: 44px; align-items: center; }

@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 26px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.card h3 { margin-bottom: 10px; }

.card p { color: var(--dim); font-size: 0.96rem; }

.card-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--button), var(--green-deep));
  color: #fff;
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 13px;
}

.card-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-lead .card-icon,
.card-lead .card-tag,
.card-lead .card-num,
.card-lead h3 { margin-bottom: 0; }

.card-lead h3 { min-width: 0; }

.card-lead .card-tag { line-height: 1; }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.24);
  margin-bottom: 18px;
}

.card-icon svg { width: 20px; height: 20px; stroke: var(--green); }

/* ---------- persona cards ---------- */

.persona { display: flex; flex-direction: column; }

.persona p { flex: 1; }

.persona-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  transition: gap 0.15s ease;
}

.persona-cta:hover { gap: 13px; }
.persona-cta svg { width: 14px; height: 14px; }

/* ---------- quick card row (sits directly under the hero) ---------- */

.quick { display: grid; gap: 14px; }

@media (min-width: 820px) { .quick { grid-template-columns: repeat(3, 1fr); } }

.quick .card { padding: 24px 22px; }
.quick .card h3 { font-size: 1.02rem; margin-bottom: 7px; }
.quick .card p { font-size: 0.9rem; }

/* ---------- statement ---------- */

.statement {
  font-family: var(--display);
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  line-height: 0.94;
  text-transform: uppercase;
  max-width: 16ch;
}

.statement em { font-style: normal; color: var(--green); }

/* ---------- forms ---------- */

.form-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 24px;
}

@media (min-width: 700px) { .form-card { padding: 38px 34px; } }

.field { margin-bottom: 17px; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dim);
  margin-bottom: 8px;
}

.field input, .field select {
  width: 100%;
  padding: 15px 16px;
  font: inherit;
  font-size: 1rem; /* anything under 16px makes iOS zoom on focus */
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb0a4' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(0, 0, 0, 0.5);
}

.field input::placeholder { color: var(--faint); }

.field-row { display: grid; gap: 17px; }

@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* Honeypot — bots fill it, humans never see it. Real protection is the
   server-side rate limit, not this. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.8rem; color: var(--faint); margin-top: 15px; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}

.form-status.ok {
  display: block;
  background: rgba(52, 199, 89, 0.11);
  color: var(--green);
  border: 1px solid rgba(52, 199, 89, 0.32);
}

.form-status.err {
  display: block;
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  padding: 22px 44px 22px 0;
  font-size: 1.03rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.15s ease;
}

.faq summary:hover { color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -7px;
  border-right: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }

.faq details p {
  padding: 0 8px 24px 0;
  color: var(--dim);
  font-size: 0.97rem;
  max-width: 66ch;
}

/* ---------- final cta ---------- */

.cta-final { text-align: center; }
.cta-final .section-head { max-width: none; margin-bottom: 0; }
.cta-final h2 { margin-bottom: 18px; }
.cta-final .lede { margin: 0 auto; }
.cta-final .actions { justify-content: center; }

/* ---------- footer ---------- */

.footer { padding: 0 0 22px; color: var(--faint); font-size: 0.87rem; }

.footer-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: 34px 26px;
}

@media (min-width: 900px) { .footer-card { padding: 40px 46px; } }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer a { color: var(--dim); text-decoration: none; }
.footer a:hover { color: var(--green); }

.footer .brand,
.footer .brand:hover,
.footer .brand span { color: #fff; }

.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

.tagline {
  font-family: var(--display);
  letter-spacing: 0.03em;
  color: var(--faint);
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-top: 10px;
}

/* ---------- scroll reveal ---------- */

/* Reveal is opt-in via the `js` class that the inline head script sets. If that
   script never runs, `.reveal` stays fully visible — content is never hidden
   behind JS that might not execute. (The reference site gets this wrong: with
   JS disabled its entire page below the hero renders blank.) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js .reveal.in { opacity: 1; transform: none; }

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