.hero-section {
    min-height: 78vh;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 40px;
    padding: 70px 0 40px;
}
.hero-content h1 {
    font-size: clamp(48px, 8vw, 102px);
    max-width: 900px;
}
.hero-content p {
    color: var(--muted);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.7;
    max-width: 760px;
}
.hero-actions { display:flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-visual { display: grid; place-items: center; }
.terminal-card {
    width: min(520px, 100%);
    min-height: 320px;
    border: 1px solid rgba(34,232,255,.25);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border-radius: 30px;
    box-shadow: 0 0 80px rgba(157,92,255,.25), inset 0 0 40px rgba(34,232,255,.08);
    overflow: hidden;
    transform: rotate(2deg);
}
.terminal-top {
    display:flex; gap: 8px; padding: 18px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.terminal-top span { width: 12px; height:12px; border-radius:999px; background: var(--cyan); opacity:.8; }
.terminal-card code {
    display:block;
    padding: 28px;
    color: var(--muted);
    line-height: 2;
    font-size: 16px;
}
.terminal-card strong { color: var(--green); }
.compat-grid, .benefit-grid {
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.compat-card, .benefit-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    border-radius: var(--radius);
    padding: 24px;
    font-weight: 900;
    text-align:center;
    box-shadow: var(--shadow);
}
.benefit-card { text-align:left; display:flex; gap: 12px; }
.benefit-card strong { color: var(--cyan); }
.cta-section {
    width: min(1120px, calc(100% - 32px));
    margin: 40px auto 80px;
    border: 1px solid rgba(34,232,255,.24);
    background:
        radial-gradient(circle at top right, rgba(34,232,255,.16), transparent 40%),
        var(--panel-strong);
    border-radius: 34px;
    padding: clamp(30px, 6vw, 70px);
    box-shadow: var(--shadow);
}
.cta-section h2 { font-size: clamp(34px, 6vw, 72px); line-height: .95; margin: 0 0 14px; letter-spacing:-.05em; }
.cta-section p { color: var(--muted); font-size: 18px; }

@media (max-width: 900px) {
    .hero-section { grid-template-columns: 1fr; min-height: auto; }
    .compat-grid, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .compat-grid, .benefit-grid { grid-template-columns: 1fr; }
}

.hero-logo-card {
    position: relative;
    width: min(300px, 78%);
    margin-inline: auto;
    border: 1px solid rgba(157, 92, 255, .22);
    border-radius: 22px;
    padding: 10px;
    background:
        radial-gradient(circle at center, rgba(157, 92, 255, .12), rgba(5, 6, 16, .66) 58%),
        linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .014));
    box-shadow:
        0 0 28px rgba(157, 92, 255, .18),
        0 0 38px rgba(34, 232, 255, .05),
        inset 0 0 18px rgba(255, 255, 255, .025);
}

.hero-logo-card img {
    width: 100%;
    max-height: 260px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(157, 92, 255, .45));
}

.mini-terminal {
    width: min(360px, 90%);
    min-height: auto;
    margin-top: 16px;
    margin-inline: auto;
    transform: rotate(-1deg);
}

.mini-terminal code {
    font-size: 13px;
    padding: 16px 18px 18px;
}

@media (max-width: 900px) {
    .hero-logo-card {
        width: min(260px, 76%);
    }

    .mini-terminal {
        margin: 14px auto 0;
        transform: none;
    }
}

@media (max-width: 560px) {
    .hero-logo-card {
        width: min(220px, 72%);
        border-radius: 18px;
        padding: 8px;
    }

    .hero-logo-card img {
        max-height: 210px;
    }
}

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

.framework-compat-card {
    min-height: 118px;
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        radial-gradient(circle at top, rgba(157,92,255,.16), transparent 58%),
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.framework-compat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34,232,255,.45);
    box-shadow: 0 0 38px rgba(34,232,255,.12), var(--shadow);
}

.framework-compat-card img {
    width: min(210px, 100%);
    height: 64px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .framework-compat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .framework-compat-grid {
        grid-template-columns: 1fr;
    }
}


/* WebP framework logos on home compatibility section */
.framework-compat-card img {
    display: block;
    width: min(220px, 100%);
    height: 70px;
    object-fit: contain;
}

/* Live homepage layout */
.hero-section-live {
    position: relative;
    isolation: isolate;
    min-height: 82vh;
    overflow: hidden;
    border-radius: 46px;
    padding: clamp(46px, 6vw, 86px) clamp(28px, 5vw, 64px);
    border: 1px solid rgba(69,230,255,.14);
    box-shadow:
        0 30px 120px rgba(0,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.045);
}

