:root {
  --bg: #08141f;
  --panel: #102234;
  --panel-soft: #163149;
  --text: #f3f5f7;
  --muted: #9fb2c2;
  --accent: #46d6b1;
  --accent-2: #f6b73c;
  --danger: #ff7f66;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --focus: rgba(70, 214, 177, 0.45);
  --max: 1120px;
  --page-pad: clamp(1rem, 3.5vw, 1.5rem);
  --section-gap: clamp(1.75rem, 4.5vw, 2.75rem);
  --topbar-h: 4.25rem;
  --touch: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* ---------- CTFamily splash intro (home only; hold & swipe up) ---------- */
.ctf-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #0a0a0a;
  opacity: 1;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  outline: none;
  will-change: transform, opacity;
}

.ctf-splash:active {
  cursor: grabbing;
}

.ctf-splash.is-leaving {
  pointer-events: none;
}

.ctf-splash.is-pulling .ctf-splash-hint-text {
  opacity: 0.45;
}

body.splash-active {
  overflow: hidden;
  touch-action: none;
}

.ctf-splash-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding:
    max(1.5rem, env(safe-area-inset-top, 0px))
    1.25rem
    max(1.25rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  min-height: 100%;
}

.ctf-splash-inner {
  width: min(620px, 92vw);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctf-splash-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
}

