@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700;900&display=swap');

:root {
  --bg-color: #0b0c10;
  --text-primary: #c5c6c7;
  --text-secondary: #8c8c8e;
  --accent-color: #66fcf1;
  --accent-glow: rgba(102, 252, 241, 0.4);
  --accent-secondary: #45a29e;
  --surface-color: #1f2833;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background Elements */
#stars-canvas, #balls-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
}

#balls-canvas {
  z-index: -1;
}

.clouds-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 50%, rgba(31, 40, 51, 0) 0%, rgba(11, 12, 16, 0.9) 100%);
  z-index: -2;
  pointer-events: none;
}

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
  padding-top: 20px;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.ios-icon {
  border-radius: 22.5%; /* Classic iOS Squircle approximation */
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--accent-glow);
  transition: transform 0.3s ease;
}

.header-logo {
  width: 100px;
  height: 100px;
}

.logo-link:hover .header-logo {
  transform: scale(1.05);
}

header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 10px;
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--accent-glow);
}

header h1 .dot {
  color: var(--accent-color);
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

nav a:hover {
  color: var(--bg-color);
  background: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
  border-color: var(--accent-color);
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 20px;
}

.hero-content {
  flex: 1;
}

.tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 400px;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px var(--accent-glow);
}

.store-icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
}

.btn-text {
  display: flex;
  flex-direction: column;
}

.small-text {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  line-height: 1;
}

.large-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.mock-container {
  position: relative;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: crosshair;
  z-index: 20;
}

.mock-container:hover {
  transform: scale(1.02) translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 60px var(--accent-color);
}

.gamemock-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
  border-radius: 30px;
  border: 4px solid rgba(255,255,255,0.1);
  /* Prevent mobile save image / copy popup */
  -webkit-touch-callout: none; 
  -webkit-user-select: none; 
  user-select: none;
  -webkit-user-drag: none;
}

.hover-hint {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: var(--bg-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.mock-container:hover .hover-hint {
  opacity: 1;
}

/* Legal Pages Content Box - KEEP THIS INTACT */
.content-box {
  background: rgba(31, 40, 51, 0.8);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.05);
  animation: fadeIn 0.8s ease forwards;
  backdrop-filter: blur(10px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.content-box h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--accent-secondary);
  padding-bottom: 15px;
}

.content-box h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 40px;
  margin-bottom: 15px;
}

.content-box p {
  margin-bottom: 15px;
}

.content-box ul {
  list-style-type: none;
  margin-bottom: 20px;
}

.content-box ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.content-box ul li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  top: -2px;
}

.content-box strong {
  color: #fff;
}

.content-box a {
  color: var(--accent-color);
  text-decoration: none;
  transition: text-shadow 0.3s ease;
  font-weight: 600;
}

.content-box a:hover {
  text-shadow: 0 0 10px var(--accent-glow);
}

footer {
  text-align: center;
  margin-top: auto;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  z-index: 10;
}

.footer-links {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .tagline {
    font-size: 2.5rem;
  }
  .description {
    margin: 0 auto 30px;
    font-size: 1rem;
  }
  .download-buttons {
    justify-content: center;
    margin-bottom: 20px;
  }
  .gamemock-img {
    max-width: 250px;
  }
  .content-box {
    padding: 30px 20px;
  }
  header h1 {
    font-size: 2.2rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
