/* ===========================================
   MOKIT LANDING PAGE STYLES
   =========================================== */

/* Base Variables - Extending app.css */
:root {
    --landing-gradient-start: #0F172A;
    --landing-gradient-mid: #1E293B;
    --landing-gradient-end: #0F172A;
    --landing-accent-indigo: #6366f1;
    --landing-accent-emerald: #10b981;
    --landing-accent-purple: #8b5cf6;
}

/* Landing Page Container */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--landing-gradient-start) 0%, var(--landing-gradient-mid) 50%, var(--landing-gradient-end) 100%);
    color: #f1f5f9;
}

/* ===========================================
   NAVIGATION HEADER
   =========================================== */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-links a:hover {
    color: #f1f5f9;
}

.nav-github {
    display: flex;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-nav-login {
    padding: 0.5rem 1rem;
    color: #f1f5f9;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-nav-login:hover {
    color: var(--landing-accent-indigo);
}

.btn-nav-cta {
    padding: 0.5rem 1.25rem;
    background: var(--landing-accent-indigo);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-nav-cta:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.landing-main {
    padding-top: 80px;
}

/* ===========================================
   SECTION BASE STYLES
   =========================================== */
.landing-section {
    position: relative;
    padding: 5rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 8rem 1.5rem 6rem;
    text-align: center;
}

/* Animated Gradient Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.hero-orb-1 {
    top: -100px;
    left: 25%;
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.3);
    animation: float-orb-1 8s ease-in-out infinite;
}

.hero-orb-2 {
    top: 150px;
    right: 20%;
    width: 350px;
    height: 350px;
    background: rgba(16, 185, 129, 0.25);
    animation: float-orb-2 10s ease-in-out infinite;
}

@keyframes float-orb-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.2);
    }
}

@keyframes float-orb-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, -30px) scale(1.3);
    }
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    margin-bottom: 2rem;
    animation: fade-in-up 0.6s ease-out;
}

.hero-badge svg {
    color: var(--landing-accent-emerald);
}

.hero-badge span {
    font-size: 0.875rem;
    color: #cbd5e1;
}

/* Hero Title */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fade-in-up 0.6s ease-out 0.2s backwards;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fade-in-up 0.6s ease-out 0.4s backwards;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 5rem;
    animation: fade-in-up 0.6s ease-out 0.6s backwards;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }
}

.btn-hero-primary {
    padding: 1rem 2rem;
    background: var(--landing-accent-indigo);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-hero-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Screenshot */
.hero-screenshot {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    animation: fade-in-up 0.8s ease-out 0.8s backwards;
}

.hero-screenshot-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--landing-accent-indigo), var(--landing-accent-emerald));
    border-radius: 1rem;
    filter: blur(40px);
    opacity: 0.3;
    transform: translateY(20px);
}

.hero-screenshot-frame {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================================
   FEATURES SECTION
   =========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 2rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--landing-accent-indigo);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* ===========================================
   FAQ SECTION
   =========================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--landing-accent-indigo);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding-bottom: 1.5rem;
    color: #94a3b8;
    line-height: 1.7;
}

/* ===========================================
   FOOTER
   =========================================== */
.landing-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 1.5rem;
    background: rgba(15, 23, 42, 0.5);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #f1f5f9;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.875rem;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll reveal animation classes */
.reveal {
    animation: fade-in-up 0.6s ease-out forwards;
    animation-play-state: paused;
}

.reveal.visible {
    animation-play-state: running;
}

/* Staggered animations for grids */
.feature-card {
    opacity: 0;
    animation: fade-in-up 0.5s ease-out forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Enhanced hover effects */
.feature-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15);
}

/* Glow effect on hover */
.btn-hero-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--landing-accent-indigo), var(--landing-accent-purple));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.3s;
}

.btn-hero-primary:hover::before {
    opacity: 0.6;
}

.btn-hero-primary {
    position: relative;
}

/* Pulse animation for CTA */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.6);
    }
}

.btn-hero-primary {
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-hero-primary:hover {
    animation: none;
}

/* Section fade-in on scroll */
.landing-section {
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards;
}

.landing-section:nth-of-type(1) {
    animation-delay: 0s;
}

.landing-section:nth-of-type(2) {
    animation-delay: 0.1s;
}

.landing-section:nth-of-type(3) {
    animation-delay: 0.15s;
}

.landing-section:nth-of-type(4) {
    animation-delay: 0.2s;
}

/* Hero specific animations */
.hero-section {
    opacity: 1;
    animation: none;
}

/* Smooth link underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--landing-accent-indigo);
    transition: width 0.3s ease;
}

.nav-links a {
    position: relative;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}