/* Rose Play – Casual Puzzle Games Developer Portal */

:root {
  --bg: #0b0f14;
  --bg-card: #131a22;
  --bg-card-hover: #1a2330;
  --text: #e8ecf1;
  --text-muted: #8b9aaa;
  --accent: #3b9eda;
  --accent-soft: rgba(59, 158, 218, 0.15);
  --accent-2: #6dd4b1;
  --accent-2-soft: rgba(109, 212, 177, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 14px;
  --radius-lg: 20px;
  --font: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-h: 72px;
  --container: min(1120px, 92vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.btn-cta {
  padding: 10px 18px !important;
  background: var(--accent);
  color: #fff !important;
  border-radius: 10px;
}

.btn-cta:hover {
  background: #2d8bc9;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -120px;
  right: -80px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: var(--accent-2);
  bottom: -60px;
  left: -60px;
  opacity: 0.25;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 16px 0;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 32px 0;
  max-width: 520px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s, transform 0.15s;
}

.btn-hero:hover {
  background: #2d8bc9;
  transform: translateY(-1px);
}

.btn-hero-light {
  background: #fff;
  color: var(--bg);
}

.btn-hero-light:hover {
  background: #e8ecf1;
  color: var(--bg);
}

.play-icon {
  flex-shrink: 0;
}

/* Sections common */
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 40px 0;
  max-width: 560px;
}

/* Games grid */
.games {
  padding: 100px 0 120px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.game-card {
  display: block;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.game-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(59, 158, 218, 0.25);
  transform: translateY(-2px);
}

.game-icon {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.game-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text);
}

.game-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* About */
.about {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 158, 218, 0.04) 50%, transparent 100%);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content .section-title {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  margin: 0 0 16px 0;
}

.btn-secondary {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(59, 158, 218, 0.3);
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(59, 158, 218, 0.25);
  border-color: var(--accent);
}

.stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stat-card {
  flex: 1;
  min-width: 120px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* CTA */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--accent) 0%, #2a7ba6 100%);
  text-align: center;
}

.cta .section-title.light,
.cta .section-desc.light {
  color: rgba(255, 255, 255, 0.95);
}

.cta .section-desc.light {
  color: rgba(255, 255, 255, 0.8);
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-hero {
  margin-top: 16px;
}

/* Footer */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-copy {
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 24px 0 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: -1;
  }

  .stat-cards {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    order: 2;
  }

  .footer-copy {
    order: 3;
  }
}

/* Mobile nav (optional open state) */
.nav.open {
  display: flex;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  background: var(--bg);
  z-index: 99;
}

.nav.open a {
  font-size: 1.2rem;
}

.nav.open .btn-cta {
  margin: 16px 24px 0;
}

/* Legal pages (Privacy, Terms) */
.legal-page {
  padding: calc(var(--header-h) + 48px) 0 80px;
  min-height: 80vh;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}

.legal-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 24px 0;
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 40px 0;
  line-height: 1.6;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 36px 0 12px 0;
  color: var(--text);
}

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

.legal-content p {
  margin: 0 0 16px 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-content ul {
  margin: 0 0 20px 0;
  padding-left: 1.4em;
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}
