/* ==================== APPLE-STYLE DESIGN SYSTEM ==================== */
:root {
  --bg-black: #000000;
  --bg-dark-grey: #0a0a0b;
  --accent-blue: #0066cc;
  --accent-purple: #862ccb;
  --text-white: #f5f5f7;
  --text-grey: #ffffff;
  --glass-bg: rgba(22, 22, 23, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-apple: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  --section-padding: 160px;
  --section-padding-mobile: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-apple);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('assets/title_bg_new.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: -1;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-padding) 22px;
  position: relative;
  overflow: hidden;
}

.hero-logo-box {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.hero-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero h1 {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero p.tagline {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 40px;
}

.hero .cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: white;
  padding: 12px 24px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: #0077ed;
  transform: scale(1.02);
}

/* ==================== PRODUCT DISPLAY ==================== */
.product-showcase {
  width: 100%;
  max-width: 1200px;
  margin-top: 80px;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 320px;
  aspect-ratio: 1350 / 2760;
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  position: relative;
}

.phone-mockup::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('assets/bezel.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  top: 2.2%;
  left: 4.8%;
  right: 4.8%;
  bottom: 2.2%;
  border-radius: 14% / 6.5%;
  overflow: hidden;
  background-color: #000;
  background-image: url('assets/game_screenshot.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* ==================== FEATURES ==================== */
.section {
  padding: var(--section-padding) 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
}

.grid {
  display: flex;
  /* Changed from grid to flex for better control */
  gap: 24px;
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p.tagline {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .hero {
    padding-top: 100px;
  }

  .product-showcase {
    margin-top: 40px;
  }

  .phone-mockup {
    width: 260px;
    height: auto;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .grid {
    flex-direction: column;
  }

  .card {
    padding: 30px !important;
    min-height: 300px !important;
  }

  .card-title {
    font-size: 24px !important;
  }

  .social-section {
    padding: 60px 22px !important;
  }

  .social-links {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
}

.card {
  background-color: #161617;
  border-radius: 30px;
  padding: 60px 60px 48px;
  /* Consistent top padding */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Align content to top */
  min-height: 500px;
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: scale(1.01);
}

.card-title {
  font-size: 28px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 24px;
  /* More space before description */
  line-height: 1.25;
  min-height: 80px;
  /* Standardized height for titles */
  display: flex;
  align-items: flex-start;
  /* Align text to top of title box */
}

.card-desc {
  font-size: 18px;
  color: var(--text-grey);
  line-height: 1.6;
  min-height: 120px;
  /* Standardized height for descriptions */
}

/* ==================== SPECIAL TILES (From Manual) ==================== */
.special-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 30px 0 0;
}

.sp-card {
  text-align: center;
  padding-top: 10px;
}

.sp-card h4 {
  font-size: 15px;
  margin: 12px 0 0;
  font-weight: 700;
}

/* ==================== SOCIAL ==================== */
.social-section {
  text-align: center;
  padding: 100px 22px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
}

.social-link {
  font-size: 17px;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.social-link:hover {
  text-decoration: underline;
}

/* ==================== FOOTER ==================== */
footer {
  padding: 60px 22px;
  border-top: 1px solid #333;
  text-align: center;
  color: var(--text-grey);
  font-size: 12px;
}

/* ==================== ANIMATIONS ==================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}