/* AntiFraud.es — Complete Site v2.0 */


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

:root {
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f5f5f7;
  --gray-100: #e8e8ed;
  --gray-200: #d2d2d7;
  --gray-400: #86868b;
  --gray-600: #515154;
  --gray-800: #1d1d1f;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-light: #e8f0fe;
  --red: #ff3b30;
  --amber: #ff9f0a;
  --green: #30d158;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 48px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(22px, calc(50% - 560px));
  transition: background .3s;
}
.nav-logo {
  font-size: 17px; font-weight: 700; color: var(--gray-800);
  text-decoration: none; letter-spacing: -0.5px;
}
.nav-logo b { color: var(--blue); font-weight: 800; }
.nav-links {
  display: flex; gap: 0; list-style: none;
}
.nav-links a {
  font-size: 12px; color: var(--gray-600); text-decoration: none;
  padding: 0 12px; transition: color .2s; font-weight: 400;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--gray-800); }
.nav-cta {
  font-size: 12px; font-weight: 500; color: var(--blue) !important;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  background: var(--black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.orb1 { width: 600px; height: 600px; background: rgba(0,113,227,0.18); top: -100px; left: -100px; }
.orb2 { width: 500px; height: 500px; background: rgba(255,59,48,0.08); bottom: -80px; right: -80px; }
.orb3 { width: 400px; height: 400px; background: rgba(0,113,227,0.1); bottom: 0; left: 50%; transform: translateX(-50%); }

.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 28px;
  opacity: 0; animation: fadeUp .8s var(--ease-out) .1s forwards;
}
#hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp .8s var(--ease-out) .2s forwards;
}
#hero h1 .blue { color: var(--blue); }
.hero-sub {
  font-size: clamp(17px, 2vw, 21px); font-weight: 300;
  color: rgba(255,255,255,0.6); max-width: 580px;
  line-height: 1.55; margin-bottom: 48px;
  opacity: 0; animation: fadeUp .8s var(--ease-out) .3s forwards;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 80px;
  opacity: 0; animation: fadeUp .8s var(--ease-out) .4s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 15px; font-weight: 500;
  padding: 14px 28px; border-radius: 980px;
  text-decoration: none; cursor: pointer; border: none;
  transition: all .2s var(--ease);
}
.btn-blue {
  background: var(--blue); color: var(--white);
}
.btn-blue:hover { background: #0077ed; transform: scale(1.01); }
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 0.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }

.hero-metrics {
  display: flex; gap: 64px; justify-content: center;
  padding-top: 48px;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  width: 100%; max-width: 700px;
  opacity: 0; animation: fadeUp .8s var(--ease-out) .5s forwards;
}
.hero-metric-num {
  font-size: 40px; font-weight: 700; letter-spacing: -0.03em;
  color: var(--white); line-height: 1;
}
.hero-metric-label {
  font-size: 12px; color: rgba(255,255,255,0.4);
  margin-top: 6px; font-weight: 400;
}

/* ─── THREAT TICKER ─── */
#ticker {
  background: var(--gray-800);
  padding: 14px 0;
  overflow: hidden;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.ticker-track {
  display: flex; gap: 60px; width: max-content;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  font-size: 12px; color: rgba(255,255,255,0.5); white-space: nowrap;
  display: flex; align-items: center; gap: 8px; font-weight: 400;
}
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.t-red { background: var(--red); }
.t-amber { background: var(--amber); }
.t-blue { background: var(--blue); }
.ticker-val { color: var(--white); font-weight: 600; }

/* ─── SECTION BASE ─── */
.section {
  padding: 120px max(22px, calc(50% - 560px));
}
.section-sm { padding: 80px max(22px, calc(50% - 560px)); }
.label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px; display: block;
}
.headline {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.07; color: var(--gray-800);
  margin-bottom: 20px;
}
.headline.white { color: var(--white); }
.body-copy {
  font-size: 17px; color: var(--gray-400);
  line-height: 1.7; max-width: 540px; font-weight: 400;
}
.body-copy.white { color: rgba(255,255,255,0.55); }
.section-header { margin-bottom: 64px; }

