:root {
  --primary: #48BB78;
  --secondary: #3182CE;
  --bg-color: #F7FAFC;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(226, 232, 240, 0.8);
  --text-main: #2D3748;
  --text-muted: #718096;
  --radius: 20px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  20%, 100% { transform: translateX(200%) rotate(45deg); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background-image: 
    radial-gradient(circle at top right, rgba(72, 187, 120, 0.15) 0%, transparent 40%),
    radial-gradient(circle at bottom left, rgba(49, 130, 206, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
}

#app-container { width: 100%; max-width: 1200px; padding: 100px 20px 40px; overflow-x: hidden; }
@media (max-width: 480px) {
  #app-container { padding: 70px 12px 40px; }
}


.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.directory-header-responsive {
  width: 100%;
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 16px;
}
.header-actions-wrapper {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 1100;
}
.menu-toggle:hover { background: rgba(0,0,0,0.05); }
.menu-toggle svg line { transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center; }
.menu-toggle.active .line-mid { opacity: 0; }
.menu-toggle.active .line-top { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active .line-bot { transform: translateY(-6px) rotate(-45deg); }

.nav-item {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.nav-item:hover { color: var(--text-main); }
.nav-item.active { color: var(--primary); }
.btn-contacto {
  background: var(--text-main);
  color: white !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
}
.btn-contacto:hover { background: #1a202c; }

.view { display: none; opacity: 0; transition: opacity 0.5s ease; }
.view.active { display: block; opacity: 1; animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


.glass {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}


#upload-view {
  text-align: center;
  width: 100%;
  margin: 80px auto auto;
}
#upload-view.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero {
  max-width: 620px;
  margin: 0 auto;
}
.hero h1 { font-size: 3rem; margin-bottom: 15px; color: var(--text-main); font-weight: 700; letter-spacing: -0.02em; }
.hero p   { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }


#search-dropzone {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  background: #ffffff; 
  border: 1px solid #dfe1e5;
  border-radius: 32px;
  padding: 8px 16px;
  box-shadow: 0 1px 6px rgba(32,33,36,.1);
  color: var(--text-main);
  position: relative;
  transition: border-radius 0.2s, box-shadow 0.2s;
  z-index: 1001;
}

.main-search-bar:hover, .main-search-bar:focus-within {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(32,33,36,.12);
}

.main-search-bar.active {
  border-radius: 24px 24px 0 0;
  box-shadow: 0 8px 24px rgba(32,33,36,0.12);
  border-bottom: 1px solid #f1f3f4;
}

.plus-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--primary);
  transition: background 0.2s;
}

.plus-upload-btn:hover {
  background: rgba(72,187,120,0.1);
}

.main-search-bar .search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  padding: 10px 16px;
  background: transparent;
  color: var(--text-main);
}

.main-search-bar .search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-icon-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #9aa0a6;
  cursor: text; 
}


#search-dropzone.drag-active {
  transform: scale(1.05);
  background: #48BB78; 
  color: white;
}

#search-dropzone.drag-active .search-input::placeholder {
  color: rgba(255,255,255,0.9);
}

#search-dropzone.drag-active .plus-upload-btn,
#search-dropzone.drag-active .search-icon-right {
  color: white;
}

.input-status-inline {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  min-height: 18px;
  text-align: center;
}


.search-results {
  margin: 0 auto 20px;
  width: 100%;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.report-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--card-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  cursor: default;
}
@media (max-width: 768px) {
  .report-card { cursor: pointer; }
}
.report-card-btn { cursor: pointer !important; }
.report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.report-card.selected-card {
  box-shadow: 0 0 0 4px var(--primary);
}

.report-card-cover {
  height: 160px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.report-card-logo {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.report-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.report-card-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.report-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #DD6B20; 
  text-transform: uppercase;
}
.report-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38A169;
  letter-spacing: 0.5px;
}

.report-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 8px;
  line-height: 1.3;
}

