.studio-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 42%, rgba(59, 130, 246, .18), transparent 28rem), #030303;
    transition: opacity .45s ease, visibility .45s ease;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
}

#main-content,
section {
    overflow-x: clip;
}

.studio-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.studio-loader-card {
    width: min(420px, calc(100vw - 40px));
    padding: 28px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 28px;
    background: rgba(12,12,16,.72);
    backdrop-filter: blur(14px);
}

.studio-loader-cube {
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #22d3ee);
    box-shadow: 0 0 80px rgba(59, 130, 246, .55);
    animation: fs-cube 1.8s infinite cubic-bezier(.2,.8,.2,1);
}

.studio-loader-card p {
    margin: 0 0 16px;
    color: #d1d5db;
    font: 700 12px/1.7 "Fira Code", monospace;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.studio-loader-progress {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 10px;
    color: #93c5fd;
    font: 800 13px/1 "Fira Code", monospace;
    letter-spacing: .08em;
}

.studio-loader-bar {
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
}

.studio-loader-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22d3ee);
    box-shadow: 0 0 22px rgba(59, 130, 246, .65);
    transition: width .18s ease;
}

@keyframes fs-cube {
    0% { transform: perspective(700px) rotateX(0) rotateY(0); }
    50% { transform: perspective(700px) rotateX(58deg) rotateY(180deg); }
    100% { transform: perspective(700px) rotateX(0) rotateY(360deg); }
}

@keyframes fs-load {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(240%); }
}

@media (max-width: 640px) {
    .scroll-indicator {
        display: none !important;
    }

    .text-gradient {
        animation: none !important;
        background-size: 100% auto !important;
    }
}

.hero-orbital-panel {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2));
    top: 18%;
    width: min(38vw, 480px);
    min-height: 460px;
    pointer-events: none;
    perspective: 1000px;
    contain: paint;
}

.hero-dashboard {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(20,20,28,.64), rgba(3,3,3,.32));
    backdrop-filter: blur(12px);
    box-shadow: 0 40px 130px rgba(0,0,0,.45);
    transform: rotateX(10deg) rotateY(-14deg) rotateZ(2deg);
    overflow: hidden;
}

.hero-dashboard::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000, transparent);
}

.hero-dashboard-inner {
    position: relative;
    padding: 26px;
}

