/* RigDeck — landing. Paleta e grid numerado extraídos do screenshot real do produto (.github/screenshot.jpg). */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;800&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg: #120d09;
  --bg-raised: #1a130c;
  --bg-card: #1c150e;
  --fg: #f2ede4;
  --fg-muted: #9c9186;
  --fg-dim: #66594c;
  --accent: #f2994a;
  --accent-bright: #ffb367;
  --accent-2: #5aa2ff;
  --accent-3: #b088ff;
  --ok: #4ade80;
  --border: rgba(242, 153, 74, 0.18);
  --border-dim: rgba(242, 237, 228, 0.08);
  --mono-head: 'JetBrains Mono', ui-monospace, monospace;
  --mono-body: 'IBM Plex Mono', ui-monospace, monospace;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(242, 153, 74, 0.08), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(90, 162, 255, 0.06), transparent 45%);
  overflow-x: hidden;
}

/* film-grain-ish noise, matches the dithered dark bg in the product screenshot */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

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

[data-en] { display: none !important; }
body.lang-en [data-pt] { display: none !important; }
body.lang-en [data-en] { display: revert !important; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 13, 9, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dim);
}
header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--mono-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.logo .slash { color: var(--accent); margin-right: 8px; }
.logo .deck { color: var(--accent); }
nav.links { display: flex; gap: 28px; align-items: center; }
nav.links a {
  font-size: 13px;
  color: var(--fg-muted);
  transition: color 0.15s;
}
nav.links a:hover { color: var(--accent-bright); }

.header-actions { display: flex; gap: 14px; align-items: center; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--fg-dim);
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--mono-head);
  letter-spacing: 0.5px;
}
.lang-toggle button.active { background: var(--accent); color: #1a1006; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono-head);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a1006; }
.btn-primary:hover { background: var(--accent-bright); }
.btn-ghost { border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }
.btn-sm { padding: 7px 12px; font-size: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  padding: 88px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ok);
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
h1 {
  font-family: var(--mono-head);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
h1 .hl { color: var(--accent); }
.lede {
  color: var(--fg-muted);
  font-size: 16.5px;
  max-width: 52ch;
  margin-bottom: 30px;
}
.cta-row { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }

.install-snippet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 12px 14px;
  max-width: 460px;
  font-size: 13px;
}
.install-snippet code { color: var(--accent-bright); }
.install-snippet .copy-btn {
  background: none;
  border: 1px solid var(--border-dim);
  color: var(--fg-muted);
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 11px;
  font-family: var(--mono-head);
  cursor: pointer;
  flex-shrink: 0;
}
.install-snippet .copy-btn:hover { color: var(--accent-bright); border-color: var(--accent); }

.badges { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.badge {
  font-size: 11px;
  font-family: var(--mono-head);
  color: var(--fg-dim);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 4px 8px;
}

.hero-shot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(242, 153, 74, 0.25), 0 0 0 1px rgba(0,0,0,0.4);
}
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot .glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(242,153,74,0.18), transparent 60%);
  z-index: -1;
}

/* ---------- section shell ---------- */
section { position: relative; z-index: 2; padding: 76px 0; }
.section-tag {
  font-family: var(--mono-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--mono-head);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
}
.section-sub { color: var(--fg-muted); max-width: 62ch; margin-bottom: 44px; }

/* ---------- origin quote ---------- */
.origin {
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}
.origin blockquote {
  font-family: var(--mono-head);
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.5;
  font-weight: 500;
  max-width: 66ch;
}
.origin blockquote .hl { color: var(--accent); }
.origin cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  color: var(--fg-dim);
  font-size: 13px;
}

/* ---------- showcase ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.showcase-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
}
.showcase-item img { display: block; width: 100%; height: auto; }
.showcase-item figcaption {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--fg-muted);
  border-top: 1px dashed var(--border-dim);
}
@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

/* ---------- how it works ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.flow-step {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px dashed var(--border-dim);
  background: var(--bg-card);
}
.flow-step:not(:last-child) { border-right: none; }
.flow-step .idx {
  font-family: var(--mono-head);
  font-size: 11px;
  color: var(--fg-dim);
  margin-bottom: 14px;
}
.flow-step h3 {
  font-family: var(--mono-head);
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--accent-bright);
}
.flow-step p { font-size: 13px; color: var(--fg-muted); }
.flow-step .arrow {
  display: none;
}
@media (min-width: 800px) {
  .flow-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -11px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    color: var(--accent);
    background: var(--bg);
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
  }
}

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
}
.feature-card {
  background: var(--bg-card);
  padding: 26px 24px;
  transition: background 0.15s;
}
.feature-card:hover { background: var(--bg-raised); }
.feature-card .idx {
  font-family: var(--mono-head);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature-card h3 {
  font-family: var(--mono-head);
  font-size: 15.5px;
  margin-bottom: 8px;
}
.feature-card p { font-size: 13.5px; color: var(--fg-muted); }

/* ---------- stack table ---------- */
.stack-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stack-table th {
  text-align: left;
  font-family: var(--mono-head);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--fg-dim);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.stack-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-dim);
  color: var(--fg-muted);
}
.stack-table td:first-child { color: var(--fg); font-weight: 600; }
.stack-table td code { color: var(--accent-bright); background: var(--bg-raised); padding: 2px 6px; border-radius: 4px; }

/* ---------- quickstart code block ---------- */
.code-block {
  background: var(--bg-raised);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 22px 24px;
  font-size: 13.5px;
  overflow-x: auto;
  position: relative;
}
.code-block .win { position: absolute; top: 14px; right: 16px; }
.code-block pre { white-space: pre; }
.code-block .c1 { color: var(--fg-dim); }
.code-block .cmd { color: var(--accent-bright); }
.code-block .out { color: var(--accent-2); }

/* ---------- limitations ---------- */
.limits {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 30px 32px;
  background: var(--bg-card);
}
.limits ul { list-style: none; }
.limits li {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  color: var(--fg-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-dim);
}
.limits li:last-child { border-bottom: none; }
.limits li .tag {
  font-family: var(--mono-head);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  height: fit-content;
  flex-shrink: 0;
}

/* ---------- final cta ---------- */
.final-cta {
  text-align: center;
  border-top: 1px solid var(--border-dim);
}
.final-cta h2 {
  font-family: var(--mono-head);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 16px;
}
.final-cta p { color: var(--fg-muted); max-width: 50ch; margin: 0 auto 30px; }
.final-cta .cta-row { justify-content: center; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border-dim);
  padding: 32px 0;
  position: relative;
  z-index: 2;
}
footer .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--fg-dim);
}
footer a:hover { color: var(--accent-bright); }
footer .fl { display: flex; gap: 20px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-step:not(:last-child) { border-right: 1px dashed var(--border-dim); border-bottom: none; }
  .flow-step:not(:last-child)::after { content: none; }
  .feature-grid { grid-template-columns: 1fr; }
  nav.links { display: none; }
  footer .row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .stack-table { font-size: 12.5px; }
  .stack-table th:nth-child(3), .stack-table td:nth-child(3) { display: none; }
}
