/* Grace Game Center — Coming Soon Website */
/* Brand colors from UI/UX Design System */

:root {
  --color-bg: #FAF7F2;
  --color-primary: #1B3A6B;
  --color-primary-light: #3B6CB0;
  --color-secondary: #7C6FB0;
  --color-secondary-light: #AEA3D4;
  --color-accent: #D4A126;
  --color-accent-light: #F0D06A;
  --color-surface: #FFFFFF;
  --color-surface-muted: #F0EDE7;
  --color-text: #2C2C2C;
  --color-text-muted: #6B6B6B;
  --color-night: #0E2245;
}

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

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

body {
  font-family: 'Nunito Sans', 'Nunito', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.site-header {
  background-color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(11, 22, 45, 0.15);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #FFFFFF;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Language selector */

.lang-selector {
  position: relative;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.lang-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.lang-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-surface);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
}

.lang-dropdown a:hover,
.lang-dropdown a:focus-visible {
  background: var(--color-surface-muted);
  outline: none;
}

.lang-dropdown a.active {
  color: var(--color-primary);
  background: var(--color-surface-muted);
}

/* ─── Hero ─── */

.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-night) 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 30% 20%, rgba(124, 111, 176, 0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(212, 161, 38, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 161, 38, 0.2);
  border: 1px solid rgba(212, 161, 38, 0.4);
  color: var(--color-accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* ─── Decorative cross icon in hero ─── */

.hero-icon {
  margin-bottom: 1.5rem;
}

.hero-icon svg {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

/* ─── Features section ─── */

.features {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.features h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-surface-muted);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-icon.blue { background: rgba(59, 108, 176, 0.12); color: var(--color-primary-light); }
.feature-icon.purple { background: rgba(124, 111, 176, 0.12); color: var(--color-secondary); }
.feature-icon.gold { background: rgba(212, 161, 38, 0.12); color: var(--color-accent); }

.feature-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ─── CTA / Coming soon ─── */

.cta-section {
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: var(--color-surface-muted);
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ─── Footer ─── */

.site-footer {
  margin-top: auto;
  background: var(--color-night);
  color: rgba(255, 255, 255, 0.6);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer a:hover {
  color: var(--color-accent-light);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-attribution {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-attribution a {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Responsive ─── */

@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }

  .features {
    padding: 3rem 1.25rem;
  }

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

  .logo-text {
    font-size: 1rem;
  }
}

/* ─── Accessibility ─── */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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