/* CipherTracers — ciphertracers.org — Global styles */
:root {
  --bg-deep: #050810;
  --bg-card: rgba(12, 18, 32, 0.72);
  --bg-elevated: rgba(18, 28, 48, 0.85);
  --border-subtle: rgba(0, 212, 170, 0.12);
  --accent: #00d4aa;
  --accent-dim: #00a884;
  --accent-glow: rgba(0, 212, 170, 0.35);
  --gold: #e8c547;
  --text: #e8eef8;
  --text-muted: #8b9ab8;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 100% 80% at 10% -20%, rgba(0, 212, 170, 0.15), transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(100, 80, 200, 0.12), transparent 45%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 120, 180, 0.1), transparent 50%),
    var(--bg-deep);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
  animation: float-orb 18s var(--ease-out) infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: #00d4aa;
  top: -120px;
  right: -80px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: #6366f1;
  bottom: 10%;
  left: -100px;
  animation-delay: -6s;
  animation-duration: 22s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: #0891b2;
  top: 45%;
  right: 15%;
  animation-delay: -12s;
  animation-duration: 20s;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -25px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #33ffdb;
}

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

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #0891b2);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main a {
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--text);
  background: rgba(0, 212, 170, 0.08);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #041210;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  color: #041210;
  box-shadow: 0 6px 32px rgba(0, 212, 170, 0.45);
}

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

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

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  color: #fff;
  filter: brightness(1.08);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-main {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(5, 8, 16, 0.97);
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.25s;
  }

  .nav-main.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-main a {
    padding: 0.85rem 1rem;
  }

  .header-cta .btn-ghost:not(.btn-whatsapp) {
    display: none;
  }

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

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  animation: fade-up 0.8s var(--ease-out) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  animation: fade-up 0.8s var(--ease-out) 0.08s both;
}

.hero h1 .highlight {
  background: linear-gradient(120deg, var(--accent), #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34ch;
  margin: 0 0 1.75rem;
  animation: fade-up 0.8s var(--ease-out) 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fade-up 0.8s var(--ease-out) 0.24s both;
}

.hero-visual {
  position: relative;
  animation: fade-up 1s var(--ease-out) 0.2s both;
}

.hero-visual .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.hero-visual .live-pill {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.stat-card:hover {
  border-color: rgba(0, 212, 170, 0.35);
  transform: translateY(-3px);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: rgba(0, 212, 170, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 212, 170, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border-subtle);
}

.testimonial .quote {
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.testimonial .author {
  font-weight: 600;
  margin: 0;
}

.testimonial .role {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

.cta-band {
  margin: 2rem 0;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.12), rgba(99, 102, 241, 0.1));
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.page-hero {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.page-hero .crumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}

.content-block {
  max-width: 760px;
  margin: 0 auto;
}

.content-block h2 {
  font-family: var(--font-display);
  margin-top: 2.25rem;
}

.content-block ul {
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.contact-card a.big {
  font-size: 1.15rem;
  font-weight: 600;
}

form .field {
  margin-bottom: 1rem;
}

form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.prose {
  color: var(--text-muted);
  max-width: 720px;
}

.prose.wide {
  max-width: 820px;
}

.prose h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: 2rem;
}

.prose h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.faq-item .faq-body p {
  margin: 0 0 0.65rem;
}

.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: border-color 0.25s;
}

.blog-row:hover {
  border-color: rgba(0, 212, 170, 0.28);
}

.blog-row h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.blog-row .excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.blog-row .meta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

@media (max-width: 640px) {
  .blog-row {
    grid-template-columns: 1fr;
  }
}

.service-toc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.4rem 1.25rem;
  font-size: 0.88rem;
  text-align: left;
}

.service-toc a {
  color: var(--text-muted);
  display: block;
  padding: 0.2rem 0;
}

.service-toc a:hover {
  color: var(--accent);
}

.service-card {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Live TRON recoveries feed */
.tron-recoveries-section .tron-recoveries-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0.5rem auto 0;
  line-height: 1.55;
}

.tron-recoveries-root {
  margin-top: 1.5rem;
}

.tron-recoveries-status {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.tron-recoveries-error {
  color: #fca5a5;
}

.tron-recoveries-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.tron-recoveries-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tron-recoveries-table th,
.tron-recoveries-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.tron-recoveries-table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
}

.tron-recoveries-table tbody tr:last-child td {
  border-bottom: none;
}

.tron-recoveries-table tbody tr:hover td {
  background: rgba(0, 212, 170, 0.04);
}

.tron-recovery-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
}

.tron-recovery-addrs {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.tron-recoveries-meta {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
