:root {
    /* Primary Colors */
    --primary: #22C55E;
    --primary-hover: #16A34A;

    /* Background Colors */
    --bg-main: #0B0F19;
    --bg-navbar: rgba(11, 15, 25, 0.8);
    --bg-card: #111827;
    --bg-secondary: #1F2937;

    /* Text Colors */
    --text-heading: #F9FAFB;
    --text-normal: #D1D5DB;
    --text-muted: #9CA3AF;

    /* Border & Input */
    --border-color: #374151;
    --input-bg: #1F2937;
    --input-focus: #22C55E;
}

body {
    background-color: var(--bg-main);
    color: var(--text-normal);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.landing-navbar {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3000;
}

@media (max-width: 768px) {
    .landing-navbar { padding: 0 1rem; }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    z-index: 3101;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-heading);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--text-normal);
    text-decoration: none;
    margin-left: 24px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-login {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    padding: 8px 20px;
    border-radius: 8px;
    margin-left: 24px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-login:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

.btn-signup {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    margin-left: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

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

/* Hero Section */
.hero-section {
    padding: 120px 5% 80px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-section { padding: 100px 1rem 60px; }
    .hero-title { font-size: 36px; }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    gap: 16px;
}

.hero-cta {
    display: inline-flex;
    gap: 16px;
}

/* Jot-Style Feature Banner */
.jot-banner-section {
    padding: 60px 0;
}

.jot-banner {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #f43f5e 100%);
    border-radius: 32px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.3);
}

.jot-banner-content {
    flex: 1;
    max-width: 550px;
    z-index: 2;
}

.jot-banner-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.jot-banner-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.btn-jot-white {
    background: white;
    color: #6366f1;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-jot-white:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.jot-banner-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mascot-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: float-jot 6s ease-in-out infinite;
}

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

@media (max-width: 991px) {
    .jot-banner { flex-direction: column; text-align: center; padding: 40px; }
    .jot-banner-visual { margin-top: 40px; justify-content: center; }
    .jot-banner-content { max-width: 100%; }
    .jot-banner-title { font-size: 2.2rem; }
}

/* Features Grid */
.features-section {
    padding: 80px 5%;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--text-heading);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Login Card inside landing/auth pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    /*max-width: 400px;*/
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
    text-align: center;
}

.auth-card input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-normal);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.auth-card input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.auth-card button {
    width: 100%;
}
/* Global Bootstrap Dark Theme Overrides */
.card { background-color: var(--bg-card); color: var(--text-normal); border-color: var(--border-color); }
.list-group-item { background-color: var(--bg-card); color: var(--text-normal); border-color: var(--border-color); }
.dropdown-menu { background-color: var(--bg-secondary); border-color: var(--border-color); }
.dropdown-item { color: var(--text-normal); }
.dropdown-item:hover { background-color: var(--bg-card); color: var(--text-heading); }
.form-control, .form-select { background-color: var(--input-bg); color: var(--text-normal); border-color: var(--border-color); }
.form-control:focus, .form-select:focus { background-color: var(--input-bg); color: var(--text-heading); border-color: var(--primary); box-shadow: 0 0 0 0.25rem rgba(34, 197, 94, 0.25); }
.form-label, label { color: var(--text-muted); }
.table { color: var(--text-normal); }
.modal-content { background-color: var(--bg-card); color: var(--text-normal); }
.modal-header, .modal-footer { border-color: var(--border-color); }
.text-muted { color: var(--text-muted) !important; }

/* Light Theme Overrides */
html[data-theme="light"] {
    --bg-main: #F9FAFB;
    --bg-navbar: rgba(249, 250, 251, 0.8);
    --bg-card: #FFFFFF;
    --bg-secondary: #F3F4F6;
    --text-heading: #111827;
    --text-normal: #374151;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --input-bg: #FFFFFF;
    --input-focus: #22C55E;
}


