/*
 * apex-v3.css — strategic refactor of voiddo.com homepage
 * Locked: 2026-04-30 evening pass 10
 * Spec:    /var/www/voiddo.com/brand-spec.md
 * Layered on top of style.css (does not replace existing tokens).
 */

:root {
  --apex-card-bg:           rgba(20, 32, 56, 0.55);
  --apex-card-border:       rgba(160, 200, 255, 0.10);
  --apex-card-hover-border: rgba(136, 68, 255, 0.42);
  --apex-card-hover-bg:     rgba(28, 42, 72, 0.65);
  --apex-shadow-soft:       0 1px 2px rgba(0,0,0,0.25);
  --apex-shadow-hover:      0 12px 36px rgba(136, 68, 255, 0.16);
}

/* ========== Matrix backdrop fix ==========
 * The matrix canvas sits at z-index -1 below body bg by default —
 * lift it above body gradient and bump opacity so it's visibly running.
 */
canvas#matrix-overlay {
  z-index: 0 !important;
  opacity: 0.32 !important;
  mix-blend-mode: screen;
}

body { position: relative; }
.site-header,
main,
.watermark-strip,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ========== Hero ========== */

.apex-hero {
  padding: 116px 0 72px;
  position: relative;
}

.apex-hero-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.apex-hero-mark-col { min-width: 0; }

.apex-mark {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-size: clamp(5rem, 14vw, 9.5rem);
  color: var(--text-0);
  margin: 0 0 1.4rem;
  text-rendering: geometricPrecision;
}

.apex-mark-glyph .void-o {
  color: var(--violet);
  text-shadow: 0 0 36px rgba(136, 68, 255, 0.55);
}

.apex-pitch {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--text-1);
  max-width: 38rem;
  line-height: 1.55;
  margin: 0;
}

/* Emblem column — big, centered, glowing */
.apex-hero-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.apex-hero-emblem::before {
  content: '';
  position: absolute;
  inset: 12% 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(136, 68, 255, 0.30), rgba(0, 246, 208, 0.10) 55%, transparent 80%);
  filter: blur(28px);
  z-index: 0;
}

.apex-hero-emblem img {
  width: clamp(220px, 24vw, 360px);
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 30px rgba(136, 68, 255, 0.30));
}

/* ========== Section frame ========== */

.apex-section {
  padding: 64px 0;
  border-top: 1px solid rgba(160, 200, 255, 0.06);
}

.apex-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}
.apex-kicker-tight { margin-bottom: 8px; }

/* ========== Flagship cards ========== */

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flagship-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border-radius: 16px;
  background: var(--apex-card-bg);
  border: 1px solid var(--apex-card-border);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--apex-shadow-soft);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  min-height: 180px;
  position: relative;
}

.flagship-card:hover {
  transform: translateY(-2px);
  border-color: var(--apex-card-hover-border);
  background: var(--apex-card-hover-bg);
  box-shadow: var(--apex-shadow-hover);
}

.flagship-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  border: 1px solid rgba(160, 200, 255, 0.14);
  background: rgba(8, 14, 28, 0.65);
}

.flagship-mark {
  color: var(--text-0);
  white-space: nowrap;
}

/* product-specific accents — restrained, just the icon background */
.flagship-scrb    .flagship-icon { background: linear-gradient(135deg, #2a1d18, #14110f); border-color: rgba(225, 156, 100, 0.20); }
.flagship-scrb    .flagship-mark { color: #f0d5b8; }
.flagship-rankd   .flagship-icon { background: linear-gradient(135deg, #2a2018, #14120f); border-color: rgba(255, 184, 92, 0.20); }
.flagship-rankd   .flagship-mark { color: #ffcb7a; }
.flagship-verdict .flagship-icon { background: linear-gradient(135deg, #1c1a2c, #0f0e1c); border-color: rgba(136, 68, 255, 0.30); }
.flagship-verdict .flagship-mark { color: #c2a8ff; }

.flagship-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-0);
  margin: 0 0 6px;
}

.flagship-pitch {
  font-size: 0.95rem;
  color: var(--text-1);
  line-height: 1.5;
  margin: 0 0 14px;
}

.flagship-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin: auto 0 0;
}

/* ========== "More in the studio" portal nav ========== */

.apex-portal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.apex-portal-list li {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(160, 200, 255, 0.10);
}

.apex-portal-list li:last-child { border-bottom: 0; }

.apex-portal-list a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-0);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
  min-width: 200px;
  transition: color 0.14s ease;
}

.apex-portal-list a:hover { color: var(--violet); }

.apex-portal-list span {
  font-size: 0.9rem;
  color: var(--text-3);
  font-style: italic;
}

/* ========== From-the-studio tile ========== */

.studio-tile-link {
  display: block;
  padding: 28px 26px;
  border-radius: 16px;
  background: var(--apex-card-bg);
  border: 1px solid var(--apex-card-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.studio-tile-link:hover {
  transform: translateY(-2px);
  border-color: var(--apex-card-hover-border);
  background: var(--apex-card-hover-bg);
}

.studio-tile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.studio-tile-title {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 600;
  color: var(--text-0);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.4;
}

.studio-tile-arrow {
  font-size: 2rem;
  color: var(--violet);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  flex: 0 0 auto;
}

/* ========== Footer v4 — 4 cols, 16 visible links + canon line ========== */

.footer-v4 {
  background: rgba(5, 9, 20, 0.85);
  border-top: 1px solid rgba(160, 200, 255, 0.08);
  padding: 56px 0 32px;
  margin-top: 72px;
}

.footer-v4-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.fv4-brand-col .footer-brand {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-0);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.fv4-tagline {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 24rem;
  margin: 0 0 14px;
}

.fv4-social {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.fv4-social .social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(160, 200, 255, 0.10);
  color: var(--text-2);
  transition: color 0.14s ease, border-color 0.14s ease;
}
.fv4-social .social-icon-btn:hover {
  color: var(--violet);
  border-color: rgba(136, 68, 255, 0.35);
}

.fv4-address {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin: 0;
}

.fv4-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
  font-weight: 600;
}

.fv4-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fv4-col a {
  color: var(--text-1);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.12s ease;
}
.fv4-col a:hover { color: var(--violet); }

.fv4-bottom {
  font-size: 0.82rem;
  color: var(--text-3);
  border-top: 1px solid rgba(160, 200, 255, 0.06);
  padding-top: 24px;
  line-height: 1.6;
}
.fv4-bottom a { color: var(--text-1); text-decoration: none; }
.fv4-bottom a:hover { color: var(--violet); }

/* ========== Mobile ========== */

@media (max-width: 880px) {
  .flagship-grid { grid-template-columns: 1fr; }
  .footer-v4-grid { grid-template-columns: 1fr 1fr; }
  .fv4-brand-col { grid-column: 1 / -1; }
  .apex-hero { padding: 80px 0 48px; }
  .apex-hero-row { grid-template-columns: 1fr; gap: 32px; }
  .apex-hero-emblem { order: -1; }
  .apex-hero-emblem img { width: clamp(180px, 50vw, 240px); }
  .apex-portal-list a { min-width: 0; }
  .apex-portal-list li { flex-direction: column; gap: 4px; }
  .studio-tile-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 520px) {
  .footer-v4-grid { grid-template-columns: 1fr; }
}
