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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #000;
  color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  height: 48px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: #f5f5f7;
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: #d1d1d6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

/* HERO SECTIONS */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-light {
  background: #fbfbfd;
  color: #1d1d1f;
}

.hero-dark {
  background: #000;
  color: #f5f5f7;
}

.hero-gray {
  background: #111;
  color: #f5f5f7;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.07;
  max-width: 700px;
}

.hero h2 {
  font-size: 28px;
  font-weight: 400;
  color: #86868b;
  margin-top: 10px;
  max-width: 600px;
  line-height: 1.2;
}

.hero-dark h2 {
  color: #a1a1a6;
}

.hero p.lead {
  font-size: 21px;
  color: #86868b;
  margin-top: 16px;
  max-width: 550px;
  line-height: 1.4;
}

.hero-dark p.lead {
  color: #a1a1a6;
}

/* CTA LINKS */
.cta-row {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta {
  font-size: 21px;
  color: #2997ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.cta:hover {
  text-decoration: underline;
}

.cta-arrow::after {
  content: '\203A';
  font-size: 24px;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #2997ff;
  color: #fff;
  border: none;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #0077ed;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: #2997ff;
  border: 2px solid #2997ff;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #2997ff;
  color: #fff;
}

/* SECTION TILES (Apple product grid style) */
.section-tiles {
  padding: 0 16px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tile {
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.tile-dark {
  background: #1d1d1f;
  color: #f5f5f7;
}

.tile-light {
  background: #f5f5f7;
  color: #1d1d1f;
}

.tile h3 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.tile p {
  font-size: 17px;
  color: #86868b;
  margin-bottom: 16px;
  max-width: 380px;
}

.tile-dark p {
  color: #a1a1a6;
}

.tile-icon {
  font-size: 80px;
  margin-top: auto;
  margin-bottom: 20px;
  opacity: 0.9;
}

.tile-wide {
  grid-column: 1 / -1;
}

/* GAME CARDS */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
}

.game-card {
  background: #1d1d1f;
  border-radius: 18px;
  padding: 28px 24px;
  text-decoration: none;
  color: #f5f5f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

.game-card:hover {
  transform: scale(1.02);
  background: #2d2d2f;
}

.game-card-icon {
  font-size: 42px;
  margin-bottom: 4px;
}

.game-card-title {
  font-size: 19px;
  font-weight: 600;
}

.game-card-desc {
  font-size: 14px;
  color: #86868b;
}

/* APP ICONS */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 28px;
  max-width: 700px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f5f5f7;
  transition: transform 0.2s;
}

.app-card:hover {
  transform: scale(1.08);
}

.app-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}

.app-card small {
  font-size: 13px;
  color: #a1a1a6;
}

/* BRAND ROW */
.brands {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.brand-link {
  text-decoration: none;
  color: #f5f5f7;
  font-size: 24px;
  font-weight: 700;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.brand-link:hover {
  opacity: 1;
}

/* AI CHAT */
.chat-container {
  max-width: 640px;
  width: 100%;
  margin: 40px auto 0;
  padding: 0 24px;
}

.chat-messages {
  background: #1d1d1f;
  border-radius: 18px;
  padding: 24px;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.chat-messages p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.5;
}

.chat-messages .user-msg {
  text-align: right;
  color: #2997ff;
}

.chat-messages .bot-msg {
  text-align: left;
  color: #a1a1a6;
}

.chat-messages .placeholder {
  color: #48484a;
  text-align: center;
  margin-top: 70px;
}

.chat-input-row {
  display: flex;
  gap: 12px;
}

.chat-input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 980px;
  background: #1d1d1f;
  color: #f5f5f7;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}

.chat-input::placeholder {
  color: #48484a;
}

.chat-input:focus {
  box-shadow: 0 0 0 2px #2997ff;
}

/* QUESTION FORM */
.question-form {
  max-width: 600px;
  width: 100%;
  margin: 40px auto 0;
  padding: 0 24px;
}

.question-input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 14px;
  background: #1d1d1f;
  color: #f5f5f7;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  margin-bottom: 12px;
}

.question-input::placeholder {
  color: #48484a;
}

.question-input:focus {
  box-shadow: 0 0 0 2px #2997ff;
}

.question-reply {
  text-align: center;
  color: #86868b;
  font-size: 15px;
  min-height: 24px;
}

/* SEARCH */
.search-bar {
  max-width: 480px;
  width: 100%;
  margin: 24px auto 40px;
  padding: 0 24px;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 980px;
  background: #1d1d1f;
  color: #f5f5f7;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.search-input::placeholder {
  color: #48484a;
}

.search-input:focus {
  box-shadow: 0 0 0 2px #2997ff;
}

/* FOOTER */
footer {
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: #48484a;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1024px;
  margin: 0 auto;
}

footer a {
  color: #2997ff;
  text-decoration: none;
}

/* GAME POPUP */
.game-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.game-popup.open {
  display: flex;
}

.game-popup-inner {
  background: #1d1d1f;
  border-radius: 24px;
  padding: 40px;
  min-width: 340px;
  max-width: 500px;
  text-align: center;
  position: relative;
  color: #f5f5f7;
}

.close-game {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #86868b;
  transition: color 0.2s;
}

.close-game:hover {
  color: #f5f5f7;
}

/* RESPONSIVE */
@media (max-width: 734px) {
  .nav-inner {
    padding: 0 16px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 12px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero h2 {
    font-size: 21px;
  }
  .tiles-grid {
    grid-template-columns: 1fr;
  }
  .tile {
    min-height: 380px;
    padding: 40px 24px;
  }
  .tile h3 {
    font-size: 28px;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
}
