/*
  Seixas Tecnologia — Design System
  Referência: IBM Carbon + tipografia editorial
  Princípios: assimetria controlada, mono accents, uma cor de destaque, sombra zero, grid rigoroso
*/

:root {
  /* Cor única de destaque — IBM Blue */
  --accent: #0f62fe;
  --accent-hover: #0353e9;
  --accent-active: #002d9c;
  --accent-light: #edf5ff;

  /* Neutros — Gray scale (Carbon) */
  --gray-100: #161616;
  --gray-90: #262626;
  --gray-80: #393939;
  --gray-70: #525252;
  --gray-60: #6f6f6f;
  --gray-50: #8d8d8d;
  --gray-30: #c6c6c6;
  --gray-20: #e0e0e0;
  --gray-10: #f4f4f4;
  --white: #ffffff;

  /* Tipografia */
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --shell: min(100% - 48px, 1200px);
  --section-space: clamp(4rem, 8vw, 7rem);

  /* Bordas — zero radius, hairlines */
  --border-subtle: 1px solid var(--gray-20);
  --border-strong: 1px solid var(--gray-30);
}

/* Reset e base */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  font-size: 16px;
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--gray-100);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

/* Focus visível — acessibilidade */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
::selection {
  color: var(--white);
  background: var(--accent);
}

/* Utilitários */
.shell { width: var(--shell); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Skip link */
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--gray-100);
  font-weight: 500;
  transform: translateY(-150%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* Tipografia */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 {
  max-width: 720px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.17;
}
h2 {
  max-width: 680px;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.19;
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.33;
}

.kicker {
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.kicker.light { color: var(--gray-30); }

/* Botões — 0 radius, 48px, IBM style */
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  color: var(--white);
  background: var(--accent);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--accent-hover); }
.button:active { background: var(--accent-active); }

.button-small {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.875rem;
}
.button-light {
  color: var(--gray-100);
  background: var(--white);
  border-color: var(--white);
}
.button-light:hover {
  color: var(--white);
  background: transparent;
  border-color: var(--white);
}

.text-link {
  min-height: 48px;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9375rem;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link span { font-size: 1.125rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

/* Header */
.site-header {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--white);
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-80);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  min-height: 44px;
  align-items: center;
  flex: 0 0 auto;
}
.brand-logo {
  width: 210px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav > a:not(.button) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--gray-30);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.15s;
}
.main-nav > a:not(.button):hover { color: var(--white); }

.menu-toggle {
  width: 48px;
  height: 48px;
  display: none;
  place-content: center;
  gap: 5px;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--gray-70);
  cursor: pointer;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero — escuro, sem grid decorativo, assimetria */
.hero {
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: 10rem 0 6rem;
  color: var(--white);
  background: var(--gray-100);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}
.eyebrow {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--gray-30);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.eyebrow .mono {
  color: var(--accent);
  font-weight: 500;
}
.hero-lead {
  max-width: 600px;
  margin-bottom: 2rem;
  color: var(--gray-30);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Method panel — card branco, borda superior accent */
.method-panel {
  position: relative;
  padding: 1.5rem;
  background: var(--white);
  border-top: 3px solid var(--accent);
  color: var(--gray-100);
}
.method-panel .panel-label {
  margin-bottom: 1rem;
  color: var(--gray-60);
}
.method-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.method-panel li {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: var(--border-subtle);
}
.method-panel li .mono {
  color: var(--accent);
  font-size: 0.75rem;
}
.method-panel li strong {
  font-size: 1rem;
  font-weight: 500;
}
.panel-caption {
  margin: 1rem 0 0;
  padding-top: 1rem;
  color: var(--gray-60);
  border-top: var(--border-subtle);
  font-size: 0.875rem;
}

/* Problemas — editorial, grid assimétrico */
.problems { background: var(--gray-10); }
.problems .section-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 2px solid var(--gray-100);
}
.problem-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: var(--border-subtle);
}
.problem-item:nth-child(odd) {
  padding-right: 2rem;
  border-right: var(--border-subtle);
}
.problem-item:nth-child(even) {
  padding-left: 2rem;
}
.problem-number {
  color: var(--accent);
  font-size: 0.75rem;
  padding-top: 0.25rem;
}
.problem-item p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
}
.problem-support {
  max-width: 560px;
  margin: 2.5rem 0 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  color: var(--gray-70);
  font-size: 1rem;
  line-height: 1.6;
}

