:root {
  --bg: #070a0f;
  --bg-alt: #0b1018;
  --surface: #0f1622;
  --surface-2: #141d2d;
  --border: #1e2a3d;
  --border-bright: #2c3d57;
  --text: #e6edf7;
  --muted: #8b9bb4;
  --emerald: #10b981;
  --emerald-dim: rgba(16, 185, 129, 0.14);
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.15);
  --crimson: #ef4444;
  --crimson-dim: rgba(239, 68, 68, 0.15);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(16, 185, 129, 0.14), transparent 70%),
    linear-gradient(rgba(30, 42, 61, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 42, 61, 0.25) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

.mono {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 10, 15, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--emerald);
  background: var(--emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

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

.btn-sm {
  padding: 7px 13px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 0.96rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--emerald);
  color: #03150e;
}

.btn-primary:hover {
  background: #34d399;
}

.btn-binance {
  background: #f0b90b;
  color: #161102;
}

.btn-binance:hover {
  background: #fcd535;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-bright);
}

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

/* Hero */
.hero {
  padding: 64px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: center;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.live-pill, .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: var(--surface);
}

.live-pill {
  font-family: var(--font-mono);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.35);
}

.meta-pill {
  color: var(--cyan);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.accent-emerald { color: var(--emerald); }
.accent-crimson { color: var(--crimson); }
.accent-amber { color: var(--amber); }

.hero-sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 58ch;
}

.hero-sub strong {
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Terminal Card */
.terminal-card {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.terminal-title {
  font-size: 0.74rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--emerald-dim);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.terminal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 270px;
}

.alert-card-mini {
  background: #0a1019;
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: 8px;
  padding: 11px 13px;
}

.alert-card-mini.sev-CRITICAL { border-left-color: var(--crimson); }
.alert-card-mini.sev-HIGH { border-left-color: var(--amber); }

.alert-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.alert-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--muted);
}

.terminal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(7, 10, 15, 0.45);
}

.refresh-btn {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.refresh-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.skeleton-line {
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, #121a28, #1c283d, #121a28);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-line.short { width: 65%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Metrics Bar */
.metrics-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 24, 0.78);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px 0;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-val {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
}

.metric-label {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--emerald);
  margin-bottom: 8px;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
  font-size: 0.95rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(148, 163, 184, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  color: #cbd5e1;
}

/* Table */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th, .data-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--surface-2);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.muted-cell {
  text-align: center !important;
  color: var(--muted);
  padding: 28px !important;
}

.sev-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.sev-CRITICAL {
  background: var(--crimson-dim);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.sev-HIGH {
  background: var(--amber-dim);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.sev-ELEVATED, .sev-SAFE {
  background: var(--emerald-dim);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.apr-neg { color: #fca5a5; font-weight: 700; }
.apr-pos { color: #6ee7b7; font-weight: 700; }

.table-cta {
  color: #fcd535;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.table-cta:hover {
  text-decoration: underline;
}

/* TokenGuard Simulator */
.sim-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.sim-form {
  margin-top: 22px;
}

.input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.input-control {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  color: var(--text);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 0.85rem;
}

.input-control:focus {
  outline: 2px solid rgba(16, 185, 129, 0.4);
  border-color: var(--emerald);
}

#tg-chain {
  width: 120px;
}

#tg-address {
  flex: 1;
  min-width: 220px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
}

.chip {
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.discord-mock {
  background: #141923;
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 18px;
}

.discord-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--emerald-dim);
  border: 1px solid var(--emerald);
  color: var(--emerald);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
}

.bot-badge {
  background: #5865f2;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 6px;
}

.dim-time {
  margin-left: auto;
  font-size: 0.73rem;
  color: var(--muted);
}

.discord-embed {
  background: #0d121b;
  border: 1px solid var(--border);
  border-left: 4px solid var(--emerald);
  border-radius: 6px;
  padding: 14px 16px;
}

.discord-embed.status-danger { border-left-color: var(--crimson); }
.discord-embed.status-warn { border-left-color: var(--amber); }

.embed-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.embed-desc {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.embed-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 0.78rem;
}

.embed-field {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}

.embed-field span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 2px;
}

/* Binance Banner */
.binance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.12), rgba(15, 22, 34, 0.95));
  border: 1px solid rgba(240, 185, 11, 0.35);
  border-radius: 14px;
  padding: 28px 30px;
}

.binance-banner h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.binance-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.code-amber {
  color: #fcd535;
  background: rgba(240, 185, 11, 0.18);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.card-badge.muted {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
}

.price-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
}

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

.price-note {
  margin: 6px 0 20px;
  font-size: 0.78rem;
  color: var(--muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: #d4deed;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

/* FAQ */
.faq-wrap {
  max-width: 780px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: #05080d;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
}

.footer-links a, .link-btn {
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0.82rem;
}

.footer-links a:hover, .link-btn:hover {
  color: var(--emerald);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.25rem;
}

.close-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pay-option {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.pay-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.pay-option-desc {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.tag-emerald, .tag-cyan, .tag-amber {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-emerald { background: var(--emerald-dim); color: var(--emerald); }
.tag-cyan { background: rgba(6, 182, 212, 0.14); color: var(--cyan); }
.tag-amber { background: var(--amber-dim); color: #fcd535; }

.wallet-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 8px;
}

.wallet-box code {
  background: none;
  padding: 0;
  font-size: 0.76rem;
  overflow-x: auto;
}

.copy-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.wallet-meta {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .sim-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .binance-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    display: none;
  }
}
