/* SC TMG Utils — landing estática, tema oscuro tipo StarCraft */

:root {
  --bg: #0b1220;
  --bg-alt: #0f172a;
  --surface: #111827;
  --surface-2: #1e293b;
  --border: #1f2a3a;
  --border-strong: #334155;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-mute: #64748b;
  --primary: #38bdf8;
  --primary-2: #7dd3fc;
  --violet: #a78bfa;
  --success: #34d399;
  --warning: #fbbf24;
  --shadow: 0 6px 20px rgba(0, 0, 0, .6);
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary-2);
  padding: 1px 5px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
}
.brand-mark svg { display: block; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--text-dim); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }

.header-tools { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  color: #0b1220;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.35);
}
.lang-btn:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }

/* ===== Hero ===== */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1100px 500px at 50% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(700px 360px at 90% 10%, rgba(167, 139, 250, 0.12), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { text-align: center; }
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-2);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 28px;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  color: #0b1220;
  border-color: #0ea5e9;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover { background: linear-gradient(180deg, #7dd3fc, #38bdf8); color: #0b1220; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: #fff; }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--text-dim); font-size: 16px; margin: 0; }

/* ===== Grid / Cards ===== */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 10px;
  font-size: 18px;
  color: #fff;
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-cyan { background: var(--primary); box-shadow: 0 0 10px rgba(56, 189, 248, 0.7); }
.dot-violet { background: var(--violet); box-shadow: 0 0 10px rgba(167, 139, 250, 0.7); }

.bullets { padding-left: 18px; margin: 10px 0 0; color: var(--text-dim); }
.bullets li { margin: 6px 0; }

/* ===== Tooltip previews ===== */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.preview-card {
  padding: 18px;
  background: linear-gradient(145deg, rgba(17, 24, 39, .96), rgba(15, 23, 42, .96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.preview-label {
  margin-bottom: 12px;
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tooltip-screenshot {
  display: block;
  width: min(88%, 430px);
  height: 178px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(125, 211, 252, .32);
  border-radius: 12px;
  background: #0b1220;
  box-shadow:
    0 0 0 5px rgba(11, 18, 32, .72),
    0 12px 28px rgba(0, 0, 0, .42);
  cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tooltip-screenshot:hover,
.tooltip-screenshot:focus-visible {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 0 5px rgba(11, 18, 32, .72),
    0 16px 34px rgba(0, 0, 0, .55);
  outline: none;
}
.preview-card:nth-child(2) .tooltip-screenshot {
  border-color: rgba(196, 181, 253, .38);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: min(94vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, .35);
  background: #0b1220;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
  display: block;
}
.lightbox-caption {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(11, 18, 32, .85);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.lightbox-close::before { content: "×"; }
.lightbox-close:hover { background: var(--primary); color: #0b1220; border-color: var(--primary); }
.lightbox-close:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.preview-caption { color: var(--text-dim); font-size: 14px; margin: 12px 0 0; }

/* ===== Features ===== */
.features { margin-top: 48px; }
.features h3 { text-align: center; margin: 0 0 20px; color: #fff; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.feature-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--primary-2);
  background: rgba(56, 189, 248, 0.12);
  border-radius: 8px;
  margin-bottom: 8px;
}
.feature h4 { margin: 4px 0 6px; color: #fff; font-size: 15px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  counter-increment: step;
  position: relative;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 18px; left: -14px;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #0b1220;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}
.steps h3 { margin: 0 0 6px; color: #fff; font-size: 17px; }
.steps p { margin: 0 0 6px; color: var(--text-dim); }

.method {
  margin-top: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.6);
}
.method summary {
  cursor: pointer;
  padding: 8px 12px;
  color: var(--primary-2);
  font-weight: 600;
}
.method ol { padding: 0 0 12px 36px; margin: 0; color: var(--text-dim); }
.method li { margin: 4px 0; }

.bookmarklet-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 !important; }
.bookmarklet {
  user-select: none;
  -webkit-user-drag: element;
}
.hint { color: var(--text-mute); font-size: 13px; }

/* ===== Roadmap ===== */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.roadmap li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.roadmap h4 { margin: 0 0 4px; color: #fff; font-size: 16px; }
.roadmap p { margin: 0; color: var(--text-dim); font-size: 14px; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  width: max-content;
}
.badge-done { background: rgba(52, 211, 153, 0.12); color: var(--success); border-color: rgba(52, 211, 153, 0.35); }
.badge-next { background: rgba(56, 189, 248, 0.12); color: var(--primary-2); border-color: rgba(56, 189, 248, 0.35); }
.badge-later { background: rgba(148, 163, 184, 0.08); color: var(--text-dim); border-color: var(--border-strong); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #07101e;
  padding: 24px 0;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-mute); font-size: 14px; margin: 0; }
.footer-meta a { color: var(--text-dim); }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero { padding: 56px 0 40px; }
  .nav { gap: 12px; }
  .preview-grid { grid-template-columns: 1fr; }   .tooltip-screenshot { width: 100%; height: 160px; }
   .lightbox { padding: 12px; }
   .lightbox-close { top: 12px; right: 12px; }  .steps > li::before { left: -10px; }
  .roadmap li { grid-template-columns: 1fr; }
  .badge { width: max-content; }
}
