/* ===== Tokens ===== */
:root {
  --bg: #0A1C33;
  --panel: #112B4A;
  --panel-line: rgba(144, 166, 194, 0.18);
  --text: #EDF2F8;
  --text-muted: #90A6C2;
  --accent: #E3A34D;
  --accent-dim: rgba(227, 163, 77, 0.14);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max-width: 1120px;
  --gutter: 24px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 28, 51, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-line);
}
.bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-mark {
  height: 38px;
  width: auto;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
}
.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 2px;
  font-weight: 500;
}
.nav-cta:hover { color: var(--bg) !important; opacity: 0.9; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { opacity: 0.88; }
.btn-ghost {
  border-color: var(--panel-line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-muted); }

/* ===== Hero ===== */
.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--panel-line);
}
.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.hero-lead {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.terminal {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-line);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--panel-line);
}
.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.terminal-body {
  margin: 0;
  padding: 22px 18px 26px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
  min-height: 170px;
}
.terminal-body .muted { color: var(--text-muted); }
.terminal-body .ok { color: var(--accent); }
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== Sections ===== */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--panel-line);
}
.section h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

/* Sobre */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}
.about-text { display: flex; flex-direction: column; gap: 22px; }
.about-statement {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.5;
  max-width: 30ch;
}
.about-support {
  color: var(--text-muted);
  max-width: 56ch;
}

/* Serviços */
.service-list { margin-top: 40px; }
.service-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--panel-line);
}
.service-row:last-child { border-bottom: 1px solid var(--panel-line); }
.service-code {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  padding-top: 4px;
}
.service-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.service-body p {
  color: var(--text-muted);
  max-width: 60ch;
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.contact-copy p { color: var(--text-muted); margin-top: 12px; }
.contact-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 1.05rem;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 74px;
}
.contact-list a {
  border-bottom: 1px solid var(--panel-line);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.contact-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.contact-mark {
  justify-self: end;
  max-width: 280px;
}

/* ===== Footer ===== */
.site-footer { padding: 32px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-mark { height: 26px; width: auto; opacity: 0.85; }
.footer-inner p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 56px 0 64px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-statement { max-width: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-mark { justify-self: start; max-width: 140px; order: -1; }
  .section { padding: 64px 0; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--panel-line);
    padding: 12px var(--gutter) 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .primary-nav a { width: 100%; padding: 10px 0; }
  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-cta { margin-top: 6px; }
  .service-row { grid-template-columns: 70px 1fr; }
}
