/* RaiosSIN landing — estatico, dark theme, mobile-first */

:root {
  --bg: #0a0e14;
  --bg-card: #141821;
  --bg-card-2: #1b2029;
  --border: #2a2f3a;
  --text: #e5e7eb;
  --text-dim: #9ca3af;
  --accent: #fbbf24;
  --accent-hover: #fcd34d;
  --critico: #ef4444;
  --alerta: #f59e0b;
  --clear: #22c55e;
  --monit: #3b82f6;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

code {
  background: var(--bg-card-2);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "SF Mono", Monaco, Consolas, monospace;
}

/* Header */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
}
nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav a { color: var(--text-dim); font-size: 0.95rem; }
nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(
    180deg,
    rgba(251, 191, 36, 0.06) 0%,
    transparent 100%
  );
}
.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 850px;
}
.highlight { color: var(--accent); }
.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 700px;
  margin-bottom: 2rem;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s;
}
.cta:hover {
  background: var(--accent-hover);
  color: var(--bg);
  text-decoration: none;
}
.cta-sub {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Sections */
main section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
main section:first-child { border-top: 0; }
main h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--accent);
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
  max-width: 800px;
}
.steps li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
}
.steps li strong { color: var(--text); font-size: 1.05rem; }
.steps li em { color: var(--text-dim); font-style: italic; }

/* Example messages */
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.msg {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: -apple-system, "Segoe UI", sans-serif;
}
.msg-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.msg-critico .msg-tag {
  background: rgba(239, 68, 68, 0.15);
  color: var(--critico);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.msg-alerta .msg-tag {
  background: rgba(245, 158, 11, 0.15);
  color: var(--alerta);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.msg-clear .msg-tag {
  background: rgba(34, 197, 94, 0.15);
  color: var(--clear);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.msg-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}
.msg-body .b { font-weight: 700; }
.msg-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Targets */
.targets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.target {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 8px;
}
.target h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.target p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Norma */
.norma-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 800px;
  margin: 1.5rem 0;
}
.norma-list li {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 4px;
}
.norma-list li strong { color: var(--accent); }
.norma-detail { color: var(--text-dim); font-size: 0.95rem; }

/* Feed ao vivo */
.live-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--critico);
  margin-left: 0.4rem;
  animation: pulse 2s infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
}
.feed-filters select, .feed-filters input {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
}
.feed-filters input { flex: 1 1 220px; min-width: 180px; }
.feed-filters select:focus, .feed-filters input:focus {
  outline: none;
  border-color: var(--accent);
}
.feed-grid { max-height: 720px; overflow-y: auto; padding-right: 0.25rem; }
.msg-monit .msg-tag {
  background: rgba(59, 130, 246, 0.15);
  color: var(--monit);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.msg-done { opacity: 0.55; }

/* Tabelas (regras / comandos) */
.rules-table {
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.rules-table th, .rules-table td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
.rules-table th {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rules-table td { color: var(--text-dim); }
.rules-table td:first-child { color: var(--text); white-space: nowrap; }
.table-note { color: var(--text-dim); font-size: 0.9rem; max-width: 800px; }

/* Final CTA */
.final-cta {
  text-align: center;
}
.final-cta h3 { margin-bottom: 0.5rem; }
.final-cta p {
  color: var(--text-dim);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 3rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
footer p { margin-bottom: 0.25rem; }

/* Mobile */
@media (max-width: 600px) {
  .hero h2 { font-size: 1.75rem; }
  .lead { font-size: 1rem; }
  main h3 { font-size: 1.4rem; }
  .cta { padding: 0.85rem 1.5rem; font-size: 1rem; }
  nav { gap: 0.75rem; }
  nav a { font-size: 0.85rem; }
}
