/* ==========================================================================
   iGaming Fraud Detection — stylesheet
   Palette: white base + indigo-blue accent (brand/CTA) + coral (risk/threat)
            + amber (trend/caution), used deliberately and sparingly
   ========================================================================== */

:root {
  --ink: #FFFFFF;
  --ink-2: #F5F6FA;
  --surface: #FFFFFF;
  --surface-2: #EEF1F7;
  --border: #E2E5EC;
  --border-soft: #EDEFF4;
  --text: #12151C;
  --text-muted: #56606F;
  --text-faint: #838C9A;
  --accent: #3355E8;
  --accent-ink: #FFFFFF;
  --accent-dim: rgba(51, 85, 232, 0.08);
  --coral: #D8433B;
  --coral-dim: rgba(216, 67, 59, 0.08);
  --amber: #B4780A;
  --amber-dim: rgba(180, 120, 10, 0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --max-w: 1120px;
  --shadow-card: 0 1px 2px rgba(20, 24, 38, 0.04), 0 10px 24px -12px rgba(20, 24, 38, 0.10);
  --shadow-card-lg: 0 2px 4px rgba(20, 24, 38, 0.04), 0 20px 40px -16px rgba(20, 24, 38, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #FFFFFF; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------- Typography -------------------- */

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(29px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(23px, 3.1vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}

h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

p { color: var(--text-muted); margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

strong { color: var(--text); font-weight: 650; }

.prose { max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(51, 85, 232, 0.18);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 32px;
}

/* -------------------- Icons -------------------- */

.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-lg { width: 32px; height: 32px; }

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* -------------------- Header -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand .icon { width: 22px; height: 22px; color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.nav-cta:hover { border-color: var(--accent); background: var(--accent-dim); transform: translateY(-1px); }
.nav-cta .icon { width: 15px; height: 15px; }

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  text-align: center;
}

.btn .icon { width: 17px; height: 17px; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -10px rgba(51, 85, 232, 0.45);
}

.btn-primary:hover { transform: translateY(-1px); background: #2A47CC; box-shadow: 0 14px 30px -8px rgba(51, 85, 232, 0.5); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 6px 16px -8px rgba(51, 85, 232, 0.4); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; }

/* -------------------- Hero -------------------- */

.hero {
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(640px 320px at 88% -12%, rgba(51, 85, 232, 0.07), transparent 70%),
    radial-gradient(520px 280px at 2% 4%, rgba(216, 67, 59, 0.05), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

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

.hero-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 22px;
}

.hero-lede a,
p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(51, 85, 232, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease;
}

.hero-lede a:hover,
p a:hover { text-decoration-color: var(--accent); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 8px;
}

.trust-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* -------------------- Stat bar (infographic 1) -------------------- */

.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--coral);
}

.stat-card:nth-child(2)::before { background: var(--amber); }
.stat-card:nth-child(3)::before { background: var(--accent); }

.stat-card .icon-chip { background: var(--coral-dim); color: var(--coral); margin-bottom: 16px; }
.stat-card:nth-child(2) .icon-chip { background: var(--amber-dim); color: var(--amber); }
.stat-card:nth-child(3) .icon-chip { background: var(--accent-dim); color: var(--accent); }

.stat-card .icon { width: 21px; height: 21px; }

.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.stat-label a { color: var(--text-faint); text-decoration: underline; text-decoration-color: var(--border); }
.stat-label a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* -------------------- Key takeaways -------------------- */

.takeaways {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
}

.takeaway {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.takeaway .icon {
  width: 19px;
  height: 19px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.takeaway span { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.takeaway strong { color: var(--text); }

/* -------------------- Generic section -------------------- */

.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--border-soft);
}

.section:last-of-type { border-bottom: none; }

.section-alt { background: var(--ink-2); }

/* -------------------- Fraud type grid (infographic 2) -------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.type-card .icon-chip {
  background: var(--coral-dim);
  color: var(--coral);
  margin-bottom: 16px;
}

.type-card .icon { width: 21px; height: 21px; }

.type-card h3 { margin-bottom: 8px; }
.type-card p { font-size: 14.5px; line-height: 1.55; margin-bottom: 0; }

/* -------------------- Process diagram (infographic 3) -------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-top: 8px;
}

.process-step {
  position: relative;
  padding: 0 22px;
  text-align: left;
}

.process-step:first-child { padding-left: 0; }
.process-step:last-child { padding-right: 0; }

.process-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 25px;
  left: -20px;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

.process-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 18px;
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 14.5px; line-height: 1.55; }

/* -------------------- Tables -------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}

thead tr { background: var(--surface-2); }

thead th {
  text-align: left;
  padding: 15px 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.5;
  vertical-align: top;
}

tbody tr { background: var(--surface); transition: background 0.15s ease; }
tbody tr:hover { background: var(--ink-2); }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--text); font-weight: 600; }

/* -------------------- Sub-blocks -------------------- */

.subblock { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border-soft); }
.subblock h3 { color: var(--text); }
.subblock > p:first-of-type,
.subblock > .prose { margin-top: 0; }

/* -------------------- CTA banner -------------------- */

.cta-banner {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-card-lg);
}

.cta-banner-text { max-width: 600px; }
.cta-banner-text h3 { font-size: 20px; margin-bottom: 6px; }
.cta-banner-text p { margin-bottom: 0; font-size: 15px; line-height: 1.5; }

.cta-final {
  text-align: center;
  padding: 60px 40px;
  background:
    radial-gradient(560px 280px at 50% 0%, rgba(51, 85, 232, 0.08), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-lg);
}

.cta-final h2 { margin-bottom: 12px; }
.cta-final p { max-width: 600px; margin: 0 auto 28px; font-size: 16px; }

/* -------------------- FAQ -------------------- */

.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 24px 0;
}

.faq-item:first-child { padding-top: 4px; }
.faq-item:last-child { border-bottom: none; padding-bottom: 4px; }

.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 10px;
}

.faq-q .icon-chip {
  width: 30px;
  height: 30px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-top: -2px;
}

.faq-q .icon { width: 16px; height: 16px; }

.faq-a { color: var(--text-muted); font-size: 15px; line-height: 1.6; padding-left: 44px; max-width: 700px; }

/* -------------------- Footer -------------------- */

.site-footer {
  padding: 44px 0 36px;
  background: var(--ink-2);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.footer-brand .icon { color: var(--accent); width: 19px; height: 19px; }

.footer-meta {
  font-size: 13px;
  color: var(--text-faint);
}

.footer-disclaimer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 760px;
}

/* -------------------- Responsive -------------------- */

@media (max-width: 860px) {
  .stat-bar, .card-grid, .process, .takeaways { grid-template-columns: 1fr; gap: 14px; }
  .process-step { padding: 0; }
  .process-step::before { display: none; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .cta-banner .btn { width: 100%; }
  .site-header .container { height: 64px; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 52px 0; }
  .faq-a { padding-left: 0; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
