/* ===== CSS Variables ===== */
:root {
  --primary: #00ff88;
  --primary-hover: #00cc6a;
  --primary-glow: rgba(0, 255, 136, 0.3);
  --secondary: #00d4ff;
  --secondary-glow: rgba(0, 212, 255, 0.3);
  --accent: #ff6b35;
  --accent-2: #ffd93d;
  --background: #0a0a1a;
  --surface: #12122a;
  --surface-2: #1a1a3a;
  --surface-3: #222250;
  --text: #ffffff;
  --text-secondary: #b0b0cc;
  --text-muted: #6b6b8a;
  --border: #2a2a5a;
  --border-glow: rgba(0, 255, 136, 0.2);
  --success: #4ade80;
  --warning: #fbbf24;
  --error: #f87171;
  --purple: #a855f7;
  --pink: #ec4899;

  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-pixel: "Press Start 2P", monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-glow-secondary: 0 0 30px var(--secondary-glow);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* ===== Utility Classes ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #0a0a1a;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--primary-glow);
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: #0a0a1a;
  box-shadow: var(--shadow-glow-secondary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--secondary-glow);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
  padding: 12px 20px;
}

.btn-ghost:hover {
  color: var(--primary);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-small {
  padding: 8px 18px;
  font-size: 13px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-accent {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(0, 255, 136, 0.08);
}

.nav-buttons {
  display: flex;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

main {
  padding-top: 72px;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 100px 24px 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -300px;
  right: -200px;
  opacity: 0.15;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: -200px;
  left: -200px;
  opacity: 0.12;
}

.hero-glow-3 {
  width: 300px;
  height: 300px;
  background: var(--purple);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-text h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 400px;
}

.hero-card {
  position: absolute;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.hero-card:nth-child(1) {
  top: 0;
  left: 0;
  z-index: 3;
  transform: rotate(-3deg);
}

.hero-card:nth-child(2) {
  top: 40px;
  right: 0;
  z-index: 2;
  transform: rotate(2deg);
}

.hero-card:nth-child(3) {
  bottom: 0;
  left: 30px;
  z-index: 1;
  transform: rotate(-1deg);
}

.hero-card-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.hero-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.hero-card-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
}

/* ===== Section Styles ===== */
section {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== Featured Guides Section ===== */
.guides-section {
  background: var(--surface);
}

.guides-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.guide-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(0, 255, 136, 0.1);
}

.guide-card-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.guide-card-image .guide-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.guide-visual-1 {
  background: linear-gradient(135deg, #1a1a3a, #2a1a4a);
}
.guide-visual-2 {
  background: linear-gradient(135deg, #1a2a1a, #1a3a2a);
}
.guide-visual-3 {
  background: linear-gradient(135deg, #2a1a1a, #3a1a2a);
}
.guide-visual-4 {
  background: linear-gradient(135deg, #1a1a2a, #1a2a3a);
}

.guide-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--surface);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  backdrop-filter: blur(8px);
}

.guide-card-content {
  padding: 20px;
}

.guide-card-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.guide-card-content p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.guide-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.guide-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Reviews Section ===== */
.reviews-section {
  background: var(--background);
}

.reviews-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.review-score {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.score-high {
  background: rgba(0, 255, 136, 0.15);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.score-medium {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
  border: 2px solid var(--warning);
}

.score-low {
  background: rgba(248, 113, 113, 0.15);
  color: var(--error);
  border: 2px solid var(--error);
}

.review-card-genre {
  padding: 4px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.review-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.review-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.review-stars .star {
  color: var(--accent-2);
  font-size: 16px;
}

.review-stars .star.empty {
  color: var(--text-muted);
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Retro & Indie Section ===== */
.retro-section {
  background: var(--surface);
}

.retro-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.retro-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.retro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.retro-card:hover::before {
  opacity: 1;
}

.retro-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.08);
}

.retro-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.retro-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.retro-card p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.retro-card-era {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  color: var(--secondary);
}

/* ===== Family Games Section ===== */
.family-section {
  background: var(--background);
}

.family-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.family-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: var(--transition);
}

.family-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-2);
}

.family-card-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.family-card-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.family-card-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

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

.family-tag {
  padding: 4px 10px;
  background: rgba(255, 217, 61, 0.1);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-2);
}

/* ===== How It Works ===== */
.how-section {
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    var(--background) 100%
  );
}

.steps-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #0a0a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.step-icon {
  font-size: 40px;
  margin-bottom: 16px;
  margin-top: 8px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Testimonials ===== */
.testimonials-section {
  background: var(--surface);
}

.testimonials-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--surface-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.testimonial-info strong {
  display: block;
  font-size: 14px;
}

.testimonial-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.testimonial-stars {
  color: var(--accent-2);
  font-size: 14px;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* ===== FAQ Section ===== */
.faq-section {
  background: var(--background);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(0, 255, 136, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--surface-2);
}

.faq-icon {
  font-size: 20px;
  color: var(--primary);
  transition: var(--transition);
  font-weight: 300;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, #0a2a1a 0%, #1a1a3a 50%, #0a1a2a 100%);
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-icons {
  font-size: 36px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  background: #060612;
  padding: 64px 24px 32px;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
  text-align: center;
}

.footer-disclaimer {
  background: var(--surface);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.footer-bottom > p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #0a0a1a;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px var(--primary-glow);
}

/* ===== Page Header (for sub-pages) ===== */
.page-header {
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

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

.page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Content Cards (for sub-pages) ===== */
.content-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.content-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.content-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.content-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== Contact Form ===== */
.contact-section {
  background: var(--background);
}

.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-detail-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-detail-text span {
  font-size: 13px;
  color: var(--text-secondary);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-primary);
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== Privacy / Legal Pages ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 8px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rotate, 0deg));
  }
  50% {
    transform: translateY(-10px) rotate(var(--rotate, 0deg));
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px var(--primary-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--primary-glow);
  }
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .retro-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .reviews-grid,
  .guides-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .family-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .content-grid-3,
  .content-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    gap: 4px;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-buttons {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  section {
    padding: 72px 20px;
  }

  .hero {
    padding: 60px 20px;
  }

  .retro-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat {
    width: calc(50% - 12px);
    text-align: center;
  }
}
