.banner,
.hero-copy h1,
.hero-warning,
.hero-about-block,
.hero-social-block,
.hero-panel,
.copyright {
    animation: home-quick-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.banner {
    animation-delay: 0.02s;
}

.hero-copy h1 {
    animation-delay: 0.05s;
}

.hero-warning {
    animation-delay: 0.09s;
}

.hero-about-block {
    animation-delay: 0.13s;
}

.hero-social-block {
    animation-delay: 0.16s;
}

.hero-panel:nth-child(1) {
    animation-delay: 0.11s;
}

.hero-panel:nth-child(2) {
    animation-delay: 0.15s;
}

.copyright {
    animation-delay: 0.18s;
}

@keyframes home-quick-pop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    70% {
        opacity: 1;
        transform: translateY(-2px) scale(1.006);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-main {
    width: min(100%, 1220px);
    margin: 1.25rem auto 4rem;
    padding: 0 1.5rem;
    box-sizing: border-box;
    text-align: left;
}

.hero-shell.acrylic-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.95fr);
    gap: clamp(1.4rem, 4vw, 2.6rem);
    max-width: none;
    padding: clamp(1.6rem, 3vw, 2.7rem);
    margin: 0;
    border-radius: 32px;
    overflow: hidden;
    transform: perspective(1400px) rotateX(1.5deg) translateZ(0);
}

.hero-shell::before,
.hero-shell::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-shell::before {
    width: 420px;
    height: 420px;
    top: -210px;
    left: -140px;
    background: radial-gradient(circle, rgba(118, 184, 255, 0.22), rgba(118, 184, 255, 0) 68%);
}

.hero-shell::after {
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -110px;
    background: radial-gradient(circle, rgba(65, 152, 255, 0.14), rgba(65, 152, 255, 0) 72%);
}

.hero-copy,
.hero-panels {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-copy h1 {
    margin: 0;
    max-width: 100%;
    width: 100%;
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 0.98;
    text-align: center;
}

.hero-warning {
    margin: 2.8rem 0 0;
    padding: 0.9rem 1rem;
    max-width: 60ch;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(120, 120, 120, 0.12);
    color: var(--text-color);
    font-size: 0.98rem;
    line-height: 1.55;
}

.hero-about-block {
    width: 100%;
    margin-top: 1.45rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(120, 120, 120, 0.12);
}

.hero-about-label {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

.hero-shell p,
.hero-description,
.hero-panel-summary {
    margin: 0;
    text-shadow: none;
}

.hero-copy .hero-warning {
    margin-top: 2.8rem;
}

.hero-description {
    max-width: 62ch;
    color: var(--text-color);
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    text-shadow: none;
}

.hero-social-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 1.55rem;
}

.hero-social-label {
    font-size: 0.92rem;
    opacity: 0.72;
}

.hero-social-block .dynamic-island {
    margin: 0;
    background: rgba(255, 255, 255, 0.18);
}

.hero-panels {
    display: grid;
    grid-template-rows: minmax(250px, 1fr) minmax(200px, 0.9fr);
    gap: 1rem;
}

.hero-panel {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 220px;
    padding: 1.45rem;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(120, 120, 120, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(245, 248, 252, 0.52)),
        rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.64),
        0 18px 34px rgba(0, 0, 0, 0.08);
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hero-panel:hover,
.hero-panel:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 24px 42px rgba(0, 0, 0, 0.12);
    outline: none;
}

.hero-panel-arrow {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    top: auto;
    width: 3.1rem;
    height: 3.1rem;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 10px 18px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1.32rem;
    line-height: 1;
    transform: translate3d(0, 0, 0);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hero-panel:hover .hero-panel-arrow,
.hero-panel:focus-visible .hero-panel-arrow {
    transform: translate3d(4px, -4px, 0) scale(1.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.12)),
        rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 14px 24px rgba(0, 0, 0, 0.12);
}

.hero-panel-body {
    position: relative;
    z-index: 1;
    max-width: 18rem;
}

.hero-panel-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
}

.hero-panel-title {
    margin: 0 0 0.4rem;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.04;
    color: var(--text-color);
    text-shadow: none;
}

.hero-panel-summary {
    color: var(--text-color);
    font-size: 0.96rem;
    line-height: 1.6;
    text-shadow: none;
    opacity: 0.84;
}

.hero-panel-visual {
    position: absolute;
    top: 1.1rem;
    right: 1.2rem;
    pointer-events: none;
}