.report-card-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.report-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.report-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.report-card-btn {
  background: #ED8936;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.report-card-btn:hover { background: #DD6B20; }

.report-card .custom-checkbox {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.search-no-results { padding: 24px; text-align: center; color: var(--text-muted); font-size: 0.95rem; background: #f8fafc; border-radius: 12px; border: 1px dashed var(--card-border);}


.report-card-icons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  flex: 1;
}

.report-card-icon-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.report-card-icon-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.report-card-icon-pill svg {
  flex-shrink: 0;
}


.delete-inline-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.delete-inline-btn:hover {
  background: #FFF5F5;
  transform: scale(1.1);
}
.bulk-mode-active .delete-inline-btn {
  display: none;
}


.slug-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  animation: fadeInUp 0.2s ease;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }


.bulk-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 10px 16px;
  margin: -10px auto 20px;
  box-shadow: 0 4px 15px rgba(72,187,120,0.15);
  animation: slideBulkUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideBulkUp {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#bulk-selection-count {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}
.bulk-btn-small {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #CBD5E0;
  border-radius: 6px;
  background-color: white;
  cursor: pointer;
  display: none; 
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.bulk-mode-active .custom-checkbox {
  display: inline-flex;
}
.custom-checkbox:hover { border-color: #A0AEC0; }
.custom-checkbox:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.custom-checkbox:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}
.search-result-item.selected-row {
  background: #F0FFF4;
  border-left: 4px solid var(--primary);
  padding-left: 16px; 
}


.existing-report-zone {
  max-width: 620px;
  margin: 16px auto;
  padding: 14px 20px;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 15px -3px rgba(0,0,0,0.05);
}
.existing-badge { 
  font-size: 0.95rem; 
  font-weight: 600; 
  color: var(--text-main); 
  display: flex;
  align-items: center;
  gap: 8px;
}
.existing-badge svg {
  color: var(--primary);
}
.btn-primary {
  background: var(--text-main); color: white;
  padding: 10px 22px; border-radius: 12px;
  font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  border: none; cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary:hover { background: #1a202c; transform: translateY(-1px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }


.upload-discrete {
  margin-top: 28px;
  text-align: center;
}
.upload-hint-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.upload-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px dashed rgba(72,187,120,0.4);
  transition: background 0.2s, border-color 0.2s;
  background: rgba(72,187,120,0.04);
}
.upload-link:hover { background: rgba(72,187,120,0.1); border-color: var(--primary); }




.loading-state {
  margin-top: 30px;
  text-align: center;
}


.loading-state.hidden { display: none; }


.hidden { display: none !important; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(72,187,120,0.2);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }


#dash-header { 
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 40px; border-bottom: 1px solid #E2E8F0; padding-bottom: 24px;
}
.company-title-wrapper {
  display: flex; align-items: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap;
}
.company-logo {
  width: 48px; height: 48px; border-radius: 10px; object-fit: contain; border: 1px solid #E2E8F0; background: white; padding: 4px;
}
#company-name { font-size: 2.8rem; color: var(--text-main); font-weight: 900; letter-spacing: -0.04em; margin:0; line-height: 1.1; word-break: break-word; }
.badge { background: rgba(72,187,120,.12); color: var(--primary); padding: 6px 14px; border-radius: 20px; font-size: .85rem; font-weight: 600; border: 1px solid rgba(72,187,120,0.2); white-space: nowrap; }

.btn { border: none; padding: 12px 24px; border-radius: 12px; cursor: pointer; font-family: inherit; font-weight: 600; transition: all .2s ease; }
.btn-dark { background: var(--text-main); color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.btn-dark:hover { background: #1a202c; transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0,0,0,0.12); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid #CBD5E0; }
.btn-outline:hover { background: #F7FAFC; border-color: #A0AEC0; transform: translateY(-1px); }
.btn-danger { color: #E53E3E; border-color: #FEB2B2; }
.btn-danger:hover { background: #FFF5F5; border-color: #FC8181; color: #C53030; }


.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: white; border: 1px solid #C6F6D5; color: #2F855A; padding: 14px 24px; border-radius: 12px;
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); z-index: 2000;
  opacity: 0; pointer-events: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.active { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: all; }
.toast svg { color: #38A169; }


.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content {
  background: white; padding: 32px 28px; border-radius: 20px; max-width: 400px; width: 90%;
  text-align: center; transform: translateY(20px) scale(0.95); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 1px solid var(--card-border);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-content h2 { color: #E53E3E; margin-bottom: 0; font-weight: 700; margin-top: 0; }
.modal-actions { display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: stretch; width:100%; }

.hold-btn-wrapper { position: relative; overflow: hidden; border-radius: 12px; }
.hold-btn { 
  width: 100%; height: 100%; background: transparent; color: #E53E3E; border: 1px solid #FEB2B2; 
  position: relative; z-index: 2; user-select: none; -webkit-user-select: none;
  cursor: pointer;
}
.hold-btn:active { transform: none; box-shadow: none; }
.hold-progress {
  position: absolute; top: 0; left: 0; height: 100%; width: 0%;
  background: #FED7D7; z-index: 1; pointer-events: none;
}


.success-animation { display: flex; justify-content: center; align-items: center; }
.checkmark { width: 44px; height: 44px; border-radius: 50%; display: block; stroke-width: 2.5; stroke: #38A169; stroke-miterlimit: 10; margin: 0 auto; box-shadow: inset 0px 0px 0px #38A169; animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both; }
.checkmark__circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 2.5; stroke-miterlimit: 10; stroke: #38A169; fill: none; animation: stroke 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards; }
.checkmark__check { transform-origin: 50% 50%; stroke-dasharray: 48; stroke-dashoffset: 48; animation: stroke 0.25s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards; }

@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 30px #F0FFF4; } }


.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 24px;
}
@media (max-width: 1080px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-card { grid-column: span 2; }
  .metrics-card { grid-column: span 2; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: white; flex-direction: column; justify-content: center;
    gap: 32px; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050; padding: 40px;
  }
  .nav-links.active { right: 0; }
  .nav-item { font-size: 1.1rem; width: 100%; }
  
  .dashboard-grid { 
    grid-template-columns: 1fr !important; 
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .summary-card, .metrics-card, .full-width, .kpi-card { 
    grid-column: span 1 !important; 
    grid-row: span 1 !important;
    width: 100% !important;
    min-height: auto !important;
  }
  .chart-container {
    height: 250px !important;
  }
  #company-name { font-size: 1.8rem; }
  #dash-header { flex-direction: column; gap: 15px; align-items: flex-start; padding-bottom: 20px; }
  .header-actions { width: 100%; display: flex; gap: 8px; flex-wrap: wrap; }
  .header-actions .btn { flex: 1; min-width: 140px; padding: 12px 10px; font-size: 0.85rem; }
  
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; margin-bottom: 30px; }
  .section-divider h2 { font-size: 1.8rem; }
  .section-divider { margin-top: 60px !important; }
  
  .docs-premium-content { padding: 30px 20px; }
  .docs-premium-header h2 { font-size: 1.8rem; }
  
  
  #search-results-header { flex-direction: column; align-items: flex-start !important; gap: 15px; }
  #search-results-header .header-actions-wrapper { width: 100%; display: flex; flex-direction: column; gap: 10px; }
  #dir-search-input { width: 100% !important; }
  
  .math-algorithm-container { padding: 25px 15px !important; }
  .math-algorithm-container h3 { font-size: 0.75rem !important; margin-bottom: 15px !important; }
  .math-algorithm-container .eq-term { padding: 8px 10px !important; font-size: 1rem !important; width: 100%; max-width: 200px; justify-content: center; }
  .math-algorithm-container .eq-term span { font-size: 0.9rem !important; }
  
  .dim-card { padding: 20px !important; }
  .feature-card { padding: 24px !important; }
  
  .home-reports-header { flex-direction: column; align-items: flex-start !important; gap: 15px; }

  /* Adaptación de la cabecera de evaluación para permitir scroll horizontal o mejor distribución */
  .eval-header {
    gap: 10px !important;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .eval-header::-webkit-scrollbar { display: none; }
  .eval-title { font-size: 0.9rem !important; min-width: 150px; }
  .eval-materiality { width: auto !important; min-width: 80px; font-size: 0.75rem !important; }
  .eval-l1-badge { font-size: 0.7rem !important; padding: 2px 6px !important; }
}
@media (max-width: 480px) {
  .kpi-value { font-size: 2.8rem; }
  .card { padding: 16px; }
  .nav-content { padding: 10px 12px; }
  #custom-logo { height: 38px; }
  .hero h1 { font-size: 1.8rem; }
  .kpi-card h3 { font-size: 0.9rem; }
  
  .report-url-bar { max-width: 100%; padding: 5px 10px; gap: 6px; }
  .report-url-text { font-size: 0.8rem; }
  .btn-copy { padding: 4px 10px; font-size: 0.7rem; }
  .report-url-text { text-align: center; margin-bottom: 5px; }
}
.card { 
  padding: 32px; 
  display: flex; 
  flex-direction: column; 
  border-radius: 20px;
  background: white;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card h2, .card h3 { font-size: 1.25rem; color: var(--text-main); margin-bottom: 20px; font-weight: 700; }

.summary-card  { grid-column: span 3; border-left: 4px solid var(--primary) !important; }
#exec-summary  { font-size: 1.05rem; line-height: 1.8; color: var(--text-muted); }
.metrics-card  { grid-column: span 2; grid-row: span 2; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: zoom-in; }
.metrics-card.expanded {
  position: fixed;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 2500;
  border-radius: 0;
  cursor: zoom-out;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  background: white;
}
.metrics-card.expanded h2 {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}
.metrics-card.expanded .chart-container { height: 70vh; }
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  background: white;
  border: 1px solid #dfe1e5;
  border-top: none;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 12px 30px rgba(32,33,36,0.15);
  z-index: 1000;
  overflow: hidden;
  margin: 0;
  transform-origin: top;
  animation: searchReveal 0.2s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes searchReveal {
  from { 
    opacity: 0; 
    transform: scaleY(0.95); 
  }
  to { 
    opacity: 1; 
    transform: scaleY(1); 
  }
}

.search-item-icon {
  width: 32px;
  height: 32px;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.search-item-domain {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-autocomplete li {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f4;
  transition: background 0.1s;
}

.search-autocomplete li:last-child {
  border-bottom: none;
}

.search-item-year {
  font-size: 0.7rem;
  font-weight: 600;
  background: #f1f3f4;
  color: #5f6368;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.report-card-year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
  border: 1px solid rgba(0,0,0,0.05);
  pointer-events: none;
}
.close-expanded-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2600;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.2s;
}
.close-expanded-btn:hover { background: #F7FAFC; transform: translateX(-2px); }
.metrics-card.expanded .close-expanded-btn { display: flex; }
.chart-container { position: relative; height: 300px; width: 100%; display: flex; align-items: center; justify-content: center; }
.kpi-card {
  justify-content: center; align-items: center; text-align: center;
  background: linear-gradient(145deg, white 0%, color-mix(in srgb, var(--primary) 5%, white) 100%) !important;
  border: 1.5px solid color-mix(in srgb, var(--primary) 20%, transparent) !important;
  position: relative; overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--primary); opacity: 0.06;
}
.kpi-card h3 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); font-weight: 700; margin-bottom: 16px;
}
.kpi-value { font-size: 4.2rem; font-weight: 900; color: var(--primary); letter-spacing: -3px; line-height: 1; position: relative; }
.full-width  { grid-column: span 3; }


.eval-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.eval-details-box {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.eval-details-box:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.eval-details-box[open] {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.eval-details-box summary {
  padding: 16px 20px;
  cursor: pointer;
  list-style: none; 
  display: flex;
  align-items: center;
  user-select: none;
  transition: background 0.2s;
}
.eval-details-box summary:active {
  background: rgba(0,0,0,0.02);
}
@media (max-width: 600px) {
  .eval-details-box summary { padding: 12px 14px; }
}


.eval-details-box summary::-webkit-details-marker {
  display: none;
}

.eval-header {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.eval-title {
  flex: 1;
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
}

.eval-materiality {
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 100px;
  text-align: right;
}

.chevron {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.eval-details-box[open] .chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.eval-body {
  padding: 0 20px 20px 20px;
  border-top: 1px dashed var(--card-border);
  margin-top: 8px;
  padding-top: 16px;
  animation: slideDown 0.3s ease-out forwards;
}

.eval-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.eval-quote {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-main);
  background: #f8fafc;
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  border-radius: 4px 8px 8px 4px;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


.report-url-bar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 6px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px; font-size: .85rem;
  max-width: fit-content;
}
.report-url-text {
  color: #475569; font-weight: 500;
  font-family: inherit;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -0.2px;
}
.btn-copy {
  background: #1e293b; color: white; border: none;
  padding: 5px 14px; border-radius: 8px; font-size: .75rem;
  font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all .2s; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-copy:hover { background: var(--primary); transform: translateY(-1px); }


.home-reports-section {
  width: 100%;
  max-width: 900px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--card-border);
}

.home-reports-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  text-align: left;
}

.home-reports-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.home-reports-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}


.carousel-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(72,187,120,0.3);
  transform: scale(1.08);
}

.carousel-btn:active {
  transform: scale(0.96);
}


.home-reports-carousel-wrapper {
  overflow-x: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-reports-carousel-wrapper::-webkit-scrollbar {
  display: none;
}


.home-reports-carousel {
  display: flex;
  gap: 18px;
  width: max-content;
  padding-bottom: 16px;
}

.home-report-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  
  min-width: 210px;
  max-width: 210px;
  flex-shrink: 0;
}

.home-report-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.10);
}

.home-report-cover {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}


.home-report-logo-wrapper {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 10px 22px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 78%;
  transition: transform 0.2s ease;
}

.home-report-card:hover .home-report-logo-wrapper {
  transform: scale(1.04);
}

.home-report-logo {
  max-width: 130px;
  max-height: 50px;
  object-fit: contain;
  display: block;
}

.home-report-card:hover .home-report-logo {
  
}

.home-report-initials {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -3px;
  user-select: none;
  opacity: 0.45;
}

.home-report-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3px;
}

.home-report-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.home-report-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.home-report-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.home-report-btn {
  margin-top: 14px;
  width: 100%;
  padding: 9px;
  border: none;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  color: white;
  font-family: inherit;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.home-report-btn:hover {
  filter: brightness(0.88);
  transform: translateY(-1px);
}


.cover-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cover-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cover-ring-2 {
  width: 155px;
  height: 155px;
  opacity: 0.55;
}

.cover-ring-3 {
  width: 215px;
  height: 215px;
  opacity: 0.25;
}

.cover-dots {
  position: absolute;
  inset: 0;
  background-size: 16px 16px;
  opacity: 0.55;
}


.cover-initials-badge {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


.ranking-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}
.ranking-header h3 {
  font-size: 1.4rem; font-weight: 800; color: var(--text-main);
  letter-spacing: -0.02em; margin: 0;
}
.ranking-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; display: block; }


.ranking-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.ranking-tab {
  padding: 7px 18px; border-radius: 20px;
  border: 1.5px solid var(--card-border); background: white;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  color: var(--text-muted); font-family: inherit;
  transition: all 0.2s ease; white-space: nowrap;
}
.ranking-tab:hover { border-color: var(--primary); color: var(--primary); }
.ranking-tab.active {
  background: var(--primary); border-color: var(--primary); color: white;
  box-shadow: 0 4px 14px rgba(72, 187, 120, 0.35);
}


.ranking-podium {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 14px; margin-bottom: 48px; padding: 0 10px;
}
.podium-entry { display: flex; flex-direction: column; align-items: center; }
.podium-card {
  background: white; border-radius: 16px; border: 1.5px solid;
  padding: 14px 12px 10px; text-align: center; width: 152px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.podium-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px rgba(0,0,0,0.1); }
.podium-medal { font-size: 1.6rem; margin-bottom: 8px; line-height: 1; }
.podium-logo-wrap {
  width: 54px; height: 54px; border-radius: 13px; border: 1.5px solid;
  margin: 0 auto 10px; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.podium-logo { max-width: 42px; max-height: 34px; object-fit: contain; }
.podium-initials {
  font-size: 1rem; font-weight: 900; letter-spacing: -1px;
  display: none; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.podium-name {
  font-size: 0.8rem; font-weight: 700; color: var(--text-main);
  line-height: 1.2; margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px;
}
.podium-score { font-size: 1.55rem; font-weight: 900; letter-spacing: -1.5px; line-height: 1; }
.podium-bar {
  width: 152px; border-radius: 10px 10px 4px 4px;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
}
.podium-rank { font-size: 0.78rem; font-weight: 800; color: rgba(255,255,255,0.85); }


.ranking-leaderboard-header {
  display: grid; grid-template-columns: 48px 52px 1fr 70px;
  padding: 0 18px 8px; gap: 14px;
  font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.ranking-leaderboard { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.lb-row {
  display: grid; grid-template-columns: 48px 52px 1fr 70px;
  align-items: center; gap: 14px; padding: 13px 18px;
  background: white; border-radius: 14px;
  border: 1.5px solid var(--card-border);
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.lb-row:hover { transform: translateX(4px); box-shadow: 0 6px 20px rgba(0,0,0,0.07); border-color: var(--primary); }
.lb-rank { font-size: 1.3rem; text-align: center; min-width: 32px; }
.lb-rank-num { font-size: 0.9rem; font-weight: 800; color: var(--text-muted); }
.lb-logo-wrap {
  width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid;
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.lb-logo { max-width: 34px; max-height: 26px; object-fit: contain; }
.lb-initials { font-size: 0.85rem; font-weight: 900; letter-spacing: -0.5px; display: none; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lb-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lb-name { font-size: 0.92rem; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar-track { height: 5px; background: #EDF2F7; border-radius: 3px; overflow: hidden; }
.lb-bar { height: 100%; border-radius: 3px; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.lb-score-badge {
  font-size: 0.95rem; font-weight: 800; letter-spacing: -0.5px;
  padding: 5px 10px; border-radius: 8px; text-align: center; white-space: nowrap;
}
.ranking-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
  font-size: 1rem; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ranking-empty span { font-size: 2.5rem; }


.eval-dimension-header {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 0 10px; margin-top: 6px;
  border-top: 1.5px solid var(--card-border);
}
.eval-dimension-header:first-child { border-top: none; padding-top: 6px; }
.eval-dimension-header::before {
  content: ''; display: block;
  width: 5px; height: 26px; border-radius: 3px;
  background: currentColor; flex-shrink: 0;
  color: inherit;
}
.eval-dim-name { font-size: 1rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.01em; }
.eval-dim-score { font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; flex-shrink: 0; }

.eval-l1-badge {
  font-size: 0.78rem; font-weight: 800; padding: 3px 9px;
  border-radius: 7px; border: 1.5px solid; white-space: nowrap; flex-shrink: 0;
}


.criteria-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 7px; margin-bottom: 14px;
}
.criterion-chip {
  padding: 8px 10px; border-radius: 8px; border: 1.5px solid;
  display: flex; flex-direction: column; gap: 3px;
}
.criterion-chip--tags { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 4px; }
.criterion-label {
  font-size: 0.67rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: #718096;
}
.criterion-value { font-size: 0.82rem; font-weight: 700; }
.criterion-value-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.ev-tag {
  font-size: 0.7rem; font-weight: 600; padding: 2px 7px;
  background: #EBF8FF; color: #2B6CB0; border-radius: 4px; text-transform: capitalize;
}


.eval-reasoning-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: white;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  margin: 18px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.eval-reasoning-icon {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 4px;
  opacity: 0.8;
}
.eval-reasoning {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  margin: 0;
  font-weight: 450;
}


.normative-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.norm-section-label { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #718096; }
.norm-badge {
  font-size: 0.72rem; font-weight: 700; padding: 3px 9px;
  background: #EBF8FF; color: #2B6CB0; border-radius: 5px; border: 1px solid #BEE3F8;
}


.evidence-section {
  margin-top: 6px;
  background: #FAFBFC;
  border: 1px solid #EDF2F7;
  border-radius: 12px;
  padding: 14px 16px;
  overflow: hidden;
}

.evidence-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EDF2F7;
}

.evidence-section-header svg {
  color: var(--primary);
  flex-shrink: 0;
}

.evidence-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4A5568;
}

.evidence-count {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(72, 187, 120, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}


.evidence-card {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.evidence-card:last-child {
  margin-bottom: 0;
}

.evidence-card-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.evidence-block {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #2D3748;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0;
  max-height: 250px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-style: normal;
  font-family: inherit;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.evidence-block::-webkit-scrollbar {
  width: 5px;
}
.evidence-block::-webkit-scrollbar-track {
  background: transparent;
}
.evidence-block::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 3px;
}



.about-hero-centered {
  text-align: center;
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 0 20px;
}
.about-hero-centered h1 {
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-hero-centered p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}
.about-banner {
  border-radius: 24px;
  padding: 8px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  overflow: hidden;
}
.about-banner img {
  width: 100%;
  border-radius: 18px;
  display: block;
  object-fit: cover;
  max-height: 400px;
}

.section-divider {
  text-align: center;
  margin-bottom: 40px;
}
.section-divider h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  display: inline-block;
  position: relative;
}
.section-divider h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}


.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-card {
  padding: 32px 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  border: 1px solid var(--card-border);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.feature-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature-card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}


.docs-premium-section {
  width: 100%;
  padding: 0 20px;
}

.docs-premium-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 60px;
}

.docs-premium-header {
  flex: 0 0 400px;
  position: sticky;
  top: 120px;
  text-align: left;
}

.badge-accent {
  display: inline-block;
  background: rgba(72,187,120,0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.docs-premium-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.docs-premium-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.docs-premium-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-premium-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.doc-premium-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--item-color, var(--primary));
  opacity: 0;
  transform: scaleY(0.5);
  transition: all 0.3s ease;
}

.doc-premium-item:hover {
  transform: translateX(-8px);
  background: white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--item-color, var(--primary));
}

.doc-premium-item:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.doc-premium-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--item-color) 12%, transparent);
  color: var(--item-color);
}

.doc-premium-icon svg {
  width: 28px;
  height: 28px;
}

.doc-premium-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-premium-body h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.doc-premium-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .docs-premium-content {
    flex-direction: column;
    gap: 40px;
  }
  .docs-premium-header {
    flex: auto;
    position: static;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  .doc-premium-item:hover {
    transform: translateY(-4px);
  }
}

.algo-carousel-track {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 4px 24px;
}


.algo-flip-card {
  width: 240px;
  height: 360px;
  perspective: 1000px;
  flex-shrink: 0;
  cursor: pointer;
}

.algo-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.algo-flip-card:hover .algo-flip-inner {
  transform: rotateY(180deg);
}


.algo-flip-front,
.algo-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  border: 1.5px solid var(--card-border);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  overflow: hidden;
}

.algo-flip-front {
  background: white;
  align-items: flex-start;
  border-top: 3px solid var(--card-accent, var(--primary));
}

.algo-flip-front::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--card-accent, var(--primary));
  opacity: 0.05;
}


.algo-flip-num {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--card-accent, var(--primary));
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.7;
}


.algo-flip-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.algo-flip-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: auto;
}

.algo-flip-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
  opacity: 0.7;
}


.algo-flip-back {
  background: white;
  background-image: radial-gradient(circle at top right, color-mix(in srgb, var(--card-accent, var(--primary)) 8%, transparent) 0%, transparent 60%);
  transform: rotateY(180deg);
  border-color: var(--card-border);
  border-top: 3px solid var(--card-accent, var(--primary));
  align-items: flex-start;
  gap: 8px;
  padding: 22px 20px 20px;
}

.algo-back-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--card-accent, var(--primary));
  background: color-mix(in srgb, var(--card-accent, var(--primary)) 10%, transparent);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--primary)) 25%, transparent);
  white-space: nowrap;
}

