:root {
    --bg: #0a1628;
    --bg-alt: #0f1f3a;
    --text: #f0f4ff;
    --muted: #b8c8e0;
    /* Cores do hypercube: cyan → purple → magenta */
    --accent-start: #00d2ff;
    /* Cyan */
    --accent-mid: #7b61ff;
    /* Purple */
    --accent-end: #ff00b8;
    /* Magenta */
    --card-bg: rgba(20, 40, 70, 0.6);
    --border: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    letter-spacing: 0.01em;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    color: var(--accent-start);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-mid);
}

.hero {
    min-height: 90vh;
    padding: 2rem clamp(1.5rem, 6vw, 8rem) 6rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    /* Adicionar mais espaços brancos/claros */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 210, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(123, 97, 255, 0.12), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 184, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
    will-change: background;
    animation: gradientShift 30s ease infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 210, 255, 0.03) 2px,
            rgba(0, 210, 255, 0.03) 4px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(123, 97, 255, 0.03) 2px,
            rgba(123, 97, 255, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    will-change: transform;
    animation: gridMove 40s linear infinite;
    transform: translateZ(0);
}

@keyframes gradientShift {

    0%,
    100% {
        background:
            radial-gradient(circle at 20% 30%, rgba(0, 210, 255, 0.15), transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(123, 97, 255, 0.12), transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(255, 0, 184, 0.08), transparent 70%);
    }

    50% {
        background:
            radial-gradient(circle at 80% 70%, rgba(0, 210, 255, 0.15), transparent 50%),
            radial-gradient(circle at 20% 30%, rgba(123, 97, 255, 0.12), transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(255, 0, 184, 0.08), transparent 70%);
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0) translateZ(0);
    }

    100% {
        transform: translate(20px, 20px) translateZ(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero>* {
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateZ(0);
}

/* Header simplificado para páginas legais (sem min-height) */
.hero.page-header {
    min-height: auto;
    padding: 2rem clamp(1.5rem, 6vw, 8rem);
}

.hero.page-header .nav {
    margin-bottom: 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    opacity: 1;
    transform: translateZ(0);
}

.nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text);
    transition: opacity 0.2s;
}

.nav a:hover {
    opacity: 0.7;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 100000;
    overflow: visible !important;
}

.search-toggle,
.lang-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.search-toggle:hover,
.lang-toggle:hover {
    border-color: var(--accent-start);
    background: rgba(0, 210, 255, 0.1);
}

.search-toggle svg,
.lang-toggle svg {
    width: 20px;
    height: 20px;
}

.language-selector {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 150px;
    z-index: 10001 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.lang-dropdown.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.lang-option {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.75rem;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.25rem;
    transition: background 0.2s;
    text-align: left;
    pointer-events: auto !important;
    position: relative;
    z-index: 10001;
    user-select: none;
    -webkit-user-select: none;
}

.lang-option * {
    pointer-events: none;
    /* Desabilitar pointer events nos filhos para que o clique vá para o botão */
}

.lang-option:hover {
    background: rgba(123, 97, 255, 0.1);
}

.lang-option.active {
    background: rgba(123, 97, 255, 0.2);
}

.lang-item {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.75rem;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.25rem;
    transition: background 0.2s;
    text-align: left;
    pointer-events: auto !important;
    position: relative;
    z-index: 10001;
    user-select: none;
    font-size: 1rem;
}

.lang-item:hover {
    background: rgba(123, 97, 255, 0.1);
}

.lang-flag {
    font-size: 1.2rem;
}

.lang-code {
    font-weight: 500;
    font-size: 0.9rem;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-overlay.hidden {
    display: none;
}

.search-container {
    width: 90%;
    max-width: 700px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1.5rem 3rem 1.5rem 1.5rem;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: 1rem;
    color: var(--text);
    font-size: 1.2rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-container input:focus {
    border-color: var(--accent-start);
}

.search-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-results {
    margin-top: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    border-color: var(--accent-start);
    transform: translateX(4px);
    background: rgba(0, 210, 255, 0.05);
}

.search-result-item h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.search-result-item p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.search-result-item .result-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(123, 97, 255, 0.2);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--accent-mid);
    margin-bottom: 0.5rem;
}

.search-no-results {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.logo-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 0 8px rgba(123, 97, 255, 0.4));
    transition: filter 0.3s ease;
}

