/* =========================================================
   BRsys Mix • Components
   Componentes compartilhados entre produtos
   ========================================================= */

/* Header de produto */
.mix-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 24, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mix-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.mix-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.mix-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), rgba(255,255,255,0.12));
  color: var(--primary-contrast);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.mix-brand-copy {
  min-width: 0;
}

.mix-brand-copy strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text);
}

.mix-brand-copy span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Theme switcher */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-switcher-label {
  font-size: 0.88rem;
  color: var(--muted);
}

.theme-options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.theme-chip {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-chip:hover,
.theme-chip:focus-visible {
  transform: scale(1.08);
}

.theme-chip.is-active {
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

/* Hero */
.hero-product {
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.hero-product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: var(--space-5);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-points {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.2rem;
}

.hero-points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-soft);
}

.hero-points li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(103, 183, 255, 0.12);
}

.hero-preview {
  padding: 1rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.preview-shell {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.preview-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.preview-body {
  padding: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--primary-contrast);
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.btn-ghost {
  color: var(--text-soft);
}

/* Section heading */
.section-heading {
  display: grid;
  gap: 0.85rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 760px;
}

/* Cards */
.card,
.feature-card,
.solution-card,
.panel-card,
.info-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.feature-card,
.solution-card {
  display: grid;
  gap: 0.8rem;
}

.card-tag,
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.solution-card ul,
.feature-list {
  display: grid;
  gap: 0.7rem;
}

.solution-card li,
.feature-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.solution-card li::before,
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-weight: 700;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(3px);
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.55rem;
}

.form-row label {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.035);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(103, 183, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(103, 183, 255, 0.12);
}

/* KPI / mini stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.stat-card strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA final */
.cta-box {
  display: grid;
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    var(--surface);
  box-shadow: var(--shadow-md);
}

/* Footer */
.mix-footer {
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
}

.mix-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsivo */
@media (max-width: 980px) {
  .hero-product-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .mix-header {
    height: auto;
    min-height: var(--header-h);
  }

  body.mix-page {
    padding-top: 88px;
  }

  .mix-header-inner {
    padding-block: 0.85rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .mix-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
