/* ============================================
   Bitfetch Coin (BFC) — Modern Responsive Site
   Inspired by bitfetch.io aesthetic
   ============================================ */

:root {
  --bg-primary: #050810;
  --bg-secondary: #0a0f1a;
  --bg-card: rgba(15, 23, 42, 0.55);
  --bg-card-hover: rgba(20, 30, 55, 0.75);
  --border: rgba(56, 189, 248, 0.18);
  --border-hover: rgba(56, 189, 248, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #c8d6e8;
  --text-muted: #94a8c4;
  --text-bright: #f0f9ff;
  --text-accent: #7dd3fc;
  --accent: #38bdf8;
  --accent-bright: #67e8f9;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --gold: #f5c842;
  --gold-light: #ffe566;
  --gold-dark: #c9982f;
  --gold-cream: #fff8e7;
  --blue-dark: #1e40af;
  --blue-mid: #3b82f6;
  --blue-bright: #93c5fd;
  --blue-deep: #1e3a8a;
  --gradient-blue-dark: linear-gradient(135deg, #93c5fd 0%, #3b82f6 45%, #1d4ed8 100%);
  --gradient-red: linear-gradient(135deg, #fecaca 0%, #ef4444 40%, #dc2626 75%, #b91c1c 100%);
  --hero-red: #ef4444;
  --hero-red-dark: #dc2626;
  --hero-red-light: #fca5a5;
  --hero-red-bright: #ff3333;
  --gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(129, 140, 248, 0.15) 100%);
  --shadow-text: 0 1px 3px rgba(0, 0, 0, 0.85);
  --shadow-text-md: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 1px rgba(0, 0, 0, 0.9);
  --shadow-text-lg: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.45);
  --shadow-text-glow: 0 0 20px rgba(56, 189, 248, 0.35);
  --shadow-text-hero: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 32px rgba(59, 130, 246, 0.4);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --header-height: 72px;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  text-shadow: var(--shadow-text);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-bright);
  text-shadow: var(--shadow-text-md);
}

p {
  text-shadow: var(--shadow-text);
}

/* ========== Animated Mesh Background ========== */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.mesh-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(5, 8, 16, 0.15) 0%, rgba(5, 8, 16, 0.55) 100%);
}

.mesh-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-accent);
  text-shadow: var(--shadow-text);
}

/* ========== Header / Nav ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(5, 8, 16, 0.95);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.logo-icon {
  color: var(--accent-bright);
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.logo-bfc {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--gradient-blue-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 16px rgba(59, 130, 246, 0.45));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-shadow: var(--shadow-text);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--accent-bright);
  text-shadow: var(--shadow-text-md), var(--shadow-text-glow);
}

.nav-cta {
  background: var(--gradient) !important;
  color: #050810 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 999px;
  font-weight: 800 !important;
  text-shadow: none !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  background: transparent;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 18%;
  transform: translateY(6%);
  filter: brightness(1.18) contrast(1.12) saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(5, 8, 16, 0.25) 0%,
      rgba(5, 8, 16, 0.42) 40%,
      rgba(5, 8, 16, 0.62) 70%,
      rgba(5, 8, 16, 0.88) 100%),
    radial-gradient(ellipse at 50% 12%, rgba(245, 200, 66, 0.08) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
  max-width: 900px;
  width: 100%;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 0.35rem;
  max-width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--hero-red-light);
  background: rgba(40, 8, 8, 0.85);
  border: 1px solid var(--hero-red);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  line-height: 1.45;
  text-align: center;
  text-shadow: var(--shadow-text-md), 0 0 16px rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  word-break: break-word;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--hero-red-bright);
  background: none;
  -webkit-text-fill-color: var(--hero-red-bright);
  background-clip: unset;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 30px rgba(239, 68, 68, 0.55);
  filter: none;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--hero-red);
  margin-bottom: 1.25rem;
  text-shadow: var(--shadow-text-lg), 0 0 18px rgba(239, 68, 68, 0.35);
}

.hero-desc {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--hero-red-light);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  text-shadow: var(--shadow-text-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-shadow: var(--shadow-text);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--gradient);
  color: #050810;
  text-shadow: none;
  font-weight: 800;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-bright);
  border: 1px solid var(--accent-bright);
  backdrop-filter: blur(8px);
  text-shadow: var(--shadow-text-md);
  font-weight: 700;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1rem;
}

.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--hero-red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  animation: bounce 2s infinite;
  position: relative;
  z-index: 3;
  text-shadow: var(--shadow-text-md), 0 0 16px rgba(239, 68, 68, 0.45);
}

.hero-scroll svg {
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.55));
  stroke: var(--hero-red);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ========== Sections ========== */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
  background: rgba(5, 8, 16, 0.52);
}