.logo-icon:hover {
    filter: drop-shadow(0 0 12px rgba(123, 97, 255, 0.6));
}

.logo-text small {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--muted);
}

.logo-text .brand-label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--muted);
    opacity: 0.7;
    margin-top: 0.15rem;
    font-weight: 400;
    text-transform: lowercase;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    opacity: 1;
    transform: translateZ(0);
    position: relative;
    z-index: 1;
}

/* Texto de fundo inspirador */
.hero-quote {
    position: absolute;
    top: 15%;
    left: 5%;
    right: 5%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 1.1;
    color: rgba(240, 244, 255, 0.9);
    text-align: center;
    font-style: italic;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateZ(0);
    will-change: opacity;
    animation: quoteFade 20s ease-in-out infinite;
}

.hero-quote p {
    margin: 0;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.3), rgba(123, 97, 255, 0.3), rgba(255, 0, 184, 0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes quoteFade {

    0%,
    100% {
        opacity: 0.06;
    }

    50% {
        opacity: 0.12;
    }
}

@media (max-width: 968px) {
    .hero-quote {
        font-size: clamp(2rem, 6vw, 5rem);
        top: 10%;
        opacity: 0.05;
    }
}

.hero-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
    padding: 2rem 0;
}

.hero-featured-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-images-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-image-main {
    position: relative;
    border-radius: 1rem;
    overflow: visible;
    aspect-ratio: 4/3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 200px;
    background: rgba(123, 97, 255, 0.05);
}

.hero-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hero-image-item {
    position: relative;
    border-radius: 1rem;
    overflow: visible;
    aspect-ratio: 4/3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 150px;
    background: rgba(123, 97, 255, 0.05);
}

.hero-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(123, 97, 255, 0.1);
    min-height: 200px;
    position: relative;
    z-index: 10;
}

.hero-image-main:hover .hero-gallery-image,
.hero-image-item:hover .hero-gallery-image {
    transform: scale(1.05);
}

@media (max-width: 968px) {
    .hero-main-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-grid {
        grid-template-columns: 1fr;
    }
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
}

.hero-slide {
    display: none;
    transform: translateZ(0);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-slide.active {
    display: block;
    opacity: 1;
}

.hero-slide-content {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(123, 97, 255, 0.1) 100%);
    border-radius: 1rem;
    padding: 4rem;
    display: flex;
    align-items: center;
}

.hero-carousel-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-start);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-start);
    width: 24px;
    border-radius: 4px;
}

.hero-featured {
    width: 100%;
}

