/* ========================================
   cryptoaml.cc — Design System
   Light theme · Friendly · Fast
   ======================================== */

:root {
  /* Backgrounds */
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #f5f5ff;

  /* Borders */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-accent: rgba(99, 102, 241, 0.4);

  /* Brand */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef0ff;
  --primary-glow: rgba(99, 102, 241, 0.18);

  /* Semantic */
  --green: #10b981;
  --green-light: #ecfdf5;
  --green-dark: #059669;
  --red: #ef4444;
  --red-light: #fef2f2;
  --orange: #f59e0b;
  --orange-light: #fffbeb;
  --yellow: #eab308;
  --yellow-light: #fefce8;

  /* Text */
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-disabled: #94a3b8;

  /* Tokens */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(99, 102, 241, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px rgba(99, 102, 241, 0.08), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 8px 32px rgba(99, 102, 241, 0.16), 0 4px 8px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 16px 48px rgba(99, 102, 241, 0.18), 0 8px 16px rgba(15, 23, 42, 0.06);

  /* Font */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--primary); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--primary-dark); }

/* ========================================
   Layout primitives
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-secondary); }

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; }
h4 { font-size: 18px; font-weight: 700; }

p { color: var(--text-secondary); line-height: 1.7; }

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========================================
   Header
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--text); }

.logo__icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.32);
}

.logo__icon svg { width: 20px; height: 20px; color: #fff; }

.logo__text { font-weight: 500; color: var(--text-muted); }
.logo__text strong { font-weight: 800; color: var(--text); }
.logo__tld { color: var(--primary); font-weight: 800; }

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

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 150ms ease;
}

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

.nav__cta {
  padding: 9px 18px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.28);
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.nav__cta:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-pill);
  padding: 3px;
  font-size: 12px;
  font-weight: 600;
}

.lang-switch button {
  padding: 5px 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  transition: background 150ms ease, color 150ms ease;
}

.lang-switch button.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
}

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  padding: 80px 0 64px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 1000px 500px at 50% -100px, rgba(99, 102, 241, 0.12), transparent 70%),
    radial-gradient(ellipse 800px 400px at 80% 200px, rgba(16, 185, 129, 0.08), transparent 70%),
    var(--bg);
}

.hero__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  margin: 20px auto 18px;
  max-width: 780px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 60%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

/* Checker form */
.checker {
  background: var(--bg-card);
  padding: 8px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.checker:focus-within {
  box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow-xl);
  transform: translateY(-2px);
}

.checker input {
  flex: 1;
  padding: 16px 18px;
  font-size: 16px;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  color: var(--text);
  outline: none;
  min-width: 0;
}

.checker input::placeholder { color: var(--text-disabled); }

.checker button {
  padding: 14px 26px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.checker button:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.checker button:active { transform: scale(0.97); }

.checker button svg { width: 18px; height: 18px; }

/* Network strip */
.networks-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
}

.networks-strip > span { font-weight: 500; }

.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.network-pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

/* Trust band */
.trust-band {
  margin-top: 56px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.trust-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  text-align: center;
}

.trust-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-stat__num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.trust-stat__label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: left;
  max-width: 140px;
  line-height: 1.3;
}

.stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
}

/* ========================================
   Sections — common
   ======================================== */

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__head h2 { margin-bottom: 14px; }

.section__head p {
  font-size: 17px;
  color: var(--text-muted);
}

/* ========================================
   Scenarios grid (3 cards)
   ======================================== */

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

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  position: relative;
  overflow: hidden;
}

.scenario-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  opacity: 0;
  transition: opacity 200ms ease;
}

.scenario-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.scenario-card:hover::before { opacity: 1; }

.scenario-card__icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}

.scenario-card h3 { margin-bottom: 8px; }

.scenario-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   How it works (3 steps)
   ======================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__num {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  position: relative;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.step:hover .step__num {
  border-color: var(--primary);
  box-shadow: 0 0 0 6px var(--primary-glow);
  transform: scale(1.05);
}

.step h4 { margin-bottom: 8px; font-size: 17px; }

.step p { font-size: 14px; color: var(--text-muted); }

/* ========================================
   Checks (what we verify)
   ======================================== */

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

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 150ms ease, border-color 150ms ease;
}

