/* =========================================================================
   FPLCraft — Marketing site styles
   AAA cobalt aesthetic matched to the in-app design system (#0126F3).
   ========================================================================= */

:root {
  --c-bg: #04060d;
  --c-bg-2: #0a0f1f;
  --c-surface: rgba(255, 255, 255, 0.05);
  --c-surface-strong: rgba(255, 255, 255, 0.09);
  --c-stroke: rgba(255, 255, 255, 0.13);
  --c-stroke-strong: rgba(255, 255, 255, 0.22);
  --c-text: #ffffff;
  --c-text-mute: rgba(255, 255, 255, 0.66);
  --c-text-dim: rgba(255, 255, 255, 0.42);
  --c-primary: #0126f3;
  --c-primary-glow: #4a6cff;
  --c-cyan: #22d3ee;
  --c-green: #34f5b3;
  --c-pink: #ff5ea8;
  --c-gold: #ffd166;
  --c-purple: #b48bff;
  --r-card: 20px;
  --r-pill: 999px;
  --shadow-cobalt: 0 20px 60px -20px rgba(1, 38, 243, 0.55);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body { min-height: 100vh; position: relative; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- BACKGROUND LAYERS ---------- */
.bg-mesh {
  position: fixed;
  inset: -10vmax;
  z-index: -2;
  background:
    radial-gradient(50% 40% at 12% 8%, rgba(1, 38, 243, 0.55), transparent 60%),
    radial-gradient(40% 35% at 88% 18%, rgba(74, 108, 255, 0.35), transparent 60%),
    radial-gradient(45% 40% at 60% 92%, rgba(34, 211, 238, 0.22), transparent 65%),
    linear-gradient(180deg, #04060d 0%, #060a1a 60%, #04060d 100%);
  filter: saturate(115%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 50%, transparent 100%);
  pointer-events: none;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 5vw, 56px);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(180deg, rgba(4, 6, 13, 0.7), rgba(4, 6, 13, 0.35));
  border-bottom: 1px solid var(--c-stroke);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.nav__logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-glow));
  box-shadow: 0 0 24px rgba(1, 38, 243, 0.7);
  position: relative;
}
.nav__logo-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-mask: linear-gradient(135deg, transparent 35%, #000 35%, #000 65%, transparent 65%);
          mask: linear-gradient(135deg, transparent 35%, #000 35%, #000 65%, transparent 65%);
}
.nav__logo-text {
  background: linear-gradient(135deg, #fff 30%, var(--c-primary-glow));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.nav__links { display: flex; gap: 26px; font-weight: 600; color: var(--c-text-mute); }
.nav__links a:hover { color: #fff; }

/* ---------- HERO ---------- */
.hero {
  padding: clamp(52px, 9vw, 110px) clamp(20px, 5vw, 56px) clamp(40px, 7vw, 90px);
}
.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
}
.hero__eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(1, 38, 243, 0.22), rgba(74, 108, 255, 0.12));
  border: 1px solid rgba(74, 108, 255, 0.5);
  color: var(--c-primary-glow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  box-shadow: 0 0 28px rgba(1, 38, 243, 0.3);
}
.hero__title {
  margin: 18px 0 14px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.grad {
  background: linear-gradient(135deg, var(--c-primary-glow), var(--c-cyan));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--c-text-mute);
  max-width: 56ch;
  margin: 0 0 30px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer;
}
.btn--primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-glow));
  box-shadow: var(--shadow-cobalt);
  color: #fff;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 26px 70px -20px rgba(74, 108, 255, 0.7); }
.btn--ghost {
  background: var(--c-surface);
  border-color: var(--c-stroke-strong);
  color: var(--c-text);
}
.btn--ghost:hover { background: var(--c-surface-strong); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--c-text-dim);
  font-size: 13.5px;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary-glow);
  box-shadow: 0 0 12px var(--c-primary-glow);
}
.dot--cyan { background: var(--c-cyan); box-shadow: 0 0 12px var(--c-cyan); }
.dot--pink { background: var(--c-pink); box-shadow: 0 0 12px var(--c-pink); }