.hero-featured-card {
    background: rgba(20, 40, 70, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transform: translateZ(0);
}

.hero-featured-card .meta {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-featured-card h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-start) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-featured-card .lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-grid {
    display: block;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
    /* gap: 1.5rem; */
    opacity: 1;
    transform: translateZ(0);
}

.hero-articles-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hero-article-mini {
    background: rgba(20, 40, 70, 0.4);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-article-mini:hover {
    background: rgba(20, 40, 70, 0.6);
    border-color: var(--accent-start);
    transform: translateY(-2px);
}

.hero-article-mini .meta {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.hero-article-mini h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

@media (max-width: 968px) {
    .hero-content {
        gap: 2rem;
    }

    .hero-featured-card {
        padding: 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav ul {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .nav-actions {
        order: 2;
    }
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: 1rem;
}

.lead {
    color: var(--muted);
    max-width: 48ch;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-mid) 50%, var(--accent-end) 100%);
    color: #05122b;
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.3), 0 2px 5px rgba(0, 0, 0, 0.2);
    border: none;
}

.btn.primary:hover {
    box-shadow: 0 6px 25px rgba(123, 97, 255, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn.secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.btn.secondary:hover {
    border-color: rgba(123, 97, 255, 0.6);
    background: rgba(123, 97, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.2);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.hero-stats strong {
    font-size: 2rem;
}

.hero-panel {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.2rem;
    border: 1px solid var(--border);
    opacity: 1;
    transform: translateZ(0);
}

.hero-panel .panel-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-panel ul {
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-panel ul li {
    line-height: 1.6;
    font-size: 0.95rem;
}

.hero-panel ul span {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-panel .panel-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-logos {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--muted);
}

.hero-logos .logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

.section {
    padding: 8rem clamp(1.5rem, 6vw, 8rem);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.section:first-of-type {
    padding-top: 4rem;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(0, 210, 255, 0.08), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(123, 97, 255, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.section::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background:
        radial-gradient(circle, rgba(123, 97, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(40px);
    will-change: transform, opacity;
    animation: pulse 12s ease-in-out infinite;
    transform: translateZ(0);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1) translateZ(0);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.05) translateZ(0);
        opacity: 0.4;
    }
}

.section>* {
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateZ(0);
}

.hero>* {
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateZ(0);
}

.section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text) 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.highlight-box {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.highlight-box ul {
    margin-left: 1rem;
    color: var(--muted);
}

.highlight-list {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
    color: var(--muted);
}

.client-form {
    margin-top: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client-form h3 {
    margin-bottom: 0.5rem;
}

.client-form input {
    background: rgba(20, 40, 70, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    padding: 0.7rem;
    color: var(--text);
}

.sso-btn {
    width: 100%;
}

.client-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dashboard-panels .panel {
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 1rem;
    background: rgba(20, 40, 70, 0.4);
}

.client-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.client-forms form {
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 1rem;
    background: rgba(20, 40, 70, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.client-forms select,
.client-forms input {
    background: rgba(20, 40, 70, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    padding: 0.6rem;
    color: var(--text);
}

.mfa-block {
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 1rem;
    background: rgba(20, 40, 70, 0.4);
}

.mfa-block img {
    max-width: 180px;
    margin-top: 0.5rem;
}

.mfa-verify {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.hidden {
    display: none !important;
}

.client-dashboard ul {
    list-style: none;
    padding-left: 0;
    color: var(--muted);
}

.client-info p {
    margin-bottom: 0.2rem;
}

.dashboard-placeholder {
    border: 1px dashed var(--border);
    border-radius: 0.8rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.section-header>div:first-child {
    flex: 1;
    min-width: 300px;
}

.section-header .eyebrow {
    margin-bottom: 0.75rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 700px;
}

.premium-services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.premium-services article {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.premium-services article:hover .service-image {
    transform: scale(1.05);
}

.premium-services article::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 97, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.premium-services article::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.1), transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-services article:hover {
    border-color: rgba(123, 97, 255, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(123, 97, 255, 0.2), 0 0 0 1px rgba(0, 210, 255, 0.2);
}

.premium-services article:hover::before {
    left: 100%;
}

.premium-services article:hover::after {
    opacity: 1;
}

.premium-services .tag {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.premium-services ul {
    margin-left: 1rem;
    color: var(--muted);
}

.package-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.package-grid article {
    background: rgba(20, 40, 70, 0.5);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.2rem;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.industries-grid article {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.2rem;
    background: rgba(20, 40, 70, 0.5);
    min-height: 180px;
}

.industries-grid span {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
}

.dark {
    background: var(--bg-alt);
}

.matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.matrix span {
    padding: 0.9rem;
    border-radius: 0.8rem;
    border: 1px solid var(--border);
    text-align: center;
    font-weight: 500;
    color: var(--muted);
}

.matrix-footnote {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.knowledge-list {
    display: grid;
    gap: 1rem;
}

.knowledge-list article {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.2rem;
    border-radius: 1rem;
}

.article-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateZ(0);
    visibility: visible;
    display: block;
}

.article-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end));
    transition: width 0.4s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-mid);
    box-shadow: 0 12px 35px rgba(123, 97, 255, 0.25), 0 0 0 1px rgba(0, 210, 255, 0.4);
}

.article-card:hover::after {
    width: 100%;
}

.news-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateZ(0);
    visibility: visible;
    display: block;
    background: rgba(20, 40, 70, 0.4);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.news-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-mid));
    transition: width 0.4s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-mid);
    box-shadow: 0 12px 35px rgba(123, 97, 255, 0.25), 0 0 0 1px rgba(0, 210, 255, 0.4);
}

.news-card:hover::after {
    width: 100%;
}

.news-card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    line-height: 1.4;
    color: var(--text);
}

.news-card p.meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

.news-card small {
    color: var(--accent-start);
    font-weight: 500;
}

.knowledge-list .meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateZ(0);
    visibility: visible;
}

.insights-main,
.insights-sidebar {
    opacity: 1;
    transform: translateZ(0);
    visibility: visible;
}

.insights-main h3,
.insights-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.insights-cards {
    display: grid;
    gap: 1.5rem;
    opacity: 1 !important;
    transform: translateZ(0);
    visibility: visible !important;
    min-height: 200px;
}

.insights-cards .placeholder {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.insights-sidebar {
    border-left: 1px solid var(--border);
    padding-left: 2rem;
}

@media (max-width: 968px) {
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .insights-sidebar {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 2rem;
    }
}

.about-gallery {
    margin: 4rem 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.gallery-main {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.gallery-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-image,
.methodology-image,
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-main:hover .gallery-image,
.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-main:hover .image-overlay,
.gallery-item:hover .image-overlay {
    opacity: 1;
}

.services-hero-image {
    margin: 3rem 0;
    border-radius: 1rem;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.methodology-visual {
    margin: 3rem 0;
    border-radius: 1rem;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.methodology-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: var(--accent-start);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.1);
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-start);
}

.about-card p {
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 968px) {
    .about-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .services-hero-image,
    .methodology-visual {
        height: 250px;
    }
}

#insights {
    position: relative;
    opacity: 1;
    transform: translateZ(0);
    visibility: visible;
}

#insights::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(50px);
    will-change: transform, opacity;
    animation: pulse 15s ease-in-out infinite;
    transform: translateZ(0);
}

#insights::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 0, 184, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(50px);
    will-change: transform, opacity;
    animation: pulse 18s ease-in-out infinite reverse;
    transform: translateZ(0);
}

.insight-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.insight-feature {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(20, 40, 70, 0.5), rgba(25, 50, 85, 0.5));
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.insight-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insight-feature:hover {
    border-color: rgba(123, 97, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 97, 255, 0.15);
}

.insight-feature:hover::before {
    opacity: 1;
}

.insight-actions {
    display: grid;
    gap: 1rem;
}

.knowledge {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* Publicações técnicas */
.publications {
    margin-top: 4rem;
}

.publication-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.publication-image {
    position: relative;
}

.publication-card {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(123, 97, 255, 0.1));
    border: 2px solid rgba(123, 97, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.publication-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end));
    opacity: 0.8;
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(123, 97, 255, 0.25);
    border-color: rgba(123, 97, 255, 0.5);
}

.publication-card-content {
    width: 100%;
}

.publication-card-content h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--text);
}

.publications-grid {
    display: grid;
    gap: 1rem;
}

.publication-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.publication-item:hover {
    border-color: rgba(123, 97, 255, 0.4);
    transform: translateX(4px);
    background: rgba(20, 40, 70, 0.8);
}

.publication-item h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Toolkit discreto */
.toolkit-discrete {
    margin-top: 3rem;
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}

.toolkit-preview {
    margin-top: 3rem;
}

.toolkit-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.toolkit-preview-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toolkit-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-mid));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toolkit-preview-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-start);
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.15);
}

