/* static/css/landing.css - Premium Landing Page Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --brand-dark: #0f172a;
    --brand-primary: #f97316;
    --brand-primary-hover: #ea580c;
    --brand-accent: #3b82f6;
    --text-main: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Navbar */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 48px;
    margin-right: 0;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--brand-primary);
}

.btn-login {
    color: var(--brand-dark);
    font-weight: 600;
}

.btn-signup {
    background: var(--brand-primary);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.2);
}

.btn-signup:hover {
    background: var(--brand-primary-hover);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 12rem 5% 8rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative Blobs */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(249,115,22,0.15) 0%, rgba(249,115,22,0.05) 100%);
    color: var(--brand-primary);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(249,115,22,0.3);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
    animation: badge-glow 2s infinite alternate;
}

@keyframes badge-glow {
    from { box-shadow: 0 0 10px rgba(249, 115, 22, 0.1); }
    to { box-shadow: 0 0 20px rgba(249, 115, 22, 0.4); }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: var(--brand-dark);
}

.hero h1 span {
    color: var(--brand-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary-large {
    background: var(--brand-primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.4);
    background: var(--brand-primary-hover);
    color: var(--white);
}

.btn-secondary-large {
    background: var(--white);
    color: var(--brand-dark);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
}

.btn-secondary-large:hover {
    background: #f1f5f9;
}

/* How It Works Section */
.section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

/* How It Works Flow */
.flow-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-arrow-wrapper {
    flex-basis: 30px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-arrow {
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .flow-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .flow-arrow-wrapper {
        flex-basis: auto;
        width: 100%;
        height: 40px;
    }
    .flow-arrow {
        width: 2px;
        height: 100%;
    }
    .animated-dots {
        background-image: linear-gradient(180deg, var(--brand-primary) 50%, transparent 50%);
        background-size: 2px 20px;
        animation: flow-move-vertical 1.5s linear infinite;
    }
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    .pricing-card {
        width: 100%;
        max-width: 400px;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-link {
        display: none;
    }
}

@keyframes flow-move-vertical {
    from { background-position: 0 0; }
    to { background-position: 0 20px; }
}

.animated-dots {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, var(--brand-primary) 50%, transparent 50%);
    background-size: 20px 2px;
    animation: flow-move 1.5s linear infinite;
    opacity: 0.5;
}

@keyframes flow-move {
    from { background-position: 0 0; }
    to { background-position: 20px 0; }
}

.flow-visual {
    width: 100%;
    height: 200px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Mock Phone */
.mock-phone {
    width: 180px;
    height: 100%;
    background: #f8fafc;
    border-left: 2px solid #e2e8f0;
    border-right: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    font-size: 0.65rem;
}
.mock-phone-header {
    background: #128C7E;
    color: white;
    padding: 0.5rem;
    font-weight: bold;
}
.mock-msg {
    margin: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    animation: slide-up 0.5s ease-out;
}
.msg-in {
    background: white;
    align-self: flex-start;
    border: 1px solid #e2e8f0;
    width: 80%;
    text-align: left;
}
.msg-out {
    background: #dcf8c6;
    align-self: flex-end;
    width: 70%;
    text-align: right;
}

@keyframes slide-up {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mock AI */
.mock-ai {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.ai-brain {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: pulse 2s infinite ease-in-out;
}
.ai-scan-line {
    width: 48px;
    height: 2px;
    background: var(--brand-accent);
    box-shadow: 0 0 8px 1px var(--brand-accent);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -24px;
    animation: scan 1.5s infinite alternate ease-in-out;
}
.ai-text {
    font-size: 0.8rem;
    color: var(--brand-accent);
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes scan-json {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Mock Dashboard */
.mock-dashboard {
    width: 95%;
    height: 90%;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mock-dash-header {
    font-weight: bold;
    font-size: 0.7rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.2rem;
    margin-bottom: 0.25rem;
}
.mock-dash-row {
    background: white;
    padding: 0.35rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.mock-badge {
    background: #dcf8c6;
    color: #15803d;
    padding: 0.1rem 0.25rem;
    border-radius: 4px;
    font-size: 0.55rem;
    white-space: nowrap;
}
.mock-dash-btn {
    margin-top: auto;
    background: var(--brand-primary);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.mock-dash-btn:hover {
    background: var(--brand-primary-hover);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-dark);
    cursor: pointer;
    transition: background 0.3s;
}
.faq-question:hover {
    background: #f8fafc;
}
.faq-icon {
    font-size: 1.5rem;
    color: var(--brand-primary);
    transition: transform 0.3s;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: all 0.3s ease-out;
}
.faq-answer p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 500px;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Mock Report */
.mock-report {
    width: 140px;
    height: 80%;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.mock-report-header {
    background: #1e293b;
    color: white;
    padding: 0.5rem;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mock-report-lines {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.report-line {
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}
.mock-report-footer {
    background: #f1f5f9;
    padding: 0.5rem;
    font-size: 0.6rem;
    text-align: center;
    color: #475569;
    font-weight: 600;
    border-top: 1px solid #e2e8f0;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

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

.feature-box {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 2.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: white;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: var(--brand-accent);
}

.feature-icon-wrapper {
    background: white;
    color: var(--brand-accent);
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 15px -3px rgba(59,130,246,0.1);
    border: 1px solid #e2e8f0;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Footer */
.footer-section {
    background: var(--brand-dark);
    color: var(--white);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    margin-top: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-text {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        word-wrap: break-word;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-cta a {
        text-align: center;
    }
    .section {
        padding: 4rem 5%;
    }
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        white-space: normal;
        text-align: center;
    }
    .mock-dashboard {
        width: 100%;
    }
    .nav-links .btn-signup {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
