:root {
  --bg-base: #030305;
  --bg-panel: rgba(18, 18, 24, 0.6);
  --bg-panel-hover: rgba(26, 26, 35, 0.8);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-1: #8b5cf6; /* Purple */
  --accent-2: #3b82f6; /* Blue */
  --accent-3: #ec4899; /* Pink */
  
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .logo {
  font-family: 'Outfit', sans-serif;
}

/* Background Effects */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.15), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.1), transparent 30%);
  filter: blur(60px);
  animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { transform: scale(1); opacity: 0.8;}
  100% { transform: scale(1.1); opacity: 1;}
}

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

.text-center { text-align: center; }
.justify-center { justify-content: center; }
.mb-1 { margin-bottom: 1rem; }

/* Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(3, 3, 5, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.glass-nav.scrolled {
  background: rgba(3, 3, 5, 0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
}

.logo-icon { color: var(--accent-1); }
.logo-highlight { font-weight: 400; color: var(--text-muted); }

nav { display: flex; align-items: center; gap: 2rem; }
nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
nav a:hover { color: #fff; }
nav a.btn { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Typography & Badges */
.text-gradient {
  background: linear-gradient(135deg, #a78bfa, #60a5fa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.font-bold { font-weight: 700; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #c4b5fd;
  margin-bottom: 2rem;
}

.badge-purple { background: var(--accent-1); color: #fff; padding: 0.2rem 0.8rem; border: none; font-size: 0.8rem; }

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-1);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 5rem;
}

/* Micro Mockup */
.mockup-panel {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.5s ease;
}
.mockup-panel:hover {
  transform: perspective(1000px) rotateX(0deg);
}

.mockup-header {
  background: rgba(0,0,0,0.5);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: #4b5563; }
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #eab308; }
.mockup-dots span:nth-child(3) { background: #22c55e; }
.mockup-url { 
  background: rgba(255,255,255,0.05); 
  border-radius: 6px; 
  padding: 0.2rem 1rem; 
  font-size: 0.75rem; 
  color: var(--text-muted);
  flex-grow: 1;
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}
.mockup-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 400px;
  background: rgba(10, 10, 15, 0.8);
}
.mockup-sidebar {
  border-right: 1px solid var(--glass-border);
  padding: 1.5rem;
}
.skeleton-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.skeleton-list li { height: 24px; background: rgba(255,255,255,0.05); border-radius: 4px; }
.skeleton-list li.active { background: rgba(139, 92, 246, 0.2); }

.mockup-content { padding: 2rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.metric-skeleton { height: 80px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid var(--glass-border); }
.content-skeleton { background: rgba(255,255,255,0.02); height: 200px; border-radius: 8px; padding: 1.5rem; border: 1px solid var(--glass-border); }
.line { height: 16px; background: rgba(255,255,255,0.04); border-radius: 4px; margin-bottom: 1rem; }
.line.short { width: 40%; }
.line.medium { width: 70%; }

/* Sections */
.section-header { margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-header p { font-size: 1.125rem; color: var(--text-muted); }

/* Bento Grid */
.layers-section { padding: 100px 0; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  background: var(--bg-panel-hover);
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.col-span-2 { grid-column: span 2; }

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  display: inline-flex;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.bento-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.bento-card p { color: var(--text-muted); font-size: 1rem; }

.bento-visual {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}
.platform-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { 
  padding: 0.4rem 1rem; 
  background: rgba(255,255,255,0.05); 
  border-radius: 99px; 
  font-size: 0.85rem; 
  color: #fff;
  border: 1px solid var(--glass-border);
}

/* Metrics Section */
.metrics-section { padding: 100px 0; }
.metrics-table-wrapper {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.glass-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 19px; /* matching wrapper inner radius */
  overflow: hidden;
}
.glass-table th {
  text-align: left;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  border-bottom: 1px solid var(--glass-border);
}
.glass-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: all 0.3s ease;
}
.glass-table tbody tr:last-child td { border-bottom: none; }
.glass-table td.highlight-val { color: #fff; font-weight: 500; }

.table-row-hover:hover form td { background: rgba(255,255,255,0); }
.table-row-hover:hover td {
  background: rgba(139, 92, 246, 0.05);
  color: #fff;
}

/* CTA */
.cta-section { padding: 100px 0; }
.cta-panel {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 5rem 2rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-panel h2 { font-size: 3rem; margin-bottom: 1rem; }
.cta-panel p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.5);
  padding-top: 4rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-muted); margin-top: 1rem; }
.footer-links { display: flex; gap: 4rem; }
.link-group h4 { margin-bottom: 1.5rem; color: #fff; font-size: 1.1rem; }
.link-group a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: color 0.2s ease;
}
.link-group a:hover { color: #fff; }
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.875rem;
}

/* Animations */
.fade-in-up {
  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-up.visible { opacity: 1; transform: translateY(0); }

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-in-left.visible, .slide-in-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .col-span-2 { grid-column: span 2; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 768px) {
  nav { display: none; } /* Mobile menu simplified */
  .hero-title { font-size: 2.5rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: span 1; }
  .glass-table th, .glass-table td { padding: 1rem 0.5rem; font-size: 0.9rem; }
  .footer-content { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}