.toolkit-preview-card:hover::before {
    opacity: 1;
}

.preview-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.toolkit-preview-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.toolkit-preview-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.preview-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(123, 97, 255, 0.1);
    border: 1px solid rgba(123, 97, 255, 0.3);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent-mid);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.toolkit-content {
    max-width: 800px;
    margin-top: 1rem;
}

.toolkit-content p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.toolkit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    list-style: none;
    margin-top: 1rem;
}

.toolkit-list li {
    color: var(--muted);
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.toolkit-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-start);
    opacity: 0.6;
}

/* Áreas de especialização */
.specializations {
    margin-top: 4rem;
}

.specializations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.specialization-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.specialization-card:hover {
    border-color: rgba(123, 97, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(123, 97, 255, 0.15);
    background: rgba(20, 40, 70, 0.8);
}

.spec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.spec-header h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0;
}

.spec-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(123, 97, 255, 0.2));
    border: 1px solid rgba(123, 97, 255, 0.3);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent-mid);
    font-weight: 500;
}

.specialization-card p {
    color: var(--muted);
    line-height: 1.6;
    flex-grow: 1;
}

.spec-content {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.spec-content h4 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.spec-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec-content ul li {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
}

.spec-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-start);
    opacity: 0.6;
    font-weight: 600;
}

