/* =========================================================================
   DockFoldy - Modern macOS Premium Styles (2026 Edition)
   ========================================================================= */

:root {
    /* Color Palette */
    --bg-dark: #0A0A0C;
    --bg-surface: rgba(20, 20, 24, 0.4);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-blue: #0A84FF;
    --accent-purple: #BF5AF2;
    --accent-gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));

    /* Glassmorphism / macOS Native */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.12);
    /* Increased slightly for visibility */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(28px);
    --card-padding: 8px;
    /* Strict 8px padding everywhere */
    --card-radius: 18px;

    /* Typography */
    --font-family: 'Nunito', sans-serif;

    /* Layout */
    --container-max: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Spacing */
    --section-padding: 4.5rem 0;
}

/* =========================================================================
   Base & Resets
   ========================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Abstract Ambient Glow */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    backface-visibility: hidden;
    perspective: 1000px;
}

.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    animation: drift 25s infinite linear; /* Smoother linear movement */
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 768px) {
    .parallax-container {
        transform: none !important; /* Force stability on mobile */
        transition: none !important;
    }
    .ambient-glow {
        max-width: 400px;
        max-height: 400px;
    }
}

.bg-purple {
    background: var(--accent-purple);
    top: -100px;
    right: -100px;
}

.bg-blue {
    background: var(--accent-blue);
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1.1);
        opacity: 0.3;
    }

    33% {
        transform: translate3d(-10vw, 10vh, 0) scale(1.2);
        opacity: 0.5;
    }

    66% {
        transform: translate3d(10vw, -10vh, 0) scale(0.9);
        opacity: 0.4;
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1.1);
        opacity: 0.3;
    }
}

