/* ── trs.one — design system ─────────────────────────────── */

:root {
  --bg: #0a0d0a;
  --bg-raise: #10140f;
  --line: rgba(232, 236, 230, 0.1);
  --line-soft: rgba(232, 236, 230, 0.05);
  --ink: #e8ece6;
  --muted: #9aa595;
  --accent: #c6f24e;
  --accent-ink: #0a0d0a;
  --font-display: "Archivo", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-mono: "JetBrains Mono", monospace;
  --maxw: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* grid de fundo + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 30%, transparent 90%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 100;
  mix-blend-mode: overlay;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── header ── */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark .dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 720px) {
  .site-nav {
    gap: 16px;
  }
  .site-nav a.hide-sm {
    display: none;
  }
}

/* ── hero ── */
.hero {
  padding: 120px 0 96px;
  position: relative;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 18ch;
  animation: rise 0.7s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
}

.hero p {
  margin-top: 28px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.15rem;
  animation: rise 0.7s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: rise 0.7s 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid var(--line);
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

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

/* ── sections ── */
.section {
  border-top: 1px solid var(--line);
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg);
  padding: 36px 28px;
  position: relative;
  transition: background 0.25s;
}

.card:hover {
  background: var(--bg-raise);
}

.card .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.18em;
}

.card h3 {
  margin: 44px 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.card::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 28px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover::after {
  opacity: 1;
}

/* whatsapp / integração */
.integration {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 860px) {
  .integration {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.integration p + p {
  margin-top: 18px;
}

.integration p {
  color: var(--muted);
}

.integration strong {
  color: var(--ink);
}

.spec-list {
  list-style: none;
  border: 1px solid var(--line);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.spec-list li + li {
  border-top: 1px solid var(--line);
}

.spec-list .k {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.spec-list .v {
  text-align: right;
}

.spec-list .v.ok {
  color: var(--accent);
}

/* contato */
.contact-band {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact-band h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.contact-band h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.contact-band p {
  color: var(--muted);
  margin: 20px auto 40px;
  max-width: 46ch;
}

/* ── footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer,
.site-footer a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* ── páginas legais ── */
.legal {
  padding: 80px 0 96px;
  max-width: 760px;
}

.legal .kicker {
  animation: none;
}

.legal h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 14px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 10px;
}

.legal p,
.legal li {
  color: #c2c9bd;
}

.legal p + p {
  margin-top: 14px;
}

.legal ul,
.legal ol {
  margin: 14px 0 14px 22px;
}

.legal li + li {
  margin-top: 8px;
}

.legal a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 3px;
}

.legal .note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  margin: 24px 0;
  background: var(--bg-raise);
}

.legal .note p {
  font-size: 0.95rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.legal th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-raise);
}