.section .container {
  position: relative;
  z-index: 3;
}

.section:nth-child(even) {
  background: rgba(10, 15, 26, 0.58);
}

.metrics {
  background: rgba(5, 8, 16, 0.48);
}

.trust {
  background: rgba(5, 8, 16, 0.48);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
  text-shadow: var(--shadow-text-md), var(--shadow-text-glow);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-bright);
  text-shadow: var(--shadow-text-lg);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  font-weight: 500;
  text-shadow: var(--shadow-text-md);
}

/* ========== Metrics ========== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(8px);
}

.metric-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.metric-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.metric-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-accent);
  margin-bottom: 0.5rem;
  text-shadow: var(--shadow-text-md);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
  text-shadow: var(--shadow-text-lg);
}

.metric-detail {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-shadow: var(--shadow-text);
}

.verify-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.verify-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}

.verify-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.verify-status {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  text-shadow: var(--shadow-text-md), var(--shadow-text-glow);
}

.verify-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-shadow: var(--shadow-text);
}

.verify-address {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-bright);
  word-break: break-all;
  line-height: 1.5;
  text-shadow: var(--shadow-text-md);
}

.verify-link {
  font-size: 0.95rem;
  color: var(--accent-bright);
  font-weight: 700;
  text-shadow: var(--shadow-text-md), var(--shadow-text-glow);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--text-bright);
  text-shadow: var(--shadow-text-md);
}

/* ========== Transparency / Wallets ========== */
.transparency {
  background: rgba(10, 15, 26, 0.58);
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.wallet-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(8px);
}

.wallet-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.wallet-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wallet-icon {
  font-size: 1.5rem;
}

.wallet-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  text-shadow: var(--shadow-text-md);
}

.wallet-address {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-accent);
  word-break: break-all;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: color var(--transition), border-color var(--transition);
  text-shadow: var(--shadow-text);
}

.wallet-card:hover .wallet-address {
  color: var(--text-bright);
  border-color: rgba(56, 189, 248, 0.5);
  text-shadow: var(--shadow-text-md), var(--shadow-text-glow);
}

.wallet-bscscan {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin-top: auto;
  text-shadow: var(--shadow-text-md), var(--shadow-text-glow);
}

/* ========== Trust Grid ========== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.trust-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.trust-card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.trust-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-bright);
  text-shadow: var(--shadow-text-md);
}

.trust-card p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-shadow: var(--shadow-text);
}

/* ========== Community / Social ========== */
.community {
  background: rgba(10, 15, 26, 0.58);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.social-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.social-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.social-icon-telegram svg {
  width: 3rem;
  height: 3rem;
  display: block;
}

.social-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-bright);
  text-shadow: var(--shadow-text-md);
}

.social-card p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-shadow: var(--shadow-text);
}