.check-card:hover {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
}

.check-card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.check-card__icon--red { background: var(--red-light); }
.check-card__icon--orange { background: var(--orange-light); }
.check-card__icon--yellow { background: var(--yellow-light); }
.check-card__icon--green { background: var(--green-light); }
.check-card__icon--purple { background: var(--primary-light); }
.check-card__icon--blue { background: #eff6ff; }

.check-card h4 {
  font-size: 15px;
  margin-bottom: 4px;
  font-weight: 700;
}

.check-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================
   Demo result card
   ======================================== */

.demo-result {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.demo-result__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.demo-result__address {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  word-break: break-all;
}

.demo-result__address strong {
  display: block;
  color: var(--text-disabled);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-family: var(--font-body);
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}

.risk-badge--low { background: var(--green-light); color: var(--green-dark); }
.risk-badge--medium { background: var(--yellow-light); color: #a16207; }
.risk-badge--high { background: var(--orange-light); color: #c2410c; }
.risk-badge--critical { background: var(--red-light); color: #b91c1c; }

.risk-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px currentColor;
  opacity: 0.3;
}

.risk-badge .dot { box-shadow: 0 0 0 0 currentColor; }
.risk-badge--low .dot { background: var(--green); }
.risk-badge--medium .dot { background: var(--yellow); }
.risk-badge--high .dot { background: var(--orange); }
.risk-badge--critical .dot { background: var(--red); }

.risk-score {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.risk-score__circle {
  position: relative;
  width: 120px; height: 120px;
  flex-shrink: 0;
}

.risk-score__circle svg { transform: rotate(-90deg); }

.risk-score__circle circle {
  fill: none;
  stroke-width: 10;
}

.risk-score__circle .bg { stroke: var(--border); }

.risk-score__circle .fg {
  stroke: var(--green);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.risk-score__value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.risk-score__value strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.risk-score__value span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 4px;
}

.risk-score__meta { flex: 1; }
.risk-score__meta h4 { margin-bottom: 6px; font-size: 18px; }
.risk-score__meta p { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }

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

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}

.result-row__label { color: var(--text-secondary); font-weight: 500; }

.result-row__value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.result-row__value--ok { color: var(--green-dark); }
.result-row__value--warn { color: #b45309; }
.result-row__value--bad { color: #b91c1c; }

/* ========================================
   Blockchains grid
   ======================================== */

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

.blockchain-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  color: var(--text);
}

.blockchain-tile:hover {
  background: var(--bg-secondary);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  color: var(--text);
}

.blockchain-tile__symbol {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.blockchain-tile__name { font-size: 13px; font-weight: 600; }

/* Network colours */
.net-btc { background: #f7931a; }
.net-eth { background: #627eea; }
.net-trx { background: #ef0027; }
.net-sol { background: linear-gradient(135deg, #9945ff, #14f195); }
.net-bnb { background: #f0b90b; color: #1a1a1a !important; }
.net-pol { background: #8247e5; }
.net-arb { background: #28a0f0; }
.net-avx { background: #e84142; }
.net-ltc { background: #345d9d; }
.net-doge { background: #c2a633; }
.net-xrp { background: #23292f; }
.net-ada { background: #0033ad; }
.net-dot { background: #e6007a; }
.net-near { background: #000000; }
.net-ftm { background: #1969ff; }
.net-base { background: #0052ff; }
.net-op { background: #ff0420; }
.net-atom { background: #2e3148; }
.net-xtz { background: #2c7df7; }
.net-algo { background: #000000; }

/* ========================================
   Telegram CTA block
   ======================================== */

.tg-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #5b5fff 0%, #6366f1 40%, #8b5cf6 100%);
  border-radius: 24px;
  padding: 56px 48px;
  color: #fff;
  text-align: center;
}

.tg-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 400px 200px at 20% 20%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 400px 200px at 80% 80%, rgba(236, 72, 153, 0.25), transparent 70%);
  pointer-events: none;
}

.tg-cta__inner { position: relative; }

.tg-cta h2 { color: #fff; margin-bottom: 14px; }

.tg-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
}

.tg-cta__features {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.tg-cta__features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tg-cta__features svg { width: 18px; height: 18px; color: #4ade80; }

.btn-tg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: #fff;
  color: var(--primary-dark);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn-tg:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  color: var(--primary-dark);
}

.btn-tg svg { width: 22px; height: 22px; }

/* ========================================
   FAQ
   ======================================== */

.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.faq-item:hover { border-color: var(--border-strong); }

.faq-item[open] {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item__body {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer__about p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer h5 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer ul a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 150ms ease;
}

.footer ul a:hover { color: var(--primary); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ========================================
   Article / content pages
   ======================================== */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.article__head { margin-bottom: 40px; text-align: left; }

.article__crumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.article__crumb a { color: var(--text-muted); }
.article__crumb a:hover { color: var(--primary); }

.article__head h1 { margin-bottom: 16px; }

.article__lead {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.article__body { font-size: 17px; line-height: 1.75; color: var(--text-secondary); }

.article__body h2 { margin: 48px 0 18px; }
.article__body h3 { margin: 32px 0 14px; }
.article__body p { margin-bottom: 18px; }

.article__body ul, .article__body ol {
  margin: 18px 0 24px 22px;
  color: var(--text-secondary);
}

.article__body li { margin-bottom: 10px; line-height: 1.7; }

.article__body strong { color: var(--text); font-weight: 700; }

.article__body code {
  background: var(--bg-tertiary);
  color: var(--primary-dark);
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
}

.article__body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-style: italic;
  font-size: 17px;
}

.callout {
  display: flex;
  gap: 14px;
  margin: 32px 0;
  padding: 18px 22px;
  background: var(--green-light);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
}

.callout--warn { background: var(--orange-light); border-color: #fcd34d; }
.callout--danger { background: var(--red-light); border-color: #fecaca; }

.callout__icon {
  font-size: 22px;
  flex-shrink: 0;
}

.callout p { margin: 0; font-size: 15px; color: var(--text-secondary); }

/* Blog list */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  color: inherit;
}

.blog-card__cover {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 60%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 64px;
  position: relative;
  overflow: hidden;
}

.blog-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 200px 100px at 20% 20%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(ellipse 200px 100px at 80% 80%, rgba(0, 0, 0, 0.15), transparent 60%);
}

.blog-card__cover--alt { background: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%); }
.blog-card__cover--green { background: linear-gradient(135deg, var(--green) 0%, #06b6d4 100%); }
.blog-card__cover--orange { background: linear-gradient(135deg, var(--orange) 0%, #ec4899 100%); }
.blog-card__cover--pink { background: linear-gradient(135deg, #ec4899 0%, #6366f1 100%); }
.blog-card__cover--dark { background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%); }

.blog-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.blog-card__tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-disabled);
}

/* ========================================
   Buttons (utility)
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.32);
}

.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.44); color: #fff; }

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

.btn--secondary:hover { background: var(--bg-secondary); border-color: var(--primary); color: var(--primary); }

/* ========================================
   Loading spinner
   ======================================== */

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Result panel (live) */
.result-panel {
  display: none;
  margin: 40px auto 0;
  max-width: 720px;
  animation: fadeSlideIn 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.result-panel.is-visible { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Errors */
.result-error {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.result-error__icon { font-size: 36px; margin-bottom: 12px; }
.result-error h4 { margin-bottom: 8px; }
.result-error p { color: var(--text-muted); margin-bottom: 18px; font-size: 14px; }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
  .scenarios,
  .steps,
  .checks { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .blockchains { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 40px; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--bg);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
  }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .scenarios,
  .steps,
  .checks { grid-template-columns: 1fr; }
  .blockchains { grid-template-columns: repeat(3, 1fr); }
  .checker { flex-direction: column; padding: 12px; }
  .checker input { padding: 14px 12px; font-size: 16px; }
  .checker button { width: 100%; justify-content: center; padding: 14px; }
  .tg-cta { padding: 40px 24px; border-radius: var(--radius); }
  .demo-result { padding: 24px; }
  .risk-score { flex-direction: column; text-align: center; gap: 16px; }
  .demo-result__rows { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .trust-band__inner { gap: 20px; }
  .trust-stat__label { text-align: center; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
