:root {
  color-scheme: light dark;
  --primary: #2baac1;
  --gradient: linear-gradient(135deg, #2baac1, #1e8a97, #3bc5dd);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--neutral-foreground-rest);
  background: var(--neutral-layer-1);
  overflow-x: hidden;
  position: relative;
}

.grain {
  display: none;
}



.gradient-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient);
  filter: blur(60px);
  opacity: 0.3;
}

.orb-1 {
  width: 400px;
  height: 400px;
  top: -20%;
  left: -20%;
}

.orb-2 {
  width: 500px;
  height: 500px;
  top: 50%;
  right: -25%;
}

.orb-3 {
  width: 350px;
  height: 350px;
  bottom: -15%;
  left: 40%;
}

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

.hero {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff, #f0f8ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% { filter: brightness(1) contrast(1); }
  100% { filter: brightness(1.1) contrast(1.05); }
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  font-weight: 300;
}

.cta-button {
  position: relative;
  display: inline-block;
  padding: 1.2rem 3rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(20px);
}

.cta-button span {
  position: relative;
  z-index: 2;
}

.button-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255,255,255,0.6);
}

.cta-button:hover .button-bg {
  background: rgba(255,255,255,0.95);
}

.cta-button:active {
  transform: translateY(-2px);
}

.demos {
  padding: 6rem 0;
  background: var(--neutral-layer-2);
  position: relative;
}

.demos h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.demos h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3rem;
  justify-items: center;
}

@media (min-width: 1200px) {
  .demo-grid {
    grid-template-columns: repeat(3, minmax(380px, 400px));
    justify-content: center;
  }
}

.demo-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  width: 100%;
  max-width: 400px;
}

.demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-card:hover::before {
  transform: scaleX(1);
}

.demo-card:hover {
  box-shadow: 0 25px 80px rgba(43, 170, 193, 0.4);
  border-color: rgba(43, 170, 193, 0.6);
}

.demo-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(8px);
}

.demo-card:hover::after {
  opacity: 0.3;
}

.demo-card h3 {
  padding: 2rem 2rem 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neutral-foreground-rest);
}

.demo-desc {
  padding: 0 2rem 1.5rem;
  color: var(--neutral-foreground-hover);
  font-size: 0.95rem;
  line-height: 1.5;
}

.video-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-container.playing {
  transform: scale(1.02);
  box-shadow: 0 0 0 4px rgba(43, 170, 193, 0.4);
}

.video-container.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(43, 170, 193, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(2px);
}

.play-overlay:hover {
  background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(43, 170, 193, 0.2));
}

.play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding-left: 6px;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  background: white;
}

.play-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .orb {
    transform: scale(0.6);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}