/* ================================
   Landing Page Styles
   Linear.app-inspired hero & features
   ================================ */

/* ================================
   Container System
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ================================
   Hero Section
   ================================ */
.hero-landing {
    position: relative;
    padding: var(--gap-8) 0 var(--gap-7);
    background: var(--bg-0);
    overflow: hidden;
}

.hero-landing::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(77, 168, 218, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-landing-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--gap-7);
    align-items: center;
}

.hero-landing-text {
    max-width: 540px;
}

.hero-landing-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--gap-4);
    color: var(--text-1);
    letter-spacing: -0.025em;
}

.hero-landing-subtitle {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--gap-5);
    color: var(--text-2);
}

.hero-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-3);
}

/* Hero Device Frame & Mockup */
.hero-landing-visual {
    position: relative;
    perspective: 2000px;
}

.hero-device-frame {
    position: relative;
    background: transparent;
    border-radius: var(--radius-xl);
    transform: rotate(-2deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: hero-float 8s ease-in-out infinite;
    will-change: transform;
}

.hero-device-frame:hover {
    transform: rotate(0deg);
    animation-play-state: paused;
}

.hero-mockup {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 12px 40px rgba(0, 0, 0, 0.3);
    /* Melting effect: fade edges into background */
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 3%,
        black 97%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 3%,
        black 97%,
        transparent 100%
    );
}

.hero-mockup::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(77, 168, 218, 0.1) 0%,
        transparent 40%,
        transparent 60%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
    border-radius: inherit;
}

.hero-mockup img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

@keyframes hero-float {
    0%, 100% {
        transform: rotate(-2deg) translateY(0px);
    }
    50% {
        transform: rotate(-2deg) translateY(-10px);
    }
}

/* ================================
   Feature Sections
   ================================ */
.feature-section {
    position: relative;
    padding: var(--gap-7) 0;
    background: var(--bg-0);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--gap-7);
    align-items: center;
}

/* Inverted layout (image on left) */
.feature-section.feature-invert .feature-content {
    grid-template-columns: 1.4fr 1fr;
}

.feature-section.feature-invert .feature-text {
    order: 2;
}

.feature-section.feature-invert .feature-visual {
    order: 1;
}

/* Feature Text */
.feature-text {
    max-width: 560px;
}

.feature-eyebrow {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-boost);
    margin-bottom: var(--gap-2);
}

.feature-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--gap-4);
    color: var(--text-1);
    letter-spacing: -0.025em;
}

.feature-body {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-2);
    margin-bottom: var(--gap-5);
}

.feature-body p {
    margin-bottom: var(--gap-3);
}

.feature-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-body li {
    position: relative;
    padding-left: var(--gap-4);
    margin-bottom: var(--gap-2);
}

.feature-body li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-boost);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
}

.feature-cta {
    margin-top: var(--gap-4);
}

/* Feature Mockups */
.feature-visual {
    position: relative;
    perspective: 2000px;
}

.feature-device-frame {
    position: relative;
    background: transparent;
    border-radius: var(--radius-xl);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Tilt variations - subtle angles */
.feature-device-frame.tilt-negative-7 {
    transform: rotate(-2deg);
}

.feature-device-frame.tilt-positive-7 {
    transform: rotate(2deg);
}

.feature-device-frame.tilt-negative-5 {
    transform: rotate(-1.5deg);
}

/* Hover un-tilt effect */
.feature-device-frame:hover {
    transform: rotate(0deg) translateY(-6px);
}

.feature-mockup {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 12px 40px rgba(0, 0, 0, 0.3);
    /* Melting effect: fade all edges into background */
    mask-image: radial-gradient(
        ellipse 90% 85% at center,
        black 40%,
        black 70%,
        transparent 100%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 90% 85% at center,
        black 40%,
        black 70%,
        transparent 100%
    );
}

.feature-mockup::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(77, 168, 218, 0.08) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
    border-radius: inherit;
}

.feature-mockup img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* ================================
   Responsive Styles
   ================================ */
@media (max-width: 1024px) {
    .hero-landing-title {
        font-size: var(--font-size-4xl);
    }

    .hero-landing-subtitle {
        font-size: var(--font-size-lg);
    }

    .feature-title {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 980px) {
    /* Hero mobile layout */
    .hero-landing {
        padding: var(--gap-6) 0;
    }

    .hero-landing-content {
        grid-template-columns: 1fr;
        gap: var(--gap-5);
    }

    .hero-landing-text {
        max-width: 100%;
    }

    .hero-landing-title {
        font-size: var(--font-size-3xl);
    }

    .hero-landing-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-landing-visual {
        order: -1;
    }

    .hero-device-frame {
        transform: rotate(0deg);
        animation: none;
    }

    .hero-device-frame:hover {
        transform: rotate(0deg);
    }

    /* Feature mobile layout */
    .feature-section {
        padding: var(--gap-6) 0;
    }

    .feature-content,
    .feature-section.feature-invert .feature-content {
        grid-template-columns: 1fr;
        gap: var(--gap-5);
    }

    .feature-section.feature-invert .feature-text {
        order: 1;
    }

    .feature-section.feature-invert .feature-visual {
        order: -1;
    }

    .feature-visual {
        order: -1;
    }

    .feature-text {
        max-width: 100%;
    }

    .feature-title {
        font-size: var(--font-size-2xl);
    }

    .feature-body {
        font-size: var(--font-size-base);
    }

    .feature-device-frame.tilt-negative-7,
    .feature-device-frame.tilt-positive-7,
    .feature-device-frame.tilt-negative-5 {
        transform: rotate(0deg);
    }

    .feature-device-frame:hover {
        transform: rotate(0deg);
    }
}

/* ================================
   Reduced Motion Support
   ================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-device-frame,
    .feature-device-frame {
        animation: none !important;
        transition: none;
    }

    .hero-device-frame:hover,
    .feature-device-frame:hover {
        transform: none;
    }

    @keyframes hero-float {
        0%, 100% {
            transform: rotate(-2deg) translateY(0px);
        }
    }
}

/* ================================
   CLS Prevention (aspect ratio)
   ================================ */
.hero-mockup {
    aspect-ratio: 16 / 10;
}

.hero-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

