/* =========================================
   TEMA CLARO MINERAL / EDITORIAL (PADRÃO)
   ========================================= */
:root {
  --bg-page: #f8f7f4;
  --bg-card: #efeee9;
  --bg-card-hover: #e7e5de;
  --bg-about: #f3f2ed;
  --text-primary: #1c1c1a;
  --text-secondary: #5e5d59;
  --text-muted: #8a8881;
  --btn-bg: #222220;
  --btn-text: #f8f7f4;
  --btn-hover: #383835;
  --border-subtle: rgba(28, 28, 26, 0.08);

  /* Janela Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-sidebar: rgba(246, 245, 242, 0.65);
  --glass-topbar: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --code-kw: #1c1c1a;
  --code-str: #4a4945;
  --code-cmt: #8a8881;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* =========================================
   TEMA ESCURO CARVÃO (OPCIONAL)
   ========================================= */
[data-theme="dark"] {
  --bg-page: #121211;
  --bg-card: #1b1b19;
  --bg-card-hover: #242421;
  --bg-about: #161614;
  --text-primary: #f2f1ed;
  --text-secondary: #a3a19b;
  --text-muted: #706e69;
  --btn-bg: #f2f1ed;
  --btn-text: #121211;
  --btn-hover: #dcdad3;
  --border-subtle: rgba(242, 241, 237, 0.08);

  --glass-bg: rgba(24, 24, 22, 0.82);
  --glass-sidebar: rgba(18, 18, 16, 0.75);
  --glass-topbar: rgba(30, 30, 28, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --code-kw: #f2f1ed;
  --code-str: #c7c5be;
  --code-cmt: #75736e;
}

/* Reset e Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header Minimalista */
.navbar {
  padding: 28px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

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

.theme-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
}

.theme-btn:hover {
  background-color: var(--bg-card);
}

/* Hero Section */
.hero {
  padding: 56px 0 40px;
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-pill:hover {
  background-color: var(--btn-hover);
  transform: translateY(-1px);
}

/* Showcase com Fundo de Paisagem */
.showcase-wrapper {
  margin-top: 52px;
}

.showcase-backdrop {
  position: relative;
  border-radius: 8px;
  padding: 44px 48px;
  background-image:
    linear-gradient(to bottom, rgba(30, 35, 40, 0.18), rgba(20, 24, 28, 0.28)),
    url('https://unsplash.com');
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Janela Translúcida */
.glass-window {
  display: none;
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  animation: fadeIn 0.25s ease;
}

.glass-window.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.window-topbar {
  background: var(--glass-topbar);
  padding: 10px 16px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.window-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 310px;
}

.window-sidebar {
  background: var(--glass-sidebar);
  padding: 22px 20px;
  border-right: 1px solid var(--border-subtle);
}

.sidebar-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.file-tree {
  list-style: none;
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-tree .folder {
  font-weight: 600;
  color: var(--text-primary);
}

.file-tree .indent {
  padding-left: 12px;
  color: var(--text-muted);
}

.file-tree .active-file {
  color: var(--text-primary);
  font-weight: 500;
}
/* Área de Conteúdo da Janela (Editor, Chat e Post) */
.window-editor {
  padding: 22px 28px;
}

.editor-breadcrumb {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.editor-breadcrumb span {
  color: var(--text-muted);
}

.code-block {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-x: auto;
}

.code-block .cmt {
  color: var(--code-cmt);
}

.code-block .kw {
  color: var(--code-kw);
  font-weight: 500;
}

.code-block .str {
  color: var(--code-str);
}

/* Preview Inelcall (Chat) */
.chat-bubbles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
}

.bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.bubble.left {
  background-color: var(--bg-card);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.bubble.right {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

/* Preview brdevs (Post Técnico) */
.dev-post {
  background-color: var(--bg-card);
  padding: 16px 18px;
  border-radius: 10px;
  max-width: 480px;
}

.dev-post strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.dev-post p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.showcase-caption {
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Seção dos 3 Produtos */
.products-section {
  padding: 84px 0 96px;
}

.section-heading-center {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  color: var(--text-primary);
}

.product-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 32px 36px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.product-card:hover {
  background-color: var(--bg-card-hover);
}

.product-card.is-selected {
  border-color: var(--border-subtle);
  background-color: var(--bg-card-hover);
}

.product-kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.product-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.55;
}

/* Seção Sobre a brse-labs */
.about-section {
  background-color: var(--bg-about);
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-left h2 {
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 380px;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Responsividade */
@media (max-width: 768px) {
  .showcase-backdrop {
    padding: 20px;
  }

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

  .window-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

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

  .product-card {
    padding: 24px;
  }
}
