/* ════════════════════════════════════════════════════════════
   IRONNODE — AI Crypto Wallet Security
   Main Stylesheet
   ════════════════════════════════════════════════════════════ */

/* ── CSS Variables / Design Tokens ─────────────────────────── */
:root {
  /* Colors */
  --bg-base: #020408;
  --bg-surface: #080d18;
  --bg-card: rgba(8, 20, 42, 0.85);
  --bg-card-hover: rgba(12, 28, 58, 0.95);
  --bg-glass: rgba(0, 212, 255, 0.04);
  --bg-glass-hover: rgba(0, 212, 255, 0.08);

  --primary: #00d4ff;
  --primary-dim: rgba(0, 212, 255, 0.15);
  --primary-glow: rgba(0, 212, 255, 0.4);
  --secondary: #00ff88;
  --secondary-dim: rgba(0, 255, 136, 0.12);
  --secondary-glow: rgba(0, 255, 136, 0.35);
  --accent-orange: #ff8c42;
  --accent-purple: #9b59ff;
  --accent-red: #ff3366;
  --accent-yellow: #ffd700;

  --text-primary: #e8f0fe;
  --text-secondary: #94a3b8;
  --text-muted: #4a5568;
  --text-code: #00ff88;

  --border: rgba(0, 212, 255, 0.12);
  --border-hover: rgba(0, 212, 255, 0.3);
  --border-card: rgba(255, 255, 255, 0.06);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --container-max: 1200px;
  --section-py: clamp(60px, 8vw, 100px);
  --card-radius: 16px;
  --card-radius-sm: 10px;

  /* Shadows */
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 212, 255, 0.1);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.2);
  --shadow-glow-green: 0 0 40px rgba(0, 255, 136, 0.2);

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-base: 0.25s ease;
  --trans-slow: 0.4s ease;
  --trans-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-base);
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

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

/* ── Canvas (particles) ─────────────────────────────────────── */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-underline {
  position: relative;
  color: var(--primary);
}

.brand-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: all var(--trans-base);
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0099bb 100%);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

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

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

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
  transform: translateY(-2px);
}

.btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.btn:hover .btn-glow { transform: scale(1); }

/* ── Navigation ─────────────────────────────────────────────── */
#mainHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--trans-base);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid transparent;
  transition: all var(--trans-base);
  max-width: 1400px;
  margin: 0 auto;
}

#mainHeader.scrolled .navbar {
  background: rgba(2, 4, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  padding: 12px 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Dynamic Logo Animations & Interactive States */
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(0, 212, 255, 0.3)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.75)); }
}

.shield-core-node {
  transform-origin: 20px 19.5px;
  animation: pulse-glow 3s ease-in-out infinite;
}

.shield-core-ring {
  transform-origin: 20px 19.5px;
  animation: pulse-glow 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.shield-segment {
  transition: transform var(--trans-spring), filter var(--trans-base);
}

.left-prism {
  transform-origin: 12.5px 18px;
}

.right-prism {
  transform-origin: 27.5px 19px;
}

.mid-prism {
  transform-origin: 20px 16.5px;
}

/* Interactive Hover States */
.nav-logo:hover .left-prism {
  transform: scale(1.05) translate(0.5px, 0.5px);
  filter: brightness(1.12);
}

.nav-logo:hover .right-prism {
  transform: scale(1.05) translate(-0.5px, -0.5px);
  filter: brightness(1.12);
}

.nav-logo:hover .mid-prism {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.nav-logo:hover .shield-core-node {
  fill: #ffffff;
  filter: drop-shadow(0 0 8px #00d4ff);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.logo-accent { color: var(--primary); }

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

.nav-link {
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--trans-base);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-dim);
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--trans-base);
}

.nav-social-link:hover {
  color: var(--primary);
  background: var(--primary-dim);
  transform: translateY(-1px);
}

.nav-social-link svg {
  width: 18px;
  height: 18px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--trans-base);
  z-index: 1001;
}

.hamburger:hover { background: var(--primary-dim); }

.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--trans-base);
}

.hamburger.active .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Section Headers ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Animate on Scroll ──────────────────────────────────────── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--primary-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--primary);
  font-family: var(--font-mono);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.6); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.75;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 24px 40px;
  max-width: 700px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 8px 20px;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-card);
  flex-shrink: 0;
}

