/* ==========================================================================
   ORAKION VISION - DESIGN SYSTEM CORPORATIVO PREMIUM V6.0
   Identidade Oficial ORAKION COMMAND: #0D1B2A, #FF4D2E, #F4F1EA, #0A0F15, #E6E1D6
   Direção: Engenharia + Infraestrutura + Tecnologia Corporativa + Sofisticação Técnica
   ========================================================================== */

:root {
  /* Paleta Contida e Cirúrgica */
  --bg-canvas: #080D14;
  --bg-primary: #080D14;
  --bg-secondary: #0D1522;
  --bg-surface: rgba(16, 26, 40, 0.75);
  --bg-surface-hover: rgba(22, 36, 56, 0.90);
  --bg-input: #060A0F;

  /* Divisores Sutis de Precisão Técnica */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(255, 77, 46, 0.65);
  --border-glow: rgba(255, 77, 46, 0.30);

  /* Acento Único e Controlado (ORAKION Orange) */
  --accent-orange: #FF4D2E;
  --accent-orange-hover: #E03E20;
  --accent-orange-subtle: rgba(255, 77, 46, 0.08);

  /* Tipografia Equilibrada e de Alto Contraste */
  --text-main: #F4F1EA;
  --text-muted: #9BA7B7;
  --text-dim: #64748B;
  --text-on-accent: #FFFFFF;

  /* Status Semânticos Discretos */
  --status-success: #10B981;
  --status-warning: #F59E0B;
  --status-danger: #EF4444;

  /* Fontes Corporativas Refinadas */
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  /* Geometria e Grid */
  --container-max: 1180px;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* MARCA-D'ÁGUA SUBLIMINAR ORAKION */
body::before {
  content: "";
  position: fixed;
  bottom: -160px;
  right: -160px;
  width: 740px;
  height: 740px;
  background-image: url('/images/orakion-symbol.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

a:hover {
  color: var(--text-main);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   CABEÇALHO LIMPO E INSTITUCIONAL
   ========================================================================== */
.header {
  height: var(--header-height);
  background: rgba(8, 13, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-top: 2px;
}

/* NAVEGAÇÃO */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-chevron {
  width: 8px;
  height: 5px;
  opacity: 0.6;
  transition: transform 0.15s ease;
}

.nav-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0B121C;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  min-width: 230px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  z-index: 110;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
  border-radius: 4px;
  transition: all 0.12s ease;
}

.dropdown-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   BOTÕES E ELEMENTOS DE AÇÃO
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.2;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-orange);
  color: #FFFFFF;
  border-color: var(--accent-orange);
  box-shadow: 0 2px 10px rgba(255, 77, 46, 0.25);
}

.btn-primary:hover {
  background: var(--accent-orange-hover);
  border-color: var(--accent-orange-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 77, 46, 0.40);
}

.btn-secondary {
  background: rgba(16, 26, 40, 0.85);
  color: var(--text-main);
  border-color: var(--border-medium);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(24, 38, 58, 0.95);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 12px 26px;
  font-size: 0.94rem;
}

/* ==========================================================================
   HERO INSTITUCIONAL V6.0 (EFEITOS DE INFRAESTRUTURA & DESIGN REFINADO)
   ========================================================================== */
.hero-clean {
  padding: 92px 0 72px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  background-image: 
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 77, 46, 0.07) 0%, transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(255, 77, 46, 0.08);
  border: 1px solid rgba(255, 77, 46, 0.22);
  border-radius: 3px;
}

.hero-heading {
  font-size: 3.10rem;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #FFFFFF 15%, #E2E8F0 65%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-subheading {
  font-size: 1.10rem;
  line-height: 1.70;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* PIPELINE ARQUITETURAL COM EFEITOS HUD & CORNER RETICLES */
.hero-pipeline-box {
  background: rgba(13, 21, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 24px 28px;
  position: relative;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Marcadores mecânicos de canto (HUD Brackets) */
.hero-pipeline-box::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--accent-orange);
  border-left: 2px solid var(--accent-orange);
  pointer-events: none;
}

.hero-pipeline-box::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 10px; height: 10px;
  border-bottom: 2px solid var(--accent-orange);
  border-right: 2px solid var(--accent-orange);
  pointer-events: none;
}

.hero-pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

/* Animação de Fluxo de Dados nas Linhas do SVG */
@keyframes pipelineFlow {
  0% { stroke-dashoffset: 24; }
  100% { stroke-dashoffset: 0; }
}

.flow-active {
  animation: pipelineFlow 1.8s linear infinite;
}

/* ==========================================================================
   SEÇÕES INSTITUCIONAIS REFINADAS
   ========================================================================== */
.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
}

.section-headline {
  font-size: 2.00rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1.00rem;
  color: var(--text-muted);
  max-width: 660px;
  line-height: 1.65;
  margin-bottom: 44px;
}

/* PILARES / CAPACIDADES (4 COLUNAS PERFEITAMENTE ALINHADAS) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.pillar-item {
  border-top: 2px solid var(--border-medium);
  padding-top: 22px;
  transition: border-color 0.2s ease;
}

.pillar-item:hover {
  border-top-color: var(--accent-orange);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 10px;
  display: inline-block;
  letter-spacing: 0.10em;
}

.pillar-title {
  font-size: 1.10rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.62;
}

/* ECOSSISTEMA REFINADO: COMPOSIÇÃO TÉCNICA SUTIL */
.eco-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.eco-item {
  background: rgba(16, 26, 40, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.eco-item:hover {
  border-color: rgba(255, 77, 46, 0.40);
  background: rgba(22, 36, 56, 0.90);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.65), 0 0 18px rgba(255, 77, 46, 0.10);
}

.eco-role-tag {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
}

.eco-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.eco-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.eco-link {
  font-size: 0.84rem;
  color: var(--accent-orange);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eco-link:hover {
  color: #FFFFFF;
}

/* MATRIZ DE ACESSO INTERNO INSTITUCIONAL FINAL */
.nav-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.nav-matrix-card {
  background: rgba(16, 26, 40, 0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 24px 22px;
  text-decoration: none;
  display: block;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-matrix-card:hover {
  border-color: rgba(255, 77, 46, 0.35);
  background: rgba(22, 36, 56, 0.90);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 77, 46, 0.08);
}

.nav-matrix-tag {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--accent-orange);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}

.nav-matrix-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.nav-matrix-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   RODAPÉ CORPORATIVO
   ========================================================================== */
.footer {
  background: #060A0F;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 36px 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.86rem;
  color: var(--text-dim);
  transition: color 0.12s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.80rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* BADGES E UTILITÁRIOS */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-homologado {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.badge-experimental {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
}

/* TABELAS E CARTÕES GENÉRICOS */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 24px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-subtitle {
  font-size: 0.80rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.card-body {
  color: var(--text-muted);
  font-size: 0.90rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  text-align: left;
}

.table th {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.table td {
  color: var(--text-main);
}

/* FORMULÁRIOS */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 0.90rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  border-color: var(--border-focus);
}

/* ==========================================================================
   RESPONSIVIDADE REFINADA
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-heading { font-size: 2.40rem; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .eco-pipeline-grid { grid-template-columns: 1fr; gap: 20px; }
  .nav-matrix-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .header-container { flex-wrap: wrap; }
  .nav { display: none; }
  .hero-heading { font-size: 2.00rem; }
  .hero-clean { padding: 48px 0; }
  .section { padding: 48px 0; }
  .pillars-grid { grid-template-columns: 1fr; }
  .nav-matrix-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