.spec-video-placeholder {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(123, 97, 255, 0.05);
    border: 1px dashed rgba(123, 97, 255, 0.3);
    border-radius: 0.5rem;
    text-align: center;
}

.video-coming {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .specializations-grid {
        grid-template-columns: 1fr;
    }
}

.tools-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.tools-section h3 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.tool-category {
    background: rgba(20, 40, 70, 0.3);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    opacity: 0.9;
}

.tool-category h4 {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    opacity: 0.95;
}

.tool-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-category ul li {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.tool-category ul li strong {
    color: var(--text);
    opacity: 0.9;
    font-weight: 500;
}

.tools-intro {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tool-category ul li {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-category ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tool-category ul li p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0.5rem 0 0.75rem 0;
}

.tool-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.tool-links a {
    color: var(--accent-start);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-start);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background: rgba(0, 210, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.tool-links a:hover {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--accent-start);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 210, 255, 0.2);
}

.tool-links a:active {
    transform: translateY(0);
}

.toolkit-resources {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-category {
    background: rgba(20, 40, 70, 0.4);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.resource-category h3 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.resource-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-mid);
    opacity: 0.7;
    font-weight: 600;
}

.resource-list li {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resource-list li strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.resource-list li p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0.5rem 0 1rem 0;
}

.resource-meta {
    display: flex;
    gap: 1.5rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
}

.resource-meta span {
    color: var(--muted);
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    background: rgba(123, 97, 255, 0.1);
    border: 1px solid rgba(123, 97, 255, 0.2);
    border-radius: 0.25rem;
}

.resource-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.resource-links a {
    color: var(--accent-start);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-start);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.resource-links a:hover {
    opacity: 1;
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-start);
}

@media (max-width: 768px) {
    .toolkit-resources {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .publication-hero {
        grid-template-columns: 1fr;
    }

    .publication-card {
        min-height: 250px;
    }
}

.deep-dives .section-header p {
    max-width: 640px;
}

.deep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.deep-card {
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: 1.5rem;
    background: rgba(20, 40, 70, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.deep-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.deep-card:hover .deep-image {
    transform: scale(1.05);
}

.deep-card header span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--muted);
    text-transform: uppercase;
}

.deep-card ul {
    margin-left: 1rem;
    color: var(--muted);
}

.text-link {
    color: var(--accent-start);
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover {
    text-decoration: underline;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    background: #0f172a;
    /* Solid Dark Slate 900 fallback */
    background: rgba(15, 23, 42, 0.98);
    /* Almost opaque for better readability */
    border: 1px solid rgba(59, 130, 246, 0.3);
    /* Subtle blue border */
    border-radius: 1.5rem;
    padding: 0;
    /* Remove padding here, use inner containers */
    max-width: 900px;
    max-height: 90vh;
    width: calc(100% - 2rem);
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* Hide overflow for header/footer */
    color: #f8fafc;
    /* Slate 50 */
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
}

.modal-header {
    padding: 2.5rem 3rem 1.5rem;
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0));
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    flex-shrink: 0;
}