/* Visuais autorais — moldura editorial, sem card ou sombra */
.architecture { background: var(--white); }
.architecture-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.architecture-copy {
  position: sticky;
  top: 104px;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-100);
}
.architecture-copy p:last-child {
  color: var(--gray-70);
  line-height: 1.6;
}
.visual-frame {
  margin: 0;
  padding: 8px;
  background: var(--gray-10);
  border: var(--border-strong);
}
.visual-frame img {
  width: 100%;
  height: auto;
  border: 1px solid var(--gray-20);
}
.visual-frame figcaption {
  margin: 0;
  padding: 12px 8px 4px;
  color: var(--gray-60);
  font-size: 0.6875rem;
  line-height: 1.5;
}

/* Diagnóstico — accent background */
.diagnostic {
  color: var(--white);
  background: var(--accent);
}
.diagnostic-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 8vw, 8rem);
}
.diagnostic-copy > p:not(.kicker) {
  max-width: 480px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
}
.deliverables {
  padding-left: clamp(0rem, 4vw, 4rem);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.deliverables .panel-label {
  color: rgba(255, 255, 255, 0.7);
}
.deliverables ul {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.deliverables li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 400;
}
.deliverables li .mono {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  padding-top: 0.125rem;
}
.scope-note {
  margin: 0;
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.15);
  border-left: 3px solid var(--white);
  font-size: 0.875rem;
}

/* Soluções */
.section-heading {
  margin-bottom: 3rem;
}
.solutions-composition {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  border-top: 2px solid var(--gray-100);
  border-bottom: 2px solid var(--gray-100);
}
.solution-primary {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--white);
  background: var(--gray-100);
  border-right: var(--border-subtle);
}
.solution-primary h3 {
  max-width: 380px;
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.2;
}
.solution-primary > p:last-child {
  max-width: 420px;
  color: var(--gray-30);
  font-size: 0.9375rem;
}
.solution-number {
  color: var(--accent);
  margin-bottom: 1rem;
}

.solution-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.solution-secondary article {
  min-height: 240px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-bottom: var(--border-subtle);
}
.solution-secondary article:nth-child(2) {
  border-left: var(--border-subtle);
}
.solution-secondary article.solution-full {
  grid-column: 1 / -1;
  min-height: 0;
  border-bottom: 0;
}
.solution-secondary h3 {
  max-width: 400px;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 400;
}
.solution-secondary p:last-child {
  max-width: 480px;
  color: var(--gray-70);
  font-size: 0.9375rem;
}

/* AI Note — subordinado */
.ai-note {
  border-bottom: var(--border-subtle);
}
.ai-note-inner {
  display: grid;
  grid-template-columns: 60px 200px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
}
.ai-note h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}
.ai-note p {
  margin: 0;
  color: var(--gray-70);
  font-size: 0.875rem;
}

/* Processo */
.process {
  color: var(--white);
  background: var(--gray-100);
}
.process-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(3rem, 10vw, 10rem);
}
.process-intro > p:last-child {
  max-width: 400px;
  color: var(--gray-30);
  font-size: 0.9375rem;
}
.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--gray-80);
  list-style: none;
}
.process-list li {
  min-height: 72px;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--gray-80);
}
.process-list .mono {
  color: var(--accent);
  font-size: 0.75rem;
}
.process-list p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
}

