html {
    scroll-behavior: smooth;
}
/* Consistent heading styles */
h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 400 !important; /* Bold weight for section titles */
    letter-spacing: -0.025em; /* Tight tracking like hero */
}
h2 {
    font-size: 2.5rem; /* Smaller than hero but still prominent */
}
h3 {
    font-size: 1.875rem;
}
h4 {
    font-size: 1.5rem;
}
@media (min-width: 768px) {
    h2 {
        font-size: 3rem;
    }
    h3 {
        font-size: 2.25rem;
    }
    h4 {
        font-size: 1.875rem;
    }
}
/* Custom styles following icon.com design patterns */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.1); /* Glass transparency */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-header.nav-hidden {
    transform: translateY(-100%);
}

.sticky-header.nav-visible {
    transform: translateY(0);
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFCF7; /* very light cream background */
    color: #111827;
    padding-top: 80px; /* Add padding to account for fixed navigation */
}
.hero-bg-highlight {
    background-color: #000000;
    color: #ffffff;
    padding: 0.1em 0.3em;
    border-radius: 0.25rem;
    display: inline-block;
    line-height: 1.2;
}
.feature-selector-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.feature-selector-item:hover {
    background: #f9fafb;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.feature-selected {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.25);
}

.productivity-pill {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.44); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #374151;
    padding: 0.5rem 2rem;
    border-radius: 9999px;
    border: 1px solid rgb(151, 151, 151);
    font-weight: 600;
}
.feature-image-container {
    max-width: 1110px;
    width: 100%;
    min-width: 300px;
    margin: 0 auto 3rem;
    box-shadow: 0 10px 40px 0 rgba(0,0,0,0.1);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e5e7eb;
}
.feature-image-container img {
    width: 100%;
    max-height: 99%;
    height: auto;
    object-fit: contain;
    transition: all 0.5s ease-in-out;
    transform-origin: center;
}
.feature-image-container.zoomed img {
    transform: scale(2);
}
.fade-out {
    opacity: 0;
}
.fade-in {
    opacity: 1;
}
.app-screenshot {
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}
.highlight-fade {
    transition: opacity 0.4s;
}
.desc-fade {
    transition: opacity 0.4s;
}
.main-btn {
    background: linear-gradient(to right, #2d3748, #000000);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.25);
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
}
.main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #1a202c, #000000);
}
.main-btn {
    position: relative;
    overflow: hidden;
}
.main-btn.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: glare 2.5s infinite;
    pointer-events: none;
}
@keyframes glare {
    0% { left: -100%; }
    100% { left: 100%; }
}
.secondary-btn {
    background: #ffffff;
    color: #374151;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.1);
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    transition: all 0.2s;
}
.secondary-btn:hover {
    background: #f9fafb;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}
.text-pink-highlight {
    background: #000000;
    color: #ffffff;
    border-radius: 0.25rem;
    padding: 0.1em 0.3em;
}
/* Initial page load animation */
.page-fadein {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.page-fadein.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Crossfade for feature description (no position change) */
.crossfade {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1);
}
.crossfade.visible {
    opacity: 1;
}
/* Accordion animation */
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.4s cubic-bezier(0.4,0,0.2,1);
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}
.faq-answer.open {
    max-height: 500px;
    opacity: 1;
    padding: 1rem 1.5rem 1rem 1.5rem;
}
.university-logo {
    display: inline-block;
    width: 240px;
    height: 60px;
    vertical-align: middle;
    margin: 0;
    padding: 0 0.25rem;
}

.university-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Light theme specific styles */
.section-light {
    background-color: #F8F4EC; /* Darker cream shade */
}

