/* Features Section */
.features {
    max-width: 80rem;
    margin: 0 auto 4rem auto;
    padding: 0 1rem;
}

.features-content {
    text-align: center;
}

.features-header {
    margin-bottom: 3rem;
}

.features-title {
    font-size: 2rem;
    font-weight: 600;
    color: #eee;
    margin-bottom: 1rem;
    font-family: 'Merriweather Variable';
}

.rebel-word {
    background-color: #DA614C;
    color: white;
    transform: rotate(-2deg);
    display: inline-block;
    padding: 0em 0.3em;
}

.features-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 3rem;
}

.feature-outer-container {
    padding: 10px;
    background-color: #333333dd;
    border-radius: 17px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
}

.feature-container {
    border-radius: 10px;
    overflow: hidden;
}

.features-grid-row-1,
.features-grid-row-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.feature-container div:last-child {
    margin-bottom: 0;
}

.features-grid-row-2 {
    grid-template-columns: 1fr 2fr;
}

.feature-item {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 10;
}

.feature-description {
    color: #ddd;
    line-height: 1.6;
    font-size: 0.9rem;
    max-width: 400px;
    position: relative;
    z-index: 12;
}

/* Feature Preview Deployment Styles */
.feature-preview {
    grid-column: 1 / -1;
    min-height: 200px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Before/After Slider Styles */
.feature-preview-markdown-slider {
    position: absolute;
    right: 50px;
    top: -50px;
    width: 400px;
    height: 250px;
    overflow: visible;
    user-select: none;
    border: 1px solid #444;
    border-radius: 10px;
    transform: rotate(3deg) skew(30deg, -20deg) scale(0.8) translate(0, 50px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.feature-preview-markdown-shadow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, #222 0%, #222 20%, transparent 80%, transparent 100%);
    pointer-events: none;
    z-index: 5;
    border-radius: 10px;
}


.feature-preview-markdown {
    padding: 10px;
    border-radius: 10px;
}

.feature-preview-markdown-tiles {
    position: absolute;
    top: -200px;
    right: -215px;
    height: 500px;
    width: 500px;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, #333 1px, transparent 1px), linear-gradient(to bottom, #333 1px, transparent 1px);
    transform: rotate(3deg) skew(30deg, -20deg) scale(0.8) translate(0, 50px);
}

.feature-preview-markdown-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    user-select: none;
    cursor: default;
    max-width: 300px;
    overflow-x: hidden;
}

.feature-preview-markdown-files::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, #222 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.feature-preview-markdown-files::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #222, transparent);
    pointer-events: none;
    z-index: 1;
}

.feature-preview-markdown-files div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ddd;
    font-size: 0.9rem;
}

.feature-preview-markdown-files img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.feature-preview-view p span.blur {
    filter: blur(4px);
    background-color: #444;
    border-radius: 4px;
    padding: 0 4px;
}
.feature-preview-view p a.link {
    color: #DA614C;
    text-decoration: none;
    user-select: none;
    cursor: default;
}

.feature-preview-code {
    border-radius: 10px;
    padding: 5px;
    background-color: #1e1e1e;
    color: #eee;
}
.feature-preview-code-editable {
    border-radius: 5px;
    border: 1px solid #444;
    padding: 10px 20px;
    background-color: #272727;
    color: #eee;
    height: 100%;
    box-sizing: border-box;
}

.slider-before,
.slider-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    background-color: #2d2d2d;
    border-radius: 10px;
}

.slider-before {
    z-index: 1;
}

.slider-before pre {
    margin: 0;
    color: #fff;
    font-family: 'iA Writer Quattro', monospace;
    font-size: 1.1rem;
    line-height: 1.5rem;
}

.slider-after {
    clip-path: inset(0 0 0 50%);
    z-index: 2;
    background-color: #2d2d2d;
    animation: sliderClip 2s ease-in-out infinite;
    color: #fff;
    padding: 20px;
}

.slider-after h1 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.slider-after p {
    margin: 0 0 0.75rem 0;
    color: #ddd;
}

.slider-after ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slider-after li {
    display: flex;
    align-items: flex-start;
    margin: 4px 0;
    padding: 2px 0;
    position: relative;
    color: #ddd;
}

.slider-after li input[type="checkbox"] {
    margin-right: 8px;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
    background-color: transparent;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    position: relative;
    outline: none;
    user-select: none;
    cursor: default;
    transition: box-shadow 0.2s, background 0.13s, border-color 0.13s;
    margin-top: 2px;
    margin-bottom: 0;
    vertical-align: top;
    display: inline-block;
    padding: 0;
    box-shadow: none;
}