/* =========================================================================
   Typography
   ========================================================================= */

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================================================
   Components
   ========================================================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(10, 132, 255, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Glass effect utility */
.glass-effect {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
}

/* =========================================================================
   Navigation (Floating Pill)
   ========================================================================= */

.floating-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 900px;
    z-index: 100;
    border-radius: 30px; /* Using pixels for smooth transitions */
    background: rgba(18, 18, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-nav.menu-open {
    border-radius: 24px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.logo-img {
    height: 28px;
    width: auto;
    border-radius: 6px;
}

.logo-text {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-download {
    background: var(--accent-gradient);
    color: white;
    padding: 0.25rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(10, 132, 255, 0.4);
}

.btn-download:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 15px rgba(10, 132, 255, 0.5);
    filter: brightness(1.1);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Hidden by default */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 500px; /* Big enough for the menu */
    padding: 1.5rem 1rem;
    opacity: 1;
}

.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.mobile-menu a:hover {
    color: white;
}

.mobile-download {
    text-align: center;
    margin-top: 0.5rem;
}

/* =========================================================================
   Hero Section
   ========================================================================= */

.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 0 var(--section-padding);
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #FFFFFF, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-graphic {
    width: 100%;
    max-width: 550px;
    /* Reduced from 1000px to make it smaller ~45% less */
    padding: 0 2rem;
    perspective: 1000px;
}

.glass-container {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.showcase-main {
    transform: rotateX(5deg) translateY(0);
}

.showcase-main:hover {
    transform: rotateX(0deg) translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: calc(var(--card-radius) - var(--card-padding));
    display: block;
}

/* =========================================================================
   Features Section
   ========================================================================= */

.feature-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 10;
    scroll-margin-top: 60px;
    /* Reduced for a tighter fit */
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.reverse-layout .feature-grid {
    /* For reverse layout, but let flex-direction handle it in media queries */
}

.reverse-layout .feature-text {
    order: 2;
}

.icon-badge {
    display: none;
    /* Removed as requested */
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* Feature Visuals & Cards */
.feature-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: calc(var(--card-radius) - var(--card-padding));
    display: block;
}

/* Layered Cards / Composition Styles */
.overlay-card {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    z-index: 2;
    transform: translateZ(50px);
}

.feature-visual:hover .glass-card {
    transform: translateY(-5px);
}

.feature-visual:hover .overlay-card {
    transform: translateY(-15px) scale(1.05);
}

/* Dual Visuals (Stacking) */
.dual-visuals {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(10, 132, 255, 0.1) 0%, transparent 70%);
}

.stack-1,
.stack-2 {
    width: 65%;
    /* Reduced from 75% to spread them more */
    position: relative;
}

.stack-1 {
    align-self: flex-start;
    z-index: 2;
    transform: rotate(-2deg);
}

.stack-2 {
    align-self: flex-end;
    margin-top: -35%;
    /* Increased overlap for a more compact stacked look */
    z-index: 1;
    transform: rotate(2deg);
}

.stack-1:hover,
.stack-2:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
}

.caption {
    position: absolute;
    top: -25px;
    left: 10px;
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.stack-2 .caption {
    left: auto;
    right: 10px;
}

/* Wide card */
.wide-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* =========================================================================
   Call to Action Section
   ========================================================================= */

.cta-section {
    padding: 0rem 0rem 4rem 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
    z-index: 10;
    position: relative;
    scroll-margin-top: 60px;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-radius: var(--card-radius);
    border: var(--glass-border);
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 30, 35, 0.4) 0%, rgba(20, 20, 24, 0.6) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-container h2 {
    font-size: 2.5rem;
}

.cta-btn {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.compatibility-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* =========================================================================
   Footer
   ========================================================================= */

footer {
    text-align: center;
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.5); /* Increased from 0.3 */
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5); /* Increased from 0.3 */
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    margin: 0 5px;
    display: inline-block;
    vertical-align: middle;
    line-height: 0;
}

/* =========================================================================
   Legal Modals
   ========================================================================= */

.legal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.legal-modal {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: 80vh;
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(18, 18, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

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

.legal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.legal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.legal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    letter-spacing: -0.02em;
}

.legal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.legal-body::-webkit-scrollbar {
    width: 4px;
}

.legal-body::-webkit-scrollbar-track {
    background: transparent;
}

.legal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.legal-body p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 1.5rem 0 0.4rem;
    letter-spacing: -0.01em;
}



/* =========================================================================
   Animations & Interactivity
   ========================================================================= */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-2 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   Responsive Design
   ========================================================================= */

@media (max-width: 992px) {
    .feature-grid {
        display: flex;
        flex-direction: column;
        gap: 3.5rem;
        text-align: left;
    }

    .feature-text {
        order: 1 !important; /* Forces text to the top */
    }

    .feature-visual {
        order: 2 !important; /* Forces images to the bottom */
    }

    /* Stack dual visuals vertically starting at 992px */
    .dual-visuals {
        flex-direction: column;
        gap: 4rem;
        align-items: center;
        padding: 0 !important;
        background: none !important;
    }

    .stack-1, .stack-2 {
        width: 100% !important;
        transform: none !important;
        margin: 0 !important;
        align-self: center !important;
    }

    .stack-2 .caption {
        left: 10px !important;
        right: auto !important;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-actions .btn-download {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .floating-nav {
        border-radius: 30px;
        top: 16px;
        width: calc(100% - 32px);
    }

    .nav-container {
        padding: 0.4rem 0.8rem;
    }

    .mobile-menu-btn {
        padding: 0.25rem 0.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .overlay-card {
        bottom: -5%;
        right: 0;
        width: 70%;
    }



    .footer-content {
        flex-direction: column;
    }

    /* Reduce section spacing on mobile */
    :root {
        --section-padding: 2.5rem 0;
        /* More compact on mobile */
    }

    .feature-section,
    .cta-section {
        scroll-margin-top: 70px;
        /* Adjusted for mobile nav height */
    }
}

/* =========================================================================
   Pricing Section
   ========================================================================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 680px;
    /* Even more compact */
    margin: 2rem auto;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.25rem !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pro-card {
    border: 1px solid rgba(10, 132, 255, 0.4) !important;
    background: rgba(10, 132, 255, 0.05) !important;
}

.pro-card::after {
    content: 'RECOMMENDED';
    position: absolute;
    top: 25px;
    right: -65px;
    /* Moved further out to center the long text */
    background: var(--accent-blue);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    width: 200px;
    /* Fixed width for better centering */
    padding: 4px 0;
    transform: rotate(45deg);
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 10;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    min-height: 2.2rem;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.5rem 0;
    /* Reduced from 0.75rem */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    /* Reduced font size */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓';
    color: var(--accent-blue);
    font-weight: bold;
}

.plan-features li.disabled {
    opacity: 0.3;
}

.plan-features li.disabled::before {
    content: '✕';
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .feature-text *{
        text-align: center;
    }

    .feature-list li::before{
        position: initial!important;
        margin-right: 10px;
    }

     .feature-list li{
        padding-left: 0px!important;
    }
}


@media (max-width: 460px)  {
    

     .feature-text *{
        text-align: left;
    }
}

@media (max-width: 440px)  {
    .footer-bottom p{
        text-align: center;
    }
    .footer-bottom span.made{
        display: block;
        margin-top: 8px;
    }

}

@media (max-width: 390px)  {
    .footer-divider{
        margin: 0px -3px!important;
    }

}