/* ============================================================
   EditMDcom & MDCOM — Site oficial
   Tema: escuro tech (paleta dos apps)
   #181C23 fundo · #20242B painéis · #242933 código inline
   #5B9CF5 destaque · bordas #2A303B
   ============================================================ */

:root {
  --bg: #181c23;
  --bg-deep: #12151b;
  --panel: #20242b;
  --panel-2: #242933;
  --line: #2a303b;
  --accent: #5b9cf5;
  --accent-strong: #7db1ff;
  --text: #e8ebf0;
  --muted: #9aa3b2;
  --kbd-bg: #242933;
  --radius: 16px;
}

[data-bs-theme="dark"] {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  --bs-emphasis-color: var(--text);
  --bs-link-color: var(--accent);
  --bs-link-hover-color: var(--accent-strong);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Utilitários ---------- */

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

section {
  scroll-margin-top: 84px;
}

.text-accent {
  color: var(--accent) !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead-muted {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

/* ---------- Navbar ---------- */

.navbar {
  background: rgba(24, 28, 35, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.navbar .nav-link {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding-inline: 0.9rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--text);
}

.navbar .nav-link.active {
  color: var(--accent);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(91, 156, 245, 0.25);
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-name .sep {
  color: var(--accent);
  margin-inline: 2px;
}

/* ---------- Badges tech ---------- */

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.tech-badge i {
  color: var(--accent);
  font-size: 0.95rem;
}

.tech-badge .ver {
  color: var(--muted);
  font-weight: 500;
  padding-left: 0.55rem;
  border-left: 1px solid var(--line);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 340px at 18% 0%, rgba(91, 156, 245, 0.16), transparent 65%),
    radial-gradient(560px 300px at 85% 12%, rgba(91, 156, 245, 0.09), transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h1 .grad {
  background: linear-gradient(92deg, var(--accent-strong), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .byline {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.app-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-mini:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 156, 245, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.app-mini img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  flex: 0 0 auto;
}

.app-mini .name {
  font-weight: 800;
  font-size: 1.05rem;
}

.app-mini .desc {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.app-mini i {
  margin-left: auto;
  color: var(--accent);
  font-size: 1.15rem;
}

.hero-shot {
  margin-top: 3.25rem;
}

/* ---------- Frames de screenshot ---------- */

.shot-frame {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
}

.shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.shot-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 0.7rem;
}

.shot-caption .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Painéis e cards ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-soft {
  background: rgba(32, 36, 43, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card {
  height: 100%;
  padding: 1.35rem 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 156, 245, 0.5);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(91, 156, 245, 0.14);
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.feature-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Listas "para que serve / para quem é" ---------- */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.55;
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list i {
  color: var(--accent);
  margin-top: 0.18rem;
  flex: 0 0 auto;
}

/* ---------- Blocos de código ---------- */

.code-window {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.code-window .code-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.code-window .code-head .dots span {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 6px;
}

.code-window .code-head .dots span:nth-child(1) { background: #ff5f57; }
.code-window .code-head .dots span:nth-child(2) { background: #febc2e; }
.code-window .code-head .dots span:nth-child(3) { background: #28c840; }

.code-window .code-head .label {
  color: var(--muted);
  font-size: 0.78rem;
  margin-left: 0.4rem;
}

.code-window pre {
  margin: 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  color: #cdd6e4;
  font-size: 0.86rem;
  line-height: 1.65;
  background: transparent;
}

.code-window pre code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: inherit;
  white-space: pre;
}

code.inline {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86em;
  color: var(--accent-strong);
}

/* ---------- Tabelas ---------- */

.table-dark-tech {
  --bs-table-bg: transparent;
  color: var(--text);
  width: 100%;
  margin: 0;
}

.table-dark-tech thead th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1rem;
  white-space: nowrap;
}

.table-dark-tech tbody td {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 1rem;
  vertical-align: middle;
  font-size: 0.94rem;
}

.table-dark-tech tbody tr:last-child td {
  border-bottom: 0;
}

kbd.key {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 7px;
  background: var(--kbd-bg);
  border: 1px solid #343b48;
  border-bottom-width: 2px;
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ---------- Painel de download ---------- */

.dl-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.dl-row:last-child {
  border-bottom: 0;
}

.dl-row .os {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  min-width: 130px;
}

.dl-row .os i {
  color: var(--accent);
  font-size: 1.2rem;
}

.dl-row .ver {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

.dl-row .btn {
  margin-left: auto;
}

.btn-accent {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-strong);
  --bs-btn-hover-border-color: var(--accent-strong);
  --bs-btn-active-bg: var(--accent);
  --bs-btn-active-border-color: var(--accent);
  --bs-btn-color: #10141a;
  --bs-btn-hover-color: #10141a;
  --bs-btn-active-color: #10141a;
  --bs-btn-disabled-bg: rgba(91, 156, 245, 0.18);
  --bs-btn-disabled-border-color: var(--line);
  --bs-btn-disabled-color: var(--muted);
  font-weight: 700;
}

.btn-outline-accent {
  --bs-btn-color: var(--accent);
  --bs-btn-border-color: rgba(91, 156, 245, 0.5);
  --bs-btn-hover-bg: rgba(91, 156, 245, 0.12);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-hover-color: var(--accent-strong);
  --bs-btn-active-bg: rgba(91, 156, 245, 0.2);
  --bs-btn-active-border-color: var(--accent);
  --bs-btn-active-color: var(--text);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--line);
  --bs-btn-disabled-color: var(--muted);
  font-weight: 700;
}

/* ---------- Callout ---------- */

.callout {
  display: flex;
  gap: 0.9rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(91, 156, 245, 0.4);
  background: rgba(91, 156, 245, 0.08);
  border-radius: 14px;
}

.callout i {
  color: var(--accent);
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Divisores e espaçamento ---------- */

.section-pad {
  padding: 5rem 0;
}

.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 156, 245, 0.45), transparent);
  border: 0;
  margin: 0;
}

/* ---------- App header (cabeçalho de cada projeto) ---------- */

.app-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.app-header img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(0, 0, 0, 0.4);
}

.app-header .tagline {
  color: var(--muted);
  font-size: 1rem;
  margin: 0.35rem 0 0;
}

/* ---------- Rodapé ---------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

footer .foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

footer .foot-links a:hover {
  color: var(--accent);
}

footer .foot-meta {
  color: #6b7484;
  font-size: 0.82rem;
}

/* ---------- Animação de entrada ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsivo ---------- */

@media (max-width: 575.98px) {
  .hero {
    padding: 6rem 0 3.5rem;
  }
  .section-pad {
    padding: 3.5rem 0;
  }
  .app-header img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .dl-row {
    flex-wrap: wrap;
  }
  .dl-row .btn {
    margin-left: 0;
    width: 100%;
  }
}