.hero-panel-visual-apps {
    width: 118px;
    height: 118px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(220, 230, 243, 0.38)),
        rgba(255, 255, 255, 0.44);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 14px 28px rgba(0, 0, 0, 0.12);
    transform: rotate(-8deg);
}

.hero-grid-tile {
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(38, 146, 255, 0.95), rgba(12, 88, 207, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 6px 10px rgba(12, 88, 207, 0.16);
}

.hero-grid-tile:nth-child(2),
.hero-grid-tile:nth-child(5) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(215, 229, 247, 0.88));
}

.hero-panel-visual-portfolio {
    width: 122px;
    height: 108px;
}

.hero-sheet,
.hero-case-body,
.hero-case-handle {
    position: absolute;
    display: block;
}

.hero-sheet {
    width: 62px;
    height: 82px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(226, 232, 241, 0.92));
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.hero-sheet-back {
    top: 4px;
    right: 16px;
    transform: rotate(14deg);
}

.hero-sheet-mid {
    top: 10px;
    right: 32px;
    transform: rotate(-10deg);
}

.hero-case-body {
    right: 12px;
    bottom: 4px;
    width: 82px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(50, 50, 58, 0.96), rgba(22, 22, 28, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 24px rgba(0, 0, 0, 0.16);
}

.hero-case-handle {
    right: 38px;
    bottom: 50px;
    width: 30px;
    height: 16px;
    border: 4px solid rgba(46, 46, 54, 0.95);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
}

[data-theme="dark"] .hero-warning,
[data-theme="dark"] .hero-panel,
[data-theme="dark"] .hero-panel-arrow {
    border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .hero-warning {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-about-block {
    border-top-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .hero-shell::before {
    background: radial-gradient(circle, rgba(73, 132, 255, 0.24), rgba(73, 132, 255, 0) 68%);
}

[data-theme="dark"] .hero-shell::after {
    background: radial-gradient(circle, rgba(31, 149, 255, 0.2), rgba(31, 149, 255, 0) 72%);
}

[data-theme="dark"] .hero-social-block .dynamic-island {
    background: rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .hero-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 18px 36px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .hero-panel:hover,
[data-theme="dark"] .hero-panel:focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 22px 44px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .hero-panel-arrow {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
        rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hero-panel:hover .hero-panel-arrow,
[data-theme="dark"] .hero-panel:focus-visible .hero-panel-arrow {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.26);
}

[data-theme="dark"] .hero-panel-visual-apps {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hero-grid-tile:nth-child(2),
[data-theme="dark"] .hero-grid-tile:nth-child(5) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(198, 214, 235, 0.78));
}

@media (max-width: 980px) {
    .hero-shell.acrylic-card {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 12ch;
    }

    .hero-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .hero-panel {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .home-main {
        margin-top: 1rem;
        padding: 0 1rem 2.5rem;
    }

    .hero-shell.acrylic-card {
        padding: 1.2rem;
        border-radius: 26px;
        transform: none;
    }

    .hero-copy h1 {
        max-width: none;
        font-size: clamp(2.6rem, 10vw, 3.6rem);
    }

    .hero-warning,
    .hero-description {
        font-size: 0.95rem;
    }

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

    .hero-panel {
        min-height: 210px;
        padding: 1.25rem;
    }

    .hero-panel-arrow {
        right: 0.9rem;
        bottom: 0.9rem;
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.18rem;
    }

    .hero-panel-title {
        font-size: 1.7rem;
    }

    .hero-panel-visual {
        transform: scale(0.88);
        transform-origin: top right;
    }
}

@media (max-width: 480px) {
    .hero-shell.acrylic-card {
        padding: 1rem;
    }

    .hero-warning {
        width: 100%;
        box-sizing: border-box;
    }

    .hero-panel {
        min-height: 190px;
        padding: 1.1rem;
    }

    .hero-panel-title {
        font-size: 1.52rem;
    }

    .hero-panel-summary {
        max-width: 14rem;
        font-size: 0.9rem;
    }

    .hero-panel-visual {
        top: 0.8rem;
        right: 0.7rem;
        transform: scale(0.72);
    }

    .hero-social-block {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banner,
    .hero-copy h1,
    .hero-warning,
    .hero-about-block,
    .hero-social-block,
    .hero-panel,
    .copyright {
        animation: none;
    }
}
