:root {
  color-scheme: dark;
  --bg: #050805;
  --bg-elevated: #0b120d;
  --surface: rgba(14, 22, 16, 0.92);
  --surface-strong: #101913;
  --surface-soft: rgba(24, 38, 28, 0.82);
  --border: rgba(87, 255, 141, 0.18);
  --border-strong: rgba(87, 255, 141, 0.34);
  --text: #f5fff7;
  --muted: #a6b7aa;
  --accent: #57ff8d;
  --accent-strong: #23c55e;
  --accent-soft: rgba(87, 255, 141, 0.12);
  --danger-soft: rgba(255, 124, 124, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1160px;
  --header-height: 84px;
  --font-stack: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-stack);
  background:
    radial-gradient(circle at top left, rgba(87, 255, 141, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(87, 255, 141, 0.08), transparent 24%),
    linear-gradient(180deg, #030603 0%, #070b08 55%, #040704 100%);
  color: var(--text);
  line-height: 1.6;
}

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

button,
.button-link {
  font: inherit;
}

img {
  max-width: 100%;
}

.site-shell {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 5, 0.82);
  border-bottom: 1px solid rgba(87, 255, 141, 0.1);
}

.site-header__inner,
.site-footer__inner,
.page-section,
.hero,
.content-card {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(87, 255, 141, 0.28), rgba(20, 41, 26, 0.9));
  border: 1px solid var(--border-strong);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__title {
  font-size: 1.06rem;
}

.brand__subtitle {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 24, 17, 0.92);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:focus-visible,
.nav-link:focus-visible,
.button-link:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 12px 14px;
  color: var(--muted);
  border-radius: 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(87, 255, 141, 0.08);
  color: var(--text);
}

.page-main {
  padding: 24px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 30px;
}

.hero__panel,
.hero__aside,
.content-card,
.feature-card,
.info-card,
.cta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(12, 20, 14, 0.96), rgba(7, 11, 8, 0.96));
  box-shadow: var(--shadow);
}

.hero__panel {
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.hero__panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(87, 255, 141, 0.18) 0%, rgba(87, 255, 141, 0) 72%);
}

.hero__eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 4vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p,
.page-lead,
.feature-card p,
.info-card p,
.content-card p,
.content-card li,
.footer-note,
.meta-text {
  color: var(--muted);
  font-size: 1rem;
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

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

.button-link--primary {
  background: linear-gradient(135deg, rgba(87, 255, 141, 0.96), rgba(35, 197, 94, 0.96));
  color: #021106;
  font-weight: 800;
}

.button-link--secondary {
  background: rgba(12, 20, 14, 0.96);
  color: var(--text);
}

.button-link--muted,
.button-link[aria-disabled="true"] {
  background: rgba(17, 26, 19, 0.96);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.08);
}

.button-link[aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
}

.hero__stats,
.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

.hero__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.stat-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 1.55rem;
}

.hero__aside {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero__aside-card {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(87, 255, 141, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(87, 255, 141, 0.14);
}

.hero__aside-card h2,
.feature-card h3,
.info-card h3,
.content-card h2,
.content-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--text);
}

.hero__aside-card p,
.feature-card p:last-child,
.info-card p:last-child,
.content-card p:last-child {
  margin-bottom: 0;
}

.page-section {
  padding-top: 28px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

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

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

.feature-card,
.info-card,
.cta-card {
  padding: 24px;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(87, 255, 141, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.content-card {
  padding: 32px;
}

.content-card + .content-card {
  margin-top: 20px;
}

.content-card ul,
.content-card ol {
  padding-left: 20px;
  margin: 14px 0 0;
}

.content-card li + li {
  margin-top: 10px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.note-box {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(87, 255, 141, 0.08);
  border: 1px solid rgba(87, 255, 141, 0.14);
  color: #dbffe4;
}

.note-box--warning {
  background: var(--danger-soft);
  border-color: rgba(255, 124, 124, 0.22);
  color: #ffd8d8;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-item {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.contact-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.site-footer {
  padding: 42px 0 56px;
}

.site-footer__inner {
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(87, 255, 141, 0.1);
  background: rgba(7, 11, 8, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 0.98rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.footer-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  padding-top: 24px;
}

.page-hero .content-card {
  padding: 34px;
}

.page-title {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.page-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.meta-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 76px;
  }

  .site-header__inner,
  .site-footer__inner,
  .page-section,
  .hero,
  .content-card {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(8, 13, 9, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 14px;
  }

  .hero__panel,
  .hero__aside,
  .content-card,
  .feature-card,
  .info-card,
  .cta-card,
  .site-footer__inner {
    border-radius: 24px;
  }

  .hero__panel,
  .content-card,
  .page-hero .content-card {
    padding: 26px 22px;
  }

  .hero__aside,
  .feature-card,
  .info-card,
  .cta-card {
    padding: 22px 20px;
  }

  .hero h1,
  .page-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}


/* Official TáLivre logo in header */
.brand--with-logo {
  gap: 14px;
}

.brand__logo {
  display: block;
  width: 152px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
}

.brand__text--compact .brand__subtitle {
  font-size: 0.72rem;
  max-width: 210px;
}

/* Legal document pages */
.legal-intro {
  margin-bottom: 22px;
}

.legal-document {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 26px;
}

.legal-section p {
  margin: 0 0 14px;
  color: rgba(245, 255, 247, 0.88);
  font-size: 0.98rem;
  line-height: 1.78;
  text-align: justify;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section:first-child p:first-child {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 760px) {
  .brand__logo {
    width: 128px;
    height: 38px;
  }

  .brand__text--compact {
    display: none;
  }

  .legal-section {
    padding: 20px;
  }

  .legal-section p {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.7;
  }
}
