:root {
    --lime: #C6FF33;
    --violet: #7D53EB;
    --dark-bg: #0d0e12;
    --dark-deep: #050507;
    --font-heading: "Montserrat", sans-serif;
    --font-body: "Inter", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    background-color: #ffffff;
    font-family: var(--font-body);
    color: #111;
}

.laptop-section {
    position: relative;
    padding: clamp(48px, calc(4.69vw - 20px), 100px) 20px clamp(90px, calc(10vw - 40px), 220px);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 2500px;
    overflow-x: clip;
    contain: paint;
}

.laptop-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    z-index: 1;
    pointer-events: none;
    animation: laptopPulseGlow 8s infinite alternate;
}

.laptop-bg-glow-violet {
    top: 8%;
    right: 6%;
    width: 34vw;
    height: 34vw;
    background: radial-gradient(circle, rgba(125, 83, 235, 0.16) 0%, transparent 65%);
}

.laptop-bg-glow-lime {
    left: -4%;
    bottom: 10%;
    width: 28vw;
    height: 28vw;
    background: radial-gradient(circle, rgba(198, 255, 51, 0.14) 0%, transparent 68%);
    animation-delay: 1.2s;
}

.laptop-doodle {
    position: absolute;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

.laptop-doodle-1 {
    top: 14%;
    right: 10%;
    width: clamp(100px, 10vw, 150px);
    stroke: var(--violet);
    transform: rotate(-15deg);
}

.laptop-doodle-2 {
    top: 48%;
    left: 6%;
    width: clamp(120px, 13vw, 190px);
    stroke: var(--lime);
    transform: rotate(10deg);
}

.laptop-draw-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: laptopDoodleDraw 4s ease-in-out infinite alternate;
}

.section-top-header,
.laptop-chassis {
    position: relative;
    z-index: 5;
}

@keyframes laptopPulseGlow {
    0% { transform: scale(1); opacity: 0.35; }
    100% { transform: scale(1.08); opacity: 0.5; }
}

@keyframes laptopDoodleDraw {
    0% { stroke-dashoffset: 600; opacity: 0.3; }
    100% { stroke-dashoffset: 0; opacity: 0.8; }
}

.section-top-header {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: clamp(28px, calc(4vw - 25px), 60px);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.laptop-section.is-open .section-top-header {
    opacity: 1;
    transform: translateY(0);
}

.section-top-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, calc(4.53vw - 48px), 4.25rem);
    margin: 0;
    text-transform: uppercase;
    font-weight: 900;
    color: #111;
    line-height: 1;
}

.section-top-header h2 span {
    color: var(--violet);
}

.section-top-header p {
    color: #111;
    margin-top: 15px;
    font-size: clamp(1.1rem, 0.78vw, 1.3rem);
    font-weight: 500;
}

.laptop-chassis {
    width: 100%;
    max-width: min(var(--tc-shell-max), clamp(1080px, 76vw, 1480px));
    aspect-ratio: 16 / 10;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    transform: translateZ(clamp(-200px, -14vw, -100px)) translateY(clamp(50px, 7vw, 100px)) rotateX(20deg);
    transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.laptop-section.is-open .laptop-chassis {
    transform: translateZ(clamp(20px, 4vw, 50px)) translateY(0) rotateX(2deg);
}

.laptop-lid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    transform-origin: bottom center;
    transform-style: preserve-3d;
    transform: rotateX(-95deg);
    transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
    z-index: 3;
}

.laptop-section.is-open .laptop-lid {
    transform: rotateX(-5deg);
}

.lid-back {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #eef3f8 0%, #cdd6e1 32%, #aeb8c6 65%, #8f99a8 100%);
    border-radius: clamp(15px, 2vw, 26px) clamp(15px, 2vw, 26px) 0 0;
    transform: translateZ(-4px) rotateY(180deg);
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.95),
        inset 0 -20px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.lid-back::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 18%, transparent 82%, rgba(0,0,0,0.08) 100%);
    pointer-events: none;
}

.lid-back::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.18) 0%, transparent 10%, transparent 90%, rgba(0,0,0,0.06) 100%);
    pointer-events: none;
}

