h1,
h2,
h3,
h4,
.font-display {
    font-family: 'Sora', sans-serif;
}

main,
section,
.grid > *,
.flex > * {
    min-width: 0;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

pre {
    max-width: 100%;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 4px;
}

#conteudo:focus {
    outline: none;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    transform: translateY(-150%);
    border-radius: 0.75rem;
    background: #38bdf8;
    color: #020c1b;
    padding: 0.75rem 1rem;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(2, 12, 27, 0.35);
    transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

.glass-panel {
    background: rgba(9, 39, 66, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.18);
}

.section-light {
    background: #f4f8fb;
    color: #06233b;
}

.section-light .glass-panel {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(8, 74, 104, 0.16);
    box-shadow: 0 12px 34px rgba(2, 32, 51, 0.08);
}

.section-light .text-gray-200,
.section-light .text-gray-300,
.section-light .text-gray-400 {
    color: #36576c;
}

.section-light .text-brand-400 {
    color: #08708d;
}

.section-light input,
.section-light select,
.section-light textarea {
    background: #ffffff;
    border-color: rgba(8, 74, 104, 0.22);
    color: #06233b;
}

.section-light input::placeholder,
.section-light textarea::placeholder {
    color: #6b8798;
}

.section-light .course-card > a {
    background: #e7f1f6;
    border-color: rgba(8, 74, 104, 0.16);
    color: #073b55;
}

.section-light .course-card > a:hover {
    background: #08708d;
    color: #ffffff;
}

.course-card {
    transform: translateY(0) scale(1);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .course-card:hover {
        transform: translateY(-7px) scale(1.012);
        border-color: rgba(56, 189, 248, 0.55);
        box-shadow: 0 22px 44px rgba(2, 32, 51, 0.18);
    }
}

.hero-code-bg {
    background-image: url('../images/hero-programacao.png');
    background-image: image-set(
        url('../images/hero-programacao.webp') type('image/webp'),
        url('../images/hero-programacao.png') type('image/png')
    );
    background-size: cover;
    background-position: center;
}

.hero-glow {
    max-width: min(36rem, calc(100vw - 2rem));
}

.code-bg-overlay {
    position: relative;
    overflow: hidden;
}

.code-bg-overlay-2 {
    position: relative;
    overflow: hidden;
}

.code-bg-overlay::before {
    content: "const optimize = async (business) => { await ai.analyze(data); return profit * 10; };";
    position: absolute;
    top: 10%;
    left: -10%;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(56, 189, 248, 0.04);
    font-size: 5rem;
    line-height: 1;
    white-space: nowrap;
    transform: rotate(-15deg);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.code-bg-overlay-2::before {
    content: "import { Success } from 'ai-future'; function buildEmpire() { initialize(); }";
    position: absolute;
    bottom: 5%;
    right: -20%;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(245, 158, 11, 0.05);
    font-size: 4rem;
    line-height: 1;
    white-space: nowrap;
    transform: rotate(10deg);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.responsive-cta {
    min-height: 52px;
}

.footer-email {
    overflow-wrap: anywhere;
}

.faq-icon {
    flex: 0 0 1.25rem;
    width: 1.25rem;
    text-align: center;
}

@media (max-width: 639px) {
    .hero-code-bg {
        background-position: 58% center;
    }

    .hero-glow {
        left: 0.5rem !important;
        width: calc(100vw - 2rem) !important;
        height: 280px !important;
    }

    .home-experience-badge {
        right: 0;
    }

    .mobile-compact-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .responsive-cta {
        width: 100%;
        border-radius: 0.875rem;
        padding: 0.875rem 1.125rem;
        font-size: 1rem;
        line-height: 1.35;
    }

    .typewriter-line {
        min-height: 1.12em;
    }

    .code-bg-overlay::before,
    .code-bg-overlay-2::before {
        font-size: 2.5rem;
        max-width: 100vw;
        white-space: normal;
    }

    pre {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }
}

.glow-text {
    text-shadow: 0 0 22px rgba(56, 189, 248, 0.42);
}

.typewriter-line {
    display: block;
    min-height: 1.05em;
    white-space: normal;
}

.typewriter-line.is-typing::after {
    content: "";
    display: inline-block;
    width: 0.08em;
    height: 0.82em;
    margin-left: 0.08em;
    background: #38bdf8;
    vertical-align: -0.04em;
    animation: caret 0.75s step-end infinite;
}

.typing-copy {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.typing-copy.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes caret {
    50% {
        opacity: 0;
    }
}

.hover-float:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

.transition-all-custom {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .typing-copy {
        opacity: 1;
        transform: none;
    }
}
