:root {
  --primary-color: #4a90e2;
  --dark-color: #2c3e50;
  --light-bg: #ffffff;
  --dark-bg: #1a1a1a;
  --light-text: #2c3e50;
  --dark-text: #ffffff;
}

[data-theme="dark"] {
  --primary-color: #64b5f6;
  --bg-color: var(--dark-bg);
  --text-color: var(--dark-text);
}

[data-theme="light"] {
  --bg-color: var(--light-bg);
  --text-color: var(--light-text);
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background: var(--bg-color);
  transition: background-color 0.3s, color 0.3s;
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  z-index: 100;
}

.hero {
  background: linear-gradient(135deg, var(--primary-color), #34495e);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.1);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -5rem;
  left: 0;
  width: 100%;
  height: 6rem;
  background: var(--bg-color);
  transform: skewY(-3deg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--bg-color);
  border: 1px solid rgba(74, 144, 226, 0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 0.5rem;
}

.cta-button:hover {
  background: #357abd;
  transform: translateY(-2px);
}

.demo-section {
  padding: 4rem 0;
  background: rgba(74, 144, 226, 0.05);
  border-radius: 12px;
  margin: 2rem 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.demo-item {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.demo-item h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.demo-video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 1rem 0;
}

.demo-item p {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.documentation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.doc-link {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(74, 144, 226, 0.1);
  text-decoration: none;
  color: var(--primary-color);
  transition: background 0.3s ease;
}

.doc-link:hover {
  background: rgba(74, 144, 226, 0.2);
}

footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(74, 144, 226, 0.2);
}

.slides-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
  scroll-snap-type: y mandatory;
}

.slide {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

.story-section {
  background: var(--bg-color);
  padding: 4rem 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  position: relative;
}

.story-section::before {
  content: '"';
  font-size: 6rem;
  position: absolute;
  top: -1rem;
  left: 1rem;
  color: var(--primary-color);
  opacity: 0.2;
}

.platform-support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.platform-card {
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--primary-color);
  text-align: center;
}

.feature-highlight {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 0.5rem 0;
}

.code-snippet {
  background: rgba(74, 144, 226, 0.1);
  padding: 1rem;
  border-radius: 8px;
  font-family: monospace;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1rem;
  }
  .features {
    grid-template-columns: 1fr;
  }
}
