/*
Theme Name: Arkhé Code – Engenharia de Software
Theme URI: https://arkhecode.com.br
Author: Arkhé Code
Author URI: https://arkhecode.com.br
Description: Tema institucional de altíssima performance para a Arkhé – Sistemas & Softwares. Desenvolvido sob medida, sem construtores pesados, com 100% de conformidade com SEO técnico e UI/UX de alto contraste.
Version: 1.2.0
License: Proprietary
Text Domain: arkhe-code
*/

@import url('assets/images/tokens-cores.css');

/* ==========================================================================
   RESET & REGRAS GLOBAIS
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--arkhe-bg-black);
  color: var(--arkhe-text-high);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 40%, rgba(15, 81, 50, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(107, 33, 168, 0.05) 0%, transparent 45%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   TIPOGRAFIA & TÍTULOS
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--arkhe-text-pure);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-gold {
  color: var(--arkhe-gold-primary);
}

.text-green {
  color: var(--arkhe-green-emerald);
}

.text-gradient-gold {
  background: var(--arkhe-gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: var(--arkhe-gradient-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 90px;
  padding-bottom: 90px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--arkhe-gold-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--arkhe-green-emerald);
  box-shadow: 0 0 8px var(--arkhe-green-emerald);
}

.section-title {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 18px;
}

.section-desc {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--arkhe-text-medium);
  line-height: 1.7;
}

/* ==========================================================================
   HEADER / CABEÇALHO FIXO
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 11, 16, 0.90);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  overflow: visible;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  position: relative;
  overflow: visible;
}

/* Identidade da Marca na Navbar (Emblema com overhang sobre a linha + Tipografia) */
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  position: relative;
  overflow: visible;
  padding: 4px 0;
}

.header-emblem-wrap {
  position: relative;
  top: 14px;
  /* A parte inferior do A ultrapassa a linha inferior da navbar */
  z-index: 1002;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-brand:hover .header-emblem-wrap {
  transform: translateY(-2px) scale(1.05);
}

.header-emblem-img {
  height: 84px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 14px rgba(212, 175, 55, 0.3));
}

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

.header-brand-text .brand-title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FFFFFF;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.header-brand-text .brand-subtitle {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.8px;
  color: #94A3B8;
  margin-top: 4px;
  line-height: 1;
  text-transform: uppercase;
}

.header-brand-text .brand-subtitle .brand-amp {
  color: var(--arkhe-gold-primary);
  font-weight: 800;
  font-size: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: 16px;
  font-weight: 600;
  color: #CBD5E1;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--arkhe-gold-primary);
}

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

/* ==========================================================================
   BOTÕES & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-gold {
  background: var(--arkhe-gradient-gold);
  color: #06090D;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.5);
  filter: brightness(1.08);
}

.btn-outline-emerald {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--arkhe-green-emerald);
  color: #FFFFFF;
}

.btn-outline-emerald:hover {
  background: var(--arkhe-green-emerald);
  color: #06090D;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
  border-radius: 8px;
}

/* ==========================================================================
   DOBRA 1: HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 170px;
  padding-bottom: 110px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--arkhe-text-medium);
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto 36px auto;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* Badges de Autoridade Técnica */
.hero-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--arkhe-text-medium);
}

