:root {
  --bg: #0a0a0c;
  --surface: #121216;
  --surface-2: #18181f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #9ca3af;
  --accent: #f4f4f5;
  --radius-lg: 24px;
  --radius-md: 16px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(700px 450px at 85% 0%, rgba(236, 72, 153, 0.08), transparent 60%),
    var(--bg);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c8f550;
  box-shadow: 0 0 12px rgba(200, 245, 80, 0.7);
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
}

.wordmark {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.4px;
  color: #f2efeb;
}

.wordmark span {
  font-size: 12px;
  color: #a3e635;
  vertical-align: super;
  margin-left: 2px;
}

.brand-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  padding: 2px 8px;
  border-radius: 999px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: #ffffff;
  color: #09090b;
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Hero */
.hero {
  padding: 76px 0 44px;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #c8f550;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 920px;
}

.hero-title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  color: #d4d4d8;
}

.hero-sub {
  margin-top: 22px;
  max-width: 660px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.stats-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-pill strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  color: #ffffff;
}

.stat-pill span {
  font-size: 13px;
  color: var(--muted);
}

/* Controls */
.controls-bar {
  position: sticky;
  top: 70px;
  z-index: 30;
  padding: 16px 0;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.controls-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-chip.active {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
  font-weight: 600;
}

.platform-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.plat-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.plat-btn.active {
  background: var(--surface-2);
  color: #ffffff;
}

/* Showcase Sections */
.showcase {
  padding: 48px 0 96px;
}

.style-section {
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--border);
}

.style-section:last-child {
  border-bottom: none;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
  font-weight: 700;
}

.section-desc {
  margin-top: 8px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.palette-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Pair Grid: Desktop (1.75fr) + Mobile (1fr) */
.pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pair-grid.single-col {
  grid-template-columns: minmax(0, 1fr);
  max-width: 960px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.48);
}

.card-preview {
  position: relative;
  background: #0d0d11;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  flex: 1;
  min-height: 360px;
  overflow: hidden;
}

.card-preview img {
  display: block;
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.28s ease;
}

.project-card:hover .card-preview img {
  transform: scale(1.015);
}

.platform-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.card-domain {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #b4b4bd;
}

.card-actions {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.preview-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.preview-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-name {
  font-weight: 700;
  font-size: 16px;
}

.footer-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.86);
  backdrop-filter: blur(14px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #c8f550;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lightbox-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
}

.lightbox-stage {
  flex: 1;
  overflow: auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090c;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.lightbox-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-footer p {
  font-size: 14px;
  color: var(--muted);
  max-width: 720px;
}

.lb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lb-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #d4d4d8;
}

@media (max-width: 960px) {
  .pair-grid {
    grid-template-columns: 1fr;
  }
  .controls-bar {
    position: static;
  }
}
