:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --dark-bg: #000000;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --light-bg: #ffffff;
  --text-dark: #333333;
  --text-light: #ecf0f1;
}

[data-theme="dark"] {
  --bg-color: var(--dark-bg);
  --text-color: var(--text-light);
  --feature-bg: #1a1a1a;
  --feature-text: var(--text-light);
  --footer-bg: var(--dark-color);
  --footer-text: var(--text-light);
  --download-bg: #1a1a1a;
}

[data-theme="light"] {
  --bg-color: var(--light-bg);
  --text-color: var(--text-dark);
  --feature-bg: #ffffff;
  --feature-text: var(--text-dark);
  --footer-bg: var(--light-color);
  --footer-text: var(--text-dark);
  --download-bg: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

.theme-toggle i {
  font-size: 1.2rem;
  color: var(--text-color);
}

/* Tetromino background styles */
.tetromino {
  position: absolute;
  border: none;
  opacity: 0.2;
  z-index: 0;
  animation: float-tetromino 15s infinite linear;
  pointer-events: none;
}

/* Tetromino shapes using grid of blocks */
.tetromino-block {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #ff8c00;
  box-sizing: border-box;
}

/* Animation for tetrominos */
@keyframes float-tetromino {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, 10px) rotate(90deg);
  }
  50% {
    transform: translate(0, 20px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, 10px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Add logo styles */
.logo {
  max-height: 120px;
  max-width: 90dvw;
  margin-bottom: 1rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Update hero content to include logo */
.hero-content {
  max-width: 800px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.feature {
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  background: var(--feature-bg);
  color: var(--feature-text);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.download-section {
  position: relative;
  text-align: center;
  padding: 6rem 2rem;
  background: var(--download-bg);
  color: var(--text-color);
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.download-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.download-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.beta-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.app-store-button {
  display: inline-block;
  margin: 1rem;
  transition: transform 0.3s ease;
}

.app-store-button:hover {
  transform: scale(1.05);
}

.app-store-button img {
  height: 60px;
}

.footer {
  position: relative;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 2rem 2rem;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-links h4,
.footer-social h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--footer-text);
  text-decoration: none;
  opacity: 0.8;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  font-size: 1.5rem;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  .tagline {
    font-size: 1.2rem;
  }
  .footer-content {
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
}
