/* /var/www/automacaojs-static/styles.css
   Landing Raiz AutomaçãoJS — Dark Tech (2026-10-25)
   Slate 950 + gradientes ciano/violeta/esmeralda, cards glassmorphism.
   Mobile-first, sem deps.
*/

/* ====================== TOKENS ====================== */
:root {
  /* Cores — Dark Tech */
  --c-bg: #020617;            /* slate 950 */
  --c-bg-2: #0b1226;
  --c-surface: rgba(255, 255, 255, 0.04);
  --c-ink: #f1f5f9;
  --c-ink-2: #e2e8f0;
  --c-ink-3: #94a3b8;
  --c-muted: #64748b;
  --c-line: rgba(255, 255, 255, 0.09);
  --c-cyan: #22d3ee;
  --c-violet: #a78bfa;
  --c-emerald: #34d399;
  --c-amber: #fbbf24;
  --c-gold: #fbbf24;

  /* Tipografia */
  --f-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Espaçamento (tokens 4/8/12/16/24/32/48/64) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Sombra */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);

  /* Largura */
  --max-w: 1120px;
}

/* ====================== RESET ====================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { font-family: inherit; }

/* ====================== LAYOUT ====================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--s-4);
}
@media (min-width: 720px) {
  .container { padding-inline: var(--s-8); }
}
#ecossistema, #como-funciona, #trial { scroll-margin-top: 88px; }

/* ====================== HEADER ====================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 64px;
  padding-block: var(--s-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-violet));
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 800;
  transform: rotate(45deg);
  line-height: 1;
}
.brand-mark::before { content: ''; width: 8px; height: 8px; background: #fff; border-radius: 2px; }
.brand-accent { color: var(--c-cyan); }
.brand-name { font-weight: 800; }
.header-nav {
  display: none;
  align-items: center;
  gap: var(--s-6);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--c-ink-3);
}
.header-nav a { transition: color 0.15s ease; }
.header-nav a:hover { color: var(--c-ink); }
@media (min-width: 720px) {
  .header-nav { display: inline-flex; }
}

/* ====================== BOTÕES ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  cursor: pointer;
  text-align: center;
}
.btn-lg { font-size: 1.05rem; padding: 16px 28px; min-height: 56px; }
.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35); }
.btn-primary:focus-visible { outline: 3px solid var(--c-cyan); outline-offset: 2px; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-ink);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.10); border-color: var(--c-cyan); }
.btn-secondary:focus-visible { outline: 3px solid var(--c-cyan); outline-offset: 2px; }
.btn-cta-sticky { padding: 10px 16px; min-height: 40px; font-size: 0.9rem; white-space: nowrap; }

/* ====================== HERO ====================== */
.hero {
  padding: var(--s-16) 0 var(--s-12);
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(34, 211, 238, 0.16) 0%, transparent 70%),
    radial-gradient(500px 300px at 0% 20%, rgba(167, 139, 250, 0.14) 0%, transparent 70%),
    radial-gradient(400px 260px at 50% 100%, rgba(52, 211, 153, 0.08) 0%, transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--c-bg);
  background-size: auto, auto, auto, 44px 44px, 44px 44px, auto;
}
.eyebrow {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: var(--s-3);
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: var(--s-4);
}
.text-gradient {
  background: linear-gradient(90deg, var(--c-cyan), var(--c-violet), var(--c-emerald));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--c-ink-3);
  max-width: 56ch;
  margin-bottom: var(--s-8);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.hero-meta {
  font-size: 0.85rem;
  color: var(--c-muted);
}

/* ====================== SECTION TÍTULOS ====================== */
.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: var(--s-3);
}
.section-lead {
  font-size: 1.05rem;
  color: var(--c-ink-3);
  max-width: 60ch;
  margin-bottom: var(--s-12);
}

/* ====================== ECOSSISTEMA (glassmorphism) ====================== */
.ecosystem { padding: var(--s-16) 0; background: var(--c-bg); }
.cards {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(34, 211, 238, 0.08);
}
.card-emoji {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.card-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-ink);
}
.card-body { color: var(--c-ink-3); font-size: 0.95rem; }
.card-foot { margin-top: auto; }
.tag {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-cyan);
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-emerald { color: var(--c-emerald); background: rgba(52, 211, 153, 0.10); border-color: rgba(52, 211, 153, 0.25); }
.tag-violet { color: var(--c-violet); background: rgba(167, 139, 250, 0.10); border-color: rgba(167, 139, 250, 0.25); }
.tag-amber { color: var(--c-amber); background: rgba(251, 191, 36, 0.10); border-color: rgba(251, 191, 36, 0.25); }
.tag-cyan { color: var(--c-cyan); background: rgba(34, 211, 238, 0.10); border-color: rgba(34, 211, 238, 0.25); }

/* ====================== HOW (3 passos) ====================== */
.how {
  padding: var(--s-16) 0;
  background: linear-gradient(180deg, var(--c-bg) 0%, rgba(34, 211, 238, 0.04) 100%);
}
.steps {
  list-style: none;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-emerald));
  color: #020617;
  border-radius: 999px;
  margin-bottom: var(--s-3);
}
.step-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--s-2);
  color: var(--c-ink);
}
.step-body { color: var(--c-ink-3); font-size: 0.95rem; }
.step-body code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85em;
  background: rgba(34, 211, 238, 0.10);
  color: var(--c-cyan);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ====================== TRIAL ====================== */
.trial { padding: var(--s-16) 0; background: var(--c-bg); }
.trial-inner {
  display: grid;
  gap: var(--s-8);
  align-items: center;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(167, 139, 250, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-xl);
  padding: var(--s-8);
}
@media (min-width: 860px) { .trial-inner { grid-template-columns: 1.4fr auto; } }
.trial-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
  color: #fff;
}
.trial-body {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
}

/* ====================== FOOTER ====================== */
.site-footer {
  background: #01040f;
  color: rgba(255, 255, 255, 0.78);
  padding: var(--s-12) 0 var(--s-8);
  margin-top: 0;
  border-top: 1px solid var(--c-line);
}
.footer-inner {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr; } }
.footer-brand .brand-name { color: #fff; font-size: 1.1rem; }
.footer-tag { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; margin-top: var(--s-2); }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--c-cyan); }
.footer-meta {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--s-6);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ====================== ANIMAÇÕES ====================== */
[data-anim] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ====================== A11Y ====================== */
:focus-visible {
  outline: 3px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ====================== BOTÕES DE AÇÃO DOS CARDS ====================== */
.card-foot {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-3);
}
.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  padding: 11px 16px;
  min-height: 42px;
  border-radius: var(--r-md);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  text-align: center;
  box-sizing: border-box;
}
.btn-card-primary {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #ffffff !important;
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.22);
}
.btn-card-primary:hover {
  filter: brightness(1.12);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.btn-card-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-ink) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn-card-outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--c-cyan);
  transform: translateY(-1px);
}
