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

:root {
  --bg: #fafbfc;
  --bg-alt: #f0f4f8;
  --text: #1a2332;
  --text-muted: #5a6a7e;
  --accent: #2b7a9e;
  --accent-light: #e8f4f8;
  --accent-dark: #1d5f7a;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }

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

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,251,252,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-logo img { height: 32px; width: 32px; }

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .2s;
}

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

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: .3s;
}

/* ===== Section layout ===== */
section { padding: 100px 24px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 560px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px;
  background: linear-gradient(160deg, var(--bg) 0%, var(--accent-light) 50%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(43,122,158,0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(43,122,158,0.04) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 2%); }
}

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

.hero-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transition: background .2s, transform .2s;
}

.hero-cta:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-hint span {
  display: block;
  width: 24px; height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  opacity: 0.4;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== About ===== */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: transform .2s, box-shadow .2s;
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.about-icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

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

/* ===== Games ===== */
.games { background: var(--bg-alt); }

.game-showcase {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.game-header {
  background: linear-gradient(135deg, #1d5f7a 0%, #2b7a9e 50%, #3d9ec4 100%);
  padding: 48px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 40px;
}

.game-icon-wrapper {
  flex-shrink: 0;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.15);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}

.game-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.game-header-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.game-header-text .game-genre {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 12px;
}

.game-header-text .game-tagline {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 480px;
  line-height: 1.5;
}

.game-body { padding: 40px; }

.game-description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 720px;
  line-height: 1.7;
}

.game-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.game-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
}

.game-feature-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.game-feature h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

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

.game-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.screenshot {
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  width: 100%;
}

.game-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all .2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Contact ===== */
.contact { background: var(--bg); text-align: center; }

.contact-email {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
}

.contact-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  transition: all .2s;
}

.contact-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: #fff; }

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

/* ===== Privacy page ===== */
.page-header {
  padding: 120px 24px 60px;
  background: var(--bg-alt);
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

.page-header p {
  color: var(--text-muted);
  margin-top: 8px;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text);
}

.page-content p, .page-content ul {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.page-content ul {
  padding-left: 24px;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(250,251,252,0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--card-border);
  }
  .nav-toggle { display: block; }

  .game-header {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }

  .game-body { padding: 24px; }

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

  section { padding: 72px 20px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .game-screenshots {
    grid-template-columns: 1fr;
  }

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