/* Old Gamers Software — Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Theme Variables ── */
:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Dark Precision (default) — AAA contrast */
  --bg: #0d0f14;
  --surface: #161920;
  --surface2: #1c2030;
  --border: #2a2f3d;
  --text: #f0f2f8;
  --muted: #b8c0d0;
  --accent: oklch(0.78 0.16 195);
  --accent-dim: oklch(0.78 0.16 195 / 0.18);
  --accent-hover: oklch(0.85 0.14 195);
  --nav-bg: rgba(13, 15, 20, 0.92);
}

[data-theme="light"] {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface2: #ecedea;
  --border: #c8c9c4;
  --text: #0a0c12;
  --muted: #4a4f5c;
  --accent: oklch(0.38 0.22 270);
  --accent-dim: oklch(0.38 0.22 270 / 0.10);
  --accent-hover: oklch(0.30 0.22 270);
  --nav-bg: rgba(247, 247, 245, 0.92);
}

[data-theme="green"] {
  --bg: #080e0d;
  --surface: #0f1a18;
  --surface2: #162220;
  --border: #234039;
  --text: #ecf2ee;
  --muted: #a0bcb1;
  --accent: oklch(0.80 0.18 145);
  --accent-dim: oklch(0.80 0.18 145 / 0.18);
  --accent-hover: oklch(0.86 0.16 145);
  --nav-bg: rgba(8, 14, 13, 0.92);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

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

img { max-width: 100%; display: block; }

/* ── WCAG: Focus Indicators ── */
*:focus { outline: none; }

*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.theme-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ── WCAG: Skip Link ── */
.skip-link {
  position: absolute;
  top: -200px;
  left: 1rem;
  z-index: 10000;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: top 0.15s ease-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  color: var(--bg);
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

/* ── WCAG: Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .product-card:hover,
  .gallery-item:hover,
  .badge-demo-item:hover { transform: none; }
}

/* ── Screen-Reader Only utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, border-color 0.3s;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

/* ── Page Wrapper ── */
.page-content {
  padding-top: 64px;
}

/* ── Section Utilities ── */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-full {
  padding: 5rem 2rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  text-wrap: pretty;
}

.section-body {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Product Card ── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-dim);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--surface2),
    var(--surface2) 10px,
    var(--border) 10px,
    var(--border) 11px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: monospace;
  font-size: 0.8rem;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-tag {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.product-card-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.product-card-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-logo span { color: var(--accent); }

.footer-copy {
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── GitHub badge ── */
.github-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}

.github-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.github-badge svg { flex-shrink: 0; }

/* ── Feature list ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--muted);
}

.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.55em;
  flex-shrink: 0;
}

/* ── Donation Section ── */
.donate-section {
  border-top: 1px solid var(--border);
}

.donate-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.donate-text .section-label { margin-bottom: 0.4rem; }

.donate-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.donate-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.6;
}

.donate-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-venmo {
  background: #008CFF;
  color: #fff;
  font-weight: 600;
}
.btn-venmo:hover { background: #006fd4; color: #fff; }

.btn-cashapp {
  background: #00D64F;
  color: #fff;
  font-weight: 600;
}
.btn-cashapp:hover { background: #00b843; color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  .section { padding: 3rem 1rem; }
  .section-full { padding: 3rem 1rem; }
  .site-footer { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .nav-links li:not(:last-child) { display: none; }
}
