/* Public site nav */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: oklch(14% 0.012 270 / 0.7);
  border-bottom: 1px solid var(--color-border-soft);
}
.public-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) clamp(20px, 4vw, 48px);
  max-width: var(--container-max);
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.brand-logo {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px oklch(82% 0.22 158 / 0.4));
}
.brand { gap: 0; }
.sidebar-brand .brand-logo { height: 56px; }
.login-card .brand-logo { height: 80px; margin-bottom: var(--space-3); }
@media (max-width: 768px) {
  .brand-logo { height: 52px; }
}
.brand-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.6rem + 1.2vw, 1.7rem);
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.brand-tagline::before {
  content: '· ';
  color: var(--color-success);
  font-style: normal;
  font-weight: 700;
  margin-right: 0.25em;
}
@media (max-width: 900px) {
  .brand-tagline { display: none; }
}
.public-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.public-nav-links a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.public-nav-links a:hover, .public-nav-links a.active { color: var(--color-text); }
@media (max-width: 768px) {
  .public-nav-links a:not(.btn) { display: none; }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 4vw, 5rem) 0 var(--space-section);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-title em { margin-right: 0.12em; }
.hero-text { min-width: 0; }
.hero-beaker { min-width: 0; }
.beaker-card {
  position: relative;
  background: linear-gradient(160deg, oklch(15% 0.02 158 / 0.6), oklch(10% 0.01 158 / 0.4));
  border: 1px solid oklch(82% 0.22 158 / 0.25);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 2vw, 2.25rem);
  padding-top: clamp(5rem, 8vw, 7rem);
  box-shadow: 0 0 60px oklch(82% 0.22 158 / 0.08);
  margin-top: clamp(3rem, 5vw, 4.5rem);
}
.beaker-mascot {
  position: absolute;
  top: clamp(-3rem, -5vw, -4.5rem);
  right: clamp(0.5rem, 2vw, 1.5rem);
  width: clamp(110px, 16vw, 170px);
  height: auto;
  filter: drop-shadow(0 0 24px oklch(82% 0.22 158 / 0.5));
  animation: beaker-bob 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes beaker-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}
.beaker-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-success);
  margin-bottom: var(--space-3);
}
.beaker-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse 2s infinite;
}
.beaker-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.2vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.beaker-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: var(--space-4);
}
.beaker-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}
.beaker-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--color-text);
}
.beaker-features li span {
  color: var(--color-success);
  font-weight: 700;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-beaker { order: 2; }
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.hero-tag .dot { background: var(--color-success); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--color-success); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.hero-title {
  font-size: var(--text-display);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 var(--space-6) 0;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 300;
}
.hero-sub {
  font-size: 1.25rem;
  max-width: 56ch;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-1);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  padding: var(--space-8) 0;
  margin: var(--space-section) 0;
}
.stat-item { padding: 0 var(--space-5); border-right: 1px solid var(--color-border-soft); }
.stat-item:last-child { border-right: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1rem + 4vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text);
}
.stat-value em { font-style: normal; color: var(--color-accent); }
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

/* Section header */
.section { padding: var(--space-section) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--space-8);
  gap: var(--space-5);
  flex-wrap: wrap;
}
.section-title { font-size: var(--text-h1); margin: 0; max-width: 18ch; }
.section-meta { color: var(--color-text-muted); max-width: 40ch; }

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.category-card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out-expo);
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, var(--cat-color, var(--color-accent-soft)));
  opacity: 0;
  transition: opacity var(--duration-normal);
}
.category-card:hover { transform: translateY(-4px); border-color: var(--cat-color, var(--color-accent)); }
.category-card:hover::before { opacity: 1; }
.category-card > * { position: relative; z-index: 1; }
.category-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
}
.category-name { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; margin-bottom: var(--space-4); }
.category-desc { color: var(--color-text-muted); font-size: 0.95rem; }

/* Game grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}
.game-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out-expo);
  display: block;
  color: inherit;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.game-cover {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1, oklch(35% 0.15 280)), var(--c2, oklch(20% 0.1 160)));
}
.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}
.game-card:hover .game-cover img { transform: scale(1.05); }
.game-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, oklch(7% 0.005 160 / 0.5) 100%);
  pointer-events: none;
}
.game-cover-noise {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.game-info { padding: var(--space-5); }
.game-meta { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); flex-wrap: wrap; }
.game-title { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; margin-bottom: var(--space-2); }
.game-desc { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.5; }

/* "+ 4 titles under NDA" line below the active games */
.nda-line {
  text-align: center;
  margin-top: var(--space-8);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 0.8rem + 2vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
}
.nda-line::before { content: ''; }

/* "Plus dozens of titles under NDA" summary card on games page */
.game-card.nda-summary {
  background:
    linear-gradient(135deg, oklch(15% 0.02 158 / 0.6), oklch(10% 0.01 158 / 0.4)),
    repeating-linear-gradient(135deg, transparent 0 16px, oklch(82% 0.22 158 / 0.04) 16px 32px);
  border: 1px dashed oklch(82% 0.22 158 / 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  cursor: default;
  padding: var(--space-6);
}
.game-card.nda-summary:hover { transform: none; box-shadow: none; border-color: oklch(82% 0.22 158 / 0.5); }
.nda-summary-inner { text-align: center; max-width: 24ch; }
.nda-summary-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-success);
  margin-bottom: var(--space-3);
}
.nda-summary-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 0.8rem + 1.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.nda-summary-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Store links on game detail page */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.store-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out-expo), border-color var(--duration-fast);
}
.store-link:hover { transform: translateY(-2px); }
.store-steam { background: oklch(28% 0.05 240); color: oklch(92% 0.02 240); border-color: oklch(45% 0.08 240); }
.store-steam:hover { color: oklch(98% 0 0); border-color: oklch(60% 0.12 240); }
.store-meta { background: oklch(30% 0.12 280); color: oklch(95% 0.02 280); border-color: oklch(50% 0.15 280); }
.store-meta:hover { color: oklch(98% 0 0); border-color: oklch(65% 0.18 280); }
.store-psvr2 { background: oklch(28% 0.06 250); color: oklch(95% 0.02 250); border-color: oklch(50% 0.1 250); }
.store-psvr2:hover { color: oklch(98% 0 0); border-color: oklch(65% 0.15 250); }

/* Game detail */
.game-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-section);
}
@media (max-width: 900px) { .game-hero { grid-template-columns: 1fr; } }
.game-hero-cover {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.game-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Apply form */
.apply-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 640px;
  margin: 0 auto;
}
.step-indicator {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.step {
  flex: 1;
  height: 3px;
  background: var(--color-border-soft);
  border-radius: var(--radius-pill);
  transition: background var(--duration-normal);
}
.step.active { background: var(--color-accent); }

/* Login */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-6);
}
.login-card {
  background: var(--color-surface-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.login-tab {
  padding: var(--space-4);
  background: transparent;
  border: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--duration-fast);
  margin-bottom: -1px;
}
.login-tab.active { color: var(--color-text); border-bottom-color: var(--color-accent); }

/* Footer */
.public-footer {
  border-top: 1px solid var(--color-border-soft);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-section);
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}
.footer-inner { display: flex; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }

/* Quote */
.quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  line-height: 1.3;
  font-style: italic;
  font-weight: 300;
  color: var(--color-text);
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-5);
  margin: var(--space-6) 0;
}
.quote-author {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-faint);
  font-style: normal;
  margin-top: var(--space-3);
  display: block;
}
