/* ============================================================
   Sysdev v3 — estúdio de software
   Layout editorial escuro: Space Grotesk + Inter + JetBrains Mono,
   acento lima sobre quase-preto. Importado do Claude Design.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  visibility: hidden;
  color-scheme: dark;
  scroll-behavior: smooth;
}
html[data-lang-ready="1"] { visibility: visible; }
html[data-theme="light"] { color-scheme: light; }

:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --accent: #C6FF4A;
  --accent-hover: #D6FF77;
  --accent-ink: #0A0B0E;
  --accent-2: #8B7CFF;

  /* Tema escuro (padrão) */
  --bg: #0A0B0E;
  --bg-alt: #0E1015;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --text: #F4F5F6;
  --text-muted: #9195A0;
  --text-faint: #6A707D;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent-text: #C6FF4A;
  --ghost-word: rgba(255, 255, 255, 0.03);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  --focus-ring: #C6FF4A;

  --tok-kw: #8B7CFF;
  --tok-str: #C6FF4A;
  --tok-num: #6FB7FF;

  --radius-s: 6px;
  --radius-m: 12px;
  --container: 1200px;
  --header-h: 68px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  --bg: #F6F6F3;
  --bg-alt: #EFEFEA;
  --surface: rgba(10, 11, 14, 0.03);
  --surface-2: rgba(10, 11, 14, 0.06);
  --text: #0E1013;
  --text-muted: #5D616A;
  --text-faint: #7C818B;
  --line: rgba(10, 11, 14, 0.12);
  --line-soft: rgba(10, 11, 14, 0.09);
  --line-strong: rgba(10, 11, 14, 0.20);
  --accent-text: #4C6B0F;
  --ghost-word: rgba(10, 11, 14, 0.045);
  --shadow: 0 16px 36px rgba(10, 11, 14, 0.10);
  --focus-ring: #0E1013;

  --tok-kw: #5B4BD6;
  --tok-str: #4C6B0F;
  --tok-num: #1F6FB2;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 14px;
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Kicker (rótulo mono) ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--accent-text);
  margin: 0;
}
.kicker-sm { font-size: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease),
              color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }

.btn-sm { font-size: 14px; padding: 10px 20px; }
.btn-lg { padding: 15px 30px; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}
.logo-cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  background: var(--accent);
  margin-left: 3px;
  transform: translateY(1px);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.nav-links a { color: var(--text-muted); transition: color 180ms var(--ease); }
.nav-links a:hover { color: var(--accent-text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}
.icon-btn:hover { border-color: var(--accent-text); color: var(--accent-text); }
.icon-btn svg { width: 17px; height: 17px; }

.lang-btn {
  width: auto;
  padding-inline: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.theme-icon-dark { display: none; }
html[data-theme="light"] .theme-icon-light { display: none; }
html[data-theme="light"] .theme-icon-dark { display: block; }

.nav-toggle { display: none; }
.nav-toggle svg { width: 20px; height: 20px; }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 20px;
  border-top: 1px solid var(--line-soft);
}
.nav-drawer.is-open { display: flex; }
.nav-drawer a:not(.btn) {
  padding: 14px 2px;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(56px, 8vw, 96px) clamp(52px, 7vw, 84px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.hero-title {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-top: 22px;
}
.hero-lead {
  font-size: clamp(16.5px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 50ch;
  margin-top: 24px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 99px;
}

/* ---------- Terminal / janela de código ---------- */
.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.window-shadow { box-shadow: var(--shadow); }
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.window-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}
.window-body {
  margin: 0;
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.terminal-body { min-height: 190px; }
.caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.1s step-end infinite;
}

.code-body { padding: 24px; line-height: 1.8; white-space: pre; overflow-x: auto; }
.tok-com { color: var(--text-faint); }
.tok-kw { color: var(--tok-kw); }
.tok-str { color: var(--tok-str); }
.tok-num { color: var(--tok-num); }

/* ---------- Faixa de fatos ---------- */
.factbar { border-block: 1px solid var(--line-soft); }
.factbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Seções ---------- */
.section { padding-block: clamp(64px, 8vw, 100px); }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}
.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: 12px;
}
.section-head { margin-bottom: clamp(36px, 5vw, 48px); }

/* ---------- Lista de serviços (linhas editoriais) ---------- */
.rows {
  border-top: 1px solid var(--line);
  margin-inline: -20px;
}
.row {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 32px;
  padding-block: 34px;
  padding-inline: 20px;
  border-bottom: 1px solid var(--line);
  transition: background-color 200ms var(--ease);
}
.row:hover { background: var(--surface); }
.row-title { font-size: 22px; font-weight: 700; }
.row-desc { color: var(--text-muted); line-height: 1.7; max-width: 62ch; }
.row-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-text);
  display: inline-block;
  margin-top: 8px;
  transition: opacity 180ms var(--ease);
}
.row-link:hover { opacity: 0.75; }