/* Empresa */
.company-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem clamp(3rem, 8vw, 8rem);
}
.company-copy p {
  color: var(--gray-70);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.competencies {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-100);
}
.competencies h3 {
  margin: 0;
  color: var(--gray-60);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.competencies ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.competencies li {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-left: var(--border-subtle);
  border-bottom: var(--border-subtle);
  font-size: 0.9375rem;
  font-weight: 400;
}
.competencies li:first-child,
.competencies li:nth-child(5) {
  border-left: 0;
  padding-left: 0;
}

/* FAQ */
.faq { background: var(--gray-10); }
.faq-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: clamp(3rem, 8vw, 8rem);
}
.faq-list { border-top: 2px solid var(--gray-100); }
details { border-bottom: var(--border-subtle); }
summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s;
}
summary:hover { color: var(--accent); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent);
  border: var(--border-strong);
  font-size: 1.25rem;
  font-weight: 300;
}
details[open] summary::after { content: "−"; }
details p {
  max-width: 640px;
  margin: 0;
  padding: 0 3rem 1.5rem 0;
  color: var(--gray-70);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Contato */
.contact {
  color: var(--white);
  background: var(--accent);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}
.contact-action {
  padding-left: clamp(0rem, 4vw, 4rem);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.contact-action p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}
.contact-action .button { margin-bottom: 1rem; }
.email-link {
  display: block;
  width: fit-content;
  color: var(--white);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  color: var(--gray-30);
  background: var(--gray-100);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.footer-logo {
  width: 180px;
  height: auto;
  flex: 0 0 auto;
}
.footer-brand strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
}
.footer-brand p {
  margin: 0;
  font-size: 0.875rem;
}
.site-footer nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}
.site-footer a {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: var(--gray-30);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--white); }
.footer-meta {
  text-align: right;
}
.footer-meta a {
  justify-content: flex-end;
}
.footer-meta p {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

/* 404 */
.error-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--gray-100);
}
.error-page .site-header { position: relative; }
.error-main {
  display: grid;
  align-items: center;
  padding: 4rem 0;
  color: var(--white);
}
.error-content { max-width: 720px; }
.error-content h1 { margin-bottom: 1rem; }
.error-content > p:not(.kicker) {
  max-width: 560px;
  margin-bottom: 2rem;
  color: var(--gray-30);
  font-size: 1.0625rem;
}

/* Responsive */
@media (max-width: 959px) {
  :root { --section-space: clamp(3.5rem, 8vw, 5rem); }

  .menu-toggle { display: grid; }
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 64px);
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 1rem 24px 2rem;
    overflow-y: auto;
    color: var(--white);
    background: var(--gray-100);
    border-top: var(--border-subtle);
  }
  .menu-open .main-nav { display: grid; }
  .main-nav > a:not(.button) {
    min-height: 52px;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--gray-80);
    color: var(--gray-30);
  }
  .main-nav > a:not(.button):hover { color: var(--white); }
  .main-nav .button { margin-top: 1rem; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: 0; padding-top: 8rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .method-panel { max-width: 560px; }

  .problems-grid { grid-template-columns: 1fr; }
  .problem-item:nth-child(odd) {
    padding-right: 0;
    border-right: 0;
  }
  .problem-item:nth-child(even) { padding-left: 0; }

  .diagnostic-grid,
  .process-layout,
  .company-grid,
  .faq-grid,
  .contact-layout { grid-template-columns: 1fr; }

  .deliverables,
  .contact-action {
    padding: 2rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 0;
  }

  .solutions-composition { grid-template-columns: 1fr; }
  .solution-primary {
    min-height: 400px;
    border-right: 0;
    border-bottom: var(--border-subtle);
  }
  .solution-secondary { grid-template-columns: 1fr; }
  .solution-secondary article:nth-child(2) { border-left: 0; }
  .solution-secondary article.solution-full { min-height: 240px; }

  .ai-note-inner {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .competencies { grid-template-columns: 1fr; }
  .competencies ul { grid-template-columns: repeat(2, 1fr); }
  .competencies li:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta {
    grid-column: 1 / -1;
    text-align: left;
  }
  .footer-meta a { justify-content: flex-start; }
}

@media (max-width: 639px) {
  :root { --shell: min(100% - 32px, 1200px); }

  h1 { font-size: 2rem; }
  h2 { font-size: clamp(1.75rem, 8vw, 2.25rem); }

  .header-inner { min-height: 56px; }
  .brand-mark { width: 28px; height: 28px; font-size: 0.6875rem; }
  .brand-name { font-size: 0.9375rem; }

  .main-nav { top: 56px; max-height: calc(100vh - 56px); }

  .hero { padding-top: 7rem; padding-bottom: 4rem; }
  .hero-lead { font-size: 1rem; }

  .actions { align-items: stretch; }
  .actions .button { width: 100%; }
  .text-link { justify-content: center; }

  .method-panel { padding: 1.25rem; }

  .problem-item { grid-template-columns: 40px 1fr; }

  .solution-primary { min-height: 360px; padding: 1.5rem; }
  .solution-primary h3 { font-size: 1.75rem; }
  .solution-secondary article { min-height: 0; padding: 1.5rem; }

  .competencies ul { grid-template-columns: 1fr; }
  .competencies li {
    border-left: 0;
    padding-left: 0;
  }

  .faq-grid { gap: 2rem; }
  summary { font-size: 0.9375rem; }
  details p { padding-right: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-meta { grid-column: auto; }
  .site-footer nav { max-width: 280px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