.ctf-splash-dot {
  animation: ctfLogoPop 950ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

.ctf-splash-ogspot {
  animation: ctfLogoPop 950ms cubic-bezier(0.34, 1.56, 0.64, 1) 280ms forwards;
  opacity: 0;
}

.ctf-splash-name1 {
  animation: ctfLogoPop 950ms cubic-bezier(0.34, 1.56, 0.64, 1) 520ms forwards;
  opacity: 0;
}

@keyframes ctfLogoPop {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(45px);
  }
  55% {
    opacity: 1;
    transform: scale(1.12) translateY(-10px);
  }
  78% {
    transform: scale(0.96) translateY(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Bottom swipe instruction */
.ctf-splash-hint {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.35rem;
  margin-top: auto;
}

.ctf-splash-hint-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  height: 2rem;
  justify-content: flex-end;
}

.ctf-splash-chevron {
  width: 14px;
  height: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.85);
  border-top: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
  opacity: 0.35;
  animation: ctfSwipeChev 1.35s ease-in-out infinite;
}

.ctf-splash-chevron:nth-child(2) {
  animation-delay: 0.18s;
}

.ctf-splash-hint-text {
  margin: 0;
  font-family: "Montserrat", "Space Grotesk", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

@keyframes ctfSwipeChev {
  0%,
  100% {
    opacity: 0.2;
    transform: rotate(45deg) translateY(6px);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ctf-splash-dot,
  .ctf-splash-ogspot,
  .ctf-splash-name1 {
    animation: none;
    opacity: 1;
  }

  .ctf-splash-chevron {
    animation: none;
    opacity: 0.75;
  }
}

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

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 22%, rgba(70, 214, 177, 0.16), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(246, 183, 60, 0.16), transparent 30%),
    linear-gradient(160deg, #06111b 0%, #0a1e2e 46%, #08141f 100%);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: max(1rem, var(--safe-left));
  top: -3.5rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #031019;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: calc(0.75rem + var(--safe-top));
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: var(--topbar-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding:
    calc(0.65rem + var(--safe-top))
    max(var(--page-pad), var(--safe-right))
    0.65rem
    max(var(--page-pad), var(--safe-left));
  /* Solid bar (no backdrop-filter): filter creates a containing block that
     breaks position:fixed mobile menus inside the header. */
  background: rgba(6, 18, 29, 0.96);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.82rem;
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-logo {
  width: auto;
  height: 44px;
  max-width: 130px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(91, 163, 245, 0.28));
}

.footer-brand .brand-logo {
  height: 36px;
  max-width: 96px;
}

.topbar nav {
  position: static;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--text);
}

.menu a.active,
.menu a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 110;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  width: var(--touch);
  height: var(--touch);
  min-width: var(--touch);
  min-height: var(--touch);
  padding: 0;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: rgba(91, 163, 245, 0.55);
  background: rgba(91, 163, 245, 0.12);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding:
    1.15rem
    max(var(--page-pad), var(--safe-left))
    calc(2.25rem + var(--safe-bottom))
    max(var(--page-pad), var(--safe-right));
}

section {
  margin: var(--section-gap) 0;
}

.page-hero {
  min-height: clamp(10rem, 28vh, 18rem);
  display: grid;
  align-content: end;
  padding-top: 0.5rem;
}

.page-hero h1,
.hero h1 {
  font-family: "Sora", system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.page-hero h1 {
  margin: 0.35rem 0 0.85rem;
  font-size: clamp(1.75rem, 5.2vw + 0.6rem, 3.4rem);
  max-width: 18ch;
}

.hero h1 {
  font-size: clamp(1.85rem, 5.5vw + 0.55rem, 3.85rem);
  max-width: 16ch;
  margin: 0.35rem 0 1rem;
}

.tag {
  display: inline-block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: clamp(0.98rem, 0.4vw + 0.92rem, 1.08rem);
  max-width: 58ch;
  margin: 0;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  min-height: var(--touch);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #031019;
  background: linear-gradient(120deg, var(--accent), #79f5d5);
  box-shadow: 0 8px 24px rgba(70, 214, 177, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(70, 214, 177, 0.32);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.hero-grid,
.cards,
.intel-list {
  display: grid;
  gap: 0.9rem;
}

.hero-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  margin-top: 1.75rem;
}

.hero-grid article,
.card,
.intel-list article,
.timeline,
.contact-form,
.contact-aside,
.kpi {
  background: linear-gradient(180deg, rgba(22, 49, 73, 0.92), rgba(14, 35, 54, 0.94));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(0.95rem, 2.5vw, 1.2rem);
  box-shadow: var(--shadow);
}

@media (hover: hover) and (pointer: fine) {
  .card,
  .intel-list article,
  .kpi {
    transition: border-color 0.2s ease, transform 0.2s ease;
  }

  .card:hover,
  .intel-list article:hover,
  .kpi:hover {
    border-color: rgba(70, 214, 177, 0.28);
    transform: translateY(-2px);
  }
}

.hero-grid h3 {
  margin: 0;
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2vw + 0.9rem, 1.65rem);
  letter-spacing: -0.02em;
}

.hero-grid p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.section-head h2 {
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(1.3rem, 2.6vw + 0.7rem, 2.15rem);
  margin: 0.4rem 0 1.1rem;
  max-width: 28ch;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.section-cta {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.complaint-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  align-items: start;
}

.proof-fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem 1rem;
  margin: 0;
}

.proof-fieldset legend {
  padding: 0 0.35rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.field-hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.radio-row {
  display: grid;
  gap: 0.55rem;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 18, 29, 0.55);
  cursor: pointer;
  color: var(--muted);
  font-size: 0.94rem;
}

.radio-card input {
  width: auto;
  min-height: 0;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.radio-card:has(input:checked) {
  border-color: rgba(70, 214, 177, 0.45);
  background: rgba(70, 214, 177, 0.08);
  color: var(--text);
}

.crypto-gateway {
  margin-top: 2.5rem;
}

.crypto-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  background: linear-gradient(180deg, rgba(22, 49, 73, 0.92), rgba(14, 35, 54, 0.94));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(0.95rem, 2.5vw, 1.25rem);
  box-shadow: var(--shadow);
}

.crypto-assets {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.crypto-asset {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 18, 29, 0.65);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  min-height: var(--touch);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.crypto-asset:hover,
.crypto-asset.is-active {
  border-color: rgba(70, 214, 177, 0.45);
  background: rgba(70, 214, 177, 0.1);
}

.asset-code {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.asset-amount {
  color: var(--muted);
  font-size: 0.9rem;
}

.crypto-details {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.crypto-row p {
  margin: 0.25rem 0 0;
  color: var(--text);
  word-break: break-word;
}

.wallet-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.35rem;
}

.wallet-address {
  display: block;
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(6, 18, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d7e9fb;
  font-size: 0.82rem;
  word-break: break-all;
}

.btn-small {
  padding: 0.55rem 0.9rem;
  min-height: 2.5rem;
  font-size: 0.86rem;
}

.tx-label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.crypto-actions {
  display: grid;
  gap: 0.65rem;
}

.agent-contact-panel {
  margin-top: 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(91, 163, 245, 0.35);
  background: linear-gradient(180deg, rgba(30, 55, 90, 0.55), rgba(14, 35, 54, 0.92));
  box-shadow: var(--shadow);
}

.agent-contact-title {
  margin: 0 0 0.5rem;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.1rem;
}

.agent-contact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.agent-contact-list li {
  display: grid;
  gap: 0.2rem;
}

.agent-contact-list a {
  color: #9ec9ff;
  font-weight: 600;
  word-break: break-word;
  text-decoration: none;
}

.agent-contact-list a:hover {
  text-decoration: underline;
  color: #d7e9fb;
}

.agent-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.agent-contact-actions .btn {
  flex: 1 1 10rem;
}

@media (max-width: 900px) {
  .complaint-grid,
  .crypto-panel {
    grid-template-columns: 1fr;
  }
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.card h3,
.intel-list h3 {
  margin: 0 0 0.5rem;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.08rem;
  line-height: 1.3;
}

.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-height: 100%;
}

.card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-link .card-cta {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.card-link:hover .card-cta {
  text-decoration: underline;
}

.card p,
.intel-list p,
.timeline li,
.contact-form label,
.contact-aside p {
  color: var(--muted);
}

.card p,
.intel-list p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.intel-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.map-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0a1a28;
}

#threatMap {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(48vh, 430px);
  aspect-ratio: 1000 / 430;
  background:
    linear-gradient(180deg, rgba(9, 25, 39, 0.96), rgba(9, 25, 39, 0.65)),
    radial-gradient(circle at 30% 30%, rgba(70, 214, 177, 0.12), transparent 45%);
}

.map-legend {
  display: flex;
  gap: 0.65rem 1.1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.map-legend p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-scan {
  background: #5db9ff;
}

.dot-exploit {
  background: #ff7f66;
}

.dot-block {
  background: #46d6b1;
}

.timeline ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.timeline li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  line-height: 1.5;
}

.timeline span {
  color: var(--accent-2);
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 1.75rem;
  padding-top: 0.1rem;
}

.cta-band {
  padding: 0.25rem 0 0.5rem;
}

.cta-band .lead {
  margin-bottom: 0.25rem;
}

.contact-layout {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  align-items: start;
}

.contact-aside h2 {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.expect-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
}

.contact-meta {
  display: grid;
  gap: 0.65rem;
}

.contact-meta p {
  margin: 0;
  font-size: 0.94rem;
}

.meta-label {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  color: #90a5b7;
  font-size: 0.86rem;
}

.form-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.form-status.is-success {
  background: rgba(70, 214, 177, 0.12);
  border: 1px solid rgba(70, 214, 177, 0.35);
  color: #b8f5e4;
}

.form-status.is-error {
  background: rgba(255, 127, 102, 0.1);
  border: 1px solid rgba(255, 127, 102, 0.35);
  color: #ffc9bd;
}

.split {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.kpi h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw + 1rem, 1.75rem);
  font-family: "Sora", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.kpi p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select,
textarea {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(6, 18, 29, 0.75);
  color: var(--text);
  padding: 0.78rem 0.85rem;
  font-family: inherit;
  /* 16px prevents iOS focus zoom */
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  min-height: var(--touch);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

input::placeholder,
textarea::placeholder {
  color: #6f8496;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--focus);
}

select {
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  background: rgba(4, 14, 23, 0.55);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding:
    1.5rem
    max(var(--page-pad), var(--safe-left))
    calc(1.35rem + var(--safe-bottom))
    max(var(--page-pad), var(--safe-right));
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.footer-brand strong {
  display: block;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.95rem;
}

.footer-brand p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.35rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.footer-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.footer-copy {
  margin: 0;
  color: #7d93a6;
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Tablet (portrait + compact landscape) ---------- */
@media (max-width: 1024px) {
  .hero h1,
  .page-hero h1 {
    max-width: 100%;
  }

  .section-head h2 {
    max-width: 100%;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    order: -1;
  }
}

/* Hamburger + mobile shell: phones and tablets */
@media (max-width: 1024px) {
  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 3.5rem);
  }

  .menu-toggle {
    display: inline-flex;
  }

  /* Full-viewport drawer (fixed to viewport — not trapped by header) */
  .menu {
    position: fixed;
    top: calc(var(--topbar-h) + var(--safe-top));
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: rgba(6, 16, 26, 0.98);
    border: 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem max(var(--page-pad), 1rem) calc(1.5rem + var(--safe-bottom));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 90;
  }

  .menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    width: 100%;
    min-height: 3rem;
    padding: 0.9rem 1rem;
    border-bottom: 0;
    border-radius: 12px;
    font-size: 1.08rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
  }

  .menu a:hover,
  .menu a:focus-visible {
    background: rgba(91, 163, 245, 0.12);
    color: var(--text);
  }

  .menu a.active,
  .menu a[aria-current="page"] {
    background: rgba(70, 214, 177, 0.14);
    border-bottom: 0;
    color: var(--text);
  }

  .brand span {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    max-width: min(18ch, 42vw);
  }

  .brand-logo {
    height: 36px;
    max-width: 88px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
    max-width: 32rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: none;
  }

  .section-cta .btn {
    width: 100%;
    max-width: 22rem;
  }

  .map-legend {
    gap: 0.55rem 0.9rem;
  }

  .complaint-grid,
  .crypto-panel {
    grid-template-columns: 1fr;
  }
}

/* Narrow tablet / large phone */
@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .intel-list {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 0;
    padding-top: 0.25rem;
  }

  #threatMap {
    max-height: min(38vh, 280px);
  }

  .timeline li {
    gap: 0.7rem;
    font-size: 0.95rem;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-nav {
    gap: 0.2rem;
  }

  .footer-nav a {
    padding: 0 0.45rem;
  }
}

/* Phones */
@media (max-width: 540px) {
  :root {
    --radius: 14px;
    --topbar-h: 3.85rem;
  }

  .topbar {
    min-height: var(--topbar-h);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .section-cta .btn,
  .contact-form .btn {
    width: 100%;
    max-width: none;
  }

  .brand span {
    max-width: min(16ch, 40vw);
    line-height: 1.2;
    white-space: normal;
  }

  .hero-grid article,
  .card,
  .intel-list article,
  .timeline,
  .contact-form,
  .contact-aside,
  .kpi {
    padding: 1rem;
  }

  .map-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .expect-list {
    padding-left: 1rem;
    font-size: 0.94rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .brand span {
    display: none;
  }

  .tag {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .timeline span {
    min-width: 1.5rem;
  }
}

/* Tablet landscape: keep two-up cards, roomier type */
@media (min-width: 701px) and (max-width: 1024px) {
  main {
    padding-top: 1.35rem;
  }

  .hero-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 12rem));
    width: auto;
  }
}

/* Short landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .page-hero {
    min-height: 0;
  }

  .menu {
    top: calc(3.4rem + var(--safe-top));
    left: 0;
    right: 0;
    bottom: 0;
  }

  #threatMap {
    max-height: 52vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .menu {
    transition: none;
  }
}
