:root {
  --bg: #0c0e16;
  --bg-elevated: #141826;
  --bg-card: #191e30;
  --bg-card-hover: #20263c;
  --bg-forge: #1c1614;
  --text: #f5efe2;
  --text-soft: #d5cfdf;
  --muted: #9da4bc;
  --gold: #f5b041;
  --gold-bright: #fde68a;
  --gold-dim: rgba(245, 176, 65, 0.14);
  --crystal: #38bdf8;
  --crystal-dim: rgba(56, 189, 248, 0.14);
  --crimson: #dc2626;
  --crimson-dim: rgba(220, 38, 38, 0.16);
  --ember: #f97316;
  --border: rgba(245, 176, 65, 0.2);
  --border-crystal: rgba(56, 189, 248, 0.34);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.38);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-w: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(900px 540px at 14% 4%, rgba(245, 176, 65, 0.11), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  padding: 0.14em 0.42em;
  border-radius: 6px;
  color: var(--gold-bright);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.1rem;
  background: var(--gold);
  color: #161108;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(var(--max-w), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 14, 22, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong, rgba(245, 176, 65, 0.44));
  box-shadow: 0 0 18px rgba(245, 176, 65, 0.22);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

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

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--crystal);
  outline-offset: 2px;
}

.btn-sm {
  padding: 0.56rem 1rem;
  font-size: 0.86rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f5b041 0%, #ea8a1a 100%);
  color: #171005;
  box-shadow: 0 10px 26px rgba(245, 176, 65, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(245, 176, 65, 0.38);
}

.btn-secondary {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--border-crystal);
  color: #dff4ff;
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: var(--border);
  color: var(--gold-bright);
}

/* Hero */
.hero {
  padding: clamp(3rem, 6vw, 5.25rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--gold-dim);
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.hero h1 {
  margin: 1rem 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-soft);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-visual {
  position: relative;
}

.forge-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  background: linear-gradient(155deg, rgba(245, 176, 65, 0.36), rgba(56, 189, 248, 0.25) 55%, rgba(220, 38, 38, 0.28));
  box-shadow: var(--shadow-lg);
}

.forge-frame-inner {
  border-radius: calc(var(--radius-lg) - 5px);
  overflow: hidden;
  background: var(--bg-elevated);
}

.forge-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: rgba(12, 14, 22, 0.92);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #7dd3fc;
  background: var(--crystal-dim);
  border: 1px solid var(--border-crystal);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Sections */
.section {
  padding: clamp(2.8rem, 5.5vw, 4.75rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.65) 0%, rgba(12, 14, 22, 0.4) 100%);
  border-block: 1px solid var(--border-subtle);
}

.section-head {
  max-width: 680px;
  margin-bottom: 2.25rem;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Pillars grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.badge-crystal {
  background: var(--crystal-dim);
  color: var(--crystal);
  border: 1px solid var(--border-crystal);
}

.badge-gold {
  background: var(--gold-dim);
  color: var(--gold-bright);
  border: 1px solid var(--border);
}

.badge-crimson {
  background: var(--crimson-dim);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Channels + Digests */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.55rem 0.95rem;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.tab-btn[aria-selected="true"] {
  background: var(--gold-dim);
  color: var(--gold-bright);
  border-color: var(--border);
}

.tab-panel[hidden] {
  display: none;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.channel-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text);
}

.channel-tag {
  font-size: 0.73rem;
  font-family: var(--font-mono);
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.forum-tag {
  font-size: 0.78rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(245, 176, 65, 0.09);
  border: 1px solid rgba(245, 176, 65, 0.22);
  color: var(--gold-bright);
}

/* Digest showcase */
.digest-showcase {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.digest-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-left-width: 4px;
}

.digest-card.is-noticias {
  border-left-color: var(--crystal);
}

.digest-card.is-radar {
  border-left-color: var(--gold);
}

.digest-banner {
  width: 100%;
  aspect-ratio: 1376 / 590;
  object-fit: cover;
}

.digest-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.digest-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.digest-title h3 {
  margin: 0;
  font-size: 1.05rem;
}

.digest-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.digest-body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.91rem;
}

.digest-sample {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(12, 14, 22, 0.65);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-soft);
}

/* GremioBot section */
.bot-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.bot-art {
  border-radius: var(--radius-lg);
  padding: 0.55rem;
  background: linear-gradient(155deg, rgba(56, 189, 248, 0.32), rgba(245, 176, 65, 0.25));
  box-shadow: var(--shadow-md);
}

.bot-art img {
  border-radius: calc(var(--radius-lg) - 5px);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.commands-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
}

.cmd-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1rem;
  align-items: baseline;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.cmd-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.ecosystem-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.eco-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: var(--crystal-dim);
  border: 1px solid var(--border-crystal);
  color: #cfefff;
}

/* Sources & Rules */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.source-groups {
  display: grid;
  gap: 0.9rem;
}

.source-group h3 {
  margin: 0 0 0.35rem;
  font-size: 0.96rem;
  color: var(--gold-bright);
}

.source-group p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  counter-reset: rule;
}

.rules-list li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.rules-list li::before {
  content: counter(rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}

.rules-list strong {
  display: block;
  margin-bottom: 0.15rem;
}

.rules-list span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* CTA Banner */
.cta-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-forge);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
}

.cta-copy {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.cta-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.cta-copy p {
  margin: 0;
  color: var(--text-soft);
}

.cta-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.copy-feedback {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--crystal);
  min-height: 1.2em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

@media (max-width: 980px) {
  .hero-grid,
  .bot-grid,
  .cta-box,
  .split-grid,
  .digest-showcase {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.15rem 1.25rem 1.4rem;
    background: rgba(12, 14, 22, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-actions .btn-sm {
    display: none;
  }

  .pillars-grid,
  .channels-grid {
    grid-template-columns: 1fr;
  }

  .cmd-item {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .card {
    transition: none;
  }
  .btn:hover,
  .card:hover {
    transform: none;
  }
}