.algo-back-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}


.algo-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}

.algo-check-item {
  font-size: 0.82rem;
  color: var(--text-main);
  background: #F7FAFC;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 7px 10px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 7px;
}


.algo-example-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #F7FAFC;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 7px 10px;
  width: 100%;
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.35;
  box-sizing: border-box;
}

.algo-example-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.algo-example-box em {
  font-style: normal;
  color: var(--text-main);
  font-weight: 600;
}


.algo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.algo-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #EDF2F7;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  white-space: nowrap;
}

.algo-chip.chip-accent {
  background: color-mix(in srgb, var(--card-accent, var(--primary)) 12%, transparent);
  color: var(--card-accent, var(--primary));
  border-color: color-mix(in srgb, var(--card-accent, var(--primary)) 25%, transparent);
}


.algo-step-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.algo-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px 0;
}
.algo-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--card-border) 0, var(--card-border) 10px, transparent 10px, transparent 20px);
    z-index: 0;
}
.timeline-step {
    display: flex;
    width: 50%;
    position: relative;
    z-index: 1;
}


.timeline-step:nth-child(odd) {
    align-self: flex-start;
    justify-content: flex-end;
    padding-right: 50px;
    text-align: right;
}

.timeline-step:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 50px;
    text-align: left;
}

.step-marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    z-index: 2;
}

