:root {
  --bg: #0a0b14;
  --bg-secondary: #0f1019;
  --panel: #1a1b26;
  --muted: #9ca3af;
  --text: #f8fafc;
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --accent: #06b6d4;
  --green: #10b981;
  --purple: #a855f7;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --red: #ef4444;
  --card: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  --card-hover: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
  --border: rgba(255,255,255,0.1);
  --border-hover: rgba(255,255,255,0.2);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 20px 40px rgba(0,0,0,0.4);
  --shadow-lg: 0 32px 64px rgba(0,0,0,0.5);
  --glow: 0 0 40px rgba(99,102,241,0.3);
}

* { 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

html, body { 
  height: 100%; 
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: 
    radial-gradient(1400px 800px at 60% -150px, rgba(99,102,241,0.15), transparent 70%),
    radial-gradient(1200px 600px at 40% 100%, rgba(139,92,246,0.1), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes glow {
  0%, 100% { box-shadow: var(--glow); }
  50% { box-shadow: 0 0 60px rgba(99,102,241,0.5); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  background: rgba(10,11,20,0.8); 
  backdrop-filter: blur(20px) saturate(180%); 
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
} 

.nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 18px 0; 
}

.brand { 
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  text-decoration: none; 
  color: var(--text); 
  font-weight: 800; 
  transition: all 0.3s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-mark { 
  display: grid; 
  place-items: center; 
  width: 42px; 
  height: 42px; 
  border-radius: 12px; 
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  color: white; 
  font-weight: 900;
  font-size: 18px;
  box-shadow: var(--glow);
  animation: glow 3s ease-in-out infinite;
}

.brand-text { 
  letter-spacing: -0.5px; 
  font-weight: 900; 
  font-size: 20px;
}

.desktop-nav { 
  display: none; 
  gap: 24px; 
}

.desktop-nav a { 
  color: var(--muted); 
  text-decoration: none; 
  font-weight: 600; 
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

.desktop-nav a:hover { 
  color: var(--text); 
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.nav-toggle { 
  display: grid; 
  gap: 5px; 
  background: transparent; 
  border: 0; 
  cursor: pointer; 
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.nav-toggle-bar { 
  width: 26px; 
  height: 3px; 
  background: var(--text); 
  display: block; 
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav { 
  display: none; 
  flex-direction: column; 
  gap: 8px; 
  padding: 0 20px 20px; 
  background: rgba(10,11,20,0.95);
  backdrop-filter: blur(20px);
}

.mobile-nav a { 
  color: var(--muted); 
  text-decoration: none; 
  padding: 12px 8px; 
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.1);
}

.mobile-nav.open { 
  display: flex; 
  animation: slideUp 0.3s ease;
}

/* Sections */
.section { 
  padding: 100px 0; 
  position: relative;
}

.section h2 { 
  font-size: clamp(28px, 3vw + 16px, 48px); 
  margin: 0 0 16px; 
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text), var(--muted));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle { 
  color: var(--muted); 
  margin: 0 0 32px; 
  font-size: 18px;
  line-height: 1.7;
}

/* Hero */
.hero { 
  padding: 120px 0 100px; 
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(99,102,241,0.1), transparent 50%);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 40px; 
  align-items: center; 
  position: relative;
  z-index: 1;
}

.hero-content h1 { 
  font-size: clamp(36px, 5vw + 20px, 72px); 
  line-height: 1.1; 
  margin: 8px 0 20px; 
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--text), var(--brand));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow { 
  color: var(--accent); 
  font-weight: 800; 
  letter-spacing: 1px; 
  text-transform: uppercase; 
  font-size: 13px; 
  margin-bottom: 8px;
  display: inline-block;
  padding: 6px 12px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 20px;
}

.subtitle { 
  color: var(--muted); 
  font-size: 20px; 
  line-height: 1.6;
  margin-bottom: 32px;
}

.actions { 
  display: flex; 
  gap: 16px; 
  margin: 32px 0 20px; 
  flex-wrap: wrap; 
}

.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 50px; 
  padding: 16px 32px; 
  text-decoration: none; 
  font-weight: 700; 
  letter-spacing: 0.5px; 
  font-size: 16px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary { 
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  color: white; 
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}

.btn-primary:hover { 
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn-secondary { 
  color: var(--text); 
  border: 1px solid var(--border); 
  background: var(--card);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover { 
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.trust { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  margin-top: 24px; 
}

.avatars { 
  display: inline-flex; 
}

.avatar { 
  display: grid; 
  place-items: center; 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, var(--brand), var(--purple)); 
  border: 2px solid var(--bg); 
  margin-left: -8px; 
  font-weight: 800; 
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.trust-text { 
  color: var(--muted); 
  font-weight: 500;
}

/* Hero Art */
.hero-art { 
  position: relative; 
  min-height: 400px; 
}

.glow { 
  position: absolute; 
  inset: -40px; 
  background: radial-gradient(800px 400px at 40% 40%, rgba(99,102,241,0.2), transparent 60%); 
  filter: blur(40px); 
  animation: float 8s ease-in-out infinite;
}

.card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}

.card:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.kpi { 
  position: absolute; 
  right: 0; 
  top: 0; 
  padding: 24px; 
  width: 280px; 
  animation: float 4s ease-in-out infinite;
}

.kpi-label { 
  color: var(--muted); 
  font-size: 13px; 
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value { 
  font-size: 36px; 
  font-weight: 900; 
  margin: 8px 0 4px; 
  background: linear-gradient(135deg, var(--green), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kpi-user { 
  color: var(--muted); 
  font-size: 13px; 
  font-weight: 500;
}

.board { 
  position: absolute; 
  left: 0; 
  bottom: 0; 
  padding: 20px; 
  width: 320px; 
  animation: float 5s ease-in-out infinite reverse;
}

.board-row { 
  display: grid; 
  grid-template-columns: 24px 1fr auto; 
  align-items: center; 
  gap: 12px; 
  padding: 12px 10px; 
  border-radius: var(--radius-sm); 
  transition: all 0.3s ease;
}

.board-row:hover {
  background: rgba(255,255,255,0.05);
}

.board-row + .board-row { 
  border-top: 1px solid rgba(255,255,255,0.08); 
}

.dot { 
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  display: inline-block; 
  box-shadow: 0 0 8px currentColor;
}

.dot-green { 
  background: var(--green); 
  color: var(--green);
}

.dot-purple { 
  background: var(--purple); 
  color: var(--purple);
}

.dot-blue { 
  background: var(--blue); 
  color: var(--blue);
}

.tag { 
  font-size: 11px; 
  padding: 4px 10px; 
  border-radius: 20px; 
  border: 1px solid var(--border); 
  color: var(--muted); 
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Features */
.features {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-top: 1px solid var(--border);
}

.grid-3 { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 20px; 
}

.feature { 
  padding: 32px 24px; 
  transition: all 0.4s ease;
  border-radius: var(--radius);
}

.feature:hover {
  background: var(--card);
  border: 1px solid var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature .icon { 
  font-size: 32px; 
  margin-bottom: 16px;
  display: block;
}

.feature h3 { 
  margin: 0 0 12px; 
  font-weight: 700;
  font-size: 20px;
}

.feature p { 
  color: var(--muted); 
  line-height: 1.6;
  margin: 0;
}

/* Metrics */
.metrics { 
  background: 
    linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.05)),
    var(--bg-secondary);
  border-top: 1px solid var(--border); 
  border-bottom: 1px solid var(--border); 
}

.metrics-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
  align-items: end; 
}

.metric-card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 32px 24px; 
  text-align: center; 
  transition: all 0.4s ease;
}

.metric-card:hover {
  background: var(--card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.metric-label { 
  color: var(--muted); 
  font-size: 14px; 
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.metric-value { 
  font-size: 36px; 
  font-weight: 900; 
  background: linear-gradient(135deg, var(--brand), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-note { 
  grid-column: 1 / -1; 
  color: var(--muted); 
  text-align: center; 
  margin-top: 16px; 
  font-style: italic;
  font-size: 15px;
}

/* Capabilities */
.cap-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 48px; 
  align-items: start; 
}

.pill-list { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
  margin: 20px 0 32px; 
  padding: 0;
  list-style: none;
}

.pill-list li { 
  padding: 10px 18px; 
  border: 1px solid var(--border); 
  border-radius: 30px; 
  color: var(--muted); 
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.pill-list li:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(99,102,241,0.1);
}

.cap-board { 
  display: grid; 
}

.cap-card { 
  padding: 32px 28px; 
}

.cap-card h4 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 20px;
}

.cap-card p {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.checklist { 
  margin: 0; 
  padding-left: 0; 
  color: var(--muted);
  list-style: none;
}

.checklist li { 
  margin: 10px 0; 
  padding-left: 24px;
  position: relative;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

/* Integrations */
.integrations { 
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.integrations .logo-cloud { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
}

.logo-item { 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  gap: 12px;
  height: 100px; 
  padding: 16px;
  border-radius: var(--radius); 
  border: 1px solid var(--border); 
  background: var(--card);
  transition: all 0.3s ease;
  cursor: pointer;
}

.logo-item:hover {
  border-color: var(--brand);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.logo-item img {
  width: 32px;
  height: 32px;
  filter: invert(0.7);
  transition: all 0.3s ease;
}

.logo-item:hover img {
  filter: invert(0.9);
  transform: scale(1.1);
}

.logo-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.logo-item:hover span {
  color: var(--text);
}

/* Testimonials */
.testimonials {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
}

.quote { 
  padding: 32px 28px; 
}

.quote-text { 
  font-size: 17px; 
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
}

.quote-text::before {
  content: '"';
  font-size: 48px;
  color: var(--brand);
  position: absolute;
  top: -10px;
  left: -16px;
  font-weight: 900;
}

.quote-author { 
  color: var(--muted); 
  font-size: 14px; 
  font-weight: 500;
}

/* FAQs */
.faqs {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.faq-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 16px; 
}

.faq { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 24px; 
  transition: all 0.3s ease;
}

.faq:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
}

.faq summary { 
  cursor: pointer; 
  font-weight: 700; 
  font-size: 16px;
  padding-bottom: 4px;
}

.faq[open] summary {
  margin-bottom: 12px;
}

.faq p { 
  color: var(--muted); 
  margin: 0; 
  line-height: 1.6;
}

/* Newsletter */
.newsletter { 
  background: 
    linear-gradient(135deg, rgba(6,182,212,0.08), rgba(139,92,246,0.08)),
    var(--bg-secondary);
  border-top: 1px solid var(--border); 
  border-bottom: 1px solid var(--border); 
}

.newsletter-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 32px; 
  align-items: center; 
}

.subscribe { 
  display: grid; 
  grid-template-columns: 1fr auto; 
  gap: 12px; 
  align-items: start; 
}

.subscribe input { 
  width: 100%; 
  padding: 16px 20px; 
  border-radius: 50px; 
  border: 1px solid var(--border); 
  background: var(--card); 
  color: var(--text); 
  font-size: 16px;
  transition: all 0.3s ease;
}

.subscribe input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-hint { 
  grid-column: 1 / -1; 
  color: var(--muted); 
  font-size: 13px; 
  margin-top: 8px;
}

/* Footer */
.site-footer { 
  padding: 64px 0 24px; 
  background: var(--bg);
}

.footer-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 32px; 
}

.footer-brand .brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  font-weight: 900; 
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 8px 0;
  line-height: 1.6;
}

.contact {
  margin-top: 16px;
}

.contact div {
  margin: 4px 0;
}

.contact a {
  color: var(--brand);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.muted { 
  color: var(--muted); 
}

.tiny { 
  display: flex; 
  justify-content: space-between; 
  gap: 16px; 
  border-top: 1px solid var(--border); 
  padding-top: 20px; 
  margin-top: 32px;
  flex-wrap: wrap;
}

.small { 
  font-size: 13px; 
}

.footer-links { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 24px; 
}

.footer-links h4 {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--text);
}

.footer-links a { 
  display: block; 
  color: var(--muted); 
  text-decoration: none; 
  margin: 8px 0; 
  transition: all 0.3s ease;
}

.footer-links a:hover { 
  color: var(--text); 
  transform: translateX(4px);
}

/* Responsive */
@media (min-width: 768px) {
  .desktop-nav { 
    display: inline-flex; 
  }
  
  .nav-toggle { 
    display: none; 
  }
  
  .mobile-nav { 
    display: none !important; 
  }

  .hero-grid { 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 60px; 
  }
  
  .grid-3 { 
    grid-template-columns: repeat(3, 1fr); 
  }
  
  .metrics-grid { 
    grid-template-columns: repeat(4, 1fr); 
  }
  
  .cap-grid { 
    grid-template-columns: 1.2fr 1fr; 
  }
  
  .integrations .logo-cloud { 
    grid-template-columns: repeat(6, 1fr); 
  }
  
  .newsletter-grid { 
    grid-template-columns: 1.3fr 1fr; 
  }
  
  .footer-grid { 
    grid-template-columns: 1.5fr 1fr; 
  }

  .footer-links { 
    grid-template-columns: repeat(3, 1fr); 
  }
}

@media (min-width: 1024px) {
  .section { 
    padding: 120px 0; 
  }

  .hero { 
    padding: 140px 0 120px; 
  }

  .tiny {
    justify-content: space-between;
    flex-wrap: nowrap;
  }
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
  .feature,
  .metric-card,
  .quote,
  .faq {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
  }

  .feature:nth-child(1) { animation-delay: 0.1s; }
  .feature:nth-child(2) { animation-delay: 0.2s; }
  .feature:nth-child(3) { animation-delay: 0.3s; }
  .feature:nth-child(4) { animation-delay: 0.4s; }
  .feature:nth-child(5) { animation-delay: 0.5s; }
  .feature:nth-child(6) { animation-delay: 0.6s; }
}