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

:root {
  --bg: #0b0a12;
  --bg-elevated: #12101a;
  --bg-card: #16131f;
  --border: #2a2438;
  --text: #f0f0f5;
  --text-muted: #9a94a8;
  --accent: #ff2e2e;          /* SMACK red */
  --accent-hover: #ff4a4a;
  --accent-soft: rgba(255, 46, 46, 0.15);
  --purple: #a855f7;         /* TEST purple */
  --cyan: #22d3ee;           /* STUDIOS cyan */
  --gradient: linear-gradient(90deg, #ff2e2e 0%, #a855f7 50%, #22d3ee 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --font: 'Outfit', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #111;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 46, 46, 0.4);
}

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

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

/* ===== HTML Logo ===== */
.logo-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  position: relative;
}

.logo-smack {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: #ff2e2e;
  letter-spacing: 0.02em;
  text-shadow: 
    2px 2px 0 #111,
    -1px -1px 0 #111,
    1px -1px 0 #111,
    -1px 1px 0 #111,
    0 0 12px rgba(255, 46, 46, 0.5);
  transform: rotate(-6deg);
  position: relative;
  z-index: 2;
}

.logo-test {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: #c084fc;
  letter-spacing: 0.08em;
  margin-top: -6px;
  margin-left: 18px;
  transform: rotate(-6deg);
  text-shadow: 1px 1px 0 #111;
  z-index: 3;
  position: relative;
}

.logo-studios {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #22d3ee;
  letter-spacing: 0.04em;
  margin-top: 1px;
  text-shadow: 
    2px 2px 0 #111,
    -1px -1px 0 #111,
    1px -1px 0 #111,
    -1px 1px 0 #111,
    0 0 10px rgba(34, 211, 238, 0.4);
  position: relative;
  z-index: 1;
}

/* Smaller version for footer */
.logo-mark-sm .logo-smack {
  font-size: 18px;
}

.logo-mark-sm .logo-test {
  font-size: 9px;
  margin-top: -5px;
  margin-left: 14px;
}

.logo-mark-sm .logo-studios {
  font-size: 13px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.cart-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

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

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 90% 60% at 30% -10%, rgba(255, 46, 46, 0.28), transparent),
    radial-gradient(ellipse 70% 50% at 80% 50%, rgba(168, 85, 247, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 60% 90%, rgba(34, 211, 238, 0.08), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding: 80px 24px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ===== Featured ===== */
.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 32px;
}

.featured-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, #1a1a28 0%, #252540 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
}

.featured-placeholder {
  background: linear-gradient(135deg, #2a1218 0%, #1a1528 50%, #121a28 100%);
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.featured-info h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.featured-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.price-old {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.app-edition-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.app-edition-note strong {
  color: var(--cyan);
}

/* ===== Games Grid ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}

.game-card:hover {
  border-color: rgba(255, 46, 46, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.game-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.game-card-image .placeholder-img {
  min-height: unset;
  height: 100%;
  border-radius: 0;
}

.game-card-body {
  padding: 20px;
}

.game-card-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.game-card-body .tags {
  margin-bottom: 12px;
}

.game-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-footer .price {
  font-size: 18px;
}

.game-card-footer .btn {
  padding: 10px 18px;
  font-size: 13px;
}

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

.about-content h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.about-placeholder {
  min-height: 360px;
  background: linear-gradient(145deg, #1a1218 0%, #151228 50%, #121a28 100%);
}

/* ===== Contact ===== */
.contact-section {
  padding-bottom: 120px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-card > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 14px;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

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

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

/* ===== Cart Sidebar ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 200;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.close-cart {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.close-cart:hover {
  color: var(--text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.empty-cart {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-info .item-price {
  font-size: 14px;
  color: var(--text-muted);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
}

.cart-item-qty button:hover {
  border-color: var(--accent);
}

.remove-item {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  margin-top: 4px;
}

.remove-item:hover {
  color: var(--accent);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 36px;
  }

  .stats {
    gap: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Improved Mobile ===== */
@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    padding: 8px 0;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 60px 0;
  }

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

  .featured-card {
    padding: 20px;
  }

  .price {
    font-size: 24px;
  }

  .stats {
    flex-direction: column;
    gap: 16px;
  }

  .cart-sidebar {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 28px;
  }

  .logo-smack {
    font-size: 18px;
  }

  .logo-test {
    font-size: 9px;
  }

  .logo-studios {
    font-size: 13px;
  }
}

/* ===== Game Images ===== */
.featured-img,
.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.featured-image,
.game-card-image {
  overflow: hidden;
  position: relative;
}

.featured-image .featured-img {
  min-height: 280px;
}

.game-card-image .game-img {
  min-height: 180px;
  aspect-ratio: 16/9;
}

/* ===== Game Images ===== */
.featured-game-img,
.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.featured-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.featured-game-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-card-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-elevated);
}

.game-card-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ===== Featured Actions ===== */
.featured-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.featured-actions .btn {
  flex: 1;
  min-width: 140px;
}

@media (max-width: 600px) {
  .featured-actions {
    flex-direction: column;
  }
  .featured-actions .btn {
    width: 100%;
  }
}
