/* CrickAI Marketing Site — UI kit styles. Tokens come from ../../colors_and_type.css */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-800);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--green-500); margin: 0 0 16px;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--green-500); opacity: .7; }
.eyebrow--gold { color: var(--gold-500); }
.eyebrow--gold::before { background: var(--gold-500); }

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-sans); font-weight: 400; font-size: 15px; line-height: 1;
  border-radius: var(--r-pill); padding: 15px 28px; border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  transition: transform .15s cubic-bezier(.4,0,.2,1), background .15s, box-shadow .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--green-500); color: var(--fg-on-accent); box-shadow: var(--glow-green); }
.btn--primary:hover { background: var(--green-600); }
.btn--gold { background: var(--gold-500); color: #1a1300; }
.btn--gold:hover { background: var(--gold-600); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg-muted); background: rgba(255,255,255,.04); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn-link { color: var(--cyan-500); font-weight: 400; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.btn-link:hover { color: var(--green-400); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,20,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.nav__logo { height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link { font-size: 14.5px; font-weight: 400; color: var(--fg-muted); transition: color .15s; }
.nav__link:hover { color: var(--fg); }
.nav__cta { display: flex; align-items: center; gap: 14px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 86px 0 96px; }
.hero__glow1 { position: absolute; top: -180px; right: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(0,230,118,.16), transparent 65%); pointer-events: none; }
.hero__glow2 { position: absolute; bottom: -220px; left: -160px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(240,192,64,.12), transparent 65%); pointer-events: none; }
.hero__grid { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 4.4vw, 4.1rem);
  line-height: .98; letter-spacing: -.02em; margin: 0 0 22px; text-wrap: balance;
}
.hero h1 .gold { color: var(--gold-500); }
.hero h1 .green { color: var(--green-500); }
.hero__sub { font-size: 19px; line-height: 1.55; color: var(--fg-muted); max-width: 540px; margin: 0 0 30px; text-wrap: pretty; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* product frame */
.frame { position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); background: #000; }
.frame--glow::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  box-shadow: 0 0 80px rgba(0,230,118,.18) inset; pointer-events: none; }
.frame img { width: 100%; height: auto; }
.float-badge { position: absolute; z-index: 3; }

/* hero device — a phone, held landscape, as the edge device doing everything */
.device { position: relative; }
.device__body { position: relative; border-radius: 54px; padding: 8px;
  background: linear-gradient(135deg, #3a4250 0%, #11151d 28%, #0c1017 72%, #2c3340 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0,230,118,.14), inset 0 0 0 1px rgba(255,255,255,.04); }
.device__body::before { content: ""; position: absolute; inset: 2px; border-radius: 52px;
  border: 1.5px solid rgba(0,0,0,.6); pointer-events: none; }
.device__screen { position: relative; border-radius: 46px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.device__screen img { width: 100%; height: 100%; object-fit: cover; }
.device__video { width: 100%; height: 100%; border: 0; display: block; }
.device__poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; display: block; }
.device__poster img { width: 100%; height: 100%; object-fit: cover; }
.device__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0,230,118,.92); color: #062014; box-shadow: 0 0 0 8px rgba(0,230,118,.18), var(--glow-green);
  transition: transform .15s cubic-bezier(.4,0,.2,1), background .15s; }
.device__play svg { margin-left: 3px; }
.device__poster:hover .device__play { transform: translate(-50%,-50%) scale(1.08); background: var(--green-400); }
/* on-screen broadcast chrome must not block the poster/controls */
.scr-rec, .scr-edge { pointer-events: none; }
/* iPhone Dynamic Island (landscape → on the left short edge) */
.device__island { position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 58px; border-radius: 999px; background: #000; z-index: 5;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px rgba(255,255,255,.05); }
.device__island::after { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #10202e; box-shadow: inset 0 0 2px rgba(120,180,255,.5); }
.scr-rec, .scr-edge { position: absolute; top: 12px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(7,9,13,.58); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 6px 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
.scr-rec { left: 12px; color: #fff; }
.scr-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 8px var(--red-500); animation: pulse 1.6s ease-in-out infinite; }
.scr-edge { right: 12px; color: var(--green-400); border-color: rgba(0,230,118,.4); }
.scr-edge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 8px rgba(0,230,118,.7); }
.device-cap { font-family: var(--font-mono); font-size: 15px; font-weight: 400; letter-spacing: .02em;
  color: var(--fg-cream); margin: 20px 4px 0; text-align: center; }

/* ---- Chips ---- */
.chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  padding: 8px 14px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink-700); color: var(--fg-cream); border: 1px solid var(--line-strong); }
.chip--green { background: rgba(0,230,118,.1); color: var(--green-400); border-color: rgba(0,230,118,.32); }
.chip--gold { background: rgba(240,192,64,.1); color: var(--gold-300); border-color: var(--line-gold); }
.chip--live { background: rgba(239,68,68,.16); color: #ff6b6b; border-color: rgba(239,68,68,.4); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.chip--live .dot { background: #EF4444; box-shadow: 0 0 8px #EF4444; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ---- Email capture / CTA ---- */
.capture { max-width: 520px; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-addr { font-family: var(--font-mono); font-size: 15px; color: var(--fg-cream); letter-spacing: .02em;
  border-bottom: 1px solid var(--line-gold); padding-bottom: 2px; transition: color .15s, border-color .15s; white-space: nowrap; }
.cta-addr:hover { color: var(--green-400); border-color: var(--green-500); }
.capture__field { display: flex; gap: 8px; background: var(--ink-600); border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); padding: 6px 6px 6px 20px; transition: border-color .15s, box-shadow .15s; }
.capture__field:focus-within { border-color: rgba(0,230,118,.5); box-shadow: 0 0 0 4px rgba(0,230,118,.12); }
.capture__field input { flex: 1; background: transparent; border: 0; outline: none; color: var(--fg);
  font-family: var(--font-sans); font-size: 15px; min-width: 0; }
.capture__field input::placeholder { color: var(--fg-faint); }
.capture__fine { font-size: 12.5px; color: var(--fg-faint); margin: 12px 4px 0; }
.capture__ok { font-size: 14px; color: var(--green-400); margin: 12px 4px 0; display: flex; align-items: center; gap: 8px; }

/* ---- Section + pillars ---- */
.section { padding: 100px 0; position: relative; }
.section__head { max-width: 720px; margin: 0 0 56px; }
.section__head .pillar__num { margin-bottom: 14px; }
.section__head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem,3.4vw,3rem);
  line-height: 1.04; letter-spacing: -.015em; margin: 0 0 18px; text-wrap: balance; }
