/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta Elastre */
    --dark-blue: #3e457c;
    --mid-blue: #5876ac;
    --light-blue: #a6b2cb;
    --pale-blue: #d5d5e0;
    --peach: #e29383;
    --orange: #c55b45;
    --pink: #eacbc8;
    --green: #a9bbae;
    --yellow: #f0debd;
    
    /* Cores principais do site */
    --primary: #3e457c;
    --cream: #F9F7F4;
    --off-white: #FFFEF9;
    --text: #1A1A1A;
    --text-muted: #666666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkSystemFont, sans-serif;
    color: var(--text);
    background: var(--off-white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== INTRO ANIMATION ========== */
/* ========== INTRO ANIMATION - TRANSFORMAÇÃO DE PALAVRAS (MORPHING) - VERSÃO LENTA ========== */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: var(--dark-blue);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: 
        bgColorChangeMorph 4s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        fadeOut 0.5s ease 4s forwards;
    overflow: hidden;
}

@keyframes bgColorChangeMorph {
    0% { background: var(--dark-blue); }
    25% { background: var(--mid-blue); }
    50% { background: var(--peach); }
    75% { background: var(--green); }
    100% { background: var(--pale-blue); }
}

@keyframes fadeOut {
    to { 
        opacity: 0; 
        pointer-events: none;
        visibility: hidden;
    }
}

.intro-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Personagem no fundo - aparece gradualmente */
.intro-character {
    width: clamp(300px, 60vw, 700px);
    height: auto;
    opacity: 0;
    animation: characterFadeGradual 3.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    position: absolute;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center bottom;
    z-index: 1;
}

@keyframes characterFadeGradual {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) scale(0.96) translateY(10px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(-50%) scale(1) translateY(0); 
    }
}

/* Container para palavras - todas no mesmo espaço */
.intro-words-stack {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Todas as palavras ocupam o mesmo espaço absoluto */
.intro-word {
    position: absolute;
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 600;
    color: white;
    white-space: nowrap;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    line-height: 1.1;
    text-align: center;
}

/* Animação de morphing: dissolve e transforma - VERSÃO LENTA */
@keyframes wordMorph {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85) translateY(15px);
        filter: blur(4px);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
        filter: blur(0);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
        filter: blur(0);
    }
    80% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.98) translateY(-5px);
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) translateY(-15px);
        filter: blur(3px);
    }
}

/* Palavra 1: Lê - aparece primeiro */
.word-1 {
    animation: wordMorph 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

/* Palavra 2: Organiza - transforma de "Lê" */
.word-2 {
    animation: wordMorph 1s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
}

/* Palavra 3: Decide - transforma de "Organiza" */
.word-3 {
    animation: wordMorph 1s cubic-bezier(0.4, 0, 0.2, 1) 1.8s forwards;
}

/* Palavra 4: Sustenta - transforma de "Decide" */
.word-4 {
    animation: wordMorph 1s cubic-bezier(0.4, 0, 0.2, 1) 2.5s forwards;
}

/* Logo aparece como revelação final - com clip-path reveal */
.intro-logo {
    position: absolute;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--dark-blue);
    opacity: 0;
    letter-spacing: -0.03em;
    white-space: nowrap;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    animation: logoRevealMorph 1.2s cubic-bezier(0.4, 0, 0.2, 1) 3.2s forwards;
    z-index: 3;
    line-height: 1.1;
    text-align: center;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

@keyframes logoRevealMorph {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85) translateY(20px);
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
        color: white;
        filter: blur(4px);
    }
    40% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.98) translateY(5px);
        clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
        color: var(--pale-blue);
        filter: blur(1px);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        color: var(--dark-blue);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        color: var(--dark-blue);
        filter: blur(0);
    }
}

/* ========== FLOATING VISUAL ELEMENTS ========== */
.floating-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.visual-element {
    position: fixed;
    width: 80px;
    height: 80px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    /* Espaço para você adicionar suas imagens 3D */
}

.visual-element-1 {
    top: 15%;
    left: 10%;
    /* Adicione: background: url('seu-elemento.png'); */
}

.visual-element-2 {
    top: 60%;
    right: 8%;
    /* Adicione: background: url('seu-elemento.png'); */
}