/* Hero Decorations */
.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hex-node {
  position: absolute;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.08;
  animation: float 6s ease-in-out infinite;
}

.hex-node-1 { top: 15%; left: 5%; animation-delay: 0s; font-size: 6rem; }
.hex-node-2 { top: 60%; right: 4%; animation-delay: 2s; font-size: 5rem; }
.hex-node-3 { bottom: 10%; left: 12%; animation-delay: 4s; font-size: 3rem; color: var(--secondary); }

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--primary);
  opacity: 0;
  animation: pulse-expand 4s ease-out infinite;
}

.pulse-ring-1 { width: 200px; height: 200px; top: 20%; right: 8%; animation-delay: 0s; }
.pulse-ring-2 { width: 150px; height: 150px; bottom: 25%; left: 6%; animation-delay: 2s; border-color: var(--secondary); }

/* ── FEATURES ────────────────────────────────────────────────── */
.features {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: all var(--trans-base);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  opacity: 0;
  transition: opacity var(--trans-base);
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

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

.feature-card-highlight {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(0, 255, 136, 0.04) 100%);
  border-color: rgba(0, 212, 255, 0.2);
}

.feature-icon-wrap { margin-bottom: 20px; }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--trans-spring);
}

.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-3deg); }

.feature-icon-blue { background: rgba(0, 212, 255, 0.12); color: var(--primary); }
.feature-icon-green { background: rgba(0, 255, 136, 0.1); color: var(--secondary); }
.feature-icon-orange { background: rgba(255, 140, 66, 0.1); color: var(--accent-orange); }
.feature-icon-red { background: rgba(255, 51, 102, 0.1); color: var(--accent-red); }
.feature-icon-purple { background: rgba(155, 89, 255, 0.1); color: var(--accent-purple); }
.feature-icon-glow {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 136, 0.1));
  color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.tag-blue { background: rgba(0, 212, 255, 0.1); color: var(--primary); border: 1px solid rgba(0, 212, 255, 0.2); }
.tag-green { background: rgba(0, 255, 136, 0.1); color: var(--secondary); border: 1px solid rgba(0, 255, 136, 0.2); }
.tag-orange { background: rgba(255, 140, 66, 0.1); color: var(--accent-orange); border: 1px solid rgba(255, 140, 66, 0.2); }
.tag-red { background: rgba(255, 51, 102, 0.1); color: var(--accent-red); border: 1px solid rgba(255, 51, 102, 0.2); }
.tag-purple { background: rgba(155, 89, 255, 0.1); color: var(--accent-purple); border: 1px solid rgba(155, 89, 255, 0.2); }
.tag-glow { background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 136, 0.1)); color: var(--primary); border: 1px solid rgba(0, 212, 255, 0.25); }

/* ── TERMINAL ────────────────────────────────────────────────── */
.terminal-section {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 1;
}

.terminal-wrapper {
  background: rgba(2, 8, 16, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(0, 212, 255, 0.08);
  margin-bottom: 20px;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.terminal-clear-btn {
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  transition: all var(--trans-fast);
}

.terminal-clear-btn:hover {
  color: var(--accent-red);
  background: rgba(255, 51, 102, 0.1);
}

.terminal-body {
  padding: 20px;
  min-height: 420px;
  max-height: 560px;
  overflow-y: auto;
  cursor: text;
  display: flex;
  flex-direction: column;
}

.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.15); border-radius: 3px; }
.terminal-body::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.3); }

.terminal-output {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-output .t-line { display: block; }
.terminal-output .t-cmd { color: var(--secondary); }
.terminal-output .t-info { color: var(--primary); }
.terminal-output .t-success { color: var(--secondary); }
.terminal-output .t-warning { color: var(--accent-yellow); }
.terminal-output .t-error { color: var(--accent-red); }
.terminal-output .t-muted { color: var(--text-muted); }
.terminal-output .t-white { color: var(--text-primary); }
.terminal-output .t-orange { color: var(--accent-orange); }
.terminal-output .t-purple { color: var(--accent-purple); }
.terminal-output .t-bold { font-weight: 700; }
.terminal-output .t-ascii { color: var(--primary); font-size: 0.68rem; line-height: 1.3; }

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 212, 255, 0.06);
}