.section__head p { font-size: 18px; color: var(--fg-muted); line-height: 1.55; margin: 0; }

.pillar { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pillar--rev .pillar__media { order: -1; }
.pillar__num { display: block; margin-bottom: 14px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em; color: var(--fg-faint); }
.pillar h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem,3vw,2.6rem);
  line-height: 1.06; letter-spacing: -.015em; margin: 12px 0 18px; }
.pillar__lead { font-size: 18px; color: var(--fg-muted); line-height: 1.6; margin: 0 0 28px; max-width: 520px; }
.feat-list { display: flex; flex-direction: column; gap: 18px; margin: 0 0 30px; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat__ic { flex: none; width: 42px; height: 42px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  background: rgba(0,230,118,.1); color: var(--green-400); border: 1px solid rgba(0,230,118,.28); }
.feat--gold .feat__ic { background: rgba(240,192,64,.1); color: var(--gold-300); border-color: var(--line-gold); }
.feat__t { font-weight: 400; font-size: 16px; color: var(--fg); margin: 2px 0 4px; }
.feat__d { font-size: 14.5px; color: var(--fg-muted); line-height: 1.5; margin: 0; }

/* media columns */
.media-stack { position: relative; }
.glass-card { background: rgba(20,30,90,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-gold); border-top: 2px solid var(--gold-500); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 22px 24px; }
.phone { width: 270px; margin: 0 auto; border-radius: 32px; border: 8px solid #1a1f2a; background: #000;
  box-shadow: var(--shadow-lg), 0 0 70px rgba(240,192,64,.14); overflow: hidden; position: relative; }
.phone img { width: 100%; height: auto; display: block; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px;
  background: #000; border-radius: 12px; z-index: 4; }

/* analytics mock */
.analytics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line-gold);
  border: 1px solid var(--line-gold); border-radius: var(--r-sm); overflow: hidden; margin-top: 18px; }
.analytics .cell { background: var(--navy-900); padding: 16px 14px; text-align: center; }
.analytics .dl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-500); }
.analytics .num { font-family: var(--font-mono); font-weight: 700; font-size: 30px; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* coaching dashboard: preview on top + scoreboard */
.coach-board { background: var(--ink-700); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 14px; }
.coach-board__preview { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/9; background: #000;
  border: 1px solid var(--line-gold); }
.coach-board__preview img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.coach-board__chip { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--gold-300);
  background: rgba(7,9,13,.7); border: 1px solid var(--line-gold); padding: 5px 10px; border-radius: var(--r-pill); }
.coach-board__chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }
.coach-board__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0,230,118,.92); color: #062014; box-shadow: 0 0 0 6px rgba(0,230,118,.16); }
.coach-board__play svg { margin-left: 2px; }
.coach-board__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 4px 10px; }
.coach-board__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); white-space: nowrap; }
.coach-board__score { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.coach-board__score span { color: var(--fg-muted); }
.coach-board__score em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--fg-faint); margin-left: 4px; }
.scoreboard { border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; }
.scoreboard__hr, .scoreboard__r { display: grid; grid-template-columns: 1fr 40px 40px 52px; align-items: center;
  padding: 10px 14px; font-variant-numeric: tabular-nums; }