.hero-section-live .hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    overflow: hidden;
    background:
        linear-gradient(90deg,
            rgba(3,6,11,.94) 0%,
            rgba(3,6,11,.72) 15%,
            rgba(3,6,11,.34) 35%,
            rgba(3,6,11,.28) 65%,
            rgba(3,6,11,.70) 85%,
            rgba(3,6,11,.94) 100%),
        linear-gradient(180deg,
            rgba(3,6,11,.88) 0%,
            rgba(3,6,11,.24) 34%,
            rgba(3,6,11,.34) 68%,
            rgba(3,6,11,.94) 100%),
        radial-gradient(circle at 50% 44%, transparent 34%, rgba(3,6,11,.24) 72%, rgba(3,6,11,.82) 100%),
        url('../images/phantom-hero-banner.png') center/cover no-repeat;
    opacity: .78;
    filter: saturate(1.10) brightness(.90);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.035),
        inset 0 0 150px rgba(0,0,0,.86),
        inset 0 0 260px rgba(3,6,11,.46),
        0 0 90px rgba(69,230,255,.06);
}

.hero-section-live .hero-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(circle at 18% 18%, rgba(244,183,57,.13), transparent 28%),
        radial-gradient(circle at 84% 36%, rgba(69,230,255,.15), transparent 34%),
        linear-gradient(90deg, rgba(3,6,11,.70), transparent 24%, transparent 76%, rgba(3,6,11,.70));
}

.hero-section-live .hero-backdrop::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    pointer-events: none;
    border-radius: 0 0 inherit inherit;
    background: linear-gradient(180deg, transparent 0%, rgba(3,6,11,.92) 100%);
}

.hero-section-live::after {
    content: "";
    position: absolute;
    inset: auto 5% 0;
    height: 2px;
    z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(69,230,255,.34), rgba(244,183,57,.20), transparent);
    pointer-events: none;
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-chip-row span,
.resource-type-card {
    border: 1px solid rgba(69,230,255,.20);
    background: linear-gradient(180deg, rgba(8,18,30,.72), rgba(3,8,14,.82));
    box-shadow: inset 0 0 18px rgba(255,255,255,.025), 0 0 18px rgba(69,230,255,.05);
}

.hero-chip-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 900;
    color: var(--text);
}

.hero-logo-premium {
    width: min(420px, 88%);
    border-color: rgba(244,183,57,.22);
    background:
        radial-gradient(circle at 35% 24%, rgba(244,183,57,.12), transparent 38%),
        radial-gradient(circle at 70% 36%, rgba(69,230,255,.14), transparent 42%),
        rgba(0,0,0,.24);
    box-shadow: 0 0 60px rgba(69,230,255,.08), 0 0 42px rgba(244,183,57,.08), inset 0 0 24px rgba(255,255,255,.025);
}

.hero-logo-premium img {
    filter: drop-shadow(0 0 16px rgba(69,230,255,.18));
}

.phantom-terminal {
    border-color: rgba(69,230,255,.20);
    background: rgba(3,8,14,.66);
    box-shadow: 0 0 32px rgba(69,230,255,.08), inset 0 0 22px rgba(244,183,57,.035);
}

.phantom-terminal .terminal-top span:nth-child(1) { background: var(--gold); }
.phantom-terminal .terminal-top span:nth-child(2) { background: var(--cyan); }
.phantom-terminal .terminal-top span:nth-child(3) { background: var(--green); }

.centered-heading { text-align: center; margin-inline: auto; }
.centered-heading h2, .centered-heading p { margin-inline: auto; }
.resource-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.resource-type-card {
    display: grid;
    gap: 10px;
    min-height: 176px;
    padding: 24px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.resource-type-card::before {
    content: "";
    position: absolute;
    inset: -50% -20%;
    background: linear-gradient(135deg, rgba(244,183,57,.14), transparent 36%, rgba(69,230,255,.14));
    opacity: .7;
    pointer-events: none;
}
.resource-type-card strong, .resource-type-card span { position: relative; z-index: 1; }
.resource-type-card strong { font-size: 20px; color: var(--text); }
.resource-type-card span { color: var(--muted); line-height: 1.55; }
.resource-type-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244,183,57,.34);
    box-shadow: 0 0 34px rgba(69,230,255,.10), var(--shadow);
}