.slider-after li input[type="checkbox"]:checked {
    background: #DA614C;
    border-color: #DA614C;
}

.slider-after li input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(50% - 1px);
    width: 7px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(-45deg);
    display: block;
}

.slider-after li:has(input:checked) {
    text-decoration: line-through !important;
    color: #aaa !important;
}

.slider-handle {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: calc(100% + 40px);
    z-index: 3;
    pointer-events: none;
    animation: sliderMove 2s ease-in-out infinite;
}

.feature-preview-markdown-slider.paused .slider-handle {
    animation-play-state: paused;
}

.feature-preview-markdown-slider.paused .slider-after {
    animation-play-state: paused;
}

@keyframes sliderMove {
    0%, 25% {
        left: 0%;
    }
    50%, 75% {
        left: 100%;
    }
    100% {
        left: 0%;
    }
}

@keyframes sliderClip {
    0%, 25% {
        clip-path: inset(0 0 0 0%);
    }
    50%, 75% {
        clip-path: inset(0 0 0 100%);
    }
    100% {
        clip-path: inset(0 0 0 0%);
    }
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: #DA614C;
    box-shadow: 0 0 20px rgba(218, 97, 76, 0.2),
                0 0 40px rgba(218, 97, 76, 0.1);
    border-radius: 2px;
}


.feature-preview-deployment {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    position: relative;
    height: 100%;
}

.deployment-bar {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    background-color: #2d2d2d;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    position: relative;
}

/* Fade away effect for deployment bars - stacked with overlap */
.deployment-bar:nth-child(1) {
    transform: scale(0.85) translateY(0);
    filter: blur(2px);
    opacity: 0.4;
    margin-bottom: -30px;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    transition: transform 200ms ease 100ms;
}

.deployment-bar:nth-child(2) {
    transform: scale(0.92) translateY(0);
    filter: blur(1px);
    opacity: 0.6;
    margin-bottom: -30px;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    transition: transform 200ms ease 50ms;
}

.deployment-bar:nth-child(3) {
    z-index: 3;
    cursor: normal;
    user-select: none;
}

.deployment-bar:nth-child(3):hover {
    background-color: #252525;
    border-color: #444;
    transform: translateY(-3px);
    transition: all 200ms ease;
    border: 1px solid #DA614C;
}

