/* Reset & CSS variables */
:root {
  --bg-slate-950: #020617;
  --bg-slate-900: #0f172a;
  --bg-slate-850: #1e293b;
  --text-slate-100: #f8fafc;
  --text-slate-400: #94a3b8;
  --text-slate-450: #64748b;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --font-sans: 'Inter', sans-serif;
  --font-outfit: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-slate-950);
  color: var(--text-slate-100);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background glows */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.top-glow {
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--emerald-500), transparent 70%);
}

.center-glow {
  top: 50%;
  left: -200px;
  background: radial-gradient(circle, #0ea5e9, transparent 70%);
}

/* Header */
.header {
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  background-color: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-outfit);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-slate-100);
}

.logo-icon {
  color: var(--emerald-400);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--text-slate-400);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text-slate-100);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--emerald-500);
  color: var(--bg-slate-950);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.btn-primary:hover {
  background-color: var(--emerald-400);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-slate-900);
  border: 1px solid var(--bg-slate-850);
  color: var(--text-slate-100);
}

.btn-secondary:hover {
  border-color: var(--text-slate-400);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--bg-slate-850);
  color: var(--text-slate-400);
}

.btn-outline:hover {
  color: var(--text-slate-100);
  border-color: var(--text-slate-400);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
}

.btn-xs {
  padding: 6px 12px;
  font-size: 10px;
}

/* Hero Section */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-block;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--emerald-400);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-outfit);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto 24px;
  color: var(--text-slate-100);
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--emerald-400), #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-slate-400);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Stats Section */
.stats {
  padding: 40px 0;
  border-top: 1px solid rgba(30, 41, 59, 0.3);
  border-bottom: 1px solid rgba(30, 41, 59, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 16px;
}

.stat-num {
  font-family: var(--font-outfit);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-slate-100);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--text-slate-450);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Features */
.features {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-outfit);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-slate-400);
  font-size: 13px;
}

.features-grid {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(30, 41, 59, 0.4);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
  background-color: rgba(15, 23, 42, 0.6);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-400);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: var(--font-outfit);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* Demo widget */
.demo-section {
  padding: 60px 0 80px;
  background-color: rgba(2, 6, 23, 0.4);
  border-top: 1px solid rgba(30, 41, 59, 0.3);
}

.demo-widget {
  background-color: var(--bg-slate-900);
  border: 1px solid rgba(30, 41, 59, 0.6);
  border-radius: 24px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.demo-uploader {
  border: 2px dashed rgba(30, 41, 59, 0.8);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
}

.upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.camera-icon {
  width: 40px;
  height: 40px;
  color: var(--text-slate-450);
}

.demo-uploader h3 {
  font-size: 14px;
  font-weight: 700;
}

.demo-uploader p {
  font-size: 11px;
  color: var(--text-slate-450);
  max-width: 250px;
  margin-bottom: 8px;
}

.demo-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(30, 41, 59, 0.6);
  border-top-color: var(--emerald-400);
  animation: spin 0.8s linear infinite;
}

.demo-loader p {
  font-size: 11px;
  color: var(--text-slate-400);
  font-weight: 600;
}

.demo-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-header h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-slate-400);
  letter-spacing: 0.5px;
}

.results-grid {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 16px;
}

.result-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bg-slate-850);
}

.result-item img {
  width: 100%;
  height: 100%;
  object-cover: cover;
}

.match-score {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--emerald-400);
  font-size: 8px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 9999px;
}

.vault-prompt {
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--bg-slate-850);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.vault-prompt h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-slate-100);
}

.vault-prompt p {
  font-size: 10px;
  color: var(--text-slate-450);
  margin-top: 2px;
}

/* Architecture Section */
.architecture {
  padding: 80px 0;
  border-top: 1px solid rgba(30, 41, 59, 0.3);
}

.tech-grid {
  display: grid;
  grid-template-cols: repeat(4, 1fr);
  gap: 20px;
}

.tech-card {
  background-color: rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(30, 41, 59, 0.3);
  padding: 24px;
  border-radius: 16px;
}

.tech-card h4 {
  font-family: var(--font-outfit);
  font-size: 14px;
  font-weight: 700;
  color: var(--emerald-400);
  margin-bottom: 10px;
}

.tech-card p {
  font-size: 11px;
  color: var(--text-slate-400);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(30, 41, 59, 0.3);
  padding: 40px 0;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-outfit);
  font-size: 18px;
  font-weight: 800;
}

.footer p {
  font-size: 11px;
  color: var(--text-slate-450);
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .features-grid {
    grid-template-cols: 1fr;
  }
  .tech-grid {
    grid-template-cols: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 32px;
  }
  .stats-grid {
    grid-template-cols: 1fr;
    gap: 16px;
  }
  .nav {
    display: none;
  }
  .tech-grid {
    grid-template-cols: 1fr;
  }
  .vault-prompt {
    flex-direction: column;
    text-align: center;
  }
}