.lid-back-logo {
    width: clamp(45px, 5.5vw, 78px);
    height: clamp(45px, 5.5vw, 78px);
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.88) 55%, rgba(220,227,236,0.85) 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.95),
        0 0 30px rgba(255,255,255,0.9),
        0 8px 18px rgba(0,0,0,0.08);
    filter: blur(0.4px);
    border: 1px solid rgba(255,255,255,0.7);
}

.lid-front {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
    border-radius: clamp(15px, 2vw, 26px) clamp(15px, 2vw, 26px) 0 0;

    border: clamp(8px, 1vw, 14px) solid #080808;
    border-bottom-width: clamp(24px, 3vw, 42px);
    transform: translateZ(2px);
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.lid-front::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.04),
        inset 0 -18px 40px rgba(0,0,0,0.22);
    pointer-events: none;
    z-index: 2;
}

.screen-topbar {
    height: clamp(18px, 1.4vw, 34px);
    background: linear-gradient(180deg, rgba(8,8,8,0.96) 0%, rgba(18,18,18,0.92) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.camera-dot {
    width: clamp(6px, .45vw, 10px);
    height: clamp(6px, .45vw, 10px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1f2328 0%, #0b0d10 55%, #000 100%);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.08),
        0 0 0 1px rgba(255,255,255,0.04);
    position: relative;
}

.camera-dot::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: rgba(90, 130, 255, 0.22);
}

.screen-inner {
    flex: 1;
    padding: clamp(9px, .7vw, 18px) clamp(14px, 1.35vw, 32px);
    background:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,0.42), transparent 24%),
        radial-gradient(circle at 80% 72%, rgba(125,83,235,0.12), transparent 22%),
        linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    background-blend-mode: screen, normal, normal;
    overflow-y: hidden;
    overflow-x: hidden;
    position: relative;
}

.screen-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), transparent 16%, transparent 84%, rgba(0,0,0,0.06)),
        linear-gradient(90deg, rgba(255,255,255,0.06), transparent 12%, transparent 88%, rgba(0,0,0,0.04));
    pointer-events: none;
}

.screen-inner::-webkit-scrollbar {
    display: none;
}
.screen-inner::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }
.screen-inner::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 10px; }

.laptop-base {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    aspect-ratio: 1400 / 540;
    background:
        linear-gradient(180deg, #f1f5f9 0%, #c8d2dd 16%, #a8b5c5 40%, #8c99ab 100%);
    transform-origin: top center;
    transform: rotateX(86deg);
    border-radius: 0 0 clamp(20px, 3vw, 38px) clamp(20px, 3vw, 38px);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.95),
        inset 0 -10px 20px rgba(0,0,0,0.06);
    border-bottom: clamp(5px, 0.8vw, 10px) solid #7c8ba0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.laptop-base::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.18), transparent 10%, transparent 85%, rgba(0,0,0,0.05)),
        linear-gradient(90deg, rgba(255,255,255,0.14), transparent 10%, transparent 90%, rgba(0,0,0,0.05));
    pointer-events: none;
}

.thumb-groove {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10.7%;
    height: 2.6%;
    background: linear-gradient(180deg, #97a5ba 0%, #d9e2ec 100%);
    border-radius: 0 0 14px 14px;
    box-shadow:
        inset 0 4px 8px rgba(0,0,0,0.22),
        0 1px 0 rgba(255,255,255,0.6);
}

.hinge-bar {
    position: absolute;
    top: 3.3%;
    left: 6%;
    right: 6%;
    height: 3.3%;
    border-radius: 999px;
    background: linear-gradient(180deg, #7f8ca1 0%, #aeb8c6 55%, #5e6a7c 100%);
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.45),
        inset 0 -2px 3px rgba(0,0,0,0.14);
    opacity: 0.95;
}

.speaker {
    position: absolute;
    top: 13.3%;
    width: 7.2%;
    height: 50.4%;
    border-radius: clamp(5px, 0.8vw, 10px);
    background:
        radial-gradient(circle, rgba(18,22,28,0.42) 18%, transparent 19%) 0 0 / 5px 5px,
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.02));
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.18),
        inset 0 -2px 8px rgba(0,0,0,0.08);
    opacity: 0.9;
}

