/* --- LANDING & PUBLIC PAGES STYLE --- */

/* Header Navigation */
.public-header {
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(12px);
}

.public-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--color-accent), #818cf8);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
}

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 7rem 0 5rem 0;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35rem;
    height: 35rem;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.hero-preview {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Cards & Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-padding {
    padding: 5rem 0;
}

/* How It Works Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    padding: 2.5rem 2rem;
    border-radius: 12px;
    position: relative;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.15);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Features list */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.25rem;
    border-radius: 12px;
    text-align: left;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Case studies block */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.case-card {
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(30, 41, 59, 0.3);
}

.case-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.case-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.price-card {
    padding: 3rem 2.25rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card.popular {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background-color: var(--color-accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 9999px;
    font-weight: 700;
}

.price-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
}

.price-amount span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.25rem;
}

.price-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.price-features li svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.price-features li.checked svg {
    color: var(--color-success);
}

.price-features li.unchecked svg {
    color: var(--text-muted);
}

.price-features li.unchecked {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Authentication Layout */
.auth-wrapper {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--color-accent);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--color-accent-hover);
}

/* Footer public */
.public-footer {
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 250px;
}

.footer-col h5 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Actions & Toggle Button */
.header-actions-mobile {
    display: none;
}

.public-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.public-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.public-nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.public-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.public-nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .header-actions-mobile {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(9, 13, 22, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
        animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }

    .nav-links .btn {
        width: 100%;
        max-width: 280px;
        margin-top: 0.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