/* ─── IMPACT / STATS ─── */
#impact { background: var(--gray-50); }
.kpi-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--gray-200);
  border-radius: 18px; overflow: hidden;
  margin-bottom: 48px;
}
.kpi {
  background: var(--white);
  padding: 40px 32px;
  transition: background .2s;
}
.kpi:hover { background: #fafafa; }
.kpi-num {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--gray-800); line-height: 1;
}
.kpi-num sup { font-size: 24px; vertical-align: super; letter-spacing: 0; }
.kpi-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 980px; margin: 10px 0;
}
.badge-red { background: rgba(255,59,48,0.1); color: var(--red); }
.badge-green { background: rgba(48,209,88,0.12); color: #1a8a3a; }
.badge-amber { background: rgba(255,159,10,0.12); color: #b86b00; }
.kpi-label { font-size: 13px; color: var(--gray-400); font-weight: 400; }

.charts-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.chart-tile {
  background: var(--white); border-radius: 18px;
  padding: 32px; border: 0.5px solid var(--gray-100);
}
.chart-tile h3 {
  font-size: 15px; font-weight: 600; color: var(--gray-800);
  margin-bottom: 6px; letter-spacing: -0.01em;
}
.chart-tile .chart-sub {
  font-size: 12px; color: var(--gray-400); margin-bottom: 24px;
}
.chart-wrap {
  position: relative;
  width: 100%;
  height: 240px;
}

@media (max-width: 768px) {
  .chart-wrap { height: 200px; }
  #wrap-cDonut { height: 160px; }
}
@media (max-width: 480px) {
  .chart-wrap { height: 180px; }
  #wrap-cDonut { height: 140px; }
}

/* ─── TAXONOMY ─── */
#taxonomy { background: var(--white); }
.tax-shell {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px;
}
.tax-nav {
  background: var(--gray-50); border-radius: 18px; overflow: hidden;
  border: 0.5px solid var(--gray-100); height: fit-content;
  position: sticky; top: 68px;
}
.tax-nav-head {
  padding: 20px 20px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray-400);
  border-bottom: 0.5px solid var(--gray-200);
}
.tax-btn {
  width: 100%; text-align: left; border: none; background: none; cursor: pointer;
  padding: 12px 20px; font-family: var(--font); font-size: 14px;
  color: var(--gray-600); display: flex; align-items: center; gap: 10px;
  transition: all .15s; border-left: 2px solid transparent;
  font-weight: 400;
}
.tax-btn:hover { background: var(--gray-100); color: var(--gray-800); }
.tax-btn.active {
  background: var(--white); color: var(--blue);
  border-left-color: var(--blue); font-weight: 600;
}
.tax-btn-icon { font-size: 16px; flex-shrink: 0; }
.tax-btn-count {
  margin-left: auto; font-size: 11px; color: var(--gray-400);
  background: var(--gray-200); border-radius: 980px;
  padding: 1px 7px; font-weight: 500;
}
.tax-btn.active .tax-btn-count { background: rgba(0,113,227,0.1); color: var(--blue); }

.tax-panel {
  background: var(--gray-50); border-radius: 18px;
  border: 0.5px solid var(--gray-100); padding: 48px;
  min-height: 560px;
}
.tax-panel-header { margin-bottom: 36px; }
.tax-big-icon {
  font-size: 44px; line-height: 1; margin-bottom: 16px; display: block;
}
.tax-panel h2 {
  font-size: 36px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--gray-800); margin-bottom: 8px;
}
.tax-panel-meta {
  font-size: 13px; color: var(--gray-400);
}
.tax-panel p {
  font-size: 16px; color: var(--gray-600); line-height: 1.75;
  margin-bottom: 36px; max-width: 600px;
}
.tax-chips-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 12px;
}
.tax-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tax-chip {
  font-size: 13px; font-weight: 500; padding: 6px 16px;
  border-radius: 980px; border: 0.5px solid;
}
.tax-3up {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
}
.tax-stat {
  background: var(--white); border-radius: 12px;
  padding: 20px; text-align: center;
  border: 0.5px solid var(--gray-200);
}
.tax-stat-val {
  font-size: 26px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--gray-800); line-height: 1;
}
.tax-stat-label { font-size: 11px; color: var(--gray-400); margin-top: 6px; }

