﻿/* landing.css - Premium SaaS Landing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --secondary: #0f172a;
    --accent: #8b5cf6;
    --success: #10b981;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-accent: #f0f4ff; /* Super light indigo */
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --border: #e2e8f0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-premium: 0 15px 30px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.3s;
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -1px;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-login {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
    padding: 180px 0 140px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Background Organic Blobs */
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(140px);
    opacity: 0.05;
    z-index: -1;
    border-radius: 50%;
    animation: blobMove 20s infinite alternate;
}

.blob-1 { top: -200px; right: -200px; background: var(--primary); }
.blob-2 { bottom: -200px; left: -200px; background: var(--accent); animation-delay: -5s; }

@keyframes blobMove {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.1); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 60px;
}

.badge-trial {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    animation: fadeInDown 0.6s ease-out;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1.2s ease-out;
}

.btn-secondary {
    background: var(--white);
    color: var(--secondary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.hero-mockup {
    margin-top: 80px;
    perspective: 1000px;
    animation: fadeInUp 1.4s ease-out;
}

.mockup-container {
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    transform: rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-container:hover {
    transform: rotateX(0deg) scale(1.02);
}

.mockup-container img {
    width: 100%;
    border-radius: calc(var(--radius-lg) - 8px);
    display: block;
}

/* Features (Bento Grid) */
.features {
    padding: 100px 0;
    background: var(--bg-accent);
    position: relative;
}

.section-tag {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 24px;
}

.bento-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: 0.3s;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--primary-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 25px;
}

.bento-item h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall {
    grid-row: span 2;
}

/* Pricing */
.pricing {
    padding: 120px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.price-card {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.price-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.1);
}

.recommended-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 800;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.price-value span {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-features {
    list-style: none;
    margin: 40px 0;
}

.price-features li {
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.price-features i {
    color: var(--success);
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 100px 0 50px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    color: white;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MOBILE / TABLET â€” RESPONSIVE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Nav layout base */
nav {
    display: flex;
    align-items: center;
    gap: 0;
}
nav .logo      { flex-shrink: 0; margin-right: auto; }
nav .nav-links { flex: 1; justify-content: center; }
nav .header-actions { flex-shrink: 0; }

/* Hamburger button â€” hidden on desktop */
.nav-toggle {
    display: none;
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 9px 10px;
    border-radius: 10px;
    margin-left: 12px;
    transition: background .2s, border-color .2s;
}
.nav-toggle:hover { background: var(--bg-light); border-color: var(--primary); }
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--secondary);
    margin: 4px 0;
    border-radius: 2px;
    transition: .3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile-only items inside drawer (hidden on desktop) */
.nav-mobile-only { display: none; }

/* Coming soon btn on price cards */
.btn-coming-soon {
    width: 100%;
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    background: #f1f5f9;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: not-allowed;
    border: 1.5px dashed #cbd5e1;
    letter-spacing: .02em;
}

/* â”€â”€â”€ Tablet â‰¤ 992px â”€â”€â”€ */
@media (max-width: 992px) {
    .hero   { padding: 140px 0 90px; }
    .hero h1 { font-size: 2.8rem; letter-spacing: -1.5px; }
    .hero p  { font-size: 1.1rem; }

    .bento-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
    .bento-large { grid-column: span 2; grid-row: span 1; }
    .bento-tall  { grid-column: span 1; grid-row: span 1; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
    .price-card.featured { transform: scale(1); }

    /* Show hamburger, hide desktop nav & actions */
    nav .nav-links   { display: none; }
    nav .header-actions { display: none; }
    .nav-toggle      { display: block; }
}

/* â”€â”€â”€ Mobile â‰¤ 640px â”€â”€â”€ */
@media (max-width: 640px) {
    .hero   { padding: 100px 0 60px; }
    .hero h1 { font-size: 2rem; letter-spacing: -0.5px; }
    .hero p  { font-size: 0.97rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-btns .btn-primary { width: 100%; max-width: 320px; text-align: center; }
    .badge-trial { font-size: 0.74rem; padding: 6px 14px; }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-tall { grid-column: span 1; grid-row: span 1; }
    .bento-item { padding: 26px; }
    .section-title { font-size: 1.8rem; }

    .pricing-grid { max-width: 100%; }
    .price-card   { padding: 36px 24px; }
    .price-value  { font-size: 2.6rem; }

    .footer-top { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    footer { padding: 60px 0 36px; }

    section[style*="100px 0"] h2   { font-size: 1.9rem !important; }
    section[style*="100px 0"] p    { font-size: 1rem !important; }
    section[style*="100px 0"] .btn-primary { padding: 14px 24px !important; font-size: 0.97rem !important; }

    /* Stats: stack */
    section[style*="border-bottom"] .container > div {
        flex-direction: column !important;
        gap: 28px !important;
    }
}

/* â”€â”€â”€ Nav drawer (mobile open state) â”€â”€â”€ */
@media (max-width: 992px) {
    .nav-links.open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100dvh;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 10px;
        z-index: 9999;
        padding: 40px 24px;
        animation: drawerIn .25s ease;
    }
    .nav-links.open li a {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--text-main);
        padding: 14px 24px;
        border-radius: 14px;
        transition: .2s;
        display: block;
        text-align: center;
        min-width: 240px;
    }
    .nav-links.open li a:hover { background: var(--bg-light); color: var(--primary); }

    /* Show mobile-only items inside open drawer */
    .nav-links.open .nav-mobile-only { display: block; }

    /* CTA style inside drawer */
    .nav-links.open .nav-mobile-cta {
        background: var(--primary);
        color: #fff !important;
        border-radius: 14px;
        box-shadow: 0 8px 20px rgba(99,102,241,.25);
        margin-top: 8px;
    }
    .nav-links.open .nav-mobile-cta:hover { background: var(--primary-dark) !important; }

    /* Separator line */
    .nav-links.open .nav-mobile-only:first-of-type {
        border-top: 1px solid var(--border);
        padding-top: 14px;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    /* Make toggle visible above drawer */
    #navToggle { position: relative; z-index: 10000; }
}

@keyframes drawerIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

