/* ============================================================
   TTGizmo Games
   ============================================================ */
:root {
  --bg: #0a0c14;
  --bg-2: #10131f;
  --panel: #161a29;
  --panel-2: #1c2133;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f7;
  --muted: #97a0b5;
  --brand: #5b8cff;
  --brand-2: #8b5bff;
  --radius: 16px;
  --maxw: 1160px;
  --font-display: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 14px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.01em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(91, 140, 255, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(91, 140, 255, 0.85); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 12, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px -8px rgba(139, 91, 255, 0.8);
}
.brand-text { font-size: 1.18rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-text em { font-style: normal; font-weight: 500; color: var(--muted); }

.nav { display: flex; gap: 34px; }
.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.18s ease;
  position: relative;
}
.nav a:hover { color: var(--text); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 190px 0 120px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1000px 500px at 75% -10%, rgba(139, 91, 255, 0.28), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(91, 140, 255, 0.22), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
  opacity: 0.5;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 700; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.02rem, 2vw, 1.22rem); color: var(--muted); max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.hero-stats span { color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== Section head ===== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ===== Games ===== */
.games { padding: 110px 0; }
.game-list { display: grid; gap: 34px; }
.game-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.game-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.game-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }

.game-head { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.game-icon {
  width: 92px; height: 92px; border-radius: 22px; flex-shrink: 0;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.7);
  border: 1px solid var(--border);
}
.game-heading h3 { font-size: 1.7rem; font-weight: 700; margin-bottom: 6px; }
.game-genre {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.game-tagline { font-family: var(--font-display); font-weight: 500; color: var(--text); font-size: 1.02rem; }
.game-desc { color: var(--muted); margin-bottom: 24px; max-width: 760px; }

.game-shots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
.shot-thumb {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  aspect-ratio: 16 / 10;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shot-thumb:hover { transform: scale(1.03); border-color: var(--accent); }

.game-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: flex; flex-direction: column; justify-content: center;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  min-width: 160px;
  cursor: default;
  opacity: 0.75;
}
.store-sub { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.store-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.store-btn--live {
  cursor: pointer;
  opacity: 1;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.store-btn--live:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

/* ===== About ===== */
.about { padding: 110px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-cards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-cards li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.about-cards li:hover { transform: translateY(-3px); border-color: rgba(91,140,255,0.5); }
.about-cards h3 { font-size: 1.12rem; margin-bottom: 8px; }
.about-cards p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ===== Contact ===== */
.contact { padding: 110px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: rgba(139,91,255,0.5); }
.contact-label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.contact-card a { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--text); transition: color 0.18s ease; word-break: break-word; }
.contact-card a:hover { color: var(--brand); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-copy { color: var(--muted); font-size: 0.85rem; text-align: right; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(5, 6, 12, 0.92);
  backdrop-filter: blur(8px);
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9); }
.lightbox-close {
  position: absolute; top: 22px; right: 28px;
  background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  color: #fff; width: 54px; height: 54px; border-radius: 50%;
  font-size: 1.8rem; cursor: pointer; transition: background 0.18s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10, 12, 20, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 300px; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero { padding: 150px 0 90px; }
  .hero-stats { gap: 28px; }
  .game-head { flex-direction: column; text-align: center; align-items: center; }
  .game-shots { grid-template-columns: repeat(2, 1fr); }
  .about-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
