/* ============================================================
   KnowBox Landing — Main Stylesheet
   Dark-first. Indigo/Violet/Cyan.
   ============================================================ */

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

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  background: var(--brand-bg-primary);
  color: var(--brand-text-primary);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; overflow-x: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Gradient text ── */
.gradient-text {
  background: var(--brand-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--brand-gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--brand-transition);
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--brand-text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--brand-border);
  cursor: pointer;
  transition: var(--brand-transition);
}
.btn-secondary:hover {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.06);
}

/* ── Section spacing ── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Section headings ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-gradient-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--brand-text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Cards ── */
.card {
  background: var(--brand-bg-card);
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 28px;
  transition: var(--brand-transition);
}
.card:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.1);
  transform: translateY(-2px);
}

/* ── Glow orb (reusable) ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary:hover, .btn-secondary:hover, .card:hover { transform: none; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
}