.modal-body {
    padding: 0 3rem 3rem;
    overflow-y: auto;
    flex-grow: 1;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: rgba(59, 130, 246, 0.3);
    border-radius: 20px;
}

/* Ensure links in modal are readable on dark background */
.modal-content a {
    color: #60a5fa;
    /* Blue 400 */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.modal-content a:hover {
    color: #93c5fd;
    /* Blue 300 */
    text-decoration: underline;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    border-color: rgba(59, 130, 246, 0.5);
    transform: rotate(90deg);
}

.modal-body p.meta {
    margin-bottom: 0.5rem;
    color: #60a5fa;
    /* Blue 400 */
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#modal-title {
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#modal-summary {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #cbd5e1;
    /* Slate 300 */
    margin-bottom: 2rem;
    font-weight: 300;
    border-left: 3px solid #3b82f6;
    padding-left: 1rem;
}

.modal-article-content {
    margin: 2rem 0;
    line-height: 1.8;
    color: #f1f5f9 !important;
    /* Slate 100 - Very Light - FORCED */
    font-size: 1.05rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.modal-article-content h1,
.modal-article-content h2,
.modal-article-content h3,
.modal-article-content h4 {
    color: #f8fafc;
    /* White */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.modal-article-content h1 {
    font-size: 2rem !important;
    /* Restrict H1 size */
}

.modal-article-content h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding-bottom: 0.5rem;
    color: #60a5fa;
    /* Blue 400 */
}

.modal-article-content h3 {
    font-size: 1.4rem;
    color: #93c5fd;
    /* Blue 300 */
}

.modal-article-content p {
    margin-bottom: 1.5rem;
    color: #e2e8f0 !important;
    /* Slate 200 - FORCED */
}

.modal-article-content strong {
    color: #f8fafc;
    font-weight: 600;
}

/* Table Styling in Modals */
.modal-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.5rem;
    overflow: hidden;
}

.modal-article-content th {
    background: rgba(59, 130, 246, 0.2);
    color: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-article-content td {
    padding: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
}

.modal-article-content tr:last-child td {
    border-bottom: none;
}

.modal-article-content tr:hover td {
    background: rgba(59, 130, 246, 0.05);
}

.modal-article-content ul,
.modal-article-content ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
    line-height: 1.7;
}

.modal-article-content ul {
    list-style-type: disc;
}

.modal-article-content ol {
    list-style-type: decimal;
    padding-left: 2.5rem;
}

.modal-article-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    line-height: 1.7;
    color: #e2e8f0 !important;
    /* Slate 200 - FORCED */
}

.modal-article-content li p {
    margin: 0;
    display: inline;
}

.modal-article-content ul li::marker {
    color: #60a5fa;
    /* Blue 400 */
    font-weight: 600;
}

.modal-article-content ol li::marker {
    color: #60a5fa;
    /* Blue 400 */
    font-weight: 600;
}

.modal-article-content strong {
    color: #f8fafc !important;
    /* White - FORCED */
    font-weight: 700;
}

.modal-article-content em {
    color: #cbd5e1 !important;
    /* Slate 300 - FORCED */
    font-style: italic;
}

.modal-article-content span {
    color: inherit;
}

.modal-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2.5rem 0;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
    border: 2px solid #e0e7ff;
    background: white;
    padding: 0.5rem;
}

.modal-article-content figure {
    margin: 3rem 0;
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid #e0e7ff;
}

.modal-article-content figure img {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.modal-article-content figcaption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
    padding: 0.75rem;
    background: #f1f5f9;
    border-radius: 0.5rem;
}