.speaker.left { left: 4.2%; }
.speaker.right { right: 4.2%; }

.keyboard-well {
    width: 78%;
    height: 52.2%;
    margin-top: 9.6%;
    background: linear-gradient(135deg, #a7b4c7, #d7dfe8);
    border-radius: clamp(8px, 1.2vw, 16px);
    box-shadow:
        inset 0 5px 12px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.85),
        0 1px 1px rgba(255,255,255,0.65);
    padding: clamp(4px, 0.7vw, 10px);
    display: flex;
}

.keyboard {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #111317 0%, #090a0d 100%);
    border-radius: clamp(6px, 0.8vw, 12px);
    padding: clamp(4px, 0.6vw, 8px);
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.4vw, 5px);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.04),
        inset 0 -4px 10px rgba(0,0,0,0.55);
}

.kb-row {
    display: flex;
    gap: clamp(2px, 0.4vw, 5px);
    width: 100%;
    flex: 1;
}

.kb-key {
    flex: 1;
    min-width: 0;
    background: linear-gradient(180deg, #2b2f36 0%, #13161b 100%);
    border-radius: clamp(3px, 0.5vw, 6px);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.75),
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -1px 1px rgba(0,0,0,0.45);
    position: relative;
    overflow: hidden;
}

.kb-key::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto 1px;
    height: 38%;
    border-radius: clamp(2px, 0.4vw, 5px);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

.kb-key::after {
    content: attr(data-key);
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size:clamp(4px, 0.312vw, 8px);
    line-height: 1;
    font-weight: 700;
    color: rgba(255,255,255,0.76);
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-transform: none;
}

.kb-key.w-125 { flex: 1.25; }
.kb-key.w-150 { flex: 1.5; }
.kb-key.w-175 { flex: 1.75; }
.kb-key.w-200 { flex: 2; }
.kb-key.w-225 { flex: 2.25; }
.kb-key.w-275 { flex: 2.75; }
.kb-key.w-625 { flex: 6.25; }

.kb-key.blank::after {
    content: "";
}

.trackpad {
    width: 40%;
    height: 31.5%;
    margin-top: 4%;
    background: linear-gradient(180deg, #0b0d11 0%, #1a1d23 100%);
    border-radius: clamp(8px, 1vw, 15px);
    box-shadow:
        inset 0 5px 14px rgba(0,0,0,0.8),
        inset 0 -2px 4px rgba(255,255,255,0.03),
        0 1px 0 rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.03);
    position: relative;
}

.trackpad::before {
    content: "";
    position: absolute;
    inset: clamp(5px, 0.8vw, 10px);
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.025),
        inset 0 18px 24px rgba(255,255,255,0.015),
        inset 0 -22px 30px rgba(0,0,0,0.45);
}

.trackpad::after {
    content: "";
    position: absolute;
    top: 14%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 1.35vw, 28px);
    width: 100%;
    position: relative;
    z-index: 2;
}

.card-wrapper {
    position: relative;
    cursor: pointer;
    margin-top: clamp(10px, 1vw, 20px);
    margin-left: 0;
    min-width: 0;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.6s ease;
}

.card-wrapper.in-view {
    opacity: 1;
    transform: translateY(0);
}

.corner-image {
    position: absolute;
    top: 2px;
    left: 2px;
    width: clamp(92px, 7vw, 150px);
    height: clamp(118px, 9vw, 190px);
    border-radius: 16px;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.corner-image::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 2;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.corner-image-label {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 3;
    font-family: var(--font-heading);
    font-size:clamp(0.6rem, 0.5vw, 0.8rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.corner-image-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.corner-image-slide.is-active {
    opacity: 1;
}

.corner-image-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.card-wrapper:hover .corner-image {
    transform: translate(-18px, -30px) rotate(-5deg);
}

.spotlight-card {
    background-color: rgba(10, 10, 15, 0.95);
    border-radius: 20px;
    position: relative;
    height: clamp(210px, 13vw, 320px);
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
    clip-path: polygon(clamp(100px, 10vw, 130px) 0, 100% 0, 100% 100%, 0 100%, 0 clamp(100px, 10vw, 130px));
}

.card-wrapper:hover .spotlight-card::before,
.card-wrapper:hover .spotlight-card::after {
    opacity: 1;
}

.spotlight-card::before,
.spotlight-card::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.spotlight-card::before {
    inset: -2px;
    z-index: 1;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glow-color, var(--lime)), transparent 40%);
}

.spotlight-card::after {
    inset: 2px;
    z-index: 2;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--bg-glow-color, rgba(198, 255, 51, 0.08)), transparent 40%);
}