.timeline-step:nth-child(odd) .step-marker {
    right: -30px;
}
.timeline-step:nth-child(even) .step-marker {
    left: -30px;
}

.step-marker svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}
.timeline-step .step-content {
    background: white;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    transition: transform 0.3s ease;
}
.timeline-step .step-content:hover {
    transform: translateY(-5px);
}
.algo-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.timeline-step .step-content p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}


.danger-marker {
    border-color: #E53E3E;
    background: #FFF5F5;
}
.danger-marker svg {
    color: #E53E3E;
}
.danger-content .algo-title {
    color: #E53E3E;
}

.final-marker {
    background: rgba(72,187,120,0.1);
    box-shadow: 0 8px 25px rgba(72,187,120,0.2);
}
.final-content {
    border-color: var(--primary);
    border-width: 2px;
    background: linear-gradient(135deg, rgba(72,187,120,0.02) 0%, rgba(72,187,120,0.08) 100%);
}


.clean-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    background: white;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.accordion-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(72,187,120,0.15);
}
.accordion-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.accordion-icon {
    width: 48px;
    height: 48px;
    background: rgba(72,187,120,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.accordion-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    flex: 1;
}
.accordion-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}
.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0 24px;
}
.accordion-body p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.accordion-item.active .accordion-body {
    max-height: 200px;
    padding: 0 24px 24px 88px;
}