/* ========== Footer ========== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.65);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-bright);
  text-shadow: var(--shadow-text-md);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-shadow: var(--shadow-text);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-bright);
  text-shadow: var(--shadow-text-md), var(--shadow-text-glow);
}

.footer-copy {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-shadow: var(--shadow-text);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wallet-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-desc {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --shadow-text: 0 1px 2px rgba(0, 0, 0, 0.9);
    --shadow-text-md: 0 1px 4px rgba(0, 0, 0, 0.85);
    --shadow-text-lg: 0 2px 8px rgba(0, 0, 0, 0.9);
  }

  .container {
    padding: 0 1rem;
  }

  /* Softer mesh on mobile — keeps text readable */
  .mesh-bg {
    opacity: 0.35;
  }

  /* ---- Hero: layout & video ---- */
  .header {
    background: rgba(5, 8, 16, 0.72);
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    /* Reserve full header + notch space so content never sits under nav */
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    padding-bottom: 2rem;
    box-sizing: border-box;
  }

  .hero-video-wrap {
    position: absolute;
    inset: 0;
    min-height: 100%;
    z-index: 0;
  }

  .hero-video {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    /* Center the coin in the visible area below the header */
    object-position: center 22%;
    transform: none;
    filter: brightness(1.15) contrast(1.12) saturate(1.08);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
  }

  .hero-overlay {
    background:
      linear-gradient(to bottom,
        rgba(5, 8, 16, 0.05) 0%,
        rgba(5, 8, 16, 0.1) 25%,
        rgba(5, 8, 16, 0.28) 50%,
        rgba(5, 8, 16, 0.72) 78%,
        rgba(5, 8, 16, 0.9) 100%);
  }

  .hero-content {
    flex-shrink: 0;
    margin-top: auto;
    /* Content padding only — header offset handled by .hero padding-top */
    padding: 2rem 0.75rem 1.5rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  /* Text panel — compact, does not cover the coin area above */
  .hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 16, 0.62);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  }

  /* ---- Hero: typography (high contrast on mobile) ---- */
  .hero-badge {
    font-size: clamp(0.62rem, 2.6vw, 0.75rem);
    letter-spacing: 0.06em;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1rem;
    color: var(--hero-red-light);
    background: rgba(40, 8, 8, 0.92);
    border-color: var(--hero-red);
    line-height: 1.5;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8.5vw, 2.65rem);
    line-height: 1.15;
    margin-bottom: 0.65rem;
    color: var(--hero-red-bright);
    background: none;
    -webkit-text-fill-color: var(--hero-red-bright);
    filter: none;
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.95),
      0 0 22px rgba(239, 68, 68, 0.55);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4.2vw, 1.25rem);
    line-height: 1.35;
    margin-bottom: 1rem;
    color: var(--hero-red);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 14px rgba(239, 68, 68, 0.35);
  }

  .hero-desc {
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    color: var(--hero-red-light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }

  .btn {
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .hero-scroll {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    margin-top: 0.25rem;
  }

  /* ---- Navigation ---- */
  .nav-toggle {
    display: flex;
    z-index: 1002;
  }

  .nav-logo {
    font-size: 1.1rem;
    z-index: 1002;
  }

  .logo-bfc {
    font-size: 1.2rem;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 1001;
    flex-direction: column;
    gap: 0;
    max-height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    background: rgba(5, 8, 16, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.875rem 1.25rem;
    text-align: center;
    font-size: 1rem;
  }

  .nav-cta {
    margin: 0.5rem 1rem 0 !important;
    text-align: center;
    display: block !important;
  }

  /* ---- Sections ---- */
  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    line-height: 1.4;
  }

  .section-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    line-height: 1.2;
    word-wrap: break-word;
  }

  .section-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 0.25rem;
  }

  .verify-cards {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .wallet-grid,
  .trust-grid,
  .social-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .metric-card,
  .wallet-card,
  .trust-card,
  .social-card,
  .verify-card {
    padding: 1.25rem 1rem;
  }

  .metric-value {
    font-size: clamp(1.25rem, 5vw, 1.45rem);
    word-break: break-word;
  }

  .verify-address,
  .wallet-address {
    font-size: 0.68rem;
    line-height: 1.55;
    padding: 0.65rem;
    overflow-wrap: anywhere;
  }

  .trust-badges {
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.78rem;
    padding: 0.5rem 0.85rem;
    line-height: 1.35;
    text-align: center;
  }

  .footer-links {
    gap: 1rem 1.25rem;
  }

  .footer-brand {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.875rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 0.5rem);
  }

  .hero-video {
    object-position: center 20%;
  }

  .hero-content {
    padding: 1.75rem 0.5rem 1.25rem;
  }

  .hero-content::before {
    border-radius: var(--radius);
  }

  .hero-badge {
    letter-spacing: 0.04em;
    padding: 0.35rem 0.65rem;
    border-radius: 12px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }

  .hero-desc {
    font-size: 0.875rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.8rem 1rem;
  }

  .trust-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .badge {
    width: 100%;
  }

  .social-card {
    padding: 2rem 1rem;
  }

  .metric-card h3 {
    letter-spacing: 0.06em;
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  :root {
    --header-height: 58px;
  }

  .hero {
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 0.75rem);
  }

  .hero-video {
    object-position: center 18%;
  }

  .hero-badge {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .logo-icon,
  .logo-bfc {
    font-size: 1.05rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .mesh-bg {
    display: none;
  }
}
