/* ═══════════════════════════════════════════════════════════
   F7R.gg — Landing Page
   Clean, focused. CRT palette on black.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: #0d0d0d;
  --bg-card-hover: #141414;
  --bg-elevated: #1a1a1a;
  --accent: #22aa55;
  --accent-dim: #156635;
  --accent-glow: rgba(34, 170, 85, 0.12);
  --accent-cyan: #2288aa;
  --accent-cyan-dim: #1a6680;
  --text: #c8d0d8;
  --text-dim: #6a6a6a;
  --text-muted: #3a3a3a;
  --border: #1a1a1a;
  --border-light: #2a2a2a;

  --font-body: 'Share Tech Mono', monospace;
  --font-heading: 'Orbitron', monospace;
  --radius: 3px;
  --radius-lg: 6px;
  --max-width: 1100px;
  --nav-height: 52px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle CRT noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--accent-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 4rem 0; }

.section-title {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 8px var(--accent-cyan-dim);
  margin-bottom: 2rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 0.5rem;
  box-shadow: 0 0 6px var(--accent-dim);
}

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.nav-logo img { height: 28px; width: 28px; }
.nav-logo span { color: var(--accent-cyan); text-shadow: 0 0 6px var(--accent-cyan-dim); }

.btn-discord {
  padding: 0.5rem 1.2rem;
  background: rgba(34,136,170,0.1);
  border: 1px solid var(--accent-cyan-dim);
  border-radius: var(--radius);
  color: var(--accent-cyan);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-discord:hover {
  background: rgba(34,136,170,0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: calc(var(--nav-height) + 6rem) 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(34,170,85,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(34,136,170,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-terminal {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.prompt { color: var(--accent-dim); }
.typed { text-shadow: 0 0 6px var(--accent-dim); }
.cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-size: 4rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.hero h1 .accent {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px var(--accent-cyan-dim);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.stat { text-align: center; }

.stat-val {
  display: block;
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 5px var(--accent-cyan-dim);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Game Cards ──────────────────────────────────────────── */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-accent, var(--accent));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  color: inherit;
}
.project-card:hover {
  border-color: var(--border-light);
  border-top-color: var(--card-accent, var(--accent));
  transform: translateY(-3px);
  color: inherit;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.card-logo-text {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
}

.card-head h3 {
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}

.card-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-players {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  background: rgba(34,170,85,0.08);
  border-radius: var(--radius);
  white-space: nowrap;
}

.project-card > p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.card-servers {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.card-servers span {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
}

/* ── Tool Cards ──────────────────────────────────────────── */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
  color: inherit;
}
.tool-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  color: inherit;
}

.tool-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.tool-logo-text {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
}

.tool-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.tool-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

.wip-badge {
  font-size: 0.55rem;
  padding: 0.1rem 0.4rem;
  background: rgba(170,136,34,0.15);
  color: #aa8822;
  border-radius: 3px;
  vertical-align: middle;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── About ───────────────────────────────────────────────── */

.section-about {
  border-top: 1px solid var(--border);
}

.about-content {
  max-width: 640px;
}

.about-content p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-subtle {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 1.5rem;
}
.footer-right a {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero { padding: calc(var(--nav-height) + 3rem) 0 3rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-val { font-size: 1.3rem; }
  .project-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .container { padding: 0 1rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-right { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.9rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}