.terminal-prompt {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.prompt-user { color: var(--secondary); }
.prompt-at { color: var(--text-muted); }
.prompt-host { color: var(--primary); }
.prompt-colon { color: var(--text-muted); }
.prompt-tilde { color: var(--accent-yellow); }
.prompt-dollar { color: var(--text-primary); margin-left: 2px; }

.terminal-input {
  flex: 1;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  caret-color: var(--primary);
}

.terminal-input::placeholder { color: var(--text-muted); opacity: 0.5; }

.quick-commands {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.quick-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-btn {
  padding: 5px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary);
  transition: all var(--trans-fast);
}

.quick-btn:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--text-primary);
}

/* ── SCANNER ─────────────────────────────────────────────────── */
.scanner-section {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 1;
}

.scanner-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}

.scanner-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 28px;
}

.scanner-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scanner-input-wrap {
  position: relative;
  margin-bottom: 8px;
}

.scanner-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.scanner-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 14px 14px 46px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: border-color var(--trans-base), box-shadow var(--trans-base);
}

.scanner-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.scanner-input::placeholder { color: var(--text-muted); opacity: 0.6; }

.input-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.scanner-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--trans-fast);
}

.checkbox-label:hover { color: var(--text-primary); }

.checkbox-label input[type="checkbox"] { display: none; }

.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg) translate(-1px, -1px);
}

.scanner-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.77rem;
  color: var(--text-muted);
}

/* Results Panel */
.scanner-results {
  min-height: 480px;
}

.results-placeholder {
  height: 100%;
  min-height: 480px;
  background: var(--bg-card);
  border: 1px dashed var(--border-card);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  color: var(--text-muted);
  padding: 40px;
}

.placeholder-icon { opacity: 0.25; color: var(--primary); }

.results-placeholder p { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.results-placeholder span { font-size: 0.85rem; }

/* Loading */
.results-loading {
  min-height: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px;
}

.loading-animation {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  animation: spin 1.2s linear infinite;
}

.loading-hex {
  font-size: 2rem;
  color: var(--primary);
  animation: pulse-hex 2s ease-in-out infinite;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

.load-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.4;
  transition: all 0.4s ease;
}

.load-step.active {
  opacity: 1;
  color: var(--primary);
}

.load-step.done {
  opacity: 0.7;
  color: var(--secondary);
}

.ls-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.load-step.active .ls-dot {
  animation: pulse-dot 1s infinite;
}

/* Results Output */
.results-output {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 28px;
}

/* Risk Score Widget */
.risk-score-widget {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.risk-gauge {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

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

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

.risk-score-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.risk-score-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.risk-details { flex: 1; min-width: 180px; }

.risk-level-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.risk-summary { font-size: 0.9rem; color: var(--text-secondary); }

/* Result Info Grid */
.result-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.result-info-item {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--border-card);
}

.result-info-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.result-info-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

/* Flags List */
.flags-list { margin-bottom: 20px; }

.flags-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.flag-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.flag-item.flag-danger { background: rgba(255, 51, 102, 0.08); border: 1px solid rgba(255, 51, 102, 0.2); color: #ff8099; }
.flag-item.flag-warning { background: rgba(255, 215, 0, 0.06); border: 1px solid rgba(255, 215, 0, 0.15); color: #ffd700; }
.flag-item.flag-safe { background: rgba(0, 255, 136, 0.06); border: 1px solid rgba(0, 255, 136, 0.15); color: var(--secondary); }
.flag-item.flag-info { background: rgba(0, 212, 255, 0.06); border: 1px solid rgba(0, 212, 255, 0.15); color: var(--primary); }

/* Recent Txs */
.tx-list { margin-bottom: 20px; }

.tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-card);
  font-size: 0.82rem;
}

.tx-item:last-child { border-bottom: none; }

.tx-hash {
  font-family: var(--font-mono);
  color: var(--primary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-value { color: var(--text-secondary); white-space: nowrap; }
.tx-type {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.tx-type.out { background: rgba(255, 51, 102, 0.1); color: var(--accent-red); }
.tx-type.in { background: rgba(0, 255, 136, 0.1); color: var(--secondary); }
.tx-type.contract { background: rgba(155, 89, 255, 0.1); color: var(--accent-purple); }

/* ── DOCS ─────────────────────────────────────────────────────── */
.docs-section {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 1;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.docs-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 16px;
  position: sticky;
  top: 80px;
}

.docs-sidebar ul { display: flex; flex-direction: column; gap: 4px; }

.doc-nav-btn {
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  transition: all var(--trans-fast);
}

.doc-nav-btn:hover, .doc-nav-btn.active {
  background: var(--primary-dim);
  color: var(--primary);
}

.docs-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 36px;
  min-height: 500px;
}

.docs-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.docs-content h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--primary);
}

.docs-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.docs-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.docs-content ul li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0, 212, 255, 0.08);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.docs-content pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.docs-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  color: var(--secondary);
  white-space: pre;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.docs-content th, .docs-content td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
}

