/* Molt Oracle — Professional Dark Theme */
:root {
  --bg: #08080c;
  --bg-container: #0c0c10;
  --bg-card: #101014;
  --bg-elevated: #16161d;
  --bg-hover: #1c1c26;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(232, 184, 109, 0.3);
  --text: #f5f5f7;
  --text-muted: #a0a0b0;
  --text-dim: #606070;
  --accent: #f0c060;
  --accent-bright: #ffd080;
  --accent-dim: rgba(240, 192, 96, 0.15);
  --accent-glow: rgba(240, 192, 96, 0.4);
  --verified: #34d399;
  --verified-dim: rgba(52, 211, 153, 0.15);
  --verified-glow: rgba(52, 211, 153, 0.4);
  --risk: #f87171;
  --risk-dim: rgba(248, 113, 113, 0.15);
  --link: #60a5fa;
  --link-dim: rgba(96, 165, 250, 0.15);
  --purple: #a78bfa;
  --purple-dim: rgba(167, 139, 250, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  font-size: 15px;
}

::selection {
  background: var(--accent-dim);
  color: var(--accent-bright);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-bright);
}

/* App container */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(240, 192, 96, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(52, 211, 153, 0.04), transparent 40%),
    var(--bg);
}

/* ===== NAVIGATION ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--border);
  overflow: visible;
  background: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}

.nav-brand:hover {
  opacity: 0.85;
  color: var(--text);
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: visible;
}

.nav-brand .logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  transform: scale(2.4);
  transform-origin: center center;
}


.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
}

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

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ===== MAIN CONTENT ===== */
.main {
  flex: 1;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 2rem 5rem;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 4rem 0 5rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
  filter: blur(60px);
}

.hero-stats {
  display: inline-flex;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 1rem 1.75rem;
  width: 140px;
  flex-shrink: 0;
  background: rgba(22, 22, 29, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 500;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #ef4444;
  position: relative;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  color: var(--text);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 560px;
  line-height: 1.6;
}

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

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #e0a040 100%);
  color: #0a0a0d;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
}

.btn-ghost::before {
  display: none;
}

.btn-ghost:hover {
  color: var(--accent);
  background: var(--accent-dim);
  transform: none;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: all var(--transition-slow);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-elevated {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border-color: var(--border-strong);
}

.card-glow:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge-verified {
  background: var(--verified-dim);
  color: var(--verified);
  border-color: rgba(52, 211, 153, 0.3);
}

.badge-builder {
  background: var(--link-dim);
  color: var(--link);
  border-color: rgba(96, 165, 250, 0.3);
}

.badge-trader {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(240, 192, 96, 0.3);
}

.badge-researcher {
  background: var(--purple-dim);
  color: var(--purple);
  border-color: rgba(167, 139, 250, 0.3);
}

.badge-risk {
  background: var(--risk-dim);
  color: var(--risk);
  border-color: rgba(248, 113, 113, 0.3);
}

/* ===== SCORE DISPLAY ===== */
.score-display {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 40px var(--accent-glow);
}

.score-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-top: 0.35rem;
  font-weight: 600;
}

/* ===== ADDRESS / HASH ===== */
.address {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

.address-short {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 1.25rem;
}

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

/* Step cards — How it works */
.step-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.step-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 2rem 1.75rem;
  min-height: 220px;
}

.step-card .step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card .step-icon svg {
  width: 26px;
  height: 26px;
}

.step-card .step-icon.step-1 { background: var(--accent-dim); color: var(--accent); }
.step-card .step-icon.step-2 { background: var(--verified-dim); color: var(--verified); }
.step-card .step-icon.step-3 { background: var(--link-dim); color: var(--link); }

.step-card .step-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.step-card .step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .step-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav { padding: 1rem; }
  .nav-links { gap: 0.25rem; }
  .nav-links a { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
  .main { padding: 1.5rem 1rem 3rem; }
  .hero { padding: 2rem 0 3rem; }
  .hero h1 { font-size: 2rem; }
}

/* ===== AUDIT / LIST ITEMS ===== */
.audit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 0.75rem;
  transition: all var(--transition);
}

.audit-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.audit-item:last-child {
  margin-bottom: 0;
}

.audit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  font-weight: 600;
}

.audit-icon.merged { background: var(--verified-dim); color: var(--verified); }
.audit-icon.onchain { background: var(--accent-dim); color: var(--accent); }
.audit-icon.uptime { background: var(--link-dim); color: var(--link); }
.audit-icon.artifact { background: var(--purple-dim); color: var(--purple); }

.audit-body {
  flex: 1;
  min-width: 0;
}

.audit-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: var(--text);
}

.audit-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  line-height: 1.5;
}

.audit-meta a {
  color: var(--link);
}

.audit-meta a:hover {
  text-decoration: underline;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  min-width: 120px;
  transition: all var(--transition);
}

.stat-box:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: 0.25rem;
  font-weight: 600;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-bar .filter-search {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.filter-bar .filter-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.filter-bar .filter-search::placeholder {
  color: var(--text-dim);
}

.filter-bar .filter-select {
  padding: 0.75rem 2rem 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  min-width: 160px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239898a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color var(--transition);
}

.filter-bar .filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-bar .filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: -0.25rem;
}

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-elevated);
}

th:first-child {
  border-top-left-radius: var(--radius);
}

th:last-child {
  border-top-right-radius: var(--radius);
}

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

tbody tr {
  transition: background var(--transition);
}

tbody tr:hover td {
  background: var(--bg-hover);
}

/* ===== FORMS ===== */
.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

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

.input-group input::placeholder {
  color: var(--text-dim);
}

.input-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== CODE BLOCK ===== */
.code-block-wrap {
  position: relative;
}

.code-block-wrap .code-block {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  padding-right: 3rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.code-block-wrap .copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.code-block-wrap .copy-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
  opacity: 1;
}

.code-block-wrap .copy-btn.copied {
  color: var(--verified);
  border-color: var(--verified);
  background: var(--verified-dim);
}

.code-block-wrap .copy-icon {
  flex-shrink: 0;
}

pre {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

pre code {
  background: none;
  padding: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2em 0.5em;
  border-radius: var(--radius-xs);
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg);
}

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

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

/* ===== UTILITY ===== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  animation: fadeIn 0.6s ease-out;
}

.card {
  animation: fadeIn 0.4s ease-out;
  animation-fill-mode: both;
}

.grid > .card:nth-child(1) { animation-delay: 0.05s; }
.grid > .card:nth-child(2) { animation-delay: 0.1s; }
.grid > .card:nth-child(3) { animation-delay: 0.15s; }
.grid > .card:nth-child(4) { animation-delay: 0.2s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}
