/* ============================================================
   BOOM AI — light theme, violet + cyan
   ============================================================ */

:root {
  /* Color tokens */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --violet: #7c3aed;
  --violet-dark: #6d28d9;
  --violet-soft: #f5f3ff;
  --cyan: #06b6d4;
  --cyan-soft: #ecfeff;

  /* Layout */
  --radius: 16px;
  --radius-sm: 8px;
  --header-height: 72px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 8px 24px rgba(124, 58, 237, 0.12);

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

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

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-height);
  padding: 12px max(20px, calc((100vw - 1200px) / 2));
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }

.brand__mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.brand__name { font-size: 1rem; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.site-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.94rem; font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--violet); background: var(--violet-soft); outline: none;
}

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 12px; min-height: 40px;
  border-left: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem; font-weight: 700;
}

.lang-switch button {
  background: none; border: 0; padding: 4px 6px; cursor: pointer;
  color: var(--muted); font-weight: 700;
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}

.lang-switch button[aria-pressed="true"] { color: var(--violet); background: var(--violet-soft); }
.lang-switch button:hover { color: var(--ink); }
.lang-switch__sep { color: var(--line); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); cursor: pointer;
  margin-left: auto;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ----- Buttons ----- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.96rem; line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button svg { width: 18px; height: 18px; flex: 0 0 auto; }

.button:hover { transform: translateY(-1px); }

.button--primary { color: #fff; background: var(--violet); }
.button--primary:hover, .button--primary:focus-visible { background: var(--violet-dark); outline: none; }

.button--secondary {
  color: var(--violet); background: transparent;
  border-color: var(--violet);
}
.button--secondary:hover, .button--secondary:focus-visible { background: var(--violet-soft); outline: none; }

.button--header { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }

/* ----- Hero ----- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  overflow: hidden;
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px; align-items: center;
  padding: 96px 0 88px;
}

.hero__copy h1 {
  margin: 16px 0 0;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-typed {
  display: inline-block;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-height: 1em;
  font-weight: 800;
}

.typed-cursor {
  color: var(--violet);
  font-weight: 400;
}

.hero__lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__visual { position: relative; }
.hero__visual img, .hero__visual svg { width: 100%; height: auto; }

.eyebrow {
  display: inline-block;
  color: var(--violet);
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0;
}

/* ----- Section base ----- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--violet { background: var(--violet-soft); }

.section__intro { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__intro h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section__intro p { margin: 16px auto 0; color: var(--muted); max-width: 560px; }

/* ----- Products ----- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.product-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
  box-shadow: var(--shadow-card-hover);
}

.product-card__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--violet);
}
.product-card__icon svg { width: 24px; height: 24px; }

.product-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
}

.product-card p {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.product-card__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cyan);
  font-weight: 700; font-size: 0.92rem;
}
.product-card__link:hover { color: var(--violet); }
.product-card__link svg { width: 16px; height: 16px; transition: transform 160ms ease; }
.product-card__link:hover svg { transform: translateX(2px); }

/* Featured Transcript & Analytics card */
.product-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.product-featured__copy .eyebrow { color: var(--cyan); }
.product-featured__copy h3 {
  margin: 12px 0 16px;
  font-size: 1.8rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.product-featured__copy p { color: var(--muted); margin: 0 0 24px; }

.product-featured__visual img, .product-featured__visual svg {
  width: 100%; height: auto;
  border-radius: 12px;
}

/* ----- About ----- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
}

.metric strong {
  display: block;
  color: var(--violet);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}
.metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ----- Contact band ----- */
.contact-band { padding: 80px 0; background: var(--violet-soft); }
.contact-band__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.contact-band h2 {
  margin: 16px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.contact-band p { margin: 16px auto 28px; color: var(--text); max-width: 560px; }
.contact-band__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

/* ----- Footer ----- */
.site-footer {
  padding: 32px 0;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.site-footer p { margin: 0; font-size: 0.88rem; }
.site-footer__link {
  color: var(--violet);
  font-size: 0.88rem;
  font-weight: 600;
}
.site-footer__link:hover { color: var(--violet-dark); text-decoration: underline; }

/* ----- Reveal (legacy fallback, AOS does the work now) ----- */
.reveal { opacity: 1; }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
  #hero-particles { display: none !important; }
}

/* ----- Focus ----- */
*:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .site-header { padding-inline: 20px; gap: 12px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: absolute; top: calc(100% + 1px); right: 20px; left: 20px;
    display: none; flex-direction: column; gap: 4px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; justify-content: flex-start; min-height: 44px; }
  .lang-switch { border-left: 0; padding-left: 0; margin-top: 8px; }

  .hero__inner { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; }
  .hero__visual { order: -1; max-width: 480px; }

  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .product-featured { grid-template-columns: 1fr; padding: 32px; gap: 28px; }

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

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1200px); }
  .section { padding: 64px 0; }

  .products-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }

  .hero__copy h1 { font-size: 2.2rem; }
  .hero__lead { font-size: 1rem; }

  .button { width: 100%; }
  .hero__actions, .contact-band__actions { flex-direction: column; }
}
