/* components.css — Shared landing components */

:root {
  /* Defaults — overridden per landing via config */
  --bg-primary: #0E0E10;
  --bg-secondary: #121215;
  --bg-card: #1A1A1F;
  --color-primary: #146BFF;
  --color-accent: #FF8A00;
  --color-text: #E5E5E7;
  --color-text-secondary: #A1A1A6;
  --color-heading: #FFFFFF;
  --color-border: #2A2A2F;
  --font-family: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.5);
  --max-width: 1200px;
  --section-padding: 80px 24px;
}

/* --- Base --- */
body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--color-text);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding);
}

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--color-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-secondary { color: var(--color-text-secondary); }
.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 4px 15px rgba(20, 107, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 107, 255, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-lg { padding: 18px 40px; font-size: 1.125rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-full { width: 100%; }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(20, 107, 255, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(20, 107, 255, 0.2);
}

/* --- Grid --- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 48px 16px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(20, 107, 255, 0.1);
}
.form-input::placeholder { color: var(--color-text-secondary); opacity: 0.6; }
.form-input.error { border-color: #ef4444; }
.form-error { color: #ef4444; font-size: 0.8rem; margin-top: 4px; }

/* --- Testimonials --- */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.testimonial-quote {
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}
.testimonial-author { font-weight: 600; color: var(--color-heading); }
.testimonial-role { font-size: 0.85rem; color: var(--color-text-secondary); }

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 40px 0;
}

/* --- Stats --- */
.stat { text-align: center; }
.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--color-heading);
  background: var(--bg-card);
  text-align: left;
}
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.3s;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

/* --- Logo strip --- */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.6;
}
.logo-strip img { height: 32px; filter: grayscale(1) brightness(2); }

/* --- Utilities --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