/* Dashboard Mockup Shadow & Border */
.mockup-container {
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mockup-img {
    border-radius: 12px;
    width: 100%;
    display: block;
}

/* How It Works Steps */
.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Universal Window Frame for Mockups & Code */
.window-frame {
    background: #0D1117;
    border-radius: 12px;
    border: 1px solid #30363d;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    margin-top: 24px;
}

.window-header {
    background: #161b22;
    padding: 12px 20px;
    border-bottom: 1px solid #30363d;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.window-dot { width: 10px; height: 10px; border-radius: 50%; }
.window-title { margin-left: 8px; color: #8b949e; font-size: 0.75rem; font-weight: 500; }

.window-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

.window-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* Code Preview Section */
.code-window {
    background: #0D1117;
    border-radius: 12px;
    border: 1px solid #30363d;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.code-header {
    background: #161b22;
    padding: 12px 20px;
    border-bottom: 1px solid #30363d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-dot { width: 10px; height: 10px; border-radius: 50%; }

.code-body { padding: 24px; color: #c9d1d9; }
.code-keyword { color: #ff7b72; }
.code-string { color: #a5d6ff; }
.code-comment { color: #8b949e; }
.code-func { color: #d2a8ff; }

/* Integrations Grid */
.integration-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.integration-card:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    background: rgba(34, 197, 94, 0.05);
}

.integration-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

/* Section Spacing */
.section-padding { padding: 100px 0; }
.section-title { font-size: 2.5rem; font-weight: 800; color: var(--text-heading); margin-bottom: 16px; letter-spacing: -1px; }

/* Adaptivity */
html[data-theme="light"] .code-window { background: #f6f8fa; border-color: #d0d7de; }
html[data-theme="light"] .code-header { background: #f3f4f6; border-color: #d0d7de; }
html[data-theme="light"] .code-body { color: #24292f; }
html[data-theme="light"] .code-keyword { color: #cf222e; }
html[data-theme="light"] .code-string { color: #0a3069; }
html[data-theme="light"] .code-comment { color: #6e7781; }
html[data-theme="light"] .code-func { color: #8250df; }

html[data-theme="light"] .window-frame { background: #FFFFFF; border-color: #d0d7de; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
html[data-theme="light"] .window-header { background: #f6f8fa; border-color: #d0d7de; }
html[data-theme="light"] .window-title { color: #57606a; }


/* Global Responsiveness Overhaul */
@media (max-width: 991px) {
    .jot-banner { flex-direction: column; text-align: center; padding: 40px; }
    .jot-banner-visual { margin-top: 40px; justify-content: center; width: 100%; }
    .jot-banner-content { max-width: 100%; width: 100%; }
    .jot-banner-title { font-size: 2.5rem; }
    .mascot-img { max-width: 300px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    
    .nav-menu-container {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 30px;
        display: none; /* Controlled by JS */
        flex-direction: column;
        gap: 24px;
        z-index: 3100;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
    
    .nav-menu-container.active { display: flex; }

    .nav-links { 
        display: flex !important; 
        flex-direction: column; 
        gap: 20px; 
        margin: 0; 
        text-align: center;
    }
    
    .nav-links a { margin: 0; font-size: 1.2rem; }
    
    .nav-actions { 
        flex-direction: column; 
        width: 100%; 
        gap: 16px; 
    }
    
    .nav-actions .btn-login, .nav-actions .btn-signup {
        width: 100%;
        margin: 0 !important;
        padding: 14px;
        justify-content: center;
        display: flex;
        font-size: 1.1rem;
    }

    .hero-section { padding-top: 100px; }
    .display-3 { font-size: 2.8rem !important; }
    .hero-cta { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
    
    .section-title { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .display-3 { font-size: 2.2rem !important; }
    .jot-banner-title { font-size: 1.8rem; }
    .jot-banner { padding: 30px 20px; border-radius: 20px; }
    .btn-jot-white { width: 100%; text-align: center; }
}
