:root {
  --bg-dark: #0a0a0f;
  --bg-card: rgba(20, 20, 30, 0.4);
  --bg-card-hover: rgba(30, 30, 45, 0.6);
  --text-main: #f0f0f5;
  --text-muted: #9ca3af;
  
  --primary: #8b5cf6; /* Purple */
  --secondary: #06b6d4; /* Cyan */
  --accent: #ec4899; /* Pink */
  
  --gradient-text: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent));
  --gradient-glow: conic-gradient(from 180deg at 50% 50%, #2a8af6 0deg, #a853ba 180deg, #e92a67 360deg);
  
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  font-family: 'Outfit', sans-serif;
  line-height: 1.5;
  font-weight: 400;
  
  color-scheme: dark;
  color: var(--text-main);
  background-color: var(--bg-dark);
  
  scroll-behavior: smooth;
}

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

body {
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

/* Background Glowing Orbs */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

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

.orb-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, rgba(10,10,15,0) 70%);
}

.orb-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, rgba(10,10,15,0) 70%);
  animation-delay: -5s;
}

.orb-3 {
  top: 40%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(236,72,153,0.2) 0%, rgba(10,10,15,0) 70%);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(5%, 10%); }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
  letter-spacing: 1px;
}

.logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:not(.btn-primary):hover {
  color: var(--secondary);
}

.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient-text);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary):hover::after {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-text);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: var(--bg-dark);
  border-radius: 100px;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover::before {
  opacity: 0;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: var(--glass-border);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.large {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  width: 24px;
  height: 24px;
}

/* Sections */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 8rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  color: #c4b5fd;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  padding: 2rem;
}

.main-card {
  width: 100%;
  max-width: 400px;
  height: 300px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.card-header .dots {
  display: flex;
  gap: 6px;
  margin-bottom: 2rem;
}

.card-header .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.card-header .dots span:nth-child(1) { background: #ef4444; }
.card-header .dots span:nth-child(2) { background: #eab308; }
.card-header .dots span:nth-child(3) { background: #22c55e; }

.ai-wave {
  display: flex;
  gap: 4px;
  height: 60px;
  align-items: center;
  margin-bottom: 1.5rem;
}

.ai-wave span {
  width: 8px;
  background: var(--gradient-text);
  border-radius: 4px;
  animation: wave 1.5s ease-in-out infinite alternate;
}

.ai-wave span:nth-child(1) { height: 20px; animation-delay: 0.1s; }
.ai-wave span:nth-child(2) { height: 40px; animation-delay: 0.2s; }
.ai-wave span:nth-child(3) { height: 60px; animation-delay: 0.3s; }
.ai-wave span:nth-child(4) { height: 40px; animation-delay: 0.4s; }
.ai-wave span:nth-child(5) { height: 20px; animation-delay: 0.5s; }

@keyframes wave {
  0% { height: 10px; }
  100% { height: 60px; }
}

.main-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.main-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.float-card-1, .float-card-2 {
  position: absolute;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 16px;
  z-index: 3;
}

.float-card-1 {
  top: 10%;
  right: -5%;
  animation: float-y 6s ease-in-out infinite alternate;
}

.float-card-1 svg { stroke: var(--secondary); width: 24px; height: 24px; }

.float-card-2 {
  bottom: 15%;
  left: -10%;
  animation: float-y 7s ease-in-out infinite alternate-reverse;
}

.float-card-2 svg { stroke: var(--accent); width: 24px; height: 24px; }

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

/* Section Common */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Apps Section */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.app-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.app-card:hover::before {
  opacity: 1;
}

.app-card:hover {
  transform: translateY(-10px);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.app-card > * {
  position: relative;
  z-index: 1;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.app-icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.gradient-1 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.gradient-2 { background: linear-gradient(135deg, #06b6d4, #0369a1); }
.gradient-3 { background: linear-gradient(135deg, #ec4899, #be185d); }

.app-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.app-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* About Section */
.about-section {
  padding: 8rem 2rem;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item h4 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
  margin: 0;
}

.glass-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.glass-panel::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(139, 92, 246, 0.3), transparent 30%);
  animation: rotate 10s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  100% { transform: rotate(1turn); }
}

.code-lines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.code-lines .line {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }
.indent { margin-left: 2rem; }

/* Footer */
.footer {
  border-top: var(--glass-border);
  padding: 6rem 2rem 2rem;
  background: rgba(0,0,0,0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  line-height: 1.6;
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations & Utilities */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 10rem;
  }
  
  .hero h1 { font-size: 3rem; }
  .hero p { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 3rem; }
  
  .about-container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    border-bottom: var(--glass-border);
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .stats { grid-template-columns: 1fr; gap: 1rem; }
}