.hero-badge-item svg {
  width: 20px;
  height: 20px;
  color: var(--arkhe-green-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   DOBRA 2: CASES REAIS DE SUCESSO (GRID SIMÉTRICO + METRIC PILL + COVER)
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
}

.cases-grid--1 {
  grid-template-columns: minmax(320px, 680px);
  justify-content: center;
}

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

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

.case-card {
  background: var(--arkhe-bg-card);
  border: 1px solid var(--arkhe-border-subtle);
  border-radius: 18px;
  padding: 34px;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--arkhe-gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.case-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.case-card:hover::before {
  opacity: 1;
}

.case-cover-wrap {
  position: relative;
  margin: -34px -34px 22px -34px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #080B10;
}

.case-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.case-card:hover .case-cover-wrap img {
  transform: scale(1.04);
}

.case-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.case-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--arkhe-green-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--arkhe-gold-primary);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.case-metric-pill.floating {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(8, 11, 16, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.case-actions-row {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-live-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #F8FAFC;
  padding: 9px 14px;
}

.case-live-btn:hover {
  border-color: var(--arkhe-gold-primary);
  color: var(--arkhe-gold-primary);
}

@media (max-width: 991px) {
  .cases-grid--2,
  .cases-grid--3 {
    grid-template-columns: 1fr;
  }
}

.case-title {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--arkhe-text-pure);
}

.case-desc {
  font-size: 15px;
  color: var(--arkhe-text-medium);
  margin-bottom: 24px;
  line-height: 1.7;
  flex-grow: 1;
}

.case-features {
  list-style: none;
  margin-bottom: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--arkhe-text-high);
  margin-bottom: 8px;
}

.case-features li svg {
  color: var(--arkhe-gold-primary);
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   DOBRA 3: PILARES DE ENGENHARIA DA ARKHÉ
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--arkhe-bg-card);
  border: 1px solid var(--arkhe-border-subtle);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--arkhe-gold-primary);
}

.pillar-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 15px;
  color: var(--arkhe-text-medium);
  line-height: 1.6;
}

/* ==========================================================================
   DOBRA 4: CONTATO & BRIEFING RÁPIDO
   ========================================================================== */
.cta-box {
  background: linear-gradient(135deg, rgba(15, 81, 50, 0.25) 0%, rgba(15, 20, 28, 0.95) 50%, rgba(212, 175, 55, 0.15) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.cta-box h2 {
  font-size: clamp(30px, 3.8vw, 42px);
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 18px;
  color: var(--arkhe-text-medium);
  max-width: 650px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER / RODAPÉ (web-design-craftsman & alto contraste)
   ========================================================================== */
.site-footer {
  background: #030508;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 80px 0 40px 0;
  color: #CBD5E1;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.3fr 1.2fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand-header {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  margin-bottom: 22px;
}

.footer-emblem-img {
  height: 68px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
  transition: transform 0.3s ease;
}

.footer-brand-header:hover .footer-emblem-img {
  transform: translateY(-2px) scale(1.04);
}

.footer-brand-text .brand-title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FFFFFF;
  line-height: 1.15;
  text-transform: uppercase;
}

.footer-brand-text .brand-subtitle {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 3.8px;
  color: #94A3B8;
  margin-top: 4px;
  line-height: 1;
  text-transform: uppercase;
}

.footer-brand-text .brand-subtitle .brand-amp {
  color: var(--arkhe-gold-primary);
  font-weight: 800;
}

.footer-brand-desc {
  font-size: 15.5px;
  color: #CBD5E1;
  line-height: 1.8;
  max-width: 450px;
  margin-bottom: 24px;
}

.footer-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--arkhe-gold-primary);
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 8px;
  letter-spacing: -0.01em;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--arkhe-gradient-gold);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 15px;
  color: #94A3B8;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--arkhe-gold-primary);
  transform: translateX(5px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #94A3B8;
}

.footer-tech-note {
  font-size: 13px;
  color: #64748B;
}

/* ==========================================================================
   RESPONSIVIDADE (responsive-layout-guard)
   ========================================================================== */