.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq-question:hover {
  background: #F7FAFC;
}
.faq-chevron {
  font-size: 0.8rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}
.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(72,187,120,0.1);
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  background: #F7FAFC;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 24px;
}
.faq-answer p {
  margin: 0;
  padding-top: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px dashed #E2E8F0;
}


.cta-section {
  text-align: center;
  padding: 60px 20px;
  border-radius: 24px;
  border: 1px solid rgba(72,187,120,0.3);
  background: linear-gradient(135deg, rgba(72,187,120,0.05) 0%, rgba(72,187,120,0.15) 100%);
  max-width: 900px;
  margin: 0 auto;
}
.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.cta-section p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}


@media (max-width: 900px) {
  .interactive-audit-container {
    flex-direction: column;
  }
  .audit-tabs {
    flex: auto;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .audit-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  
  
  .algo-timeline::before {
      left: 30px !important;
      transform: none !important;
  }
  .timeline-step {
      width: 100% !important;
      align-self: flex-start !important;
      justify-content: flex-start !important;
      padding-left: 80px !important;
      padding-right: 0 !important;
      text-align: left !important;
  }
  .timeline-step .step-marker {
      left: 0 !important;
      right: auto !important;
  }
}

@media (max-width: 600px) {
  .audit-content-area {
    padding: 30px 20px;
  }
  .about-hero-centered h1 {
    font-size: 2.5rem;
  }
}


.var-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06) !important;
  border-color: var(--primary) !important;
}


