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

:root {
  --bg:        #0a0a0c;
  --bg2:       #111116;
  --bg3:       #18181f;
  --border:    #25252f;
  --border2:   #2f2f3a;
  --text:      #e8e6f0;
  --text2:     #8a889a;
  --text3:     #5a586a;
  --mn:        #c4b5fd;
  --mn2:       #7c3aed;
  --pd:        #a33040;
  --pd2:       #C4A882;
  --bo:        #f97316;
  --bo2:       #fb923c;
  --font:      'DM Sans', -apple-system, sans-serif;
  --mono:      'DM Mono', monospace;
  --r:         16px;
  --r-sm:      10px;
  --max-w:     1300px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ── Hero ── */
.hero { text-align: center; padding: 96px 24px 48px; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.12) 0%, transparent 70%); pointer-events: none; }
.logo-mark { font-size: 56px; margin-bottom: 16px; display: block; filter: drop-shadow(0 0 24px rgba(196,181,253,0.3)); }
.hero h1 { font-size: clamp(42px, 7vw, 72px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 16px; }
.tagline { font-size: clamp(18px, 3vw, 24px); color: var(--text2); font-style: italic; margin-bottom: 12px; }
.sub { font-size: 15px; color: var(--text3); max-width: 420px; margin: 0 auto; }

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 8px 0 80px;
  /* Dim siblings on hover */
}
.grid:has(.card:hover) .card:not(:hover) {
  opacity: 0.55;
  transform: scale(0.99);
}

/* ── Card shell ── */
.card {
  display: flex; flex-direction: column;
  border-radius: var(--r); border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
  position: relative;
}

/* Accent top line */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 2;
}
.card--mnemonic::before { background: linear-gradient(90deg, #7c3aed, #c4b5fd, #7c3aed); }
.card--pour::before     { background: linear-gradient(90deg, #6b1520, #C4A882, #6b1520); }
.card--boxout::before   { background: linear-gradient(90deg, #c2410c, #fb923c, #2dd4bf); }

/* Card tinted gradient backgrounds */
.card--mnemonic { background: linear-gradient(160deg, #14102a 0%, #0f0d1e 40%, #0d0b18 100%); }
.card--pour     { background: linear-gradient(160deg, #1a0c10 0%, #110a0c 40%, #0e090a 100%); }
.card--boxout   { background: linear-gradient(160deg, #1a1208 0%, #100e08 40%, #0c0a06 100%); }

.card:hover { transform: translateY(-5px); }
.card--mnemonic:hover { border-color: rgba(196,181,253,0.4); box-shadow: 0 16px 48px rgba(124,58,237,0.2); }
.card--pour:hover     { border-color: rgba(196,168,130,0.35); box-shadow: 0 16px 48px rgba(163,48,64,0.2); }
.card--boxout:hover   { border-color: rgba(249,115,22,0.4);   box-shadow: 0 16px 48px rgba(249,115,22,0.15); }

/* ── Card preview area ── */
.card-preview {
  height: 280px; overflow: hidden; flex-shrink: 0; position: relative;
  border-bottom: 1px solid var(--border);
}
.card-preview--mnemonic { background: radial-gradient(ellipse 90% 70% at 50% 30%, rgba(124,58,237,0.22) 0%, #0d0a1c 70%); }
.card-preview--pour     { background: radial-gradient(ellipse 90% 70% at 50% 30%, rgba(163,48,64,0.28) 0%, #0e090a 70%); }
.card-preview--boxout   { background: radial-gradient(ellipse 90% 70% at 50% 30%, rgba(249,115,22,0.2) 0%, #0c0a08 70%); }

.preview-svg {
  width: 100%; height: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .preview-svg { transform: scale(1.04); }

/* ── Card body ── */
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-icon { font-size: 18px; flex-shrink: 0; }

.card-name { font-size: 16px; font-weight: 600; flex: 1; line-height: 1; }

/* Mnemonic: IBM Plex Mono, purple */
.card-name--mnemonic {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 17px;
  color: var(--mn);
  letter-spacing: -0.02em;
}

/* Pour Decisions: two-line stacked logo */
.card-name--pour {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-pour-top {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C4A882;
  line-height: 1;
}
.logo-pour-bottom {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #F5EDD6;
  line-height: 1.1;
}

/* Box Out: IBM Plex Mono, teal accent */
.card-name--boxout {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-boxout-accent { color: #2dd4bf; }

/* Visit CTA — replaces bare arrow */
.card-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  color: var(--text3);
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.card-cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.card:hover .card-cta { background: rgba(255,255,255,0.06); }
.card:hover .card-cta-arrow { transform: translateX(3px); }
.card--mnemonic:hover .card-cta { color: var(--mn);  border-color: rgba(196,181,253,0.3); }
.card--pour:hover     .card-cta { color: #C4A882;    border-color: rgba(196,168,130,0.3); }
.card--boxout:hover   .card-cta { color: var(--bo);  border-color: rgba(249,115,22,0.3); }

.card-desc { font-size: 13.5px; color: var(--text2); line-height: 1.6; flex: 1; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 24px; text-align: center; color: var(--text3); font-size: 13px; }
.footer-dot { margin: 0 6px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 24px 40px; }
  .container { padding: 0 20px; }
}