.docs-content th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.docs-content td { color: var(--text-secondary); }

.docs-content .warning-box {
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  font-size: 0.875rem;
  color: var(--accent-yellow);
}

.docs-content .info-box {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  font-size: 0.875rem;
  color: var(--primary);
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 1;
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 255, 136, 0.03) 100%);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
}

.cta-bg-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
  position: relative;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
}

.cta-trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.trust-item svg { color: var(--secondary); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-card);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo { margin-bottom: 16px; }

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--secondary-dim);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--secondary);
  font-family: var(--font-mono);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--trans-base);
}

.footer-social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-dim);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--trans-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-card);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

.footer-network-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.network-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse-dot 2s infinite;
}

/* ── Mobile Overlay ──────────────────────────────────────────── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 20px;
  background: rgba(10, 20, 40, 0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 320px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show { transform: translateX(0); }
.toast-success { border-color: rgba(0, 255, 136, 0.3); }
.toast-error { border-color: rgba(255, 51, 102, 0.3); }
.toast-info { border-color: rgba(0, 212, 255, 0.3); }

/* ── Utility classes ─────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Keyframe Animations ─────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-expand {
  0% { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

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

@keyframes pulse-hex {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

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

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet / Medium Screens (<= 900px) ──────────────────────── */
@media (max-width: 900px) {
  .scanner-layout {
    grid-template-columns: 1fr;
  }

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

  .docs-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 12px;
  }

  .docs-sidebar ul {
    flex-direction: row;
    gap: 4px;
    min-width: max-content;
  }

  .doc-nav-btn {
    white-space: nowrap;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

/* ── Mobile (< 768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 16px;
  }

  #mainHeader.scrolled .navbar {
    padding: 10px 16px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    background: rgba(4, 10, 22, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    padding: 80px 24px 32px;
    gap: 6px;
    z-index: 999;
    transform: translateX(110%);
    transition: transform var(--trans-slow);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-links .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
  }

  .mobile-overlay.open {
    display: block;
  }

  .hamburger { display: flex; }

  .hero { padding: 100px 0 60px; }

  .hero-stats {
    padding: 16px 20px;
    gap: 0;
  }

  .stat-item {
    min-width: 80px;
    padding: 8px 12px;
  }

  .stat-divider { height: 30px; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card { padding: 22px; }

  .terminal-body {
    min-height: 320px;
    max-height: 400px;
    padding: 14px;
  }

  .terminal-output { font-size: 0.72rem; }
  .terminal-input { font-size: 0.72rem; }
  .terminal-prompt { font-size: 0.72rem; }

  .terminal-title { display: none; }

  .scanner-form-card { padding: 20px; }

  .docs-content { padding: 20px; }

  .result-info-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-trust { flex-direction: column; align-items: center; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 260px; justify-content: center; }

  .quick-commands { flex-direction: column; align-items: flex-start; }
}

/* ── Small Mobile (< 420px) ──────────────────────────────────── */
@media (max-width: 420px) {
  .container { padding: 0 16px; }

  .hero-stats {
    flex-direction: column;
    gap: 0;
  }

  .stat-divider {
    width: 80%;
    height: 1px;
    margin: 0 auto;
  }

  .stat-item { padding: 12px 20px; }

  .terminal-output .t-ascii {
    font-size: 0.45rem;
    line-height: 1.2;
  }

  .risk-score-widget { flex-direction: column; align-items: flex-start; }
}
