:root {
  --bg: #F8F6F2;
  --surface: #FFFFFF;
  --surface-2: #F0EDE8;
  --border: #E5E1DA;
  --text: #1A1A1A;
  --text-dim: #6B6560;
  --text-muted: #9C9690;
  --accent: #4338CA;
  --accent-light: rgba(67, 56, 202, 0.08);
  --accent-glow: rgba(67, 56, 202, 0.15);
  --gold: #D97706;
  --gold-light: rgba(217, 119, 6, 0.1);
  --green: #059669;
  --green-light: rgba(5, 150, 105, 0.08);
  --red: #DC2626;
  --red-light: rgba(220, 38, 38, 0.08);
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══════════════════ HEADER ═══════════════════ */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(16px);
}

.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav { display: flex; gap: 2rem; }
.nav a {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }

.connect-btn {
  background: var(--text);
  color: white;
  border: none;
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  font-family: inherit;
}

.connect-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.connect-btn.connected {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ═══════════════════ HERO ═══════════════════ */

.hero {
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
  opacity: 0.12;
  filter: blur(1px);
  z-index: 0;
}

.hero-art-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-hook {
  display: inline-block;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  margin: 1.5rem auto 2.5rem;
  max-width: 520px;
}

.hero-hook .hook-destroy {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.hero-hook .hook-safe {
  color: var(--green);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-cta {
  display: inline-block;
  background: var(--text);
  color: white;
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.hero-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.hero-stats strong {
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ═══════════════════ FEATURED ═══════════════════ */

.featured {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.featured h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text);
}

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

.featured-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: pointer;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.featured-card .featured-info {
  padding: 1.2rem;
}

.featured-card .featured-question {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.featured-card .featured-model {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.featured-card .featured-excerpt {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════ GALLERY ═══════════════════ */

#gallery {
  padding: 3rem 0;
  background: var(--surface-2);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.gallery-minted {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.75rem;
}

.filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 0 2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ═══════════════════ NFT CARD ═══════════════════ */

.nft-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: var(--shadow-sm);
}

.nft-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.nft-card .image-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}

.nft-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nft-card:hover img { transform: scale(1.03); }

.nft-card .question-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.8rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: white;
  opacity: 0;
  transition: opacity 0.4s;
}

.nft-card:hover .question-overlay { opacity: 1; }

.tier-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-badge.Legendary { background: rgba(217, 119, 6, 0.9); color: #fff; }
.tier-badge.Rare { background: rgba(124, 58, 237, 0.9); color: #fff; }
.tier-badge.Standard { background: rgba(37, 99, 235, 0.85); color: #fff; }
.tier-badge.Common { background: rgba(107, 114, 128, 0.75); color: #fff; }

.nft-card .info { padding: 0.75rem 0.9rem; }

.nft-card .model-name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
  color: var(--text);
}

.nft-card .question {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.nft-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.nft-card .price { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.nft-card .status-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.status-tag.available { background: var(--gold-light); color: var(--gold); }
.status-tag.collected { background: #e8e5e0; color: #6B6560; }
.status-tag.for-sale { background: var(--green-light); color: var(--green); }
.status-tag.yours { background: var(--accent-light); color: var(--accent); }
.status-tag.listed { background: #e8e0f0; color: #7c3aed; }
.status-tag.owned { background: var(--accent-light); color: var(--accent); }

/* ═══════════════════ PROCESS ═══════════════════ */

.process {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.process h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.process-intro {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.process-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.process-step p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ═══════════════════ MECHANISM ═══════════════════ */

.mechanism {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--surface-2);
}

.mechanism h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.step p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.guarantee-box {
  background: var(--green-light);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
}

.guarantee-box h3 {
  color: var(--green);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.guarantee-box p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* ═══════════════════ LIVE STATUS ═══════════════════ */

.live-status {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 800px;
  margin: 2rem auto 0;
}

.live-stat {
  background: var(--surface);
  padding: 0.8rem 0.6rem;
  text-align: center;
}

.live-stat .label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.live-stat .value {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.live-stat .value.green { color: var(--green); }
.live-stat .value.gold { color: var(--gold); }
.live-stat .value.accent { color: var(--accent); }
.live-stat .value.red { color: var(--red); }

/* ═══════════════════ TRUST ═══════════════════ */

.trust {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.trust h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.trust-intro {
  text-align: center;
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: var(--shadow-sm);
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.trust-card:hover .trust-icon {
  background: var(--accent-light);
  color: var(--accent);
}

.trust-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.trust-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.trust-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.trust-link:hover { text-decoration: underline; }

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

.trust-bottom {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.trust-stat {
  text-align: center;
}

.trust-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.trust-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════ AUDIT PAGE ═══════════════════ */

/* ═══════════════════ AUDIT PAGE ═══════════════════ */

.audit-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem;
}

.audit-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.audit-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.audit-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.audit-subtitle {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Metrics bar */
.audit-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.audit-metric {
  text-align: center;
  padding: 0.5rem;
}

.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.metric-value.green { color: var(--green); }

.metric-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* Tools grid */
.audit-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.audit-tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.tool-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.tool-by {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tool-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex-grow: 1;
}

.tool-result {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.tool-result.pass {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.tool-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tool-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* Fixes list */
.audit-fixes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fix-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.fix-severity {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.fix-severity.critical { background: var(--red-light); color: var(--red); }
.fix-severity.high { background: rgba(234, 88, 12, 0.1); color: #EA580C; }
.fix-severity.medium { background: var(--gold-light); color: var(--gold); }
.fix-severity.low { background: rgba(59, 130, 246, 0.08); color: #3B82F6; }
.fix-severity.info { background: var(--surface-2); color: var(--text-muted); }

.fix-content h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.fix-content p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.fix-status {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 600;
}

/* Architecture grid */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.arch-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.arch-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.arch-item h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.arch-item p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Test categories */
.audit-result {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--green-light);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius);
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  width: 100%;
  justify-content: center;
}

.audit-result-icon { font-size: 1.3rem; }

.test-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.test-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.test-cat h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.test-cat ul {
  list-style: none;
  padding: 0;
}

.test-cat li {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.test-cat li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.7rem;
}

/* Contract list */
.contract-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contract-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.contract-name {
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.contract-info {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Methodology */
.methodology-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.method-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.method-step h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.method-step p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Footer note */
.audit-footer-note {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.audit-footer-note p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}

.audit-section {
  margin-bottom: 3rem;
}

.audit-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.audit-section-intro {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.audit-back {
  text-align: center;
  padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .audit-metrics { grid-template-columns: repeat(2, 1fr); }
  .audit-tools-grid { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .test-categories { grid-template-columns: 1fr; }
  .audit-hero h1 { font-size: 2rem; }
  .contract-item { flex-direction: column; gap: 0.25rem; align-items: flex-start; }
}

/* ═══════════════════ WALLET MODAL ═══════════════════ */

.wallet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 25, 22, 0.88);
  z-index: 300;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.wallet-overlay.active { display: flex; }

.wallet-modal {
  background: var(--surface);
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  text-align: center;
}

.wallet-modal .close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dim);
  line-height: 1;
}

.wallet-modal h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.wallet-modal p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wallet-option:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(67, 56, 202, 0.12);
}

.wallet-option img,
.wallet-option .wallet-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.wallet-option-info {
  text-align: left;
}

.wallet-option-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.wallet-option-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.wallet-option {
  cursor: pointer;
}

.wallet-arrow {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.wallet-option:hover .wallet-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.wallet-option.dimmed {
  opacity: 0.45;
}

.wallet-option-desc .detected {
  color: #16a34a;
  font-weight: 600;
}

.wallet-option-desc .not-installed {
  color: var(--text-dim);
}

/* ═══════════════════ TOAST ═══════════════════ */

.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: #fff;
  background: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(30px);
  animation: toastIn 0.3s ease forwards;
  pointer-events: auto;
  max-width: 340px;
}

.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.info { background: var(--text); }

.toast.out {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px); }
}

/* ═══════════════════ MODAL ═══════════════════ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 25, 22, 0.88);
  z-index: 200;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--surface);
  border-radius: 16px;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.close-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}

.close-btn:hover { background: var(--border); }

.modal-image { overflow: hidden; border-radius: 16px 0 0 16px; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }

.modal-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.modal-details h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
}

.modal-question {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text-dim);
  font-size: 1rem;
  font-style: italic;
}

.modal-response-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin: 0.2rem 0;
}

.response-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.response-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.75;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.response-text::-webkit-scrollbar { width: 3px; }
.response-text::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.response-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

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

.ipfs-link {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.ipfs-link:hover { text-decoration: underline; }

.modal-actions { margin-top: auto; padding-top: 0.75rem; }

.action-btn {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  font-family: inherit;
  margin-bottom: 0.4rem;
}

.action-btn.mint { background: var(--text); color: white; }
.action-btn.mint:hover { background: var(--accent); }
.action-btn.buy { background: var(--green); color: white; }
.action-btn.sell { background: var(--gold); color: white; }
.action-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.sell-input {
  width: 100%;
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  margin-bottom: 0.4rem;
}

.sell-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ═══════════════════ FOOTER ═══════════════════ */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.footer-brand .logo {
  font-size: 1.3rem;
}

.footer-brand p { color: var(--text-dim); font-size: 0.82rem; margin-top: 0.4rem; }

.footer-links h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.footer-links a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ═══════════════════ COLLECTION PAGE ═══════════════════ */

.collection-page .coll-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

.collection-page .sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.collection-page .sidebar-inner {
  position: sticky;
  top: 60px;
  padding: 1.25rem;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.collection-page .sidebar-inner::-webkit-scrollbar { width: 3px; }
.collection-page .sidebar-inner::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.collection-page .sidebar-count {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.collection-page .sidebar-count span {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
}

.collection-page .sidebar-section {
  margin-bottom: 1.25rem;
}

.collection-page .sidebar-section h4 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.collection-page .sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.collection-page .sb-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 500;
}

.collection-page .sb-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.collection-page .sb-btn.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.collection-page .sb-btn.legendary.active { background: var(--gold-light); color: var(--gold); }
.collection-page .sb-btn.rare.active { background: rgba(124, 58, 237, 0.08); color: #7C3AED; }
.collection-page .sb-btn.standard.active { background: rgba(37, 99, 235, 0.08); color: #2563EB; }
.collection-page .sb-btn.common.active { background: var(--surface-2); color: var(--text-dim); }

.collection-page .sb-reset {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.collection-page .sb-reset:hover {
  border-color: var(--red);
  color: var(--red);
}

.collection-page .coll-main {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
}

.collection-page .top-pills,
.collection-page .bottom-pills {
  display: flex;
  gap: 0.4rem;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.collection-page .bottom-pills {
  border-bottom: none;
  border-top: 1px solid var(--border);
}

.collection-page .pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 500;
}

.collection-page .pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.collection-page .pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.collection-page .pill-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 0.3rem;
}

.collection-page .coll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.collection-page .coll-footer {
  padding: 1rem 2rem;
}

.collection-page .coll-footer .footer-bottom {
  padding-top: 0;
  border-top: none;
}

/* Logo as link */
a.logo { text-decoration: none; }
a.logo:hover { text-decoration: none; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */

@media (max-width: 768px) {
  .header { padding: 0.8rem 1rem; }
  .nav { display: none; }
  .hero { min-height: auto; padding: 3rem 1.5rem 2rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-art-bg { grid-template-columns: repeat(3, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.8rem;
    padding: 0 1rem 2rem;
  }
  .modal { grid-template-columns: 1fr; }
  .modal-image { max-height: 300px; border-radius: 16px 16px 0 0; }
  .footer-content { grid-template-columns: 1fr; }
  .live-status { grid-template-columns: repeat(3, 1fr); }
  .live-status .live-stat:nth-child(n+4) { display: none; }
  .trust-badges { gap: 1rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-bottom { gap: 2rem; }
  .trust-stat-value { font-size: 1.5rem; }

  /* Collection page mobile */
  .collection-page .coll-layout { flex-direction: column; }
  .collection-page .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .collection-page .sidebar-inner {
    position: static;
    max-height: none;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .collection-page .sidebar-count { width: 100%; margin-bottom: 0; }
  .collection-page .sidebar-section { margin-bottom: 0; }
  .collection-page .sidebar-filters { flex-direction: row; flex-wrap: wrap; }
  .collection-page .coll-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
  }
  .collection-page .sb-reset { width: auto; }
}