.card-light {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card-light:hover {
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

/* Pricing styles */
.pricing-toggle {
    display: inline-flex;
    background-color: #EDE9E4;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.25rem;
}
.pricing-toggle-button {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background: none;
    color: #374151;
    transition: all 0.2s;
    border: 1px solid transparent;
    position: relative;
}
.pricing-toggle-button.active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #e5e7eb;
}
.pricing-discount-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    z-index: 10;
    white-space: nowrap;
}
.pricing-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 460px; /* Taller cards */
    min-width: 400px;
    max-width: 600px;
    flex: 0 0 auto;
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.pro-card {
    position: relative;
    overflow: hidden;
    border-color: #000000;
    background-color: #ffffff; /* Fallback */
}
.pricing-card > * {
    position: relative;
    z-index: 2;
}
.pro-card .card-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.pro-card .card-bg-shapes div {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15; /* More subtle on dark background */
}
.pro-card .shape1 {
    width: 250px; /* Larger */
    height: 250px;
    top: -50px;
    right: -80px;
    background: #ffffff; /* White for contrast on dark */
}
.pro-card .shape3 {
    width: 220px; /* Larger */
    height: 220px;
    bottom: 50px;
    right: -50px;
    background: #60a5fa; /* Light blue */
}
.pro-card .shape4 {
    width: 200px;
    height: 200px;
    top: -60px;
    left: -60px;
    background: #a78bfa; /* Light purple */
}
/* Case Study Styles */
.case-study-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.case-study-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0,0,0,0.11);
}
.case-study-image {
    flex-shrink: 0;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.case-study-content {
    padding: 1.5rem;
}
.case-study-list {
    list-style: none;
    padding-left: 0;
}
.case-study-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.case-study-list .check-icon {
    flex-shrink: 0;
    margin-top: 4px;
    width: 1rem;
    height: 1rem;
    color: #14B8A6; /* Teal-500 */
}
/* Tablet and Desktop overrides */
@media (min-width: 768px) { .case-study-card { flex-direction: row; } .case-study-image { width: 200px; height: auto; } .case-study-content { padding: 2rem; } .case-study-card.full-width-img { flex-direction: column; } .case-study-card.full-width-img .case-study-image { width: 100%; height: 200px; } }

/* Why It Works Styles */
.testimonial-container {
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: left;
    position: relative;
    min-height: 200px;
    overflow: hidden;
}

.testimonial-container::after {
    content: '';
    position: absolute;
    top: 75%;
    right: 15%;
    width: 240px;
    height: 240px;
    background-color: rgba(34, 197, 194, 0.15);
    border-radius: 50%;
    transform: translate(50%, -50%);
    filter: blur(30px);
    z-index: 0;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    padding: 2rem 2rem 1rem 2rem; /* top, right, bottom, left - reduced bottom padding */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.testimonial-item.active {
    opacity: 1;
}
.testimonial-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}
.benefit-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
}
.logo-cloud-container {
    margin-top: 4rem;
    padding-top: 2rem;
}
.logo-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}
.logo-item {
    height: 40px;
    filter: grayscale(20%);
    opacity: 1;
    transition: all 0.3s ease;
}
.logo-item:hover {
    filter: grayscale(0%) brightness(1.1);
    opacity: 1;
    transform: scale(1.05);
}
/* Hero BG Shape */
.hero-bg-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 800px;
    background: radial-gradient(circle, rgba(243, 203, 190, 0.6) 0%, rgba(255, 182, 133, 0.159) 70%); /* Orangish cream gradient */
    border-radius: 50%;
    filter: blur(120px);
    opacity: 1;
    z-index: -1; /* Behind content */
}

/* Footer Styles */
.footer-bg {
    position: relative;
    overflow: hidden;
}
.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.footer-hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}
.footer-hero-shape1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: 20%;
    background: radial-gradient(circle, rgba(250, 216, 206, 0.4) 0%, rgba(249, 206, 194, 0.1) 70%); /* Same as hero */
}
.footer-hero-shape2 {
    width: 700px;
    height: 700px;
    bottom: -250px;
    right: 15%;
    background: radial-gradient(circle, rgba(250, 216, 206, 0.5) 0%, rgba(249, 206, 194, 0.15) 70%); /* Same as hero */
}
.footer-logo {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* How It Works Styles */
.step-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 0.75rem; /* Less rounded similar to pill */
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    text-align: left;
    display: flex;
    flex-direction: column; /* Mobile-first: GIF on top */
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden; /* Ensure child corners are clipped */
}
.step-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}
.gif-container {
    flex-shrink: 0;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 16 / 9; /* Enforce 16:9 aspect ratio */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}
