/* ═══════════════════════════════════════════════════════
   MondayDocGen — Landing Page and Legal Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --primary: #0073ea;
    --primary-glow: rgba(0, 115, 234, 0.15);
    --primary-hover: #005ec2;
    --secondary: #10b981;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --glow-violet: rgba(139, 92, 246, 0.15);
}

/* ─── RESET & BASE ─── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── SKIP TO CONTENT ─── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 8px;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    z-index: 200;
    font-weight: 600;
    font-size: 14px;
}
.skip-link:focus {
    top: 8px;
}

/* ─── SCROLL MARGIN FOR STICKY NAV ─── */
#features, #how-it-works, #pricing, #privacy {
    scroll-margin-top: 88px;
}

/* ─── FOCUS VISIBLE ─── */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ─── GLOW EFFECTS ─── */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.glow-1 {
    top: -100px;
    right: -100px;
    background: var(--primary-glow);
}

.glow-2 {
    top: 600px;
    left: -200px;
    background: var(--glow-violet);
}

/* ─── CONTAINER ─── */
.nav-container, .hero-container, .features-grid, .steps-container, .footer-container, .legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── HEADER / NAVBAR ─── */
.navbar {
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    background-color: rgba(11, 15, 25, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 115, 234, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* ─── HERO ─── */
.hero {
    padding: 100px 0 80px 0;
    text-align: center;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background-color: rgba(0, 115, 234, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 115, 234, 0.2);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    max-width: 800px;
    margin: 0 auto 24px auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
}

/* Mockup Frame */
.hero-mockup {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.mockup-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    position: relative;
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.mockup-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: var(--text-secondary);
    font-family: monospace;
}

.mockup-body {
    padding: 16px;
}

.mockup-layout {
    display: flex;
    gap: 16px;
    min-height: 380px;
}

.mockup-sidebar {
    width: 200px;
    border-right: 1px solid var(--border-color);
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.sidebar-item {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.sidebar-item.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.mockup-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* Mini Invoice Preview Card */
.invoice-box-preview {
    background-color: #fff;
    color: #1f2937;
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: left;
}

.invoice-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.logo-box {
    font-weight: 800;
    color: var(--primary);
    font-size: 14px;
    border: 1px solid var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
}

.invoice-title-box h4 {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.invoice-title-box p {
    font-size: 11px;
    color: #6b7280;
}

.invoice-box-details {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 16px;
}

.invoice-box-details strong {
    display: block;
    color: #9ca3af;
    font-size: 9px;
    text-transform: uppercase;
}

.invoice-box-details p {
    color: #374151;
    font-weight: 600;
}

.invoice-box-table {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.table-header-row, .table-data-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 4px 0;
}

.table-header-row {
    font-weight: 700;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}

.table-data-row {
    color: #374151;
}

.invoice-box-totals {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
}

.invoice-box-totals strong {
    color: var(--primary);
}

/* ─── FEATURES GRID ─── */
.features, .how-it-works {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 115, 234, 0.3);
    box-shadow: 0 10px 30px rgba(0, 115, 234, 0.05);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* ─── HOW IT WORKS ─── */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}
.step:hover {
    transform: translateY(-4px);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 115, 234, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 115, 234, 0.3);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.step h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ─── BOTTOM CTA ─── */
.bottom-cta {
    padding: 100px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 115, 234, 0.06) 100%);
    border-top: 1px solid var(--border-color);
}

.bottom-cta h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.bottom-cta p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* ─── FOOTER ─── */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

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

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── LEGAL / DOCUMENTATION PAGES ─── */
.legal-page {
    background-color: #0b0f17;
}

.legal-content {
    padding: 80px 0;
}

.legal-container {
    max-width: 800px;
}

.legal-container h1 {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 8px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.legal-container section {
    margin-bottom: 40px;
}

.legal-container h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary);
}

.legal-container p {
    color: #cbd5e1;
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-container ul {
    margin-left: 24px;
    margin-bottom: 16px;
    color: #cbd5e1;
}

.legal-container li {
    margin-bottom: 8px;
}

.legal-container a {
    color: var(--primary);
    text-decoration: underline;
}

/* ─── FAQ ─── */
.faq {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}
.faq-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
}
.faq-question:hover {
    color: var(--primary);
}
.faq-question::after {
    content: '+';
    font-size: 22px;
    color: var(--primary);
    transition: transform 0.3s;
}
.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}
.faq-answer p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ─── HAMBURGER ─── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── RESPONSIVENESS ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(11, 15, 25, 0.98);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 24px;
        gap: 16px;
        backdrop-filter: blur(12px);
    }
    .nav-links.open {
        display: flex;
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .mockup-layout {
        flex-direction: column;
    }
    
    .mockup-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 16px;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 48px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        max-width: 400px;
        width: 100%;
    }
}

/* ─── PRICING SECTION ─── */
.pricing-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.pricing-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 32px;
    flex: 1;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 115, 234, 0.3);
    box-shadow: 0 10px 30px rgba(0, 115, 234, 0.05);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex: 1;
}

.pricing-card li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 16px;
}
