/* ============================================================
   SIMPLIFIQUE.IA — IDENTIDADE VISUAL UNIFICADA PARA DEMOS
   Tema Escuro (#07090d / #0c1017) + Esmeralda (#10b981 / #34d399)
   ============================================================ */
:root {
  --si-bg: #07090d;
  --si-surface: #0c1017;
  --si-surface-2: #111722;
  --si-border: rgba(255, 255, 255, 0.09);
  --si-border-emerald: rgba(16, 185, 129, 0.28);
  --si-accent: #10b981;
  --si-accent-light: #34d399;
  --si-text: #f8fafc;
  --si-muted: #94a3b8;
  --si-soft: #cbd5e1;
  --si-radius: 16px;
  --si-font-head: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --si-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --si-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.si-demo-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 15% -5%, rgba(16, 185, 129, 0.11), transparent 60%),
    radial-gradient(760px 380px at 90% 10%, rgba(16, 185, 129, 0.07), transparent 60%),
    var(--si-bg);
  color: var(--si-text);
  font-family: var(--si-font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font-family: inherit;
}

.si-container {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

/* Header & Navigation */
.si-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--si-border);
}

.si-header-inner {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.si-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.si-brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(5, 150, 105, 0.14));
  border: 1px solid var(--si-border-emerald);
  color: var(--si-accent-light);
  display: grid;
  place-items: center;
  font-family: var(--si-font-head);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.si-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.si-brand-title {
  font-family: var(--si-font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.si-brand-sub {
  font-family: var(--si-font-mono);
  font-size: 10px;
  color: var(--si-accent-light);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.si-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.si-nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--si-muted);
  transition: color 0.18s;
  white-space: nowrap;
}

.si-nav-links a:hover {
  color: var(--si-text);
}

.si-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.si-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--si-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--si-soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.si-back-pill:hover {
  border-color: var(--si-border-emerald);
  color: var(--si-accent-light);
}

.si-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--si-border-emerald);
  background: rgba(16, 185, 129, 0.12);
  color: var(--si-text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile Slide-Out Drawer */
.si-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(8px);
  display: none;
}

.si-drawer-backdrop.is-open {
  display: flex;
  justify-content: flex-end;
}

.si-drawer-panel {
  width: min(300px, 85vw);
  height: 100%;
  background: var(--si-surface);
  border-left: 1px solid var(--si-border-emerald);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.si-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--si-border);
}

.si-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--si-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--si-text);
  cursor: pointer;
  font-size: 18px;
}

.si-drawer-nav {
  display: grid;
  gap: 6px;
}

.si-drawer-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--si-soft);
  font-size: 14px;
  font-weight: 500;
}

.si-drawer-nav a:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--si-border-emerald);
  color: var(--si-text);
}

/* Buttons */
.si-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}

.si-btn:active {
  transform: scale(0.98);
}

.si-btn-primary {
  background: var(--si-accent);
  color: #03150e;
}

.si-btn-primary:hover {
  background: var(--si-accent-light);
}

.si-btn-outline {
  background: rgba(16, 185, 129, 0.09);
  border-color: var(--si-border-emerald);
  color: var(--si-text);
}

.si-btn-outline:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--si-accent-light);
}

.si-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--si-border);
  color: var(--si-soft);
}

.si-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--si-text);
}

.si-btn-sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 9px;
}

/* Hero & Sections */
.si-hero {
  padding: 36px 0 28px;
}

.si-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.si-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--si-border-emerald);
  color: var(--si-accent-light);
  font-family: var(--si-font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.si-h1 {
  font-family: var(--si-font-head);
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin: 0 0 12px;
}

.si-lead {
  color: var(--si-muted);
  font-size: 15px;
  margin: 0 0 18px;
  max-width: 56ch;
}

.si-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.si-hero-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--si-border-emerald);
  background: var(--si-surface);
  aspect-ratio: 16 / 10;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65);
}

.si-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.si-hero-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(7, 9, 13, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid var(--si-border-emerald);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.si-section {
  padding: 28px 0;
}

.si-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.si-section-title {
  font-family: var(--si-font-head);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.si-section-sub {
  color: var(--si-muted);
  font-size: 13.5px;
  margin: 4px 0 0;
}

/* Grids & Cards */
.si-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.si-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.si-card {
  background: linear-gradient(180deg, #0e131c 0%, #090c12 100%);
  border: 1px solid var(--si-border);
  border-radius: var(--si-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.si-card:hover {
  border-color: var(--si-border-emerald);
  transform: translateY(-2px);
}

.si-card-pad {
  padding: 16px;
}

.si-card-media {
  width: 100%;
  height: 168px;
  background: #05070b;
  overflow: hidden;
  border-bottom: 1px solid var(--si-border);
}

.si-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.si-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--si-border-emerald);
  color: var(--si-accent-light);
  font-family: var(--si-font-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.si-price {
  font-family: var(--si-font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--si-accent-light);
}

.si-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.si-pill-btn {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--si-border);
  background: var(--si-surface);
  color: var(--si-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.si-pill-btn.is-active,
.si-pill-btn:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--si-accent);
  color: #ffffff;
}

.si-input, .si-select, .si-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--si-border);
  background: #06080c;
  color: var(--si-text);
  font-size: 13.5px;
  outline: none;
}

.si-input:focus, .si-select:focus, .si-textarea:focus {
  border-color: var(--si-accent);
}

.si-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--si-muted);
  margin-bottom: 5px;
}

/* Footer */
.si-footer {
  margin-top: 32px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--si-border);
  color: var(--si-muted);
  font-size: 12.5px;
}

.si-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Toast Notification */
.si-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  z-index: 120;
  background: #0d141b;
  border: 1px solid var(--si-accent);
  color: #f8fafc;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: calc(100vw - 24px);
  text-align: center;
}

.si-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .si-hero-grid {
    grid-template-columns: 1fr;
  }
  .si-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .si-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .si-nav-links {
    display: none;
  }
  .si-menu-btn {
    display: inline-flex;
  }
  .si-back-pill span.si-hide-sm {
    display: none;
  }
  .si-grid-2, .si-grid-3, .si-grid-4 {
    grid-template-columns: 1fr;
  }
  .si-hero {
    padding: 22px 0 18px;
  }
  .si-section {
    padding: 20px 0;
  }
}