.gif-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.step-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}
/* Desktop Layout - Keep column layout but improve spacing */
@media (min-width: 1024px) {
    .step-card {
        flex-direction: column;
        align-items: center;
        max-width: 400px;
        margin: 0 auto;
    }
    .gif-container {
        width: 100%;
        height: 250px; /* Fixed height for consistency */
    }
    .step-content {
        width: 100%;
        padding: 2rem;
        text-align: center;
    }
}



/* New Case Study Styles */
.result-card {
    background: rgba(245, 239, 230, 0.5); /* Light Almond Glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.result-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: rgba(245, 239, 230, 0.65); /* Darker on hover */
}
.result-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: #111827; /* Gray-900 */
}
.result-card .check-icon {
     color: #14B8A6; /* Teal-500 */
}
.result-card-persona {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4B5563; /* Gray-600 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Authentication Modal Styles */
#authModal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

#authModal.show {
    animation: modalFadeIn 0.3s ease;
}

#authModal .bg-white {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        transform: scale(0.95) translateY(20px);
        opacity: 0;
    }
    to { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.auth-tab {
    position: relative;
    transition: all 0.2s ease;
}

.auth-tab.active {
    color: #000000;
    border-bottom-color: #000000;
}

.auth-tab:not(.active):hover {
    color: #374151;
}

.auth-form {
    transition: opacity 0.2s ease;
}

.auth-form.hidden {
    display: none;
}

/* Form input focus states */
.auth-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Loading spinner animations */
.login-spinner,
.signup-spinner,
.google-spinner,
.google-signup-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error state animations */
#errorState {
    animation: errorSlideIn 0.3s ease;
}

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

/* Success state animations */
#successState {
    animation: successFadeIn 0.4s ease;
}

@keyframes successFadeIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Button disabled state */
.main-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Google button hover state */
#googleLoginBtn:hover,
#googleSignupBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

/* Dashboard Styles */
.dashboard-nav-item {
    color: #6B7280;
    font-weight: 500;
}

.dashboard-nav-item:hover {
    background-color: #F3F4F6;
    color: #374151;
}

.dashboard-nav-item.active {
    background-color: #000000;
    color: #FFFFFF;
}

.dashboard-nav-item.active:hover {
    background-color: #1F2937;
}

.dashboard-section {
    transition: opacity 0.2s ease;
}

.dashboard-section.hidden {
    display: none;
}

/* Usage progress bars */
.usage-progress {
    transition: width 0.8s ease-out;
}

/* Plan badges */
.plan-badge-free {
    background-color: #F3F4F6;
    color: #374151;
}

.plan-badge-pro {
    background-color: #DBEAFE;
    color: #1D4ED8;
}

.plan-badge-ultra {
    background-color: #F3E8FF;
    color: #7C3AED;
}

/* Document list items */
.document-item {
    transition: all 0.2s ease;
}

.document-item:hover {
    background-color: #F9FAFB;
    transform: translateY(-1px);
}

/* Activity items */
.activity-item {
    border-left: 3px solid #E5E7EB;
    transition: border-color 0.2s ease;
}

.activity-item:hover {
    border-left-color: #000000;
}

/* Loading state for dashboard */
.dashboard-loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive dashboard */
@media (max-width: 768px) {
    #dashboardContainer {
        max-width: 95vw !important;
        height: 95vh !important;
    }
    
    #dashboardContainer .w-64 {
        width: 200px;
    }
    
    .grid-cols-1.md\\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
}