.cta-section-premium {
    background:
        linear-gradient(90deg, rgba(244,183,57,.10), rgba(69,230,255,.10)),
        var(--panel-strong);
    border-color: rgba(69,230,255,.20);
}

@media (max-width: 1000px) {
    .resource-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .resource-type-grid { grid-template-columns: 1fr; }
    .hero-section-live .hero-backdrop { inset-inline: -12vw; }
}


/* Homepage WOW interactions */
.home-wow-section {
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(34, 232, 255, .72);
    box-shadow: 0 0 18px rgba(34, 232, 255, .8);
    animation: phantomFloatParticle 7s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { left: 12%; top: 22%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 38%; top: 16%; animation-delay: 1.1s; background: rgba(255, 205, 77, .7); box-shadow: 0 0 18px rgba(255, 205, 77, .75); }
.hero-particles span:nth-child(3) { right: 16%; top: 30%; animation-delay: 2.2s; }
.hero-particles span:nth-child(4) { left: 20%; bottom: 16%; animation-delay: 3s; background: rgba(157, 92, 255, .75); box-shadow: 0 0 18px rgba(157, 92, 255, .8); }
.hero-particles span:nth-child(5) { right: 28%; bottom: 22%; animation-delay: 4s; }

@keyframes phantomFloatParticle {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .35; }
    50% { transform: translate3d(18px, -28px, 0) scale(1.35); opacity: 1; }
}

.hero-holo-ring {
    position: absolute;
    width: min(500px, 80vw);
    height: min(500px, 80vw);
    border-radius: 50%;
    border: 1px solid rgba(34, 232, 255, .18);
    background:
        radial-gradient(circle, transparent 52%, rgba(34, 232, 255, .09) 53%, transparent 54%),
        conic-gradient(from 90deg, transparent, rgba(34,232,255,.18), transparent, rgba(255,205,77,.15), transparent);
    animation: phantomRotate 16s linear infinite;
    opacity: .74;
    pointer-events: none;
}

@keyframes phantomRotate {
    to { transform: rotate(360deg); }
}

.hero-visual {
    position: relative;
    perspective: 1100px;
}

.hero-tilt-card {
    transform-style: preserve-3d;
    transition: transform .18s ease, box-shadow .2s ease;
}

.hero-logo-shine {
    position: absolute;
    inset: -40% auto -40% -70%;
    width: 42%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    animation: heroShine 4.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroShine {
    0%, 36% { left: -70%; opacity: 0; }
    48% { opacity: 1; }
    70%, 100% { left: 128%; opacity: 0; }
}

.home-live-terminal {
    animation: terminalHover 4.8s ease-in-out infinite;
}

@keyframes terminalHover {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.wow-reveal {
    opacity: 0;
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.9,.2,1);
}

.wow-reveal.from-left { transform: translateX(-44px); }
.wow-reveal.from-right { transform: translateX(44px); }
.wow-reveal.from-bottom { transform: translateY(52px); }

.wow-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0,0,0);
}

.home-wow-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.wow-strip-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34,232,255,.16);
    border-radius: 26px;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(34,232,255,.13), transparent 38%),
        rgba(255,255,255,.045);
    box-shadow: 0 20px 70px rgba(0,0,0,.20);
}

.wow-strip-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -60% -20%;
    height: 120px;
    background: linear-gradient(90deg, transparent, rgba(255,205,77,.14), transparent);
    transform: rotate(-4deg);
}

.wow-strip-card span {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.wow-strip-card strong {
    color: var(--text);
    font-size: 22px;
    line-height: 1.1;
}

.resource-type-card em {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(34,232,255,.1);
    color: var(--cyan);
    font-style: normal;
    font-weight: 1000;
}

.wow-card {
    transform-style: preserve-3d;
}

.wow-card:hover {
    transform: translateY(-8px) rotateX(4deg);
}

.framework-stage-section {
    position: relative;
    overflow: hidden;
}

.framework-stage-section::before {
    content: "";
    position: absolute;
    inset: 20% -8vw auto;
    height: 280px;
    background:
        radial-gradient(circle at 50% 50%, rgba(34,232,255,.11), transparent 60%),
        linear-gradient(90deg, transparent, rgba(255,205,77,.07), transparent);
    pointer-events: none;
}

.framework-orbit-grid {
    position: relative;
    perspective: 1200px;
}

.framework-logo-animate {
    opacity: 0;
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 40px, 0) scale(.92);
    transition:
        opacity .9s ease,
        transform .9s cubic-bezier(.18,.95,.2,1.08),
        border-color .22s ease,
        box-shadow .22s ease;
}

