:root {
    --primary: #FFC107;
    --primary-dark: #B8860B;
    --primary-glow: rgba(255, 193, 7, 0.1);
    --bg-dark: #F5F5F7; /* Soft Pearl - much easier on the eyes than pure white */
    --surface: #FFFFFF;
    --surface-light: #FAFAFA;
    --text-main: #1D1D1F; /* Deep Onyx - soft but readable */
    --text-dim: #86868B; /* Soft Slate for secondary text */
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --bee-cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' style='font-size: 32px;'><text y='32'>🐝</text></svg>") 16 16, pointer;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body, button, select, input, textarea {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--surface-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Layout Utilities */
.hidden { display: none !important; }
.accent { color: var(--primary); }

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    cursor: var(--bee-cursor);
    transition: var(--transition);
    border: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: #FFD54F;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.login-btn {
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.login-btn:hover {
    background: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.get-started-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.get-started-btn:hover {
    background: #FFD54F;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(20px);
    background: rgba(245, 245, 247, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: var(--bee-cursor);
    flex: 1;
}

.bee-icon { font-size: 1.8rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    flex: 2;
    justify-content: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    cursor: var(--bee-cursor);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
}

/* Navigation Dropdown */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    min-width: 180px;
    border-radius: 16px;
    padding: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 10px;
    transition: var(--transition);
    text-align: left;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--primary-glow);
    color: var(--primary-dark);
    transform: translateX(5px);
}

.dropdown-arrow {
    font-size: 0.85rem;
    margin-left: 6px;
    transition: transform 0.3s ease;
    display: inline-block;
    font-weight: 600;
    opacity: 0.8;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* Hero & Tools Integrated Section */
.hero-tools-section {
    padding: 160px 10% 80px;
    background: var(--bg-dark);
    text-align: center;
}

.hero-tools-content {
    max-width: 800px;
    margin: 0 auto 60px;
}

.badge {
    background: var(--primary-glow);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 700;
}

.main-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* Benefits Section */
.benefits-section {
    padding: 100px 10%;
    background: var(--surface);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-item h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* SEO Content Section */
.seo-content-section {
    padding: 100px 10%;
    background: var(--bg-dark);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.text-content {
    flex: 1;
}

.text-content h3 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.text-content p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.8;
}

.visual-placeholder.no-bg {
    flex: 0.8;
    background: var(--surface);
    border-radius: 40px;
    height: 350px;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-pdf {
    position: absolute;
    width: 40px;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
    opacity: 0.8;
}

.p3 { bottom: 15%; left: 25%; animation: softFloat 4.5s ease-in-out infinite 1s; }

@keyframes softFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes beeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-8px) rotate(1deg) scale(1.01); }
}

@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(200%); } }

.floating-bee {
    width: 50%;
    max-width: 200px;
    height: auto;
    z-index: 5;
    animation: beeFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.08));
}

/* FAQ Section */
.faq-section {
    padding: 100px 10%;
    background: var(--surface);
}

.faq-list {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    margin-bottom: 16px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: var(--bee-cursor);
    list-style: none; /* Hide default arrow */
}

.faq-question::-webkit-details-marker {
    display: none; /* Hide Chrome/Safari arrow */
}

.faq-question h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-dark);
    transition: transform 0.3s ease;
}

.faq-answer {
    background: rgba(0,0,0,0.01);
}

.faq-answer p {
    padding: 0 30px 24px;
    color: var(--text-dim);
    line-height: 1.7;
    margin: 0;
}

.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.section-header {
    text-align: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 40px 90px;
    position: relative;
    cursor: var(--bee-cursor);
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background: #fff;
}

.tool-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--surface) 0%, #fefefe 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

@media (max-width: 900px) {
    .tool-card.featured { grid-column: span 1; }
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.tool-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tool-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tool-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tool-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--surface-light);
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-dark);
    transition: var(--transition);
    opacity: 0.8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tool-card:hover .tool-arrow {
    opacity: 1;
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: scale(1.1);
}

.tool-card::after {
    content: 'Open Tool →';
    position: absolute;
    bottom: 40px;
    left: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dim);
    opacity: 0.6;
    transition: var(--transition);
}

