.home-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 1520px);
    max-width: 1520px;
    padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 3.5rem);
    background-image:
        radial-gradient(ellipse at 50% 42%, rgba(106, 91, 232, 0.13), transparent 43%),
        radial-gradient(ellipse at 88% 18%, rgba(57, 185, 168, 0.06), transparent 28%);
}

.home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
    align-items: center;
    gap: clamp(2rem, 4.5vw, 4.5rem);
    width: 100%;
    max-width: 1360px;
    min-height: 540px;
    padding: clamp(2.3rem, 4.5vw, 4rem);
    overflow: hidden;
    border: 1px solid rgba(177, 168, 255, 0.24);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 82% 48%, rgba(109, 81, 235, 0.2), transparent 38%),
        linear-gradient(112deg, rgba(28, 31, 65, 0.98), rgba(25, 27, 55, 0.96) 54%, rgba(34, 31, 70, 0.95));
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.2;
    background-image: linear-gradient(rgba(207, 210, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(207, 210, 255, 0.07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, transparent 8%, #000 72%);
}

.home-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -270px;
    right: -100px;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(196, 183, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(196, 183, 255, 0.025), 0 0 0 76px rgba(196, 183, 255, 0.02);
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 630px;
}

.home-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
    color: #b8adff;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.21em;
}

.eyebrow-mark,
.note-dot,
.chip-orb,
.chip-spark {
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b7dff;
    box-shadow: 0 0 14px rgba(139, 125, 255, 0.8);
}

.home-hero h1 {
    max-width: 650px;
    color: #f7f8ff;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 750;
    line-height: 1.03;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.home-hero h1 span {
    color: #c3b8ff;
    background: linear-gradient(100deg, #b7acff 4%, #98e1d2 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 510px;
    margin-top: 1.25rem;
    color: #adb2cb;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.8rem;
}

.home-button {
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.home-button:hover {
    transform: translateY(-2px);
}

.home-button:focus-visible,
.home-login-button:focus-visible {
    outline: 2px solid #c3b8ff;
    outline-offset: 4px;
}

.home-button-primary {
    color: #fff;
    background: linear-gradient(115deg, #7064ef, #8b65ed);
    box-shadow: 0 10px 28px rgba(108, 91, 230, 0.25);
}

.home-button-primary:hover {
    background: linear-gradient(115deg, #8176ff, #9a76fb);
}

.home-button-secondary {
    color: #e3e6f6;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.13);
}

.home-button-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.home-login-button {
    min-height: 46px;
    padding: 0.7rem 0.45rem;
    border: 0;
    background: transparent;
    color: #b9bfd5;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.home-login-button:hover {
    color: #fff;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.35rem;
    color: #9299b6;
    font-size: 0.77rem;
    line-height: 1.5;
}

.note-dot {
    width: 6px;
    height: 6px;
    background: #6de0b4;
    box-shadow: 0 0 12px rgba(109, 224, 180, 0.7);
}

.hero-visual {
    min-width: 0;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    z-index: 1;
}

.visual-glow {
    position: absolute;
    z-index: -1;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114, 88, 243, 0.3), rgba(38, 204, 182, 0.09) 39%, rgba(91, 77, 205, 0) 69%);
    filter: blur(22px);
}

.voxel-scene {
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
}

.voxel {
    position: absolute;
    width: 76px;
    height: 86px;
    filter: drop-shadow(0 15px 18px rgba(0, 0, 0, 0.28));
    animation: voxelDrift 7s ease-in-out infinite;
}

.voxel i {
    position: absolute;
    inset: 0;
}

.voxel-top {
    clip-path: polygon(50% 0, 100% 25%, 50% 50%, 0 25%);
}

.voxel-left {
    clip-path: polygon(0 25%, 50% 50%, 50% 100%, 0 75%);
}

.voxel-right {
    clip-path: polygon(50% 50%, 100% 25%, 100% 75%, 50% 100%);
}

.voxel-grass {
    top: 13%;
    left: 2%;
    transform: scale(0.88);
}

.voxel-grass .voxel-top {
    background: linear-gradient(135deg, #a5e77c, #5bb878);
}

.voxel-grass .voxel-left {
    background: linear-gradient(145deg, #559e67, #376a55);
}

.voxel-grass .voxel-right {
    background: linear-gradient(145deg, #3e805d, #28584e);
}

.voxel-lapis {
    top: 20%;
    right: -1%;
    transform: scale(0.66);
    animation-delay: -2s;
}

.voxel-lapis .voxel-top {
    background: linear-gradient(135deg, #a9d5fc, #638de8);
}

.voxel-lapis .voxel-left {
    background: linear-gradient(145deg, #5276c4, #394d99);
}

.voxel-lapis .voxel-right {
    background: linear-gradient(145deg, #445ca9, #2d3d7c);
}

.voxel-amethyst {
    bottom: 8%;
    left: 9%;
    transform: scale(0.62);
    animation-delay: -4s;
}

.voxel-amethyst .voxel-top {
    background: linear-gradient(135deg, #f0b6ff, #a77bea);
}

.voxel-amethyst .voxel-left {
    background: linear-gradient(145deg, #9d62cd, #6e48a5);
}

.voxel-amethyst .voxel-right {
    background: linear-gradient(145deg, #7f55b7, #563987);
}

.voxel-gold {
    bottom: 8%;
    right: 1%;
    transform: scale(0.48);
    animation-delay: -1s;
}

.voxel-gold .voxel-top {
    background: linear-gradient(135deg, #ffe49b, #efaf57);
}

.voxel-gold .voxel-left {
    background: linear-gradient(145deg, #d89a48, #aa693d);
}

.voxel-gold .voxel-right {
    background: linear-gradient(145deg, #c5803f, #854e38);
}

.voxel-particle {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #c2b9ff;
    box-shadow: 0 0 18px rgba(189, 173, 255, 0.85);
    animation: particlePulse 3.2s ease-in-out infinite;
}

.particle-one {
    top: 10%;
    right: 24%;
}

.particle-two {
    top: 61%;
    left: 2%;
    width: 5px;
    height: 5px;
    background: #82dfca;
    animation-delay: -1s;
}

.particle-three {
    right: 7%;
    bottom: 2%;
    width: 4px;
    height: 4px;
    background: #ffe09d;
    animation-delay: -2s;
}

.studio-card {
    position: relative;
    z-index: 1;
    width: min(100%, 455px);
    overflow: hidden;
    border: 1px solid rgba(207, 202, 255, 0.3);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(28, 30, 57, 0.98), rgba(17, 19, 39, 0.98));
    box-shadow: 0 32px 78px rgba(0, 0, 0, 0.44), 0 0 58px rgba(100, 83, 218, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: rotate(-1.2deg);
}

.studio-topbar {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.window-dots {
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
}

.window-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #625f83;
}

.window-dots span:first-child {
    background: #f2788c;
}

.window-dots span:nth-child(2) {
    background: #edbd68;
}

.window-dots span:nth-child(3) {
    background: #58cba0;
}

.studio-label,
.studio-status,
.prompt-label,
.build-status {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    white-space: nowrap;
}

.studio-label {
    color: #9298b4;
}

.studio-status {
    color: #69d5aa;
}

.studio-body {
    padding: 1.25rem 1.3rem 1.1rem;
}

.preview-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.15rem;
}

.preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(164, 151, 255, 0.33);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(128, 106, 241, 0.3), rgba(128, 106, 241, 0.08));
    color: #c7bdff;
    font-size: 0.9rem;
    font-weight: 800;
}

.preview-heading > div {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.preview-title {
    color: #f3f2ff;
    font-size: 0.98rem;
    font-weight: 700;
}

.preview-subtitle {
    overflow: hidden;
    color: #989db5;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prompt-box {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 2px solid #9a89ff;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.prompt-label {
    color: #a99bff;
}

.prompt-box p {
    margin-top: 0.45rem;
    color: #d3d5e6;
    font-size: 0.78rem;
    line-height: 1.5;
}

.build-list {
    display: grid;
    gap: 0.65rem;
    padding: 1.1rem 0 0.9rem;
}

.build-row {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    color: #c5c9dc;
    font-size: 0.72rem;
}

.build-mark {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 0.57rem;
    font-weight: 800;
}

.build-mark-gameplay {
    color: #a7e87d;
    background: rgba(102, 190, 104, 0.17);
}

.build-mark-rewards {
    color: #82c8f2;
    background: rgba(81, 165, 220, 0.16);
}

.build-mark-setup {
    color: #c5a9ff;
    background: rgba(143, 105, 218, 0.18);
}

.build-status {
    color: #68d1a6;
    font-size: 0.54rem;
}

.preview-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #969bb5;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.preview-progress {
    height: 4px;
    flex: 1;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.preview-progress i {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #7768f1, #68d4b0);
}

.floating-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.68rem 0.8rem;
    border: 1px solid rgba(183, 180, 255, 0.2);
    border-radius: 10px;
    background: rgba(25, 27, 53, 0.96);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.26);
    color: #d0d2e5;
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.chip-platform {
    top: 7%;
    right: -1%;
}

.chip-ai {
    bottom: 7%;
    left: 0;
}

.chip-orb {
    width: 8px;
    height: 8px;
    background: #56d4a3;
    box-shadow: 0 0 12px rgba(86, 212, 163, 0.75);
}

.chip-spark {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #a99bff;
    transform: rotate(45deg);
}

@media (max-width: 1050px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
        gap: 2rem;
        padding: 2.7rem;
    }

    .home-hero h1 {
        font-size: clamp(2.7rem, 5.3vw, 4rem);
    }

    .hero-actions {
        gap: 0.55rem;
    }

    .home-button {
        padding-right: 0.85rem;
        padding-left: 0.85rem;
        font-size: 0.81rem;
    }
}

@media (max-width: 850px) {
    .home-main {
        padding: 2.5rem 1.25rem;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        min-height: 0;
        max-width: 680px;
        padding: 2.7rem 2rem 2.2rem;
    }

    .hero-copy {
        max-width: 600px;
    }

    .home-hero h1 {
        max-width: 620px;
        font-size: clamp(3rem, 8vw, 4.8rem);
    }

    .hero-visual {
        min-height: 365px;
        width: 100%;
    }

    .studio-card {
        width: min(100%, 455px);
        transform: none;
    }

    .chip-platform {
        right: 0;
    }

    .chip-ai {
        left: 0;
    }
}

@media (max-width: 500px) {
    .home-main {
        padding: 1.4rem 0.8rem;
    }

    .home-hero {
        gap: 1.7rem;
        padding: 2rem 1.2rem 1.7rem;
        border-radius: 22px;
    }

    .home-eyebrow {
        gap: 0.55rem;
        font-size: 0.65rem;
        letter-spacing: 0.17em;
    }

    .home-hero h1 {
        font-size: clamp(2.5rem, 11.4vw, 3.8rem);
    }

    .hero-description {
        margin-top: 0.95rem;
        font-size: 0.94rem;
        line-height: 1.65;
    }

    .hero-actions {
        align-items: stretch;
        gap: 0.45rem;
        margin-top: 1.35rem;
    }

    .home-button {
        min-height: 44px;
        padding: 0.7rem 0.72rem;
        font-size: 0.75rem;
    }

    .home-login-button {
        min-height: 42px;
        padding-right: 0.25rem;
        padding-left: 0.25rem;
        font-size: 0.78rem;
    }

    .hero-note {
        align-items: flex-start;
        font-size: 0.7rem;
    }

    .hero-note .note-dot {
        margin-top: 0.35rem;
    }

    .hero-visual {
        min-height: 330px;
    }

    .studio-topbar {
        min-height: 43px;
        gap: 0.4rem;
        padding: 0 0.65rem;
    }

    .studio-label,
    .studio-status {
        font-size: 0.49rem;
        letter-spacing: 0.07em;
    }

    .studio-body {
        padding: 1rem 0.9rem 0.9rem;
    }

    .build-row {
        font-size: 0.67rem;
    }

    .preview-footer {
        font-size: 0.51rem;
    }

    .floating-chip {
        padding: 0.58rem 0.63rem;
        font-size: 0.46rem;
    }

    .chip-platform {
        top: 0;
        right: -0.2rem;
    }

    .chip-ai {
        bottom: 0;
        left: -0.2rem;
    }

    .voxel-grass {
        left: -8%;
    }

    .voxel-lapis {
        right: -8%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-button {
        transition: none;
    }

    .voxel,
    .voxel-particle {
        animation: none;
    }
}

@keyframes voxelDrift {
    0%, 100% {
        margin-top: 0;
    }
    50% {
        margin-top: -9px;
    }
}

@keyframes particlePulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}