.modal-article-content hr.article-divider {
    border: none;
    border-top: 3px solid #cbd5e1;
    margin: 3rem 0;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    height: 2px;
}

.modal-article-content pre.article-code {
    background: #1e293b;
    /* Solid Slate 800 for code blocks */
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.modal-article-content pre.article-code code {
    color: #f1f5f9;
    /* Light Slate 100 for code text */
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.modal-author-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: transparent;
    padding: 2rem 0;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.modal-author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.modal-author-text {
    color: #cbd5e1;
    /* Slate 300 */
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Removed conflicting overrides for meta and summary */
/* Cleaned up conflicting styles */

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 0 0 auto;
}

body.modal-open {
    overflow: hidden;
}

.method-steps {
    list-style: none;
    counter-reset: steps;
    display: grid;
    gap: 1.2rem;
}

.method-steps li {
    border-left: 3px solid var(--accent-start);
    padding-left: 1rem;
}

.method-steps strong {
    display: block;
    font-size: 1.1rem;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-list li {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: start;
}

.contact-list {
    list-style: none;
    color: var(--muted);
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(20, 40, 70, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    padding: 0.8rem;
    color: var(--text);
    font-family: inherit;
}

.contact-form button {
    border: none;
    border-radius: 0.8rem;
    padding: 0.9rem;
    font-weight: 600;
    color: #05122b;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-mid) 50%, var(--accent-end) 100%);
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.3);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    box-shadow: 0 6px 20px rgba(123, 97, 255, 0.5);
    transform: translateY(-2px);
}

.form-feedback {
    font-size: 0.85rem;
    color: var(--muted);
}

.placeholder {
    color: var(--muted);
    font-size: 0.9rem;
}

.about p+p {
    margin-top: 0.8rem;
}

.chatbot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: start;
}

.chatbot form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chatbot form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chatbot form label span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.chatbot form input,
.chatbot form textarea {
    background: rgba(20, 40, 70, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    padding: 1rem;
    color: var(--text);
    font-size: 1rem;
    width: 100%;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.chatbot form input:focus,
.chatbot form textarea:focus {
    outline: none;
    border-color: var(--accent-mid);
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.1);
}

.chatbot button {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.chatbot-log {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    min-height: 240px;
    max-height: 320px;
    overflow-y: auto;
}

.chat-entry {
    margin-bottom: 1rem;
}

.chat-entry strong {
    display: block;
    margin-bottom: 0.2rem;
}

.chat-entry.user strong {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-entry.bot strong {
    background: linear-gradient(135deg, var(--accent-mid), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 4rem clamp(1.5rem, 6vw, 8rem) 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-section h4 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-start);
}

.footer-links-inline {
    margin-top: 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-start);
}

.footer-links span {
    color: var(--muted);
    opacity: 0.5;
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .nav ul {
        flex-direction: column;
        align-items: flex-end;
    }

    .hero {
        padding-top: 1.5rem;
    }

    .section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Ensure modal list items have good contrast */
.modal-article-content,
.modal-article-content p,
.modal-article-content li,
.modal-article-content span,
.modal-article-content div {
    color: #1e293b !important;
}

/* Industries Section */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.industry-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.industry-card:hover {
    border-color: rgba(123, 97, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(123, 97, 255, 0.15);
    background: rgba(20, 40, 70, 0.8);
}

.industry-card h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0;
}

.industry-card p {
    color: var(--muted);
    line-height: 1.6;
    flex-grow: 1;
}

/* Generic Grids for Dynamic Content */
.services-grid,
.guides-grid,
.implementation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card,
.guide-card,
.implementation-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-card:hover,
.guide-card:hover,
.implementation-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-start);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.guide-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.guide-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-start);
    font-weight: bold;
}

/* Unified Frame - Premium Container Style */
.unified-frame {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 20px 40px -20px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.unified-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(123, 97, 255, 0.1), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.unified-frame>* {
    position: relative;
    z-index: 1;
}

/* Toolkit / Resources Styling */
/* Standard section padding is 8rem, matching Insights */

.toolkit-discrete {
    background: transparent !important;
    border: none;
    box-shadow: none;
    margin: 0 auto;
    width: 100%;
    border-radius: 0;
}

.toolkit-discrete .section-header {
    margin-bottom: 3rem;
}

.toolkit-frame {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.toolkit-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 0;
    /* Margin handled by frame padding */
}

.toolkit-preview-card {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 1.2rem;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.toolkit-preview-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-start);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: var(--card-bg);
    /* Optional: add background on hover for better visibility */
}

.preview-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.toolkit-preview-card h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.toolkit-preview-card p {
    color: var(--muted);
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
}

.preview-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-top: auto;
}

/* Global Overflow Fix */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Toolkit Frame - Container for Resources */
.toolkit-frame {
    background: rgba(20, 40, 70, 0.3);
    /* Dark blue background similar to tool-category */
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 3rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.toolkit-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end));
    opacity: 0.8;
}