@media (max-width: 991px) {
  .nav-menu {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .header-emblem-img {
    height: 72px;
  }

  .header-emblem-wrap {
    top: 10px;
  }

  .header-brand-text .brand-title {
    font-size: 19px;
  }

  .header-brand-text .brand-subtitle {
    font-size: 10px;
    letter-spacing: 2.8px;
  }
}

@media (max-width: 600px) {
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-section {
    padding-top: 130px;
    padding-bottom: 70px;
  }

  .cta-box {
    padding: 40px 20px;
  }

  .header-emblem-img {
    height: 62px;
  }

  .header-emblem-wrap {
    top: 7px;
  }

  .header-brand-text .brand-title {
    font-size: 16px;
    letter-spacing: 1.2px;
  }

  .header-brand-text .brand-subtitle {
    font-size: 8.5px;
    letter-spacing: 1.8px;
  }

  .footer-brand-text .brand-title {
    font-size: 20px;
  }

  .footer-brand-text .brand-subtitle {
    font-size: 10px;
  }
}


/* ==========================================================================
   MENU MOBILE DRAWER & TOGGLE (responsive-layout-guard)
   ========================================================================== */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background: var(--arkhe-text-pure);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: 84px;
  left: 0;
  width: 100%;
  background: rgba(8, 11, 16, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.mobile-drawer.open {
  max-height: 400px;
}

.mobile-nav-list {
  list-style: none;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  font-size: 17px;
  font-weight: 600;
  color: var(--arkhe-text-high);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover {
  color: var(--arkhe-gold-primary);
  padding-left: 8px;
}

.mobile-nav-cta {
  margin-top: 10px;
}

@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .btn-whatsapp-header {
    display: none;
  }
}

/* ==========================================================================
   MODAL ÁREA DO CLIENTE & ERP CORE
   ========================================================================== */
.arkhe-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.arkhe-modal.active {
  opacity: 1;
  visibility: visible;
}

.arkhe-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.arkhe-modal-dialog {
  position: relative;
  background: #0D1117;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s ease;
  z-index: 1;
}

.arkhe-modal.active .arkhe-modal-dialog {
  transform: translateY(0) scale(1);
}

.arkhe-modal-header {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--arkhe-green-emerald);
  box-shadow: 0 0 10px var(--arkhe-green-emerald);
}

.arkhe-modal-close {
  background: transparent;
  border: none;
  color: var(--arkhe-text-medium);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.arkhe-modal-close:hover {
  color: #FFFFFF;
}

.arkhe-modal-body {
  padding: 24px;
}

.portal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--arkhe-text-medium);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-tab-btn.active {
  background: var(--arkhe-gold-primary);
  color: #06090D;
}

.portal-tab-pane {
  display: none;
}

.portal-tab-pane.active {
  display: block;
}

.portal-project-summary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px;
}

.portal-badge-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}

.portal-badge-status.status-dev {
  background: rgba(16, 185, 129, 0.15);
  color: var(--arkhe-green-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--arkhe-gradient-emerald);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.portal-pix-box {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  padding: 20px;
}

.portal-qr-box {
  background: #FFFFFF;
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.portal-changelog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.changelog-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
}

.changelog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.changelog-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.changelog-tag.tag-feature {
  background: rgba(212, 175, 55, 0.15);
  color: var(--arkhe-gold-primary);
}

.changelog-tag.tag-fix {
  background: rgba(16, 185, 129, 0.15);
  color: var(--arkhe-green-emerald);
}

.changelog-date {
  font-size: 11px;
  color: var(--arkhe-text-muted);
}

.arkhe-modal-footer {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   FORMULÁRIO ERGONÔMICO DE DIAGNÓSTICO (web-design-craftsman)
   ========================================================================== */
.cta-box.cta-box-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 42px;
  text-align: left;
  align-items: center;
}

.cta-box.cta-box-split .cta-info-col p {
  margin-left: 0;
}

.arkhe-briefing-form {
  background: rgba(8, 11, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arkhe-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.arkhe-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arkhe-field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #F8FAFC;
  letter-spacing: 0.01em;
}

.arkhe-req {
  color: #F87171;
  font-weight: 700;
}

.arkhe-field-group input,
.arkhe-field-group select,
.arkhe-field-group textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 14px;
  color: #FFFFFF;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.arkhe-field-group input::placeholder,
.arkhe-field-group textarea::placeholder {
  color: #64748B;
}

.arkhe-field-group input:focus,
.arkhe-field-group select:focus,
.arkhe-field-group textarea:focus {
  outline: none;
  border-color: var(--arkhe-gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.arkhe-form-feedback {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}

.arkhe-form-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10B981;
  color: #6EE7B7;
}

.arkhe-form-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #FCA5A5;
}

@media (max-width: 991px) {
  .cta-box.cta-box-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .arkhe-form-grid {
    grid-template-columns: 1fr;
  }

  .arkhe-briefing-form {
    padding: 18px;
  }
}