/* public/css/landing.css - 旗艦級官網頁面樣式 */

:root {
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #6366f1;
    --secondary-glow: rgba(99, 102, 241, 0.4);
    --bg-deep: #020617;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.5);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 動態背景網格 */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
}

.bg-blur {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: flow 20s infinite alternate;
}

@keyframes flow {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-20%, 20%);
    }
}

/* Navbar */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-login {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: var(--primary);
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #020617 !important;
    /* Solid fallback */
    background: rgba(2, 6, 23, 0.99) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: 0.3s all ease;
}

.mobile-nav.active {
    display: flex !important;
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
    width: 100%;
}

.mobile-nav-links a {
    font-size: 1.75rem;
    color: var(--text-white) !important;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    letter-spacing: 1px;
}

.mobile-nav-links a:hover {
    color: var(--primary) !important;
    transform: scale(1.1);
}

.mobile-nav-links a.btn-login {
    font-size: 1.25rem;
    background: var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--primary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero h1 span {
    background: linear-gradient(to right, #10b981, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
}

/* Hero Steps */
.hero-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
    margin-top: 5rem;
}

.step-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: left;
    position: relative;
    transition: 0.4s;
    border-bottom: 3px solid transparent;
}

.step-card:hover {
    border-bottom-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
}

.step-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(16, 185, 129, 0.1);
    position: absolute;
    top: 1rem;
    right: 2rem;
    line-height: 1;
}

.step-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.step-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Features */
.section-title {
    text-align: center;
    padding: 4rem 2rem 1rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Solutions Section */
.solutions {
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.solution-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.solution-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    background: rgba(30, 41, 59, 0.8);
}

.solution-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--secondary);
    transition: 0.3s;
}

.solution-card:hover .solution-icon-wrapper {
    background: var(--secondary);
    color: white;
    box-shadow: 0 0 20px var(--secondary-glow);
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.solution-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.solution-badge {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    opacity: 0.5;
}

/* Pricing */
.pricing {
    background: radial-gradient(circle at bottom, var(--secondary-glow) 0%, transparent 40%);
    padding: 6rem 0;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.price-card {
    background: var(--bg-dark);
    border-radius: 32px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    position: relative;
    transition: 0.4s;
}

.price-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 0 40px var(--primary-glow);
    transform: scale(1.05);
}

.price-card h4 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.price-amount span {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-list {
    list-style: none;
    margin-bottom: 3rem;
}

.price-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-list li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.btn-price {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.price-card.popular .btn-price {
    background: var(--primary);
    color: white;
}

.price-card:not(.popular) .btn-price {
    border: 1px solid var(--glass-border);
    color: white;
}

.price-card.popular .btn-price:hover {
    background: var(--primary-dark);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 991px) {
    .nav-links {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding-top: 5rem;
    }

    .price-card.popular {
        transform: none;
    }
}