.hero-window-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.hero-window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.hero-window-bar span:nth-child(2) { background: #f59e0b; }
.hero-window-bar span:nth-child(3) { background: #22c55e; }

.hero-metric-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 14px;
}

.hero-metric {
    min-height: 110px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: rgba(255,255,255,.06);
}

.hero-metric strong {
    display: block;
    font-size: 28px;
    font-weight: 900;
}

.hero-metric span {
    display: block;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-code-line {
    height: 11px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(59,130,246,.95), rgba(139,92,246,.45), transparent);
}

.hero-tilt-card {
    position: absolute;
    right: -24px;
    bottom: 24px;
    width: 220px;
    padding: 18px;
    border: 1px solid rgba(59,130,246,.38);
    border-radius: 24px;
    background: rgba(8,12,22,.86);
    box-shadow: 0 24px 70px rgba(59,130,246,.18);
    transform: rotate(-6deg);
}

.hero-tilt-card b {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.hero-tilt-card span {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.portfolio-tabs,
.quote-grid,
.fs-mini-grid {
    display: grid;
    gap: 14px;
}

.portfolio-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.portfolio-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}

.fs-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: #cbd5e1;
    font: 800 10px/1 "Fira Code", monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ai-seo-orbit {
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.ai-seo-orbit::before {
    content: "LLM";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 136px;
    height: 136px;
    display: grid;
    place-items: center;
    border-radius: 34px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translate(-50%, -50%) rotate(12deg);
    font: 900 34px/1 "Space Grotesk", sans-serif;
    box-shadow: 0 0 80px rgba(59,130,246,.36);
}

.ai-seo-orbit span {
    position: absolute;
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(0,0,0,.32);
    color: #e5e7eb;
    font-weight: 900;
    animation: fs-float 5s infinite ease-in-out;
}

.ai-seo-orbit span:nth-child(1) { left: 13%; top: 18%; color: #60a5fa; }
.ai-seo-orbit span:nth-child(2) { right: 12%; top: 20%; color: #c4b5fd; animation-delay: .7s; }
.ai-seo-orbit span:nth-child(3) { left: 22%; bottom: 14%; color: #22d3ee; animation-delay: 1.1s; }
.ai-seo-orbit span:nth-child(4) { right: 20%; bottom: 16%; color: #86efac; animation-delay: 1.6s; }

@keyframes fs-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

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

.testimonial-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    font-weight: 900;
}

.rating {
    color: #fbbf24;
    letter-spacing: .08em;
}

.quote-select {
    width: 100%;
    background: rgba(2, 6, 16, .94);
    border: 1px solid rgba(96, 165, 250, .34);
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    color: #fff;
    outline: none;
    color-scheme: dark;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 40px rgba(0,0,0,.28);
}

.quote-select option {
    background: #05070d;
    color: #f8fafc;
    font-family: "Fira Code", monospace;
}

.quote-select:focus {
    border-color: #3b82f6;
}

.glass-card {
    background: rgba(6, 8, 14, .82) !important;
    border-color: rgba(96, 165, 250, .22) !important;
    box-shadow: 0 24px 80px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

#contact .glass-card,
#contact .inline-flex,
.testimonial-card,
.ai-seo-orbit {
    background: rgba(3, 5, 11, .88) !important;
    backdrop-filter: blur(16px) saturate(130%) !important;
}

#contact p,
#contact label,
#contact input,
#contact textarea,
#contact select {
    text-shadow: 0 2px 10px rgba(0,0,0,.75);
}

#contact input,
#contact textarea {
    background: rgba(2, 6, 16, .94) !important;
    border-color: rgba(148, 163, 184, .32) !important;
}

#contact input:focus,
#contact textarea:focus {
    border-color: #3b82f6 !important;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(37, 211, 102, .42);
    background: rgba(7, 20, 13, .9);
    color: #dcfce7;
    font-weight: 900;
    box-shadow: 0 16px 70px rgba(37, 211, 102, .22), 0 18px 80px rgba(0,0,0,.44);
    backdrop-filter: blur(14px);
}

.whatsapp-float i {
    color: #25d366;
    font-size: 24px;
}

.whatsapp-float:hover {
    background: rgba(12, 40, 24, .96);
    transform: translateY(-2px);
}

.contact-pill-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.tools-hero-section {
    min-height: 72vh;
}

.tools-visual-card {
    background: rgba(6, 8, 14, .88) !important;
}

@media (min-width: 768px) {
    .quote-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fs-mini-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .hero-orbital-panel {
        position: relative;
        right: auto;
        top: auto;
        width: min(100%, 520px);
        min-height: 360px;
        margin: 48px auto 0;
    }
}

@media (max-width: 640px) {
    #main-header .max-w-7xl {
        padding: 18px 36px;
    }

    #mobile-menu,
    #tool-mobile-menu {
        left: 16px !important;
        right: 16px !important;
        top: calc(100% + 10px) !important;
        width: auto !important;
        padding: 16px !important;
        border: 1px solid rgba(59, 130, 246, .24) !important;
        border-radius: 16px !important;
        background: rgba(5, 5, 7, .98) !important;
        box-shadow: 0 22px 80px rgba(0, 0, 0, .54), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
        overflow: hidden;
    }

    #tool-mobile-menu {
        position: absolute;
    }

    #mobile-menu > div,
    #tool-mobile-menu {
        gap: 8px !important;
    }

    #mobile-menu > div > * + *,
    #tool-mobile-menu > * + * {
        margin-top: 0 !important;
    }

    #mobile-menu a,
    #tool-mobile-menu a {
        width: 100%;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 12px !important;
        background: rgba(255, 255, 255, .045) !important;
        color: #e5e7eb !important;
        text-align: center;
        transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
    }

    #mobile-menu a:hover,
    #tool-mobile-menu a:hover {
        background: rgba(59, 130, 246, .14) !important;
        border-color: rgba(59, 130, 246, .34) !important;
        color: #fff !important;
        transform: translateY(-1px);
    }

    #mobile-menu a:last-child,
    #tool-mobile-menu a:last-child {
        background: #fff !important;
        border-color: #fff !important;
        color: #000 !important;
    }

    #main-content > section:first-child {
        min-height: auto;
        padding-top: 118px;
        padding-bottom: 46px;
        align-items: flex-start;
        overflow: hidden;
    }

    .hero-content {
        text-align: center !important;
        align-items: center !important;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(42px, 12vw, 58px) !important;
        line-height: 1.08 !important;
        max-width: 100%;
        margin-bottom: 22px;
    }

    .hero-content p {
        font-size: 18px !important;
        line-height: 1.55 !important;
        max-width: 92vw;
        background: rgba(0,0,0,.32);
        border-radius: 18px;
        padding: 8px 10px;
    }

    .hero-orbital-panel {
        display: none !important;
    }

    .scroll-indicator {
        display: none !important;
    }

    .hero-content .flex.flex-col.sm\\:flex-row {
        width: 100%;
        gap: 14px;
    }

    .hero-content .flex.flex-col.sm\\:flex-row a {
        width: min(100%, 330px);
        min-height: 62px;
        margin-inline: auto;
    }

    #pin-maker-promo .grid.grid-cols-3 {
        gap: 8px;
    }

    #pin-maker-promo .h-52 {
        height: 150px;
    }

    .ai-seo-orbit {
        min-height: 340px;
    }

    .ai-seo-orbit span {
        width: 92px;
        height: 92px;
    }

    .ai-seo-orbit::before {
        width: 112px;
        height: 112px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        min-height: 52px;
        padding: 0 14px;
        font-size: 13px;
    }

    .whatsapp-float span {
        display: none;
    }

    .hero-dashboard {
        transform: rotateX(5deg) rotateY(-5deg);
    }

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

    .hero-tilt-card {
        right: 12px;
        bottom: 10px;
        width: 190px;
    }
}