.about-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 4px;
}

.about-step-card {
  background: white;
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  border-top: 3px solid var(--primary);
}

.about-step-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.04;
  transition: opacity 0.3s ease;
}

.about-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(72,187,120,0.12);
  border-color: rgba(72,187,120,0.4);
}

.about-step-card:hover::after {
  opacity: 0.08;
}

.about-step-num {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
  opacity: 0.6;
}

.about-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(72,187,120,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-step-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.01em;
}

.about-step-card > p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.about-step-detail {
  background: #F7FAFC;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: auto;
}

.about-step-detail span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-step-detail em {
  font-style: normal;
  color: var(--text-main);
  font-weight: 600;
}

.about-step-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.about-step-checklist span {
  font-size: 0.82rem;
  color: var(--text-main);
  background: rgba(72,187,120,0.06);
  border: 1px solid rgba(72,187,120,0.15);
  border-radius: 8px;
  padding: 7px 12px;
  line-height: 1.4;
}

.dimensions-list-container {
  max-width: 900px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px;
}

.dim-list-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
  border-left-width: 6px;
}

.dim-list-item:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  border-bottom-color: var(--primary);
}

.dim-list-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.dim-list-item:hover .dim-list-icon {
  transform: scale(1.1) rotate(5deg);
}

.dim-list-content {
  text-align: left;
}

.dim-list-content h4 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.dim-list-content p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .dim-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-left-width: 6px;
    border-left-style: solid;
  }
  
  .dim-list-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }
}


.eval-reasoning strong {
  color: var(--text-main);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  display: inline-block;
  margin-top: 6px;
  margin-bottom: 2px;
}

.eval-reasoning strong:not(:first-child) {
  margin-top: 14px;
  display: block;
}

.evidence-card-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.medal-badge {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.podium-card:hover .medal-badge {
  transform: scale(1.1) rotate(5deg);
}
.lb-row:hover .medal-badge {
  transform: scale(1.05);
}

/* Dashboard Year Badge */
.badge-year {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}
.badge-year.hidden {
  display: none;
}
