/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --bg: #020617;
  --bg-card: rgba(15, 23, 42, 0.9);
  --bg-card-hover: rgba(15, 23, 42, 1);
  --frost: #0ea5e9;
  --frost-light: #7dd3fc;
  --frost-dark: #0284c7;
  --blue: #3b82f6;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(14, 165, 233, 0.15);
  --border-hover: rgba(14, 165, 233, 0.4);
  --glow: rgba(14, 165, 233, 0.25);
  --radius: 12px;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Spectral', Georgia, serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* ─── Page Layout ───────────────────────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
    var(--bg);
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 20px var(--glow));
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 20px var(--glow)); }
  50% { filter: drop-shadow(0 0 32px rgba(14, 165, 233, 0.4)); }
}

.title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--frost-light), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--frost);
  margin-top: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  font-weight: 300;
}

/* ─── Game Cards Grid ───────────────────────────────────── */
.games {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

@media (min-width: 768px) {
  .games {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 2rem 3rem;
  }
}

/* ─── Card ──────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px var(--glow);
  background: var(--bg-card-hover);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--frost);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.02em;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.card-genre {
  font-size: 0.85rem;
  color: var(--frost);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.card-features {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.feat-icon {
  color: var(--frost);
  margin-right: 0.4rem;
  font-size: 0.8rem;
}

/* ─── Play Button ───────────────────────────────────────── */
.card-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--frost), var(--blue));
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.card-btn:hover {
  box-shadow: 0 0 20px var(--glow), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.card-btn:active {
  transform: translateY(0);
}

/* ─── Email Signup ──────────────────────────────────────── */
.signup {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.signup-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.signup-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.signup-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.signup-input {
  flex: 1;
  max-width: 320px;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.signup-input::placeholder {
  color: var(--text-dim);
}

.signup-input:focus {
  border-color: var(--frost);
}

.signup-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, var(--frost), var(--blue));
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: box-shadow 0.25s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.signup-btn:hover {
  box-shadow: 0 0 16px var(--glow);
}

.signup-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.signup-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  min-height: 1.25em;
}

.signup-success {
  color: #34d399;
}

.signup-error {
  color: #f87171;
}

@media (max-width: 480px) {
  .signup-form {
    flex-direction: column;
    align-items: center;
  }
  .signup-input {
    max-width: 100%;
    width: 100%;
  }
}

/* ─── About Section ────────────────────────────────────── */
.about {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.about-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.about-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.about-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-text:last-of-type:not(.about-links) {
  margin-bottom: 0;
}

.about-links {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

.about-link {
  color: var(--frost);
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 165, 233, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.about-link:hover {
  border-color: var(--frost);
  color: var(--frost-light);
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
