/* ============================================
   EchoForge Studios — Landing Page Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-deep: #0d0d14;
  --bg: #1a1f2e;
  --surface: #242a3a;
  --border: rgba(255, 255, 255, 0.10);

  --text: #f2e9dd;
  --muted: #8a8a9a;
  --white: #ffffff;
  --text-dark: #1a1a1a;

  --gold: #d4a04a;
  --gold-light: #e8c47a;
  --gold-dark: #b8862e;
  --blue: #3ba8ff;
  --blue-dark: #1f78d1;
  --blue-soft: #7fd3ff;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1080px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 700px at 15% 10%, rgba(59, 168, 255, 0.12), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(212, 160, 74, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 35%, var(--bg-deep));
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--blue-soft);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section --- */
.section {
  padding: clamp(48px, 7vw, 100px) 0;
}

.section-alt {
  background: rgba(15, 15, 20, 0.5);
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 2.5vw, 34px);
  color: var(--white);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* --- Hero --- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-logo {
  width: clamp(200px, 30vw, 320px);
  height: auto;
  animation: logo-glow 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(212, 160, 74, 0.15));
}

@keyframes logo-glow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(212, 160, 74, 0.15))
           drop-shadow(0 0 60px rgba(59, 168, 255, 0.05));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(212, 160, 74, 0.30))
           drop-shadow(0 0 80px rgba(59, 168, 255, 0.12));
  }
}

.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
  max-width: 420px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.6;
}

.scroll-hint span {
  display: block;
  font-size: 1.2rem;
  margin-top: 4px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--text-dark);
  box-shadow: 0 8px 24px rgba(212, 160, 74, 0.18);
}

.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: var(--text-dark);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--blue);
  background: rgba(59, 168, 255, 0.06);
  color: var(--white);
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.about-text p + p {
  margin-top: 16px;
}

.about-values {
  display: grid;
  gap: 20px;
}

.value-item {
  background: linear-gradient(135deg, var(--surface), rgba(36, 42, 58, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.value-item h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Game Cards --- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.game-card {
  background: linear-gradient(160deg, rgba(36, 42, 58, 0.9), rgba(26, 31, 46, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.game-card:hover {
  border-color: rgba(59, 168, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.game-card-banner {
  margin: -32px -28px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: #0c0e18;
}

.game-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


.game-card h3 {
  font-size: 1.25rem;
  color: var(--white);
}

.game-card-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.game-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #5ac46a;
}

.game-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ac46a;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--surface), rgba(36, 42, 58, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.contact-link:hover {
  border-color: rgba(59, 168, 255, 0.25);
  color: var(--white);
}

.contact-link .icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.social-links h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 12px;
}

.social-links p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.social-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.social-btn .icon {
  font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .social-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-logo {
    width: clamp(180px, 50vw, 260px);
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    padding: 24px 20px;
  }

  .game-card-banner {
    margin: -24px -20px 16px;
  }
}