.framework-logo-animate.is-visible {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
}

.framework-logo-1 { transform: translateX(-120px) rotateY(-18deg) scale(.9); }
.framework-logo-2 { transform: translateY(100px) rotateX(16deg) scale(.9); }
.framework-logo-3 { transform: translateY(-100px) rotateX(-16deg) scale(.9); }
.framework-logo-4 { transform: translateX(120px) rotateY(18deg) scale(.9); }

.framework-glow {
    position: absolute;
    inset: -60% -30%;
    background: conic-gradient(from 90deg, transparent, rgba(34,232,255,.22), transparent, rgba(255,205,77,.2), transparent);
    opacity: 0;
    transition: opacity .25s ease;
    animation: phantomRotate 7s linear infinite;
}

.framework-compat-card:hover .framework-glow {
    opacity: 1;
}

.framework-compat-card small {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    color: var(--muted);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
}

.framework-compat-card img {
    position: relative;
    z-index: 1;
}

.home-showcase-lab {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 24px;
    align-items: stretch;
}

.showcase-lab-copy,
.showcase-lab-panel {
    border: 1px solid rgba(34,232,255,.16);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(34,232,255,.08), rgba(157,92,255,.06)),
        rgba(5,12,20,.72);
    box-shadow: 0 24px 90px rgba(0,0,0,.25);
    overflow: hidden;
}

.showcase-lab-copy {
    padding: clamp(28px, 4vw, 52px);
}

.showcase-lab-copy span {
    color: var(--gold);
    font-weight: 1000;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px;
}

.showcase-lab-copy h2 {
    margin: 14px 0 16px;
    font-size: clamp(34px, 4vw, 62px);
    line-height: .98;
    letter-spacing: -.05em;
}

.showcase-lab-copy p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.showcase-lab-panel {
    position: relative;
    padding: 22px;
    transform-style: preserve-3d;
}

.showcase-lab-panel::before {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(circle at 50% 50%, rgba(34,232,255,.14), transparent 48%);
    animation: labScan 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes labScan {
    0%, 100% { transform: translateY(-16%); opacity: .5; }
    50% { transform: translateY(16%); opacity: 1; }
}

.lab-window-top {
    display: flex;
    gap: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.lab-window-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyan);
}

.lab-window-top span:nth-child(2) { background: var(--gold); }
.lab-window-top span:nth-child(3) { background: var(--green); }

.lab-metric-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 22px 0;
}

.lab-metric-grid div {
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.045);
}

.lab-metric-grid strong {
    display: block;
    color: var(--text);
    font-size: 34px;
    letter-spacing: -.04em;
}

.lab-metric-grid small {
    color: var(--muted);
    font-weight: 800;
}

.lab-pulse-line {
    position: relative;
    z-index: 1;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}

.lab-pulse-line span {
    display: block;
    width: 34%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--gold));
    animation: pulseLine 2.8s ease-in-out infinite;
}

@keyframes pulseLine {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(330%); }
}

.benefit-grid-wow .wow-benefit-card {
    position: relative;
    overflow: hidden;
}

.benefit-grid-wow .wow-benefit-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -80%;
    width: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    transform: skewX(-20deg);
    transition: left .45s ease;
}

.benefit-grid-wow .wow-benefit-card:hover::after {
    left: 130%;
}

.home-final-cta {
    position: relative;
    overflow: hidden;
}

.home-final-cta .cta-glow {
    position: absolute;
    right: -100px;
    top: -120px;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34,232,255,.24), transparent 70%);
    pointer-events: none;
}

@media (max-width: 900px) {
    .home-wow-strip,
    .home-showcase-lab {
        grid-template-columns: 1fr;
    }

    .framework-logo-1,
    .framework-logo-2,
    .framework-logo-3,
    .framework-logo-4 {
        transform: translateY(60px) scale(.92);
    }
}

@media (max-width: 560px) {
    .lab-metric-grid {
        grid-template-columns: 1fr;
    }

    .footer-social-link,
    .home-wow-strip {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wow-reveal,
    .framework-logo-animate,
    .hero-particles span,
    .hero-holo-ring,
    .hero-logo-shine,
    .home-live-terminal,
    .lab-pulse-line span,
    .showcase-lab-panel::before {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* Hero rounded responsive fix */
@media (max-width: 720px) {
    .hero-section-live {
        border-radius: 30px;
        padding: 36px 20px;
    }
}