.scoreboard__hr { background: var(--navy-900); }
.scoreboard__hr span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); text-align: right; }
.scoreboard__hr span:first-child { text-align: left; }
.scoreboard__r { border-top: 1px solid var(--line); }
.scoreboard__r.is-top { background: rgba(240,192,64,.06); }
.sb-name { display: flex; flex-direction: column; font-size: 14px; color: var(--fg); }
.sb-name em { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--fg-faint); margin-top: 2px; letter-spacing: .02em; }
.scoreboard__r span:not(.sb-name) { font-family: var(--font-mono); font-size: 15px; color: var(--fg-cream); text-align: right; }
.scoreboard__r.is-top .sb-r { color: var(--gold-500); }
.scoreboard__r .sb-sr { color: var(--emerald-500); }

/* engagement — two halves */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.half { background: var(--ink-700); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 26px; display: flex; flex-direction: column; }
.half__top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.half__ic { flex: none; width: 46px; height: 46px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  background: rgba(0,230,118,.1); color: var(--green-400); border: 1px solid rgba(0,230,118,.28); }
.half__ic--gold { background: rgba(240,192,64,.1); color: var(--gold-300); border-color: var(--line-gold); }
.half__title { font-family: var(--font-display); font-size: 24px; color: var(--fg); margin: 0 0 8px; line-height: 1; }
.half__media { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.half__media--wide { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line-strong); }
.half__media--tall { padding: 8px 0; }
.half__poster { position: relative; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; display: block; }
.half__poster img { width: 100%; height: 100%; object-fit: cover; }
.half__video { width: 100%; height: 100%; border: 0; display: block; }
.half__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0,230,118,.92); color: #062014; box-shadow: 0 0 0 7px rgba(0,230,118,.16), var(--glow-green); transition: transform .15s; }
.half__play svg { margin-left: 3px; }
.half__poster:hover .half__play { transform: translate(-50%,-50%) scale(1.08); }
.half__desc { font-size: 15.5px; color: var(--fg-muted); line-height: 1.6; margin: 0 0 18px; flex: 1; }
.phone--sm { width: 188px; box-shadow: var(--shadow-lg), 0 0 50px rgba(240,192,64,.14); }
.phone--link { display: block; position: relative; cursor: pointer; transition: transform .15s cubic-bezier(.4,0,.2,1); }
.phone--link:hover { transform: translateY(-4px); }
.phone__play { width: 50px; height: 50px; background: rgba(240,192,64,.95); color: #1a1300;
  box-shadow: 0 0 0 6px rgba(240,192,64,.16), var(--glow-gold); }
.phone--link:hover .phone__play { transform: translate(-50%,-50%) scale(1.08); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---- Business Dev band ---- */
.bizdev { position: relative; overflow: hidden; padding: 92px 0; background: var(--grad-navy); }
.bizdev::before { content: ""; position: absolute; inset: 0; background: var(--grad-gold-wash); pointer-events: none; }
.bizdev__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.bizdev h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem,3.4vw,3rem); line-height: 1.04; margin: 0 0 18px; letter-spacing: -.015em; }
.bizdev p { font-size: 18px; color: var(--fg-cream); line-height: 1.6; margin: 0 0 28px; opacity: .92; }
.partner-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.partner { display: flex; align-items: center; gap: 16px; background: rgba(7,9,13,.35); border: 1px solid var(--line-gold);
  border-radius: var(--r-md); padding: 18px 20px; }
.partner__ic { flex: none; width: 46px; height: 46px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  background: rgba(240,192,64,.14); color: var(--gold-300); border: 1px solid var(--line-gold); }
.partner__t { font-weight: 400; font-size: 16px; color: var(--fg); }
.partner__d { font-size: 14px; color: var(--fg-cream); opacity: .8; margin-top: 2px; }

/* ---- Footer / urgency ---- */
.urgency { position: relative; overflow: hidden; padding: 110px 0; text-align: center; }
.urgency__glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 720px; height: 420px;
  background: radial-gradient(ellipse, rgba(0,230,118,.14), transparent 65%); pointer-events: none; }
.urgency__inner { position: relative; max-width: 640px; margin: 0 auto; }
.urgency h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem,4vw,3.4rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
.urgency p { font-size: 18px; color: var(--fg-muted); margin: 0 0 30px; }
.urgency .capture { margin: 0 auto; }
.urgency .cta-row { justify-content: center; }

.foot { border-top: 1px solid var(--line); padding: 44px 0; }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot__logo { height: 38px; }
.foot__links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot__links a { font-size: 14px; color: var(--fg-muted); }
.foot__links a:hover { color: var(--fg); }
.foot__copy { font-size: 13px; color: var(--fg-faint); }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .hero__inner, .pillar, .bizdev__inner { grid-template-columns: 1fr; gap: 40px; }
  .pillar--rev .pillar__media { order: 0; }
  .nav__links { display: none; }
}