.toolkit-frame .section-header {
    margin-bottom: 3rem;
    padding: 0;
}

/* Adjust cards inside the frame to be transparent or blend in if needed */
.toolkit-frame .toolkit-preview-card {
    background: rgba(255, 255, 255, 0.03);
    /* Lighter than frame */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.toolkit-frame .toolkit-preview-card:hover {
    background: var(--card-bg);
    border-color: var(--accent-start);
    transform: translateY(-4px);
}

/* Unified Frame - Standardized container for all sections */
.unified-frame {
    background: rgba(20, 40, 70, 0.3);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 3rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.unified-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end));
    opacity: 0.8;
}

.unified-frame .section-header {
    margin-bottom: 3rem;
    padding: 0;
}

/* Adjust grids inside unified frame */
.unified-frame .services-grid,
.unified-frame .industries-grid,
.unified-frame .guides-grid,
.unified-frame .implementation-grid,
.unified-frame .insights-grid {
    margin-top: 0;
    /* Header handles spacing */
}

/* Make cards inside frame slightly transparent to blend */
/* Revert to dark/transparent cards to match Toolkit and Knowledge Base */
.unified-frame .service-card,
.unified-frame .industry-card,
.unified-frame .guide-card,
.unified-frame .implementation-card,
.unified-frame .insight-card,
.unified-frame .news-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Revert text colors to light for dark background */
.unified-frame .service-card *,
.unified-frame .industry-card *,
.unified-frame .guide-card *,
.unified-frame .implementation-card *,
.unified-frame .insight-card *,
.unified-frame .news-card * {
    color: inherit;
    /* Inherit global light text */
}

.unified-frame .service-card h3,
.unified-frame .industry-card h3,
.unified-frame .guide-card h3,
.unified-frame .implementation-card h3,
.unified-frame .insight-card h3,
.unified-frame .news-card h4 {
    color: var(--text);
    /* Light text */
    font-weight: 600;
}

.unified-frame .service-card p,
.unified-frame .industry-card p,
.unified-frame .guide-card p,
.unified-frame .implementation-card p,
.unified-frame .insight-card p,
.unified-frame .news-card p {
    color: var(--muted);
}

.unified-frame .insight-card .read-more,
.unified-frame .news-card .news-link,
.unified-frame .service-card a,
.unified-frame .guide-card a {
    color: var(--accent-start) !important;
    /* Cyan for links on dark bg */
    font-weight: 600;
}

.unified-frame .news-card .news-date {
    color: var(--muted);
    font-size: 0.9rem;
}

.unified-frame .insight-card .insight-tag {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.unified-frame .service-card:hover,
.unified-frame .industry-card:hover,
.unified-frame .guide-card:hover,
.unified-frame .implementation-card:hover,
.unified-frame .insight-card:hover,
.unified-frame .news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Fix "Unbalanced" Methodology Section - Centering Orphans */
.implementation-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.implementation-card {
    flex: 1 1 280px;
    max-width: 450px;
    /* Prevent single cards from stretching too wide */
    width: 100%;
}