@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap');

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover { color: var(--accent-gold); }

ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { margin: 0 0 16px; color: var(--text-secondary); }

.container {
  width: min(var(--container-max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(12, 14, 20, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(12, 14, 20, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.site-logo img { height: 36px; width: auto; }

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

.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
}

.nav-pills a {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-pills a:hover,
.nav-pills li.active a {
  color: var(--text-primary);
  background: rgba(255, 107, 53, 0.15);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  margin-left: 16px;
  background: var(--accent-gradient);
  color: #1a1008 !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #1a1008 !important;
}

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 999;
  background: rgba(12, 14, 20, 0.98);
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--border-color);
}

body.nav-open { overflow: hidden; }

/* Hero */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-height) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 24px;
  background: rgba(255, 179, 71, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-secondary);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #1a1008;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #1a1008;
}

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

.btn-outline:hover {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent-gold);
}

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

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: var(--accent-gradient);
  z-index: -1;
  opacity: 0.3;
  filter: blur(24px);
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.stat-item {
  padding: 28px 24px;
  background: var(--bg-elevated);
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-secondary);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sections */
.section {
  padding: var(--section-padding) 0;
  scroll-margin-top: var(--header-height);
}

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

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
}

/* About preview */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 80px;
  height: 80px;
  border-top: 3px solid var(--accent-primary);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm) 0 0 0;
}

.about-content h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.about-content .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
  color: var(--accent-primary);
}

.about-content .btn-link:hover { color: var(--accent-gold); }

/* Bento values grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), transform var(--transition);
}

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

.bento-card.large {
  grid-column: span 2;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.bento-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.bento-icon img { width: 100%; height: 100%; object-fit: contain; }

.bento-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.bento-card p { font-size: 15px; margin: 0; }

/* Game showcase */
.game-showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.game-showcase::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.game-tag {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 16px;
  background: rgba(255, 107, 53, 0.15);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.game-showcase h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.game-showcase h3 a { color: inherit; }
.game-showcase h3 a:hover { color: var(--accent-secondary); }

.game-thumb img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* Screenshot gallery */
.screenshot-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

.screenshot-track::-webkit-scrollbar { height: 6px; }
.screenshot-track::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 3px; }
.screenshot-track::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 3px; }

.screenshot-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform var(--transition);
}

.screenshot-item:hover { transform: scale(1.03); }
.screenshot-item img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }

/* Culture section */
.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.culture-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.culture-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.culture-card:hover img { transform: scale(1.05); }

.culture-card figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(transparent 40%, rgba(12, 14, 20, 0.9));
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Page header (inner pages) */
.page-header {
  padding: calc(var(--header-height) + 48px) 0 48px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 3px;
  background: var(--accent-gradient);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb .current { color: var(--accent-secondary); }

/* About full page */
.advantage-list {
  margin: 24px 0;
}

.advantage-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 15px;
}

.advantage-list li::before {
  content: '◆';
  color: var(--accent-primary);
  margin-right: 12px;
  font-size: 10px;
}

/* Game detail */
.game-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.game-detail-content h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.feature-list {
  margin: 24px 0;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  color: var(--text-secondary);
  font-size: 15px;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--accent-gradient);
  border-radius: 50%;
}

.game-detail-visual img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-details {
  margin-top: 32px;
}

.contact-details dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.contact-details dd {
  margin: 0 0 20px;
  color: var(--text-primary);
  font-size: 15px;
}

.contact-info-only {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-info-only .contact-details {
  text-align: left;
  display: inline-block;
  margin-top: 32px;
}

.contact-form {
  padding: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(72, 187, 120, 0.15);
  color: #68d391;
  border: 1px solid rgba(72, 187, 120, 0.3);
}

.form-message.error {
  display: block;
  background: rgba(245, 101, 101, 0.15);
  color: #fc8181;
  border: 1px solid rgba(245, 101, 101, 0.3);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-main {
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }

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

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

.footer-payment {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-payment h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.payment-icons img { height: 32px; width: auto; opacity: 0.85; }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
}

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

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

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

.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
}

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

.section-alt { background: var(--bg-secondary); }
