/* W360 — folha de estilo principal
   Tema escuro "tech": grafite profundo + destaque menta */
:root {
  --bg: #0E1116;
  --bg-2: #12151E;
  --surface: #151924;
  --line: #23283A;
  --line-2: #2C3245;
  --fg: #EDEFF3;
  --fg-strong: #FFFFFF;
  --muted: #B6BCCB;
  --muted-2: #8A91A3;
  --accent: #7CF5C4;
  --accent-ink: #0E1116;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --wrap: 1240px;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--fg-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--fg-strong); text-wrap: balance; margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line-2); transition: background .2s, border-color .2s, color .2s;
  font-family: var(--font-body); cursor: pointer;
}
.btn:hover { border-color: var(--muted-2); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #A2F8D6; color: var(--accent-ink); border-color: #A2F8D6; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(14, 17, 22, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo span { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.5px; color: var(--fg-strong); }
.main-nav { display: flex; gap: 28px; font-size: 15px; }
.main-nav a { color: var(--muted); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--fg-strong); }
.header-actions { display: flex; gap: 12px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2);
  background: transparent; color: var(--fg); cursor: pointer; align-items: center; justify-content: center;
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav, .header-actions { display: none; }
  .site-header.open .main-nav,
  .site-header.open .header-actions {
    display: flex; flex-direction: column; width: 100%; gap: 16px; padding-bottom: 12px;
  }
  .site-header.open .header-inner { flex-wrap: wrap; }
  .site-header.open .main-nav { order: 3; padding-top: 8px; border-top: 1px solid var(--line); }
  .site-header.open .header-actions { order: 4; }
}

/* ---------- Rótulos e títulos de seção ---------- */
.eyebrow {
  margin: 0 0 14px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent);
}
.section { padding-block: 104px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -1px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head > div { max-width: 660px; }
.section-head p.lead { margin: 0; max-width: 380px; color: var(--muted); }
@media (max-width: 640px) { .section { padding-block: 72px; } }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 96px 88px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -2px; }
.hero-text > p { margin: 24px 0 0; max-width: 540px; font-size: 18px; color: var(--muted); }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.terminal { flex: 1 1 420px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.terminal-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.terminal-body { padding: 24px 22px; font-family: var(--font-mono); font-size: 14px; line-height: 2; overflow-x: auto; }
.terminal-body .cmd { color: var(--muted-2); }
.terminal-body .ok { color: var(--accent); }
.terminal-body .line { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .terminal-body .line { animation: typeIn .4s both; }
  .terminal-body .line:nth-child(2) { animation-delay: .3s; }
  .terminal-body .line:nth-child(3) { animation-delay: .6s; }
  .terminal-body .line:nth-child(4) { animation-delay: .9s; }
  .terminal-body .line:nth-child(5) { animation-delay: 1.2s; }
  .terminal-body .line:nth-child(6) { animation-delay: 1.5s; }
  .terminal-body .line:nth-child(7) { animation-delay: 1.8s; }
}
@keyframes typeIn { from { opacity: .15; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Faixa de pilares ---------- */
.pillars { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pillars .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; padding-block: 26px; font-family: var(--font-display); font-size: 17px; color: var(--muted); }
.pillars .sep { color: var(--line-2); }
.pillars strong { color: var(--fg-strong); font-weight: 500; }

/* ---------- Serviços ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.service { background: var(--bg); padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.service .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.service h3 { font-size: 23px; font-weight: 600; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }
.service a { margin-top: auto; font-size: 14px; font-weight: 500; }
.service-visual { grid-column: span 2; background: var(--surface); position: relative; min-height: 240px; }
.service-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .service-visual { grid-column: span 1; aspect-ratio: 2 / 1; min-height: 0; }
}

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; gap: 18px; }
.plan.featured { border-color: var(--accent); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { font-size: 24px; font-weight: 600; }
.badge { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 5px 10px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
.plan > p { margin: 0; color: var(--muted); font-size: 15px; }
.price { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--fg-strong); }
.price small { font-size: 15px; font-weight: 400; color: var(--muted-2); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #D4D8E2; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.plan .btn { margin-top: auto; }
.note { margin: 28px 0 0; font-size: 14px; color: var(--muted-2); }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { border-top: 2px solid var(--line-2); padding-top: 22px; }
.step .n { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--accent); line-height: 1; }
.step h3 { margin: 16px 0 8px; font-size: 21px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Cards do blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-card .thumb { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 16 / 10; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .cat { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.post-card h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.post-card .meta { font-size: 14px; color: var(--muted-2); }
@media (prefers-reduced-motion: reduce) { .post-card .thumb img { transition: none; } }

/* ---------- Contato ---------- */
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px; }
.contact-text { flex: 1 1 380px; min-width: 0; }
.contact-text > p { margin: 20px 0 32px; color: var(--muted); font-size: 17px; }
.contact-info { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #D4D8E2; }
.contact-info span { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1px; display: block; }
.contact { align-items: center; }
.btn-whats { font-size: 17px; padding: 16px 28px; margin-bottom: 32px; }
.contact-visual { flex: 1 1 420px; min-width: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.contact-visual img { width: 100%; height: auto; }
.contact-form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: 14px; color: var(--muted); margin-top: 10px; }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--fg); font: inherit; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { margin-top: 18px; }
.form-status { min-height: 24px; margin: 8px 0 0; font-size: 14px; color: var(--accent); }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-block: 48px; font-size: 14px; color: var(--muted-2); }
.footer-inner p { margin: 10px 0 0; max-width: 320px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols strong { color: var(--fg); font-weight: 600; }
.footer-cols a { color: var(--muted-2); }
.footer-cols a:hover { color: var(--fg-strong); }
.copyright { padding-block: 0 32px; font-size: 13px; color: var(--muted-2); }

/* ---------- Página do blog ---------- */
.page-hero { padding-block: 80px 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -1.5px; line-height: 1.05; }
.page-hero p { margin: 18px 0 0; max-width: 600px; color: var(--muted); font-size: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 36px; }
.filters button {
  font: inherit; font-size: 14px; padding: 10px 16px; border-radius: 99px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--line-2); min-height: 44px;
}
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Artigo ---------- */
.article-head { padding-block: 64px 40px; max-width: 820px; }
.breadcrumb { font-size: 14px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.breadcrumb a { color: var(--muted); }
.article-head h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -1.2px; }
.article-head .summary { margin: 20px 0 0; font-size: 19px; color: var(--muted); }
.article-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted-2); }
.article-meta .cat { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--accent); }
.article-cover { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: flex; flex-wrap: wrap; gap: 56px; padding-block: 56px 96px; align-items: flex-start; }
.prose { flex: 1 1 560px; min-width: 0; max-width: 720px; font-size: 18px; line-height: 1.75; color: #D4D8E2; }
.prose h2 { font-size: 28px; letter-spacing: -.5px; margin: 48px 0 16px; line-height: 1.2; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--fg-strong); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .callout { margin: 32px 0; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 17px; }
.prose .callout strong { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); font-weight: 500; background: var(--bg-2); }
.prose tr:last-child td { border-bottom: none; }
.aside { flex: 1 1 280px; min-width: 0; max-width: 360px; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.aside-box h3 { font-size: 20px; margin-bottom: 10px; }
.aside-box p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.aside-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.aside-box li a { color: var(--fg); }
.aside-box li a:hover { color: var(--accent); }
@media (max-width: 960px) { .aside { position: static; max-width: none; } }
.related { border-top: 1px solid var(--line); }