/* ---------- PHONE MOCKUP ---------- */
.hero__visual { display: flex; justify-content: center; perspective: 1200px; }
.phone {
  width: clamp(280px, 28vw, 360px);
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: linear-gradient(150deg, #0c1228, #060914);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 50px 120px -30px rgba(1, 38, 243, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 14px;
  position: relative;
  transform: rotate(-2.5deg) translateY(-4px);
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}
.phone:hover { transform: rotate(-1deg) translateY(-10px); }
.phone__notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px;
  background: #04060d; border-radius: 999px;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: linear-gradient(170deg, #050a1a 0%, #0a1230 80%);
  position: relative;
  overflow: hidden;
  padding: 50px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone__halo {
  position: absolute;
  width: 240px; height: 240px;
  top: -80px; right: -60px;
  background: radial-gradient(circle, rgba(1, 38, 243, 0.55), transparent 65%);
  filter: blur(8px);
}
.phone__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(1, 38, 243, 0.18);
}
.phone__card-eyebrow { font-size: 9.5px; font-weight: 800; letter-spacing: 0.2em; color: var(--c-primary-glow); }
.phone__card-value {
  font-size: 38px; font-weight: 900; letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, var(--c-primary-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.phone__card-rank { font-size: 11px; color: var(--c-text-mute); }

.phone__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phone__pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-dim);
  gap: 2px;
}
.phone__pill strong { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.phone__pill--green { border-color: rgba(52, 245, 179, 0.4); box-shadow: 0 0 18px rgba(52, 245, 179, 0.18); }
.phone__pill--cyan  { border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 0 18px rgba(34, 211, 238, 0.18); }
.phone__pill--pink  { border-color: rgba(255, 94, 168, 0.4); box-shadow: 0 0 18px rgba(255, 94, 168, 0.18); }

.phone__deadline {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(1, 38, 243, 0.16);
  border: 1px solid rgba(74, 108, 255, 0.45);
}
.phone__deadline-label { font-size: 9.5px; letter-spacing: 0.18em; color: var(--c-primary-glow); font-weight: 800; }
.phone__deadline-value { font-weight: 800; font-size: 13.5px; color: #fff; }

.phone__ai {
  position: relative;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(74, 108, 255, 0.18), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(74, 108, 255, 0.5);
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden;
}
.phone__ai-glow {
  position: absolute; inset: -50%;
  background: radial-gradient(circle at 30% 30%, rgba(74, 108, 255, 0.55), transparent 55%);
  pointer-events: none;
}
.phone__ai-tag { font-size: 9.5px; letter-spacing: 0.18em; color: var(--c-primary-glow); font-weight: 800; position: relative; }
.phone__ai strong { font-size: 14px; font-weight: 800; position: relative; }
.phone__ai-conf { font-size: 11px; color: var(--c-text-mute); position: relative; }

/* ---------- SECTIONS ---------- */
.section__title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-align: center;
  margin: 0 0 12px;
}
.section__sub {
  text-align: center;
  color: var(--c-text-mute);
  max-width: 60ch;
  margin: 0 auto 40px;
  font-size: clamp(14.5px, 1.2vw, 16.5px);
}

/* ---------- FEATURES ---------- */
.features {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--r-card);
  background: linear-gradient(150deg, var(--c-surface-strong), var(--c-surface));
  border: 1px solid var(--c-stroke);
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--c-stroke-strong);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
.feature__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 14px;
  border: 1px solid var(--c-stroke-strong);
}
.feature__icon--blue   { background: rgba(74, 108, 255, 0.18); }
.feature__icon--green  { background: rgba(52, 245, 179, 0.18); }
.feature__icon--cyan   { background: rgba(34, 211, 238, 0.18); }
.feature__icon--pink   { background: rgba(255, 94, 168, 0.18); }
.feature__icon--purple { background: rgba(180, 139, 255, 0.18); }
.feature__icon--gold   { background: rgba(255, 209, 102, 0.18); }
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.feature p  { margin: 0; color: var(--c-text-mute); font-size: 14.5px; }

/* ---------- AI ---------- */
.ai {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 56px);
}
.ai__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(34px, 4vw, 60px);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(1, 38, 243, 0.18), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(74, 108, 255, 0.35);
  box-shadow: var(--shadow-cobalt);
}
.ai__chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px;
}
.chip {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- DOWNLOAD ---------- */
.download {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 56px);
  text-align: center;
}
.download__buttons {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: 8px;
}
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid var(--c-stroke-strong);
  background: linear-gradient(150deg, var(--c-surface-strong), rgba(0, 0, 0, 0.4));
  min-width: 200px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.store:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.store small { display: block; font-size: 10.5px; letter-spacing: 0.16em; color: var(--c-text-mute); text-transform: uppercase; }
.store strong { display: block; font-size: 16px; font-weight: 800; }
.download__note { margin-top: 16px; color: var(--c-text-dim); font-size: 12.5px; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--c-stroke);
  padding: 32px clamp(20px, 5vw, 56px);
  background: rgba(0, 0, 0, 0.4);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; color: var(--c-text-mute); font-weight: 600; }
.footer__links a:hover { color: #fff; }
.footer__legal { color: var(--c-text-dim); font-size: 12.5px; margin: 0; justify-self: end; }
@media (max-width: 720px) {
  .footer__legal { justify-self: center; }
}

/* ---------- LEGAL PAGES ---------- */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 32px) clamp(64px, 8vw, 110px);
}
.legal h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #fff 30%, var(--c-primary-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legal__updated { color: var(--c-text-dim); margin: 0 0 32px; font-size: 13.5px; }
.legal h2 {
  margin: 36px 0 10px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.legal h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 800; color: var(--c-primary-glow); }
.legal p, .legal li { color: var(--c-text-mute); font-size: 15.5px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; }
.legal a { color: var(--c-primary-glow); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: #fff; }