.spotlight-card-content {
    position: absolute;
    inset: 2px;
    background-color: var(--dark-bg);
    border-radius: 18px;
    z-index: 3;
    padding: clamp(16px, 1.35vw, 30px) clamp(14px, 1.1vw, 25px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    clip-path: polygon(clamp(98px, 9.8vw, 128px) 0, 100% 0, 100% 100%, 0 100%, 0 clamp(98px, 9.8vw, 128px));
}

.card-icon-wrap {
    width: clamp(34px, 2.2vw, 50px);
    height: clamp(34px, 2.2vw, 50px);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:clamp(16px, 0.781vw, 20px);
    color: var(--glow-color);
    transition: transform 0.3s ease;
    margin-bottom: clamp(10px, 1.5vw, 20px);
    align-self: flex-end;
}

.card-wrapper:hover .card-icon-wrap {
    transform: scale(1.1) translateY(-5px);
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size:clamp(1.1rem, 0.812vw, 1.3rem);
    margin: 0 0 8px;
    color: #fff;
}

.card-info p {
    color: #ffffff;
    font-size:clamp(0.75rem, 0.562vw, 0.9rem);
    line-height: 1.6;
    margin: 0 0 15px;
}

.card-copy--mobile {
    display: none;
}

.card-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    gap: 8px;
    color: var(--lime);
    border: 1px solid var(--lime);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    font-size:clamp(0.75rem, 0.531vw, 0.85rem);
    line-height: 1;
    text-transform: uppercase;
    opacity: 1;
    transition: gap 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto;
}

.card-wrapper:hover .card-explore {
    gap: 12px;
    background: rgba(198, 255, 51, 0.08);
    transform: translateY(-1px);
}

.color-lime { --glow-color: var(--lime); --bg-glow-color: rgba(198, 255, 51, 0.08); }
.color-violet { --glow-color: var(--violet); --bg-glow-color: rgba(125, 83, 235, 0.1); }

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-window {
    width: 100%;
    max-width: 1100px;
    height: 640px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    display: flex;
    position: relative;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s;
    box-shadow: 0 40px 100px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-window { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 50;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--lime);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #0b0c0f;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(198, 255, 51, 0.28);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.modal-close:hover {
    background: #d7ff5b;
    color: #0b0c0f;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 14px 30px rgba(198, 255, 51, 0.38);
}

.modal-left {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-left h2 {
    font-family: var(--font-heading);
    font-size:clamp(2.1rem, 1.75vw, 2.8rem);
    margin: 0 0 20px;
    line-height: 1.1;
    color: #111;
}

.modal-left p {
    color: #555;
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 34px;
}

.modal-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
}

.modal-btn-primary {
    background: var(--lime);
    color: #000;
}

.modal-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(198,255,51,0.4);
}

.modal-btn-secondary {
    background: #111318;
    color: #fff;
}

.modal-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(17,19,24,0.15);
}

.modal-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f3f4f7;
}

.modal-gallery {
    position: absolute;
    inset: 0;
}

.modal-gallery-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.9s ease, transform 1.2s ease;
}

.modal-gallery-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.modal-gallery-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


