/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00d9a3;
  --primary-dark: #00b88a;
  --accent: #4fb3d9;
  --bg-dark: #1a2332;
  --bg-darker: #0f1419;
  --bg-elevated: #2d3f5f;
  --text-primary: #ffffff;
  --text-muted: #a8d5e5;
  --text-secondary: #8ab4c8;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-large: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-darker);
  overflow-x: hidden;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-elevated) 50%, var(--bg-dark) 100%);
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, transparent 1px, transparent 40px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, transparent 1px, transparent 40px);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-icon {
  margin-bottom: 32px;
  animation: float 3s ease-in-out infinite;
}

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

.hero-icon img {
  width: 256px;
  height: 256px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.hero h1 {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -2px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tagline {
  font-size: 28px;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-weight: 500;
  line-height: 1.4;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.cta-button.primary {
  background: var(--primary);
  color: var(--bg-darker);
  box-shadow: 0 4px 16px rgba(0, 217, 163, 0.3);
}

.cta-button.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 217, 163, 0.4);
}

.cta-button.large {
  padding: 20px 40px;
  font-size: 20px;
}

.version {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Features Section */
.features {
  padding: 100px 24px;
  background: var(--bg-darker);
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(79, 179, 217, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* Keyboard Navigation Section */
.keyboard-nav {
  padding: 100px 24px;
  background: var(--bg-dark);
  text-align: center;
}

.keyboard-nav h2 {
  font-size: 48px;
  margin-bottom: 16px;
  font-weight: 700;
}

.section-intro {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.keyboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.keyboard-shortcut {
  background: var(--bg-elevated);
  padding: 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
}

kbd {
  background: var(--bg-darker);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 40px;
  text-align: center;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.keyboard-shortcut span {
  color: var(--text-muted);
  font-size: 14px;
}

/* Screenshots Section */
.screenshots {
  padding: 100px 24px;
  background: var(--bg-darker);
  text-align: center;
}

.screenshots h2 {
  font-size: 48px;
  margin-bottom: 48px;
  font-weight: 700;
}

/* Carousel */
.carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.carousel-container {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.carousel-slide img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-large);
  border: 1px solid var(--border);
}

.carousel-caption {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 8px;
}

.carousel-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.carousel-dot:hover {
  background: var(--text-muted);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--primary);
  width: 32px;
  border-radius: 6px;
}

/* Trust Section */
.trust {
  padding: 100px 24px;
  background: var(--bg-dark);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  text-align: center;
}

.trust-item h3 {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 600;
}

.trust-item p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-dark) 100%);
  text-align: center;
}

.cta-section h2 {
  font-size: 48px;
  margin-bottom: 32px;
  font-weight: 700;
}

.cta-subtext {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Footer */
footer {
  padding: 48px 24px;
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.copyright {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 48px;
  }

  .tagline {
    font-size: 20px;
  }

  .features h2,
  .keyboard-nav h2,
  .screenshots h2,
  .cta-section h2 {
    font-size: 36px;
  }

  .features-grid,
  .keyboard-grid {
    grid-template-columns: 1fr;
  }

  .cta-button {
    padding: 14px 28px;
    font-size: 16px;
  }

  .cta-button.large {
    padding: 16px 32px;
    font-size: 18px;
  }

  .carousel {
    gap: 16px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero {
    padding: 80px 24px 60px;
  }

  .features,
  .keyboard-nav,
  .screenshots,
  .trust,
  .cta-section {
    padding: 60px 24px;
  }
}