.tool-card:hover::after {
    opacity: 1;
    color: var(--primary-dark);
}

/* Workspace */
.workspace {
    min-height: 80vh;
    padding: 120px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.workspace-header {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: var(--bee-cursor);
    font-size: 1rem;
    transition: var(--transition);
}

.back-btn:hover { color: var(--text-main); }

.drop-zone {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border: 2px dashed var(--glass-border);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.01);
}

.drop-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.drop-zone-content {
    text-align: center;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.file-list {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
}

/* Animations */
@keyframes float {
    0% { transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) translateY(-20px); }
    100% { transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) translateY(0); }
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.1); }
}

/* Footer */
.footer {
    padding: 80px 10% 40px;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-dark);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-dim);
    margin-top: 16px;
    max-width: 300px;
}

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

.link-group h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.link-group a:hover { color: var(--primary); }

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* --- Responsive Design --- */

@media (max-width: 1024px) {
    .nav-container { padding: 0 20px; }
    .nav-links { gap: 15px; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 120px 20px 60px; }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-main);
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1500;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-item {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 800;
    transition: var(--transition);
}

.mobile-nav-item:hover {
    color: var(--primary-dark);
    transform: translateX(10px);
}

.mobile-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.2rem;
    color: var(--text-main);
    cursor: pointer;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1501;
}

.mobile-close:hover {
    color: var(--primary-dark);
    transform: rotate(90deg);
}

.mobile-menu-open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.mobile-menu-open .menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- Global Responsiveness --- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
    .content-wrapper {
        gap: 40px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }
    .nav-container {
        padding: 0 20px;
        justify-content: space-between;
    }
    .nav-links, .nav-actions {
        display: none !important;
    }
    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .main-title {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    .main-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .hero-tools-section {
        padding: 120px 0 60px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .tool-card {
        padding: 30px 30px 80px;
    }

    .benefits-section, .seo-content-section, .faq-section {
        padding: 60px 20px;
    }

    .content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .visual-placeholder.no-bg {
        max-width: 100%;
        height: 300px;
    }

    .text-content h3 {
        font-size: 2rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 40px;
        padding: 0 30px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        width: 100%;
    }

    /* Workspace Responsiveness (Global Class) */
    .workspace-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .sidebar-order-mobile { order: 2; }
    .main-order-mobile { order: 1; }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.2rem;
    }
    .brand-name {
        font-size: 1.1rem;
    }
    .get-started-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .hero-tools-section {
        padding-top: 100px;
    }
    .footer-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 20px !important;
    }

    .link-group {
        flex: 1;
        text-align: left;
    }
}

/* User Menu & Authentication UI */
.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.logout-btn {
    background: rgba(255, 95, 86, 0.1);
    color: #ff5f56;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    background: #ff5f56;
    color: #fff;
    transform: translateY(-1px);
}

/* User Profile Pill */
.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-pearl);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-main);
}

.user-profile-pill:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.user-name-text {
    font-weight: 700;
    font-size: 0.9rem;
}

.navbar.scrolled {
    padding: 12px 0 !important;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-actions.auth-loaded {
    opacity: 1;
    pointer-events: auto;
}
/* --- Hive Animations for Hero Section --- */
.hive-animation {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 40px;
}

.floating-bee {
    animation: floatBee 6s ease-in-out infinite;
    z-index: 5;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.floating-pdf {
    position: absolute;
    opacity: 0.7;
    z-index: 2;
    animation: floatPDF 8s ease-in-out infinite;
}

.floating-pdf.p1 { top: 20%; left: 20%; animation-delay: 0s; }
.floating-pdf.p2 { bottom: 20%; right: 25%; animation-delay: 2s; }
.floating-pdf.p3 { top: 30%; right: 15%; animation-delay: 4s; }

@keyframes floatBee {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    75% { transform: translateY(10px) rotate(-5deg); }
}

@keyframes floatPDF {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -15px) rotate(10deg); }
    66% { transform: translate(-10px, 20px) rotate(-10deg); }
}

@media (max-width: 800px) {
    .hive-animation { height: 200px; }
    .floating-bee { font-size: 3.5rem !important; }
    .floating-pdf { font-size: 1.8rem !important; }
}