/* ─── RISK TOOL ─── */
#risk { background: var(--black); }
.risk-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start;
}
.risk-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 40px;
}
.risk-form-wrap h3 {
  font-size: 22px; font-weight: 700; color: var(--white);
  letter-spacing: -0.02em; margin-bottom: 32px;
}
.rq { margin-bottom: 24px; }
.rq label {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7);
  display: block; margin-bottom: 8px;
}
.rq select {
  width: 100%; background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 12px 16px;
  font-family: var(--font); font-size: 14px; color: var(--white);
  appearance: none; outline: none; transition: border-color .2s;
}
.rq select:focus { border-color: var(--blue); }
.rq select option { background: #1a1a1a; }
.slider-row { display: flex; align-items: center; gap: 14px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--blue); }
.slider-val { font-size: 14px; font-weight: 700; color: var(--blue); min-width: 40px; text-align: right; }
.risk-calc-btn {
  width: 100%; background: var(--blue); color: var(--white);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 16px; border-radius: 980px; border: none; cursor: pointer;
  margin-top: 8px; transition: background .2s;
}
.risk-calc-btn:hover { background: #0077ed; }

.risk-result-card {
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 36px;
  position: sticky; top: 68px;
}
.result-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 24px;
}
.gauge-wrap {
  position: relative; width: 180px; height: 94px; margin: 0 auto 8px;
}
.gauge-score {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); pointer-events: none; line-height: 1;
  font-size: 42px; font-weight: 800; color: var(--white);
  letter-spacing: -0.04em; line-height: 1;
}
.risk-label-pill {
  display: block; text-align: center; font-size: 13px; font-weight: 700;
  padding: 8px 20px; border-radius: 980px; margin: 20px 0;
}
.pill-init { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.4); }
.pill-low { background: rgba(48,209,88,0.15); color: #30d158; }
.pill-med { background: rgba(255,159,10,0.15); color: var(--amber); }
.pill-high { background: rgba(255,59,48,0.15); color: var(--red); }
.result-recs-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 12px;
}
.result-rec {
  font-size: 13px; color: rgba(255,255,255,0.6);
  padding: 10px 0; border-bottom: 0.5px solid rgba(255,255,255,0.07);
  display: flex; gap: 10px; line-height: 1.5;
}
.result-rec:last-child { border-bottom: none; }
.result-rec::before { content: '→'; color: var(--blue); flex-shrink: 0; font-weight: 600; }

/* ─── CASE STUDIES ─── */
#cases { background: var(--gray-50); }
.cases-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
}
.case {
  background: var(--white); border-radius: 18px;
  overflow: hidden; border: 0.5px solid var(--gray-100);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
}
.case:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(0,0,0,0.08); }
.case-top { padding: 32px 28px 24px; flex: 1; }
.case-sector {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 6px;
  display: inline-block; margin-bottom: 20px;
}
.case h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--gray-800); line-height: 1.3; margin-bottom: 10px;
}
.case p { font-size: 14px; color: var(--gray-400); line-height: 1.65; }
.case-bottom {
  padding: 20px 28px; border-top: 0.5px solid var(--gray-100);
  display: flex; justify-content: space-between; align-items: center;
}
.case-nums { display: flex; gap: 24px; }
.case-num-val {
  font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--gray-800);
}
.case-num-lbl { font-size: 10px; color: var(--gray-400); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.case-more {
  font-size: 13px; font-weight: 600; color: var(--blue);
  text-decoration: none; white-space: nowrap;
}

/* ─── INTEL FEED ─── */
#intel { background: var(--white); }
.intel-shell {
  display: grid; grid-template-columns: 1fr 320px; gap: 48px;
}
.feed { display: flex; flex-direction: column; }
.feed-entry {
  padding: 28px 0; border-bottom: 0.5px solid var(--gray-100);
  display: grid; grid-template-columns: 52px 1fr; gap: 20px;
}
.feed-entry:first-child { padding-top: 0; }
.feed-entry:last-child { border-bottom: none; }
.feed-dt { text-align: center; }
.feed-mo { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); }
.feed-dd {
  font-size: 26px; font-weight: 800; color: var(--gray-800);
  line-height: 1; letter-spacing: -0.03em;
}
.feed-body h4 {
  font-size: 15px; font-weight: 700; color: var(--gray-800);
  letter-spacing: -0.01em; margin-bottom: 6px; line-height: 1.35;
}
.feed-body p {
  font-size: 13px; color: var(--gray-400); line-height: 1.6; margin-bottom: 10px;
}
.feed-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.feed-chip {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 5px;
}
.fc-critical { background: rgba(255,59,48,0.1); color: var(--red); }
.fc-high { background: rgba(255,159,10,0.1); color: #b86b00; }
.fc-med { background: rgba(0,113,227,0.08); color: var(--blue); }
.fc-info { background: var(--gray-100); color: var(--gray-600); }

.intel-aside { display: flex; flex-direction: column; gap: 20px; }
.aside-tile {
  background: var(--gray-50); border-radius: 18px;
  border: 0.5px solid var(--gray-100); overflow: hidden;
}
.aside-head {
  padding: 14px 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--gray-600); border-bottom: 0.5px solid var(--gray-200);
}
.aside-body { padding: 16px 20px; }
.geo-row {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0; font-size: 13px;
}
.geo-flag { font-size: 15px; }
.geo-name { color: var(--gray-600); flex: 1; }
.geo-bar-bg { width: 64px; height: 4px; background: var(--gray-200); border-radius: 2px; }
.geo-bar-fill { height: 100%; border-radius: 2px; background: var(--blue); }
.geo-pct { font-size: 12px; font-weight: 700; color: var(--gray-800); min-width: 28px; text-align: right; }