.visual-element-3 {
    bottom: 20%;
    left: 15%;
    /* Adicione: background: url('seu-elemento.png'); */
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 3rem;
    background: rgba(255, 254, 249, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    animation: slideDown 0.6s ease 4.5s backwards;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Remove delay do header quando já visitou */
header.no-intro-delay {
    animation: slideDown 0.3s ease forwards !important;
}

@keyframes slideDown {
    from { 
        transform: translateY(-100%); 
    }
    to { 
        transform: translateY(0); 
    }
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-bust {
    height: 60px;
    width: 60px;
    object-fit: cover;
    /* Posiciona para mostrar apenas a cabeça do personagem */
    object-position: center 20%;
    /* Corta em formato oval focando na cabeça */
    border-radius: 50%;
    clip-path: ellipse(50% 50% at 50% 35%);
    -webkit-clip-path: ellipse(50% 50% at 50% 35%);
    transition: transform 0.3s ease;
    display: block;
}

.logo:hover .logo-bust {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link-subtle {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.8rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    transition: color 0.2s;
    opacity: 0.7;
}

.nav-link-subtle:hover {
    color: var(--mid-blue);
    opacity: 1;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dark-blue);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--dark-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:focus {
    outline: 2px solid var(--mid-blue);
    outline-offset: 4px;
    border-radius: 2px;
}

.nav-link-subtle:focus {
    outline: 2px solid var(--mid-blue);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 3rem 6rem;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease 9s backwards;
}

/* Quando a intro não está presente, hero aparece imediatamente */
.hero.no-intro-delay {
    animation: fadeIn 0.3s ease forwards !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.75rem, 5.5vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: var(--text);
    letter-spacing: -0.03em;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text .statement {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-style: normal;
    font-family: 'DM Sans', sans-serif;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: var(--mid-blue);
    margin: 3rem auto;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.hero-text .hero-highlight {
    font-weight: 600;
    color: var(--text);
    margin-top: 2rem;
}

/* Hero CTA */
.hero-cta {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 2.5rem;
    background: var(--dark-blue);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.hero-cta:hover {
    background: var(--mid-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 69, 124, 0.25);
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Cases CTA */
.cases-cta {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cases-cta-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.cta-button-secondary {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: transparent;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.cta-button-secondary:hover {
    background: var(--dark-blue);
    color: white;
}

/* CTA Note */
.cta-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 1.25rem;
}

/* Service Detail Lists */
.service-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-detail-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.service-detail-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--mid-blue);
}

/* ========== TRAJETÓRIA SECTION ========== */
.trajectory-section {
    padding: 8rem 3rem;
    background: var(--cream);
    position: relative;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.trajectory-content {
    max-width: 900px;
}

.trajectory-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 65ch;
    margin-bottom: 1.75rem;
}

.trajectory-content p:last-child {
    color: var(--text);
    font-weight: 500;
}

/* ========== CONTEXT SECTION ========== */
.context-section {
    padding: 8rem 3rem;
    background: var(--off-white);
    position: relative;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 5rem;
    line-height: 1.7;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.problem-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(62, 69, 124, 0.08);
}

.problem-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.problem-card p {
    color: var(--text-muted);
    line-height: 1.65;
}

.problems-footer {
    margin-top: 3rem;
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 650px;
}

/* ========== CASES SECTION ========== */
.cases-section {
    padding: 8rem 3rem;
    background: var(--cream);
    position: relative;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.case-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.case-card:focus {
    outline: 2px solid var(--mid-blue);
    outline-offset: 4px;
}

.case-card:focus-visible {
    outline: 2px solid var(--mid-blue);
    outline-offset: 4px;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(62, 69, 124, 0.12);
}

.case-visual {
    min-height: 240px;
    background: var(--cream);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.case-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.case-card:hover .case-thumbnail {
    transform: scale(1.05);
}

.case-content {
    padding: 2.5rem;
}

.case-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.35rem 1rem;
    background: var(--mid-blue);
    color: white;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.case-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.case-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.case-detail {
    display: flex;
    gap: 1rem;
}

.case-demo-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: var(--cream);
    border: 1px solid var(--mid-blue);
    border-radius: 12px;
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.case-demo-btn:hover {
    background: rgba(88, 118, 172, 0.1);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 118, 172, 0.15);
}

.case-demo-btn:focus {
    outline: 2px solid var(--mid-blue);
    outline-offset: 2px;
}

.case-demo-btn:active {
    transform: translateY(0);
}

.case-demo-btn span:last-child {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.case-demo-btn:hover span:last-child {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .case-demo-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    .case-demo-btn span:last-child {
        font-size: 1rem;
    }
}
}

.case-detail-label {
    font-weight: 700;
    color: var(--dark-blue);
    min-width: 90px;
    font-size: 0.9rem;
}

.case-detail-text {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: 8rem 3rem;
    background: var(--off-white);
    position: relative;
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: start;
}

.services-column {
    display: flex;
    flex-direction: column;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-detail-column {
    position: sticky;
    top: 6rem;
    align-self: start;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    padding-bottom: 2rem;
}

.service-detail-column::-webkit-scrollbar {
    width: 6px;
}

.service-detail-column::-webkit-scrollbar-track {
    background: transparent;
}

.service-detail-column::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.service-detail-column::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.service-detail-panel {
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 3rem;
    min-height: 200px;
}

.service-detail-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 2rem 0;
}

.service-detail-content {
    max-width: 100%;
}

.service-detail-section {
    margin-bottom: 2.5rem;
}

.service-detail-section:last-child {
    margin-bottom: 0;
}

.service-detail-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 2rem;
    max-width: 70ch;
}

.service-detail-heading {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.service-detail-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

.service-detail-text:last-child {
    margin-bottom: 0;
}

.service-detail-cta {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.service-detail-cta .cta-button {
    display: inline-block;
    margin-top: 0.5rem;
}

.service-card {
    padding: 0;
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.service-card-header {
    padding: 3rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.service-card-content {
    flex: 1;
}

.service-card:hover {
    border-color: var(--mid-blue);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(62, 69, 124, 0.1);
}

.service-card:focus {
    outline: 2px solid var(--mid-blue);
    outline-offset: 2px;
}

.service-card.active {
    border-color: var(--mid-blue);
    border-width: 2px;
    box-shadow: 0 8px 24px rgba(62, 69, 124, 0.12);
}

.service-toggle-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 2px solid var(--mid-blue);
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.25rem;
    box-shadow: 0 2px 8px rgba(62, 69, 124, 0.15);
}

.service-toggle-btn:hover {
    border-color: var(--dark-blue);
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(62, 69, 124, 0.2);
}

.service-toggle-btn:focus {
    outline: 2px solid var(--mid-blue);
    outline-offset: 2px;
}

.service-toggle-btn:active {
    transform: scale(0.95);
}

.service-toggle-icon {
    font-size: 20px;
    color: var(--mid-blue);
    font-weight: 700;
    transition: transform 0.3s, color 0.3s;
    display: block;
    line-height: 1;
}

.service-card.active .service-toggle-btn {
    background: var(--mid-blue);
    border-color: var(--dark-blue);
}

.service-card.active .service-toggle-icon {
    color: white;
}

/* Desktop: esconder botão toggle */
@media (min-width: 901px) {
    .service-toggle-btn {
        display: none;
    }
    
    .service-card-header {
        padding: 3rem 2.5rem;
    }
}

/* Accordion para mobile */
.service-card-mobile-detail {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card-mobile-detail .service-detail-content {
    padding: 0;
}

.service-card-mobile-detail .service-detail-section {
    margin-bottom: 2rem;
}

/* Intro sempre visível */
.service-card-mobile-detail .service-detail-section:first-child {
    margin-bottom: 2.5rem;
}

.service-card-mobile-detail .service-detail-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* CTA sempre visível */
.service-card-mobile-detail .service-detail-cta {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Sub-accordions (seções colapsáveis) */
.service-subsection-wrapper {
    margin-bottom: 1.5rem;
}

.service-subsection-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.service-subsection-toggle:focus {
    outline: 2px solid var(--mid-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

.service-subsection-toggle-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.service-subsection-heading {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    flex: 1;
}

.service-subsection-icon {
    font-size: 18px;
    color: var(--mid-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    display: inline-block;
}

.service-subsection-content {
    padding: 1.25rem 0;
    display: none;
}

.service-subsection-content[style*="block"],
.service-subsection-content.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.service-subsection-content .service-detail-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.service-subsection-content .service-detail-text:last-child {
    margin-bottom: 0;
}

.service-number {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 0.3em;
}

.service-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.95rem;
    margin-top: 1rem;
}

.service-highlights {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    list-style: none;
}

.service-highlights li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.service-highlights li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--mid-blue);
    font-weight: 700;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 10rem 3rem;
    background: var(--dark-blue);
    color: white;
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: white;
    color: var(--dark-blue);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-button:focus {
    outline: 2px solid var(--mid-blue);
    outline-offset: 3px;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ========== FOOTER ========== */
footer {
    padding: 4rem 3rem;
    background: #1A1A1A;
    color: white;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-bust {
    height: 80px;
    width: 80px;
    object-fit: cover;
    /* Posiciona para mostrar apenas a cabeça do personagem */
    object-position: center 20%;
    /* Corta em formato oval focando na cabeça */
    border-radius: 50%;
    clip-path: ellipse(50% 50% at 50% 35%);
    -webkit-clip-path: ellipse(50% 50% at 50% 35%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    display: block;
}

.footer-logo:hover .footer-logo-bust {
    opacity: 1;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
}

/* ========== MODAL CASE ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: white;
    border-radius: 24px;
    max-width: 920px;
    width: 100%;
    max-height: calc(100vh - 40px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-shrink: 0;
}

.modal-case-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    opacity: 0.7;
}

.modal-header-text {
    flex: 1;
    min-width: 0;
}

.modal-header-text h2 {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-header-text p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.btn-close:focus {
    outline: 2px solid var(--mid-blue);
    outline-offset: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.modal-body .tag {
    padding: 6px 14px;
    background: rgba(88, 118, 172, 0.1);
    border: 1px solid rgba(88, 118, 172, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--dark-blue);
    font-weight: 600;
}

.stepper {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.stepper::-webkit-scrollbar {
    height: 6px;
}

.stepper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.stepper::-webkit-scrollbar-thumb {
    background: var(--mid-blue);
    border-radius: 3px;
}

.step {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.step:hover {
    background: var(--off-white);
    border-color: rgba(88, 118, 172, 0.2);
    transform: translateY(-1px);
}

.step:focus {
    outline: 2px solid var(--mid-blue);
    outline-offset: 2px;
}

.step:focus-visible {
    outline: 2px solid var(--mid-blue);
    outline-offset: 2px;
}

.step.active {
    background: rgba(88, 118, 172, 0.1);
    border-color: var(--mid-blue);
}

.step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.step.active .step-number {
    background: var(--mid-blue);
    border-color: var(--mid-blue);
    color: white;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.step.active .step-label {
    color: var(--dark-blue);
}

/* Demo Link */
.demo-link-wrapper {
    margin-bottom: 32px;
    margin-top: 24px;
}

.demo-link-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--cream);
    border: 2px solid var(--mid-blue);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-blue);
    text-decoration: none;
}

.demo-link-btn:hover {
    background: rgba(88, 118, 172, 0.1);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 118, 172, 0.15);
}

.demo-link-btn:focus {
    outline: 2px solid var(--mid-blue);
    outline-offset: 2px;
}

.demo-link-text {
    flex: 1;
}

.demo-link-icon {
    font-size: 20px;
    color: var(--mid-blue);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.demo-link-btn:hover .demo-link-icon {
    transform: translateX(4px);
}

.demo-link-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-left: 0.25rem;
    line-height: 1.5;
}

.content-panel {
    background: var(--cream);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    min-height: 280px;
}

.content-panel p,
.content-panel .panel-description {
    max-width: 65ch;
}

/* Context Accordion */
.context-accordion {
    margin-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 24px;
}

.accordion-item {
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.accordion-header {
    padding: 16px 20px;
    min-height: 44px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    transition: background 0.2s;
}

.accordion-header:hover {
    background: rgba(88, 118, 172, 0.05);
}

.accordion-header:focus {
    outline: 2px solid var(--mid-blue);
    outline-offset: -2px;
}

.accordion-header:focus-visible {
    outline: 2px solid var(--mid-blue);
    outline-offset: -2px;
}

.accordion-header::after {
    content: '+';
    font-size: 20px;
    color: var(--mid-blue);
    transition: transform 0.2s;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 20px 16px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Service Modal Content */
.service-modal-content {
    padding: 0;
}

.service-section {
    margin-bottom: 2.5rem;
}

.service-section:last-child {
    margin-bottom: 0;
}

.service-section h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.service-section p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-section p:last-child {
    margin-bottom: 0;
}

.service-intro {
    font-size: 1.125rem !important;
    line-height: 1.8 !important;
    color: var(--text) !important;
    margin-bottom: 2rem !important;
}

.service-cta {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

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

    .service-detail-column {
        display: none;
    }
}

@media (max-width: 768px) {
    .service-modal-content {
        padding: 0;
    }

    .service-section {
        margin-bottom: 2rem;
    }

    .service-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .service-section p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    #serviceContainer1,
    #serviceContainer2,
    #serviceContainer3 {
        max-width: 100% !important;
        margin: 10px;
    }

    .service-intro {
        font-size: 1.05rem !important;
        line-height: 1.7 !important;
    }

    .service-cta {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .service-cta .cta-button {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

.panel-section {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 700;
}

.panel-title {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.panel-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 65ch;
}

.panel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.panel-list li::before {
    content: "→";
    color: var(--mid-blue);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    /* Tablet adjustments */
    header {
        padding: 0.5rem 1rem;
    }

    nav {
        justify-content: center;
    }

    .logo-bust {
        height: 40px;
        width: 40px;
    }

    .nav-links {
        display: none;
    }

    .nav-link-subtle {
        display: none;
    }

    .hero {
        padding: 9rem 2rem 5rem;
    }

    .trajectory-section,
    .context-section,
    .cases-section,
    .services-section {
        padding: 5rem 2rem;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail-column {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .problems-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Small mobile adjustments */
    header {
        padding: 1rem 1rem;
    }

    .logo-bust {
        height: 45px;
        width: 45px;
    }

    .hero {
        padding: 6rem 1rem 2.5rem;
    }

    .trajectory-section,
    .context-section,
    .cases-section,
    .services-section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .problem-card,
    .case-content,
    .service-card {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        width: 100%;
    }

    footer {
        padding: 2.5rem 1rem;
    }
}

@media (max-width: 768px) {
    /* Header mobile */
    header {
        padding: 0.5rem 1rem;
    }

    nav {
        justify-content: center;
        position: relative;
    }

    .logo {
        margin: 0 auto;
    }

    .logo-bust {
        height: 40px;
        width: 40px;
    }

    .nav-links {
        display: none;
    }

    .nav-link-subtle {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .nav-link-subtle {
        display: none;
    }

    /* Hero mobile */
    .hero {
        padding: 7rem 1.25rem 3rem;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }

    .hero-text .statement {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-top: 1rem;
    }

    .hero-divider {
        margin: 2rem auto;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }

    .hero-text .hero-highlight {
        margin-top: 1.5rem;
        font-size: 1rem;
    }

    /* Sections mobile */
    .trajectory-section,
    .context-section,
    .cases-section,
    .services-section {
        padding: 4rem 1.25rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
        line-height: 1.6;
    }

    /* Container mobile */
    .container {
        max-width: 100%;
    }

    /* Trajectory mobile */
    .trajectory-content {
        max-width: 100%;
    }

    .trajectory-content p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    /* Problems grid mobile */
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .problem-card {
        padding: 1.75rem;
        border-radius: 16px;
    }

    .problem-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .problem-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .problems-footer {
        margin-top: 2rem;
        font-size: 1rem;
    }

    /* Cases grid mobile */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-top: 2.5rem;
    }

    .case-visual {
        min-height: 200px;
        padding: 1.5rem;
    }

    .case-content {
        padding: 1.75rem;
    }

    .case-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .case-detail {
        flex-direction: column;
        gap: 0.5rem;
    }

    .case-detail-label {
        min-width: auto;
        margin-bottom: 0.25rem;
    }

    .case-detail-text {
        font-size: 0.9rem;
    }

    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-top: 2.5rem;
    }

    .service-card-header {
        padding: 2rem 1.5rem;
    }

    .service-toggle-btn {
        width: 32px;
        height: 32px;
        margin-top: 0;
    }

    .service-toggle-icon {
        font-size: 16px;
    }

    .service-number {
        font-size: 1.5rem;
        letter-spacing: 0.2em;
        margin-bottom: 1.25rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    /* Sub-accordions mobile */
    .service-subsection-toggle-content {
        padding: 0.875rem 0;
    }

    .service-subsection-heading {
        font-size: 1.1rem;
    }

    .service-subsection-icon {
        font-size: 16px;
        margin-left: 0.75rem;
    }

    .service-subsection-content {
        padding: 1rem 0;
    }

    .service-subsection-content .service-detail-text {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .service-card-mobile-detail .service-detail-intro {
        font-size: 1rem;
        line-height: 1.65;
    }

    .service-card-mobile-detail .service-detail-cta {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .service-highlights {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .service-highlights li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* CTA mobile */
    .cta-section {
        padding: 4rem 1.25rem;
    }

    .cta-content h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1.25rem;
    }

    .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .cta-button {
        padding: 1.1rem 2.5rem;
        font-size: 1rem;
    }

    /* Footer mobile */
    footer {
        padding: 3rem 1.25rem;
    }

    .footer-logo-bust {
        height: 50px;
        width: 50px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Intro mobile - Morphing */
    .intro-character {
        width: clamp(400px, 90vw, 600px);
        position: absolute;
        bottom: 0;
        left: 50%;
        object-fit: contain;
        object-position: center bottom;
        max-height: 60vh;
        animation: characterFadeGradual 3.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
        transform: translateX(-50%);
    }

    .intro-words-stack {
        position: absolute;
        bottom: calc(60vh + 2rem);
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: auto;
        min-height: 120px;
    }

    .intro-word {
        font-size: clamp(1.8rem, 5.5vw, 3rem);
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .intro-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        font-size: clamp(2.2rem, 6.5vw, 3.5rem);
    }

    /* Visual elements mobile */
    .visual-element {
        display: none;
    }

    /* Modal mobile */
    .modal {
        margin: 10px;
        border-radius: 20px;
        max-height: calc(100vh - 20px);
    }

    .modal-header {
        padding: 20px 20px 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .modal-header-text {
        flex: 1;
        min-width: 0;
    }

    .modal-case-name {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .modal-header-text h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .modal-header-text p {
        font-size: 0.9rem;
    }

    .btn-close {
        align-self: flex-end;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .modal-body {
        padding: 20px;
        overflow-y: auto;
        flex: 1;
    }

    .tags {
        gap: 8px;
        margin-bottom: 20px;
    }

    .tag {
        padding: 5px 12px;
        font-size: 12px;
    }

    .demo-wrapper {
        margin-bottom: 24px;
        margin-top: 20px;
    }

    .demo-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .demo-iframe {
        min-height: 720px;
    }

    .stepper {
        gap: 4px;
        margin-bottom: 24px;
        flex-wrap: wrap;
    }

    .step {
        padding: 10px 14px;
        min-width: auto;
        min-height: 44px;
        flex: 0 0 auto;
        gap: 8px;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
        margin-right: 4px;
    }

    .step-label {
        font-size: 12px;
    }

    .step-label {
        font-size: 13px;
    }

    .content-panel {
        padding: 20px;
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .content-panel p,
    .content-panel .panel-description {
        max-width: 100%;
    }

    .panel-section {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .panel-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .panel-description {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    .panel-list li {
        font-size: 0.85rem;
        gap: 8px;
        line-height: 1.7;
        margin-bottom: 0.5rem;
    }

    /* Demo mobile */
    .demo-link-wrapper {
        margin-bottom: 24px;
        margin-top: 20px;
    }

    .demo-link-btn {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .demo-link-hint {
        font-size: 0.8rem;
        margin-top: 0.375rem;
    }
}