@media (min-width: 1025px) and (max-width: 2199px) {
    .laptop-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .laptop-chassis {
        width: min(96vw, 1480px);
        max-width: min(var(--tc-shell-max), 1480px);
    }

    .screen-inner {
        padding: clamp(12px, 0.8vw, 18px) clamp(16px, 1.1vw, 24px);
    }

    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(18px, 1.2vw, 26px);
    }

    .card-wrapper {
        margin-top: clamp(8px, 0.55vw, 12px);
        margin-left: 0;
    }

    .corner-image {
        width: clamp(82px, 5.4vw, 116px);
        height: clamp(105px, 6.9vw, 148px);
        border-radius: 14px;
    }

    .corner-image-label {
        top: clamp(12px, 0.75vw, 16px);
        left: clamp(11px, 0.7vw, 15px);
        font-size: clamp(0.56rem, 0.43vw, 0.7rem);
    }

    .spotlight-card {
        height: clamp(236px, 14vw, 286px);
        border-radius: 18px;
        clip-path: polygon(clamp(68px, 5.2vw, 90px) 0, 100% 0, 100% 100%, 0 100%, 0 clamp(68px, 5.2vw, 90px));
    }

    .spotlight-card-content {
        border-radius: 16px;
        clip-path: polygon(clamp(66px, 5vw, 88px) 0, 100% 0, 100% 100%, 0 100%, 0 clamp(66px, 5vw, 88px));
        padding: clamp(14px, 0.95vw, 20px) clamp(15px, 1vw, 21px);
    }

    .card-icon-wrap {
        width: clamp(34px, 2.2vw, 44px);
        height: clamp(34px, 2.2vw, 44px);
        border-radius: 10px;
        font-size: clamp(15px, 0.9vw, 18px);
        margin-bottom: clamp(8px, 0.65vw, 12px);
    }

    .card-info {
        min-width: 0;
        padding-left: 2px;
    }

    .card-info h3 {
        font-size: clamp(1.12rem, 1vw, 1.34rem);
        line-height: 1.12;
        margin-bottom: 8px;
    }

    .card-info p {
        font-size: clamp(0.84rem, 0.73vw, 0.98rem);
        line-height: 1.44;
        margin-bottom: 12px;
    }

    .card-explore {
        font-size: clamp(0.72rem, 0.58vw, 0.84rem);
        gap: 6px;
        padding: 7px 11px;
    }
}

@media (min-width: 1025px) and (max-width: 1600px) {
    .laptop-chassis {
        width: min(97vw, 1240px);
        max-width: min(var(--tc-shell-max), 1240px);
    }

    .screen-inner {
        padding: 11px 14px;
    }

    .cards-grid {
        gap: 18px;
    }

    .card-wrapper {
        margin-top: 7px;
    }

    .corner-image {
        width: 78px;
        height: 100px;
        border-radius: 12px;
    }

    .corner-image-label {
        top: 11px;
        left: 10px;
        font-size: 0.54rem;
    }

    .spotlight-card {
        height: 232px;
        border-radius: 16px;
        clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%, 0 64px);
    }

    .spotlight-card-content {
        border-radius: 14px;
        clip-path: polygon(62px 0, 100% 0, 100% 100%, 0 100%, 0 62px);
        padding: 13px 15px;
    }

    .card-icon-wrap {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .card-info h3 {
        font-size: 1.12rem;
        line-height: 1.12;
        margin-bottom: 7px;
    }

    .card-info p {
        font-size: 0.84rem;
        line-height: 1.42;
        margin-bottom: 10px;
    }

    .card-explore {
        font-size: 0.72rem;
        gap: 5px;
        padding: 7px 10px;
    }
}

