/* Light theme for QiAlly website */
:root {
  --bg: #ffffff;
  --panel: #f8fafc;
  --card: #ffffff;
  --glass: rgba(0, 0, 0, 0.05);
  --fg: #1e293b;
  --muted: #64748b;
  --accent: #3b82f6;
  --accent-2: #1d4ed8;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --neutral: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.row {
  display: flex;
  gap: 16px;
}

.row.between {
  justify-content: space-between;
}

.row.center {
  align-items: center;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 32px;
  height: 32px;
}

.wordmark {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--fg);
}

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

.nav a {
  color: var(--fg);
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn.outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn.outline:hover {
  background: var(--accent);
  color: white;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--fg);
  line-height: 1.1;
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

.card.popular {
  border-color: var(--accent);
  position: relative;
  transform: scale(1.05);
}

.card.popular::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Pricing */
.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0;
}

.price-period {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 24px;
}

.card li:last-child {
  border-bottom: none;
}

.card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: bold;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq details {
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.faq summary:hover {
  background: var(--glass);
}

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

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-label {
  color: var(--muted);
  font-weight: 500;
  margin-top: 8px;
}

/* Footer */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand p {
  color: var(--muted);
  margin: 16px 0 24px;
  line-height: 1.6;
}

.footer-links h3 {
  margin: 0 0 16px;
  color: var(--fg);
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 8px 0;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Sections */
.section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--fg);
}

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

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav {
    display: none;
  }
  
  .cta-row {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .card.popular {
    transform: none;
  }
}