.threat-row { padding: 7px 0; }
.threat-row-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.threat-name { color: var(--gray-600); }
.threat-sev { font-weight: 700; font-size: 11px; }
.sev-c { color: var(--red); }
.sev-h { color: #b86b00; }
.sev-m { color: var(--blue); }
.threat-bar-bg { height: 4px; background: var(--gray-200); border-radius: 2px; }
.threat-bar-fill { height: 100%; border-radius: 2px; }

.reg-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0; font-size: 13px; border-bottom: 0.5px solid var(--gray-200);
}
.reg-row:last-child { border-bottom: none; }
.reg-q {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; flex-shrink: 0;
}
.reg-text { color: var(--gray-600); line-height: 1.4; }

/* ─── ABOUT ─── */
#about {
  background: var(--black);
  padding: 120px max(22px, calc(50% - 560px));
}
.about-shell {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-kv {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px;
}
.about-kv-item {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 20px;
}
.about-kv-icon { font-size: 20px; margin-bottom: 8px; }
.about-kv-title { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.about-kv-sub { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.5; }
.about-right { display: flex; flex-direction: column; gap: 20px; }
.quote-card {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 28px;
}
.quote-card blockquote {
  font-size: 17px; font-style: italic; font-weight: 300;
  color: rgba(255,255,255,0.75); line-height: 1.65; margin-bottom: 12px;
}
.quote-card cite {
  font-size: 12px; color: var(--blue); font-style: normal; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.testi-card {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 22px;
}
.testi-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 8px; }
.testi-author { font-size: 11px; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── CONTACT ─── */
#contact { background: var(--gray-50); }
.contact-shell {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.contact-services { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.svc {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border-radius: 14px;
  padding: 20px; border: 0.5px solid var(--gray-100);
}
.svc-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-light); display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.svc-title { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 3px; }
.svc-sub { font-size: 13px; color: var(--gray-400); line-height: 1.5; }
.cform {
  background: var(--white); border-radius: 20px;
  padding: 36px; border: 0.5px solid var(--gray-200);
}
.fg { margin-bottom: 16px; }
.fg label {
  font-size: 12px; font-weight: 700; color: var(--gray-600);
  letter-spacing: 0.04em; text-transform: uppercase;
  display: block; margin-bottom: 6px;
}
.fg input, .fg select, .fg textarea {
  width: 100%; border: 0.5px solid var(--gray-200);
  border-radius: 10px; padding: 12px 14px;
  font-family: var(--font); font-size: 14px; color: var(--gray-800);
  background: var(--white); outline: none; transition: border-color .15s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--blue); }
.fg textarea { resize: vertical; min-height: 96px; }
.fg-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit {
  width: 100%; background: var(--gray-800); color: var(--white);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 16px; border-radius: 980px; border: none; cursor: pointer;
  transition: background .2s;
}
.form-submit:hover { background: var(--black); }

/* ─── FOOTER ─── */
footer {
  background: var(--gray-50);
  border-top: 0.5px solid var(--gray-200);
  padding: 20px max(22px, calc(50% - 560px));
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.footer-logo b { color: var(--blue); }
.footer-copy { font-size: 12px; color: var(--gray-400); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 12px; color: var(--gray-400); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }


/* ═══════════════════════════════════════════════
   RESPONSIVE v1.4 — Desktop untouched
   Tablet: 768–1024px | Mobile: 480–768px | Small: <480px
═══════════════════════════════════════════════ */

/* ── TABLET ── */
@media (max-width: 1024px) {
  #nav { padding: 0 20px; }
  .nav-links a { padding: 0 7px; font-size: 11px; }
  .hero-orb.orb1 { width: 360px; height: 360px; }
  .hero-orb.orb2 { width: 280px; height: 280px; }
  .kpi-row { grid-template-columns: 1fr 1fr; border-radius: 14px; }
  .kpi:nth-child(1) { border-radius: 14px 0 0 0; }
  .kpi:nth-child(2) { border-radius: 0 14px 0 0; }
  .kpi:nth-child(3) { border-radius: 0 0 0 14px; }
  .kpi:nth-child(4) { border-radius: 0 0 14px 0; }
  .charts-2col { grid-template-columns: 1fr; gap: 14px; }
  .tax-shell { grid-template-columns: 1fr; gap: 16px; }
  .tax-nav { position: static; display: flex; flex-wrap: wrap; border-radius: 14px; overflow: visible; }
  .tax-nav-head { width: 100%; border-radius: 14px 14px 0 0; }
  .tax-btn { flex: 1 1 calc(50% - 1px); border-left: none; border-bottom: 2px solid transparent; justify-content: center; font-size: 12px; padding: 10px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tax-btn.active { border-bottom-color: var(--blue); border-left-color: transparent; }
  .tax-btn-count { display: none; }
  .tax-panel { padding: 28px; min-height: auto; }
  .tax-chips { gap: 6px; }
  .tax-chip { font-size: 12px; padding: 5px 12px; }
  .tax-3up { grid-template-columns: repeat(3, 1fr); }
  .risk-grid { grid-template-columns: 1fr; gap: 24px; }
  .risk-result-card { position: static; }
  .cases-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .intel-shell { grid-template-columns: 1fr; gap: 32px; }
  .intel-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .about-shell { grid-template-columns: 1fr; gap: 40px; }
  .about-kv { grid-template-columns: 1fr 1fr; }
  .contact-shell { grid-template-columns: 1fr; gap: 32px; }
  footer { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .footer-links { justify-content: center; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  #nav { padding: 0 16px; height: 52px; }
  .nav-links { display: none; }
  #nav::after { content: '\2630'; font-size: 20px; color: var(--gray-600); cursor: pointer; }

  .section { padding: 56px 16px; }
  #about  { padding: 56px 16px; }
  #hero   { padding: 88px 16px 52px; min-height: auto; }
  #hero h1 { font-size: 36px; letter-spacing: -0.025em; }
  .hero-sub { font-size: 16px; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn { width: 100%; justify-content: center; padding: 15px 20px; }
  .hero-metrics { flex-direction: column; gap: 20px; padding-top: 28px; align-items: center; }
  .hero-metric-num { font-size: 32px; }
  #ticker { display: none; }

  .headline { font-size: 26px; }
  .body-copy { font-size: 15px; }
  .section-header { margin-bottom: 32px; }

  /* KPIs */
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 20px 14px; }
  .kpi-num { font-size: 28px; }
  .kpi-num sup { font-size: 13px; }
  .kpi-badge { font-size: 10px; padding: 2px 7px; }
  .kpi-label { font-size: 12px; }

  /* Charts */
  .charts-2col { grid-template-columns: 1fr; gap: 10px; }
  .chart-tile { padding: 18px; border-radius: 14px; }
  .chart-tile h3 { font-size: 13px; }
  .chart-tile .chart-sub { font-size: 11px; margin-bottom: 14px; }

  /* Taxonomy — horizontal scroll tabs */
  .tax-shell { grid-template-columns: 1fr; gap: 12px; }
  .tax-nav { position: static; background: var(--gray-50); border-radius: 14px; border: 0.5px solid var(--gray-100); overflow: hidden; display: block; }
  .tax-nav-head { display: none; }
  #taxList { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0; }
  #taxList::-webkit-scrollbar { display: none; }
  .tax-btn { flex: 0 0 auto; white-space: nowrap; border-left: none !important; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 16px; font-size: 13px; min-height: 44px; }
  .tax-btn.active { border-bottom: 2px solid var(--blue); background: var(--white); color: var(--blue); border-left-color: transparent !important; }
  .tax-panel { padding: 20px 16px; border-radius: 14px; min-height: auto; }
  .tax-panel-header { margin-bottom: 16px; padding-bottom: 14px; }
  .tax-big-icon { font-size: 28px; margin-bottom: 8px; }
  .tax-panel h2 { font-size: 20px; }
  .tax-panel-meta { font-size: 12px; }
  .tax-panel p { font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
  .tax-chips-label { font-size: 10px; margin-bottom: 8px; }
  .tax-chips { gap: 6px; margin-bottom: 18px; }
  .tax-chip { font-size: 12px; padding: 5px 11px; }
  .tax-3up { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tax-stat { padding: 12px 6px; border-radius: 10px; }
  .tax-stat-val { font-size: 15px; }
  .tax-stat-label { font-size: 10px; }

  /* Risk tool */
  .risk-grid { grid-template-columns: 1fr; gap: 16px; }
  .risk-form-wrap { padding: 20px 16px; border-radius: 16px; }
  .risk-form-wrap h3 { font-size: 18px; margin-bottom: 20px; }
  .rq { margin-bottom: 18px; }
  .rq label { font-size: 13px; }
  .rq select { font-size: 16px; padding: 12px 14px; border-radius: 10px; } /* 16px prevents iOS auto-zoom */
  input[type=range] { height: 28px; }
  .slider-val { font-size: 13px; min-width: 36px; }
  .risk-calc-btn { font-size: 16px; padding: 16px; min-height: 52px; }
  .risk-result-card { padding: 24px 20px; border-radius: 16px; position: static; }
  .result-label { font-size: 11px; margin-bottom: 16px; }
  .gauge-wrap { width: 100%; max-width: 200px; height: auto; margin: 0 auto 12px; }
  .gauge-wrap canvas { width: 100% !important; height: auto !important; }
  .gauge-score { font-size: 36px; }
  .risk-label-pill { font-size: 14px; padding: 10px 20px; }
  .result-rec { font-size: 13px; padding: 9px 0; }

  /* Cases */
  .cases-row { grid-template-columns: 1fr; gap: 12px; }
  .case-top { padding: 22px 18px 16px; }
  .case h3 { font-size: 17px; }
  .case p { font-size: 13px; }
  .case-bottom { padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
  .case-nums { gap: 14px; flex-wrap: wrap; }
  .case-num-val { font-size: 18px; }

  /* Intel */
  .intel-shell { grid-template-columns: 1fr; gap: 24px; }
  .intel-aside { grid-template-columns: 1fr; gap: 12px; }
  .feed-entry { grid-template-columns: 44px 1fr; gap: 12px; padding: 20px 0; }
  .feed-dd { font-size: 20px; }
  .feed-body h4 { font-size: 14px; }
  .feed-body p { font-size: 13px; }

  /* About */
  .about-shell { grid-template-columns: 1fr; gap: 32px; }
  .about-kv { grid-template-columns: 1fr 1fr; gap: 10px; }
  .about-kv-item { padding: 14px; border-radius: 12px; }
  .about-kv-title { font-size: 12px; }
  .about-kv-sub { font-size: 11px; }
  .quote-card { padding: 22px; }
  .quote-card blockquote { font-size: 15px; }
  .testi-card { padding: 18px; }
  .testi-card p { font-size: 13px; }

  /* Contact */
  .contact-shell { grid-template-columns: 1fr; gap: 28px; }
  .cform { padding: 20px 16px; border-radius: 16px; }
  .fg-2col { grid-template-columns: 1fr; }
  .fg input, .fg select, .fg textarea { font-size: 16px; } /* prevent iOS zoom */
  .form-submit { font-size: 15px; padding: 16px; min-height: 52px; }

  /* Footer */
  footer { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

/* ── SMALL MOBILE ── */
@media (max-width: 480px) {
  .section { padding: 44px 14px; }
  #about  { padding: 44px 14px; }
  #hero   { padding: 76px 14px 44px; }
  #hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .hero-metric-num { font-size: 28px; }
  .headline { font-size: 22px; }

  .kpi-row { grid-template-columns: 1fr; gap: 1px; }
  .kpi:nth-child(1) { border-radius: 14px 14px 0 0; }
  .kpi:nth-child(2) { border-radius: 0; }
  .kpi:nth-child(3) { border-radius: 0; }
  .kpi:nth-child(4) { border-radius: 0 0 14px 14px; }
  .kpi-num { font-size: 32px; }

  .tax-panel { padding: 14px 12px; }
  .tax-panel h2 { font-size: 18px; }
  .tax-chip { font-size: 11px; padding: 4px 10px; }
  .tax-3up { gap: 6px; }
  .tax-stat-val { font-size: 14px; }

  .risk-form-wrap { padding: 16px 12px; }
  .about-kv { grid-template-columns: 1fr; gap: 8px; }
  .feed-entry { grid-template-columns: 38px 1fr; gap: 10px; }
}

/* ── TOUCH OPTIMISATIONS ── */
@media (hover: none) and (pointer: coarse) {
  .case:hover    { transform: none; box-shadow: none; }
  .btn:hover     { transform: none; }
  .kpi:hover     { background: var(--white); }
  .tax-btn       { min-height: 44px; }
  .risk-calc-btn { min-height: 52px; }
  .form-submit   { min-height: 52px; }
  select         { min-height: 44px; }
  * { -webkit-tap-highlight-color: transparent; }
}


/* ── CONTACT FORM ── */
.req { color: var(--blue); font-size: 11px; }
.fg-err {
  font-size: 12px; color: #c0392b; margin-top: 5px;
  min-height: 16px; font-weight: 500;
}
.fg input.invalid, .fg textarea.invalid {
  border-color: #ff3b30 !important;
  background: rgba(255,59,48,0.03);
}
.fg input.valid, .fg textarea.valid {
  border-color: #30d158 !important;
}
.form-submit:disabled {
  opacity: 0.6; cursor: not-allowed;
}
.form-submit.sending {
  background: var(--gray-600);
}


/* ── LINKEDIN ── */
.nav-linkedin {
  display: flex; align-items: center;
  margin-left: 14px; flex-shrink: 0;
  opacity: 0.7; transition: opacity .2s;
}
.nav-linkedin:hover { opacity: 1; }
.nav-linkedin svg rect { transition: fill .2s; }
.nav-linkedin:hover svg rect { fill: #0077ed; }

.linkedin-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.2);
  color: var(--white); text-decoration: none;
  font-size: 14px; font-weight: 600;
  padding: 12px 20px; border-radius: 980px;
  transition: all .2s;
}
.linkedin-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

.linkedin-contact-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 8px;
  background: var(--blue-light);
  color: var(--blue); text-decoration: none;
  font-size: 14px; font-weight: 600;
  padding: 12px 20px; border-radius: 980px;
  border: 0.5px solid rgba(0,113,227,0.2);
  transition: all .2s;
}
.linkedin-contact-btn:hover {
  background: #d1e8ff;
}

.footer-linkedin {
  display: flex; align-items: center;
  opacity: 0.6; transition: opacity .2s;
  flex-shrink: 0;
}
.footer-linkedin:hover { opacity: 1; }
.footer-linkedin:hover svg rect { fill: #0071e3; }
.footer-linkedin svg rect { transition: fill .2s; }

@media (max-width: 768px) {
  .nav-linkedin { margin-left: 8px; }
  .linkedin-btn { font-size: 13px; padding: 11px 16px; }
}


/* svc as link */
a.svc:hover { background: var(--gray-50); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
a.svc { transition: all .2s; }

