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

:root {
  --bg-color: #0b0c10;
  --surface-color: rgba(25, 26, 35, 0.4);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #9092a5;
  --accent-1: #c026d3; /* Vibrant Purple */
  --accent-2: #3b82f6; /* Electric Blue */
  --glow-shadow: 0 0 40px rgba(192, 38, 211, 0.4);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Dynamic background glowing blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(140px);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--accent-1);
  animation-delay: 0s;
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: var(--accent-2);
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.1); }
  100% { transform: translate(-50px, 150px) scale(0.9); }
}

/* Glassmorphism Utilities */
.glass {
  background: var(--surface-color);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(11, 12, 16, 0.8);
  backdrop-filter: blur(20px);
  padding: 15px 5%;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: 50px;
  background: white;
  color: black;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 5% 50px;
  position: relative;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
  animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s backwards;
}

.btn-primary {
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  border: none;
  overflow: hidden;
  color: white;
  background: transparent;
  cursor: pointer;
  border-radius: 50px;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  z-index: -1;
  transition: opacity 0.3s;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, var(--accent-2), var(--accent-1));
  z-index: -2;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

/* Device Mockup Showcase */
.showcase-wrapper {
  margin-top: 80px;
  perspective: 1000px;
  animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s backwards;
}

.device-frame {
  width: 320px;
  height: 650px;
  border: 12px solid #1a1a1e;
  border-radius: 40px;
  background: black;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(192, 38, 211, 0.3);
  position: relative;
  overflow: hidden;
  transform: rotateX(5deg) translateY(0);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.device-frame:hover {
  transform: rotateX(0deg) translateY(-10px);
}

.device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #1a1a1e;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.device-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

/* Features Grid */
.features {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 60px;
}

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

.feature-card {
  padding: 40px 30px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(192, 38, 211, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Animations */
@keyframes revealUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 100px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .device-frame { width: 280px; height: 580px; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; }
}