@media (max-width: 1024px) {
    .laptop-section {
        padding: 40px 18px 100px;
        overflow: hidden;
    }

    .laptop-chassis {
        transform: rotateX(0deg);
        width: 100%;
        max-width: 920px;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .laptop-base {
        display: none;
    }

    .laptop-lid {
        transform: rotateX(0deg) !important;
        position: relative;
        height: auto;
        border-radius: 0;
        border-width: 0;
    }

    .lid-front {
        position: relative;
        inset: auto;
        height: auto;
        min-height: 0;
        border-radius: 24px;
        border: 10px solid #080808;
        border-bottom-width: 18px;
        overflow: hidden;
    }

    .screen-inner {
        flex: none;
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 24px;
    }

    .screen-inner::-webkit-scrollbar {
        display: none;
    }

    .lid-back {
        display: none;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

    .card-wrapper {
        margin-top: 18px;
        margin-left: 0;
        min-width: 0;
    }

    .corner-image {
        width: 92px;
        height: 118px;
    }

    .spotlight-card {
        height: 260px;
        clip-path: polygon(84px 0, 100% 0, 100% 100%, 0 100%, 0 84px);
    }

    .spotlight-card-content {
        clip-path: polygon(82px 0, 100% 0, 100% 100%, 0 100%, 0 82px);
        padding: 20px 16px;
    }

    .modal-overlay {
        padding: 14px;
    }

    .modal-window {
        flex-direction: column-reverse;
        width: min(100%, 680px);
        height: min(88dvh, 720px);
        max-height: 88dvh;
        border-radius: 24px;
        overflow: hidden;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .modal-right {
        height: clamp(180px, 30vh, 240px);
        min-height: 180px;
        flex: 0 0 auto;
    }

    .modal-left {
        min-height: 0;
        padding: 24px 24px 22px;
        justify-content: flex-start;
        overflow: hidden;
    }

    .modal-left h2 {
        font-size: clamp(1.5rem, 4.5vw, 2rem);
        line-height: 1.08;
        margin-bottom: 10px;
    }

    .modal-left p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .modal-actions {
        gap: 9px;
    }

    .modal-btn {
        padding: 12px 16px;
        font-size: 0.74rem;
    }
}

@media (max-width: 768px) {
    .card-copy--desktop {
        display: none;
    }

    .card-copy--mobile {
        display: inline;
    }

    .laptop-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section-top-header {
        margin-bottom: 28px;
        padding: 0 8px;
    }

    .laptop-chassis {
        width: 100%;
        max-width: 100%;
    }

    .lid-front {
        border-width: 8px;
        border-bottom-width: 14px;
        border-radius: 20px;
    }

    .screen-inner {
        padding: 18px 12px 20px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 10px;
    }

    .card-wrapper {
        margin-top: 14px;
        margin-left: 0;
    }

    .corner-image {
        width: 72px;
        height: 94px;
        border-radius: 12px;
    }

    .corner-image-label {
        top: 14px;
        left: 12px;
        font-size: 0.52rem;
    }

    .spotlight-card {
        height: 224px;
        border-radius: 16px;
        clip-path: polygon(66px 0, 100% 0, 100% 100%, 0 100%, 0 66px);
    }

    .spotlight-card-content {
        border-radius: 14px;
        clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%, 0 64px);
        padding: 16px 11px 14px;
    }

    .card-icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .card-info h3 {
        font-size: 0.95rem;
        line-height: 1.15;
        margin-bottom: 7px;
    }

    .card-info p {
        font-size: 0.68rem;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .card-explore {
        font-size: 0.66rem;
        gap: 6px;
    }

    .modal-overlay {
        padding: 10px;
    }

    .modal-window {
        height: min(90dvh, 650px);
        max-height: 90dvh;
        border-radius: 20px;
        overflow: hidden;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .modal-right {
        height: 180px;
        min-height: 180px;
    }

    .modal-left {
        padding: 20px 18px 18px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .modal-left h2 {
        font-size: 1.62rem;
        line-height: 1.08;
        margin-bottom: 11px;
        flex: 0 0 auto;
    }

    .modal-left p {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 16px;
        flex: 1 1 auto;
        min-height: 0;
        overflow: visible;
    }

    .modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: auto;
        flex: 0 0 auto;
        padding-top: 2px;
    }

    .modal-btn {
        width: 100%;
        min-height: 44px;
        padding: 10px 8px;
        font-size: 0.64rem;
        line-height: 1.15;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .laptop-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .screen-inner {
        padding-left: 9px;
        padding-right: 9px;
    }

    .cards-grid {
        gap: 16px 8px;
    }

    .spotlight-card {
        height: 218px;
    }

    .spotlight-card-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card-info h3 {
        font-size: 0.9rem;
    }

    .card-info p {
        font-size: 0.65rem;
    }
}