/* ---------- Passos do processo ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.step { border-left: 1px solid var(--line-strong); padding-left: 24px; }
.step .kicker { margin-bottom: 12px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--text-muted); line-height: 1.7; font-size: 15px; }

/* ---------- Missão ---------- */
.mission { position: relative; overflow: hidden; }
.mission-bgword {
  /* Alinha a borda direita da palavra com a borda de conteúdo do .container */
  --bgword-gutter: clamp(20px, 5vw, 40px);
  position: absolute;
  right: max(var(--bgword-gutter), calc(50% - var(--container) / 2 + var(--bgword-gutter)));
  bottom: -30px;
  font-family: var(--font-mono);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 500;
  color: var(--ghost-word);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}
.mission-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: end;
}
.mission-quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.mission-note { color: var(--text-muted); line-height: 1.75; }

/* ---------- Estúdio ---------- */
.studio {
  padding-block: clamp(8px, 2vw, 20px) clamp(64px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.studio-text .section-title { margin-bottom: 20px; }
.studio-text p { color: var(--text-muted); line-height: 1.75; }
.studio-text p + p { margin-top: 16px; }

/* ---------- Marca irmã ---------- */
.cross { border-top: 1px solid var(--line-soft); }
.cross-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-block: clamp(48px, 6vw, 72px);
}
.cross-text { max-width: 56ch; }
.cross-text h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  margin-block: 10px;
}
.cross-text p { color: var(--text-muted); line-height: 1.7; }

/* ---------- CTA final ---------- */
.cta { border-top: 1px solid var(--line-soft); }
.cta-inner { padding-block: clamp(72px, 9vw, 110px); text-align: center; }
.cta-title {
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.cta-lead {
  color: var(--text-muted);
  font-size: clamp(16.5px, 1.6vw, 18px);
  margin-bottom: 36px;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 36px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.footer-logo span { color: var(--accent-text); }
.footer-tagline { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.footer-links a { color: var(--text-muted); transition: color 180ms var(--ease); }
.footer-links a:hover { color: var(--accent-text); }
.footer-legal { border-top: 1px solid var(--line-soft); }
.footer-legal-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-block: 16px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.footer-legal-inner .mono { font-family: var(--font-mono); font-size: 12px; }

/* ---------- Reveal on scroll ---------- */
html.has-reveal [data-anim] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
html.has-reveal [data-anim].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.has-reveal [data-anim] { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.notfound { align-items: center; min-height: 70svh; }
.notfound-code {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--accent-text);
  margin-block: 8px 4px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .mission-inner, .studio { grid-template-columns: 1fr; }
  .mission-inner { align-items: start; }
}

@media (max-width: 720px) {
  .hero-tags { gap: 8px; }
  .rows { margin-inline: 0; }
  .row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 26px;
    padding-inline: 0;
  }
  .row:hover { background: none; }
  .row-title { font-size: 20px; }
  .row-link {
    margin-top: 12px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 99px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .window-body { font-size: 12.5px; padding: 18px 16px; }
  .terminal-body { min-height: 160px; }
  .code-body { white-space: pre-wrap; }
  .cta-actions .btn, .hero-ctas .btn { flex: 1 1 100%; }
  .mission-bgword { font-size: clamp(64px, 22vw, 120px); }
}

@media (max-width: 400px) {
  .nav-actions { gap: 6px; }
}