.deployment-icon {
    width: 36px;
    height: 36px;
    background-color: #0cb16a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.deployment-bar:nth-child(3) .deployment-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: #0cb16a;
    border: 2px solid #ddd;
    border-color: #39eb9e transparent transparent transparent;
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.feature-preview-deployment:has(.deployment-bar:nth-child(3):hover) .deployment-bar:nth-child(1) {
    transform: scale(0.85) translateY(-8px);
    transition: transform 200ms ease 100ms;
}

.feature-preview-deployment:has(.deployment-bar:nth-child(3):hover) .deployment-bar:nth-child(2) {
    transform: scale(0.92) translateY(-8px);
    transition: transform 200ms ease 50ms;
}

.deployment-bar:nth-child(1) .deployment-icon,
.deployment-bar:nth-child(2) .deployment-icon {
    background-color: #3b82f6;
}

.deployment-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.deployment-text {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
}

.deployment-time {
    color: #9ca3af;
    font-size: 0.6rem;
    text-align: right;
}

/* Feature Preview Papers (No Database) */
.feature-preview-papers {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    position: relative;
    padding: 40px 0 10px 10px;
}

.paper-layer {
    width: 120px;
    height: 140px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 8px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.paper-icon {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 60px;
    user-select: none;
}

.paper-icon div {
    height: 15px;
    background-color: #666;
    border-radius: 2px;
}

.paper-icon div:nth-child(1) {
    width: 100%;
}

.paper-icon div:nth-child(2) {
    width: 80%;
}

.paper-icon div:nth-child(3) {
    width: 90%;
}

/* Paper 1 animations - shrink and grow back */
.paper-layer-1 .paper-icon div:nth-child(1) {
    animation: lineAnimate1Paper1 7s ease infinite;
}

.paper-layer-1 .paper-icon div:nth-child(2) {
    animation: lineAnimate2Paper1 7s ease infinite;
}

.paper-layer-1 .paper-icon div:nth-child(3) {
    animation: lineAnimate3Paper1 7s ease infinite;
}

/* Paper 2 animations - expand then shrink */
.paper-layer-2 .paper-icon div:nth-child(1) {
    animation: lineAnimate1Paper2 7s ease infinite;
}

.paper-layer-2 .paper-icon div:nth-child(2) {
    animation: lineAnimate2Paper2 7s ease infinite;
}

.paper-layer-2 .paper-icon div:nth-child(3) {
    animation: lineAnimate3Paper2 7s ease infinite;
}

/* Paper 3 animations - simple shrink and grow */
.paper-layer-3 .paper-icon div:nth-child(1) {
    animation: lineAnimate1Paper3 7s ease infinite;
}

.paper-layer-3 .paper-icon div:nth-child(2) {
    animation: lineAnimate2Paper3 7s ease infinite;
}

.paper-layer-3 .paper-icon div:nth-child(3) {
    animation: lineAnimate3Paper3 7s ease infinite;
}

/* Keyframes for Paper 1 - animate during transition, stay visible */
@keyframes lineAnimate1Paper1 {
    0% { width: 100%; }
    3.5% { width: 60%; }
    7% { width: 100%; }
    50% { width: 100%; }
    53.5% { width: 60%; }
    57% { width: 100%; }
    100% { width: 100%; }
}

@keyframes lineAnimate2Paper1 {
    0% { width: 80%; }
    3.5% { width: 50%; }
    7% { width: 80%; }
    50% { width: 80%; }
    53.5% { width: 50%; }
    57% { width: 80%; }
    100% { width: 80%; }
}

@keyframes lineAnimate3Paper1 {
    0% { width: 90%; }
    3.5% { width: 55%; }
    7% { width: 90%; }
    50% { width: 90%; }
    53.5% { width: 55%; }
    57% { width: 90%; }
    100% { width: 90%; }
}

/* Keyframes for Paper 2 - expand during transition, stay visible */
@keyframes lineAnimate1Paper2 {
    0% { width: 100%; }
    7% { width: 100%; }
    50% { width: 100%; }
    57% { width: 100%; }
    100% { width: 100%; }
}

@keyframes lineAnimate2Paper2 {
    0% { width: 80%; }
    3.5% { width: 100%; }
    7% { width: 80%; }
    50% { width: 80%; }
    53.5% { width: 100%; }
    57% { width: 80%; }
    100% { width: 80%; }
}

@keyframes lineAnimate3Paper2 {
    0% { width: 90%; }
    3.5% { width: 100%; }
    7% { width: 90%; }
    50% { width: 90%; }
    53.5% { width: 100%; }
    57% { width: 90%; }
    100% { width: 90%; }
}

/* Keyframes for Paper 3 - animate during transition, stay visible */
@keyframes lineAnimate1Paper3 {
    0% { width: 100%; }
    3.5% { width: 70%; }
    7% { width: 100%; }
    50% { width: 100%; }
    53.5% { width: 70%; }
    57% { width: 100%; }
    100% { width: 100%; }
}

@keyframes lineAnimate2Paper3 {
    0% { width: 80%; }
    3.5% { width: 60%; }
    7% { width: 80%; }
    50% { width: 80%; }
    53.5% { width: 60%; }
    57% { width: 80%; }
    100% { width: 80%; }
}

@keyframes lineAnimate3Paper3 {
    0% { width: 90%; }
    3.5% { width: 65%; }
    7% { width: 90%; }
    50% { width: 90%; }
    53.5% { width: 65%; }
    57% { width: 90%; }
    100% { width: 90%; }
}

.paper-layer-1 {
    z-index: 1;
    animation: paperMove1 7s ease-in-out infinite;
}

.paper-layer-2 {
    z-index: 2;
    animation: paperMove2 7s ease-in-out infinite;
}

.paper-layer-3 {
    z-index: 3;
    animation: paperMove3 7s ease-in-out infinite;
}

@keyframes paperMove1 {
    0% {
        transform: translateX(0px) translateY(0px) rotate(-4deg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    7% {
        transform: translateX(0px) translateY(0px) rotate(-4deg);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
    }
    7%, 50% {
        transform: translateX(0px) translateY(0px) rotate(-4deg);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
    }
    57%, 100% {
        transform: translateX(0px) translateY(0px) rotate(-4deg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

@keyframes paperMove2 {
    0% {
        transform: translateX(0px) translateY(-8px) rotate(2deg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    7% {
        transform: translateX(60px) translateY(-8px) rotate(2deg);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
    }
    7%, 50% {
        transform: translateX(60px) translateY(-8px) rotate(2deg);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
    }
    57%, 100% {
        transform: translateX(0px) translateY(-8px) rotate(2deg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

@keyframes paperMove3 {
    0% {
        transform: translateX(0px) translateY(-16px) rotate(-1deg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    7% {
        transform: translateX(120px) translateY(-16px) rotate(8deg);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
    }
    7%, 50% {
        transform: translateX(120px) translateY(-16px) rotate(8deg);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
    }
    57%, 100% {
        transform: translateX(0px) translateY(-16px) rotate(-1deg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

/* Storage Label */
.storage-label {
    position: absolute;
    top: 50px;
    left: -50px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    z-index: 10;
    font-family: 'Fuzzy Bubbles', cursive;
    color: #888;
    font-weight: bold;
    z-index: 12;
}

.storage-label span {
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    margin-top: 0px;
    transform: rotate(10deg);
    text-align: right;
}

.storage-label img {
    transform: rotate(186deg);
}


/* Lock and Logo Containers */
.lock-container {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lock-main {
    position: relative;
    width: 100px;
    height: 100px;
    background-color: #444;
    border: 1px solid #555;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    padding: 40px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.lock-main img {
    width: 40px;
    height: 40px;
}
/* 
.logo-container {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    z-index: 10;
}

.logo-main {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: #444;
    border: 1px solid #555;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.logo-main img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
} */

.logo-scattered {
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: #444;
    border: 1px solid #555;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: blur(1px);
    z-index: 5;
}

.logo-scattered img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}


.logo-scattered-1 {
    animation: logoScatter1 7s ease-in-out infinite;
}

.logo-scattered-2 {
    animation: logoScatter2 7s ease-in-out infinite;
}

.logo-scattered-3 {
    animation: logoScatter3 7s ease-in-out infinite;
}

.logo-scattered-4 {
    animation: logoScatter4 7s ease-in-out infinite;
}

.logo-scattered-5 {
    animation: logoScatter5 7s ease-in-out infinite;
}

@keyframes logoScatter1 {
    0% {
        left: -5px;
        top: -5px;
        transform: rotate(20deg);
        opacity: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    7% {
        left: -55px;
        top: -40px;
        transform: rotate(20deg);
        opacity: 1;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    }
    7%, 50% {
        left: -55px;
        top: -40px;
        transform: rotate(20deg);
        opacity: 1;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    }
    57%, 100% {
        left: -5px;
        top: -5px;
        transform: rotate(20deg);
        opacity: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

@keyframes logoScatter2 {
    0% {
        left: -5px;
        top: -5px;
        transform: rotate(0deg);
        opacity: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    7% {
        left: 60px;
        top: -35px;
        transform: rotate(-10deg);
        opacity: 1;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    }
    7%, 50% {
        left: 60px;
        top: -35px;
        transform: rotate(-10deg);
        opacity: 1;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    }
    57%, 100% {
        left: -5px;
        top: -5px;
        transform: rotate(0deg);
        opacity: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

@keyframes logoScatter3 {
    0% {
        left: -5px;
        top: -5px;
        transform: rotate(10deg);
        opacity: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    7% {
        left: -40px;
        top: 45px;
        transform: rotate(15deg);
        opacity: 1;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    }
    7%, 50% {
        left: -40px;
        top: 45px;
        transform: rotate(15deg);
        opacity: 1;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    }
    57%, 100% {
        left: -5px;
        top: -5px;
        transform: rotate(10deg);
        opacity: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

@keyframes logoScatter4 {
    0% {
        left: -5px;
        top: -5px;
        transform: rotate(-12deg);
        opacity: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    7% {
        left: 50px;
        top: 45px;
        transform: rotate(-18deg);
        opacity: 1;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    }
    7%, 50% {
        left: 50px;
        top: 45px;
        transform: rotate(-18deg);
        opacity: 1;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    }
    57%, 100% {
        left: -5px;
        top: -5px;
        transform: rotate(-12deg);
        opacity: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

@keyframes logoScatter5 {
    0% {
        left: -5px;
        top: -5px;
        transform: rotate(12deg);
        opacity: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    7% {
        left: -5px;
        top: -70px;
        transform: rotate(12deg);
        opacity: 1;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    }
    7%, 50% {
        left: -5px;
        top: -70px;
        transform: rotate(12deg);
        opacity: 1;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    }
    57%, 100% {
        left: -5px;
        top: -5px;
        transform: rotate(12deg);
        opacity: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

.logo-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    font-size: 0.7rem;
    color: #ddd;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 11;
}


.feature-preview-papers-shadow {
    position: absolute;
    top: -50px;
    right: -50px;
    bottom: -50px;
    left: -50px;
    background: linear-gradient(180deg, #222 0%, #222222dd 5%, transparent 30%, transparent 100%);
    pointer-events: none;
    z-index: 11;
    border-radius: 10px;
}

/* Apocalypse Ready Preview */
.feature-preview-apocalypse {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apocalypse-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, #333 1px, transparent 1px),
                      linear-gradient(to bottom, #333 1px, transparent 1px);
    border-radius: 10px;
}

.apocalypse-radar-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 90px;
    height: 90px;
    overflow: hidden;
    z-index: 2;
}

.apocalypse-radar {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 140px;
    height: 140px;
    background-color: #222;
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 50%;
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 50%;
}

.radar-ring-1 {
    width: 30%;
    height: 30%;
}

.radar-ring-2 {
    width: 55%;
    height: 55%;
}

.radar-ring-3 {
    width: 80%;
    height: 80%;
}

.radar-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #4ade80 100%);
    transform-origin: left center;
    animation: radarSpin 3s linear infinite;
    box-shadow: 0 0 10px #4ade80, 0 0 20px #4ade80, 0 0 30px rgba(74, 222, 128, 0.5);
    filter: drop-shadow(0 0 5px #4ade80);
}

.radar-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #4ade80;
    border-radius: 50%;
    animation: radarBlink 2s ease-in-out infinite;
}

.radar-dot-1 {
    top: 55%;
    left: 60%;
    animation-delay: 0s;
}

.radar-dot-2 {
    top: 65%;
    left: 55%;
    animation-delay: 0.7s;
}

.radar-dot-3 {
    top: 60%;
    left: 70%;
    animation-delay: 1.4s;
}

@keyframes radarBlink {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes radarSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.apocalypse-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 20px;
    z-index: 5;
}

.apocalypse-zip {
    width: 120px;
    height: 140px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.zip-text {
    font-size: 2rem;
    font-weight: bold;
    color: #DA614C;
    font-family: 'iA Writer Quattro', monospace;
}

.zip-size {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.apocalypse-screwdriver {
    position: relative;
    margin-left: 25px;
    transform: rotate(220deg);
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.apocalypse-screwdriver img {
    width: 100%;
    height: 100%;
}

.feature-preview-apocalypse-shadow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, #222 0%, #222222dd 5%, transparent 30%, transparent 100%);
    pointer-events: none;
    z-index: 10;
    border-radius: 10px;
}

.feature-preview-apocalypse-shadow-bottom {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, #222 0%, #222222dd 5%, transparent 30%, transparent 100%);
    pointer-events: none;
    z-index: 10;
    border-radius: 10px;
}

/* Connection Lines */
.connection-line {
    position: absolute;
    top: 50%;
    border-top: 2px dashed #DA614C;
    z-index: 2;
}

.line-to-lock {
    left: 130px;
    right: 110px;
}


/* Responsive Design for Features */
@media (max-width: 640px) {
    .features-title {
        font-size: 2rem;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .features-grid-row-1,
    .features-grid-row-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-item {
        padding: 1.5rem 1rem;
    }

    .feature-preview-markdown-slider {
        right: -100px;
    }

    .feature-preview-markdown-tiles  {
        display: none;
    }

    .logo-container {
        display: none;
    }

    .line-to-logo {
        display: none;
    }

    .storage-label {
        transform: rotate(-30deg);
        left: -100px;
        top: 70px;
    }

    .lock-container {
        left: 70%;
    }

    .line-to-lock {
        right: 30%;
        margin-right: 0;
    }
}

@media (min-width: 640px) {
    .features-grid-row-1,
    .features-grid-row-2 {
        grid-template-columns: 2fr 1fr;
    }

    .features-grid-row-2 {
        grid-template-columns: 1fr 2fr;
    }
}

@media (min-width: 1024px) {
    .features-grid-row-1,
    .features-grid-row-2 {
        grid-template-columns: 2fr 1fr;
    }

    .features-grid-row-2 {
        grid-template-columns: 1fr 2fr;
    }
}
