/* === Novinax — Professional SaaS Design System === */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors — professional, trustworthy */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-soft: #c7d2fe;
    --secondary: #0d9488;
    --secondary-light: #f0fdfa;
    --accent: #f59e0b;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Layout */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition: 150ms ease;
    --transition-slow: 300ms ease;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Skip Link === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 0; }

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
}

.logo-text {
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    margin: 0 auto;
}

.nav-links li a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-links li a.btn-primary {
    color: #ffffff;
    background: var(--primary);
}

.nav-links li a.btn-primary:hover {
    color: #ffffff;
    background: var(--primary-hover);
}

.nav-links li a:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.nav-link-signin {
    color: var(--gray-700) !important;
    font-weight: 600 !important;
}

.nav-greeting {
    color: var(--gray-500);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    position: relative;
    transition: var(--transition);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    left: 0;
    transition: var(--transition);
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1.5;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-sm), 0 1px 2px rgba(79, 70, 229, 0.2);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow), 0 4px 12px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    flex-direction: column;
    gap: 0.1rem;
}

.btn-large .btn-subtext {
    font-size: 0.6875rem;
    font-weight: 400;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.btn-nav {
    padding: 0.5rem 1.125rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius);
    letter-spacing: 0.01em;
}

.play-icon {
    font-size: 0.75rem;
}

/* === Hero === */
.hero {
    padding: 7rem 0 3rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
    position: relative;
}

.hero .container {
    width: 100%;
}

.hero-prompt-layout {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-prompt-layout .hero-content {
    margin-bottom: 2rem;
}

.hero-prompt-layout .hero-stats {
    justify-content: center;
    margin-top: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-xs);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

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

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-600);
    margin-bottom: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* === Hero Visual === */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.visual-glow {
    display: none;
}

.agent-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    width: 310px;
    transition: var(--transition);
}

.agent-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.agent-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.agent-info {
    flex: 1;
    min-width: 0;
}

.agent-info p {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-900);
    margin-bottom: 0.1rem;
}

.agent-task {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.status {
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    flex-shrink: 0;
}

.status.active {
    background: #ecfdf5;
    color: var(--success);
}

/* Floating animation */
.floating {
    animation: float 5s ease-in-out infinite;
}
.floating.delay-1 { animation-delay: 1s; }
.floating.delay-2 { animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* === Social Proof === */
.social-proof {
    padding: 2rem 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.social-proof .container {
    text-align: center;
}

.social-proof-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.institution-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.institution {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-400);
}

/* === Section Shared === */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
    line-height: 1.6;
}

/* === Features === */
.features {
    padding: 5rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}

.feature-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* === How It Works === */
.how-it-works {
    padding: 5rem 0;
    background: var(--gray-50);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 1.5rem;
    flex: 1;
}

.step-connector {
    width: 48px;
    height: 2px;
    background: var(--gray-300);
    margin-top: 2rem;
    flex-shrink: 0;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.step-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--gray-900);
}

.step-content p {
    color: var(--gray-500);
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* === Agents Section === */
.agents {
    padding: 5rem 0;
    background: var(--gray-50);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.agent-type-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition);
}

.agent-type-card:hover {
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-md);
}

.agent-type-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.agent-type-icon {
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.agent-type-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
}

.agent-type-card > p {
    color: var(--gray-500);
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.agent-type-card ul {
    list-style: none;
    padding: 0;
}

.agent-type-card li {
    padding: 0.3rem 0;
    color: var(--gray-600);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.agent-type-card li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* === Testimonials === */
.testimonials {
    padding: 5rem 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.testimonial-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.testimonial-stars {
    color: var(--accent);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.testimonial-card blockquote {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.author-info span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* === FAQ === */
.faq {
    padding: 5rem 0;
    background: var(--gray-50);
}

.faq-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

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

.faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--gray-800);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    line-height: 1.4;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--gray-400);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 1rem;
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '−';
    color: var(--primary);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--gray-100);
}

.faq-item p {
    padding: 0.75rem 1.25rem 1.25rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* === Final CTA === */
.final-cta {
    padding: 5rem 0;
    background: var(--white);
}

.cta-box {
    background: var(--primary-light);
    border: 1px solid var(--primary-soft);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem;
    text-align: center;
}

.cta-box h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.cta-box > p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    margin-bottom: 0.75rem;
}

.cta-note {
    font-size: 0.75rem !important;
    color: var(--gray-500) !important;
}

/* === Footer === */
.footer {
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo {
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.8125rem;
    line-height: 1.6;
    max-width: 260px;
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.25rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.8125rem;
}

/* === Toast Notifications === */
.toast-container {
    position: fixed;
    top: 4.5rem;
    right: 1.5rem;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    animation: slideIn 0.3s ease;
    transition: all 0.3s ease;
}

.toast-hide {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

.toast-success { border-left: 3px solid var(--success); color: var(--gray-700); }
.toast-error { border-left: 3px solid var(--error); color: var(--gray-700); }
.toast-info { border-left: 3px solid var(--info); color: var(--gray-700); }

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.toast-close:hover { color: var(--gray-600); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* === Auth Pages === */
.auth-section {
    padding: 7rem 0 4rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--gray-50);
}

.auth-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.auth-subtitle {
    color: var(--gray-500);
    margin-bottom: 1.75rem;
    font-size: 0.875rem;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--gray-700);
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-800);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
    color: var(--gray-400);
}

.btn-full {
    width: 100%;
    margin-top: 0.75rem;
}

.field-errors .error {
    display: block;
    color: var(--error);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.field-help {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    color: var(--gray-500);
    font-size: 0.8125rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* === Google OAuth Button === */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.btn-google:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    box-shadow: var(--shadow-sm);
}

.google-icon { flex-shrink: 0; }

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    gap: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    font-size: 0.75rem;
    color: var(--gray-400);
    white-space: nowrap;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .features-grid,
    .agents-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

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

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        z-index: 999;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links li a {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .features-grid,
    .agents-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .step-connector {
        width: 2px;
        height: 24px;
        margin: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-box {
        padding: 2rem 1.25rem;
    }

    .toast-container {
        top: auto;
        bottom: 1rem;
        right: 0.75rem;
        left: 0.75rem;
    }

    .auth-card {
        padding: 1.75rem;
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .institution-logos {
        gap: 1rem;
    }
}

/* === Reduced Motion === */
@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; }
}

/* === Theme Toggle Button === */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: 3;
}

.theme-toggle {
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 0.4rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--gray-500);
}

.theme-toggle:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.theme-toggle svg {
    display: block;
}

.theme-icon-dark {
    display: none;
}

/* === Dark Mode === */
[data-theme="dark"] {
    --white: #0f1117;
    --gray-50: #161922;
    --gray-100: #1e222d;
    --gray-200: #2a2f3d;
    --gray-300: #3b4255;
    --gray-400: #6b7490;
    --gray-500: #8b92a8;
    --gray-600: #a8afc2;
    --gray-700: #c8cdd8;
    --gray-800: #e2e5ec;
    --gray-900: #f3f4f7;

    --primary-light: #1e1b4b;
    --primary-soft: #312e81;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 17, 23, 0.92);
    border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
}

[data-theme="dark"] .theme-toggle {
    background: var(--gray-100);
    color: var(--gray-500);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

[data-theme="dark"] .hamburger,
[data-theme="dark"] .hamburger::before,
[data-theme="dark"] .hamburger::after {
    background: var(--gray-700);
}

[data-theme="dark"] .logo {
    color: var(--gray-900);
}

[data-theme="dark"] .btn-secondary {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-700);
}

[data-theme="dark"] .btn-google {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-700);
}

[data-theme="dark"] .nav-links.nav-open {
    background: var(--white);
}

/* === Pricing Page === */
.pricing-hero {
    padding: 7rem 0 2rem;
    background: var(--gray-50);
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.billing-option {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-weight: 500;
    transition: var(--transition);
}

.billing-option.active {
    color: var(--gray-900);
    font-weight: 600;
}

.billing-save {
    background: #ecfdf5;
    color: var(--success);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--gray-200);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.toggle-switch[data-state="annual"] {
    background: var(--primary);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.toggle-switch[data-state="annual"] .toggle-knob {
    left: 23px;
}

/* Pricing Cards */
.pricing-cards {
    padding: 2rem 0 5rem;
    background: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.875rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-card-header {
    margin-bottom: 1.5rem;
}

.pricing-card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.pricing-description {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.period {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-features li {
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.pricing-features li.included {
    color: var(--gray-700);
}

.pricing-features li.included::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pricing-features li.excluded {
    color: var(--gray-400);
}

.pricing-features li.excluded::before {
    content: "—";
    color: var(--gray-300);
    flex-shrink: 0;
}

/* Comparison Table */
.pricing-comparison {
    padding: 5rem 0;
    background: var(--white);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.comparison-table th {
    font-weight: 600;
    color: var(--gray-900);
    background: var(--gray-50);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comparison-table th:not(:first-child) {
    text-align: center;
}

.comparison-table td:not(:first-child) {
    text-align: center;
    color: var(--gray-600);
}

.comparison-table td:first-child {
    color: var(--gray-700);
    font-weight: 500;
}

.comparison-table tbody tr:hover {
    background: var(--gray-50);
}

/* Responsive Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: none;
    }

    .comparison-table {
        font-size: 0.75rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.6rem;
    }
}

/* === Prompt Box (in hero) === */
.try-now {
    padding: 0;
    background: transparent;
}

.prompt-box {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.prompt-header {
    margin-bottom: 1.5rem;
}

.prompt-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.prompt-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.375rem;
}

.prompt-header p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.prompt-form {
    text-align: left;
}

.prompt-input-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.prompt-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.prompt-input {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--gray-800);
    background: transparent;
    line-height: 1.6;
}

.prompt-input::placeholder {
    color: var(--gray-400);
}

.prompt-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
    gap: 0.75rem;
}

/* File Upload Area */
.prompt-file-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    transition: var(--transition);
    white-space: nowrap;
}

.file-upload-label:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.file-upload-label svg {
    flex-shrink: 0;
}

.file-input-hidden {
    display: none;
}

.file-types-hint {
    font-size: 0.6875rem;
    color: var(--gray-400);
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.file-list:empty {
    display: none;
}

.file-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.6rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.file-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.file-remove-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.file-remove-btn:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.file-item-name {
    color: var(--gray-700);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.file-item-size {
    color: var(--gray-400);
    flex-shrink: 0;
}

.file-progress-bar {
    width: 100%;
    height: 3px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.file-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.2s ease;
}

.file-status {
    font-size: 0.6875rem;
    color: var(--gray-400);
}

.file-status-done {
    color: var(--success);
}

.file-status-error {
    color: var(--error);
}

/* Upload Spinner */
.upload-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.prompt-suggestions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.suggestion-chip {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.7rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.suggestion-chip:hover {
    background: var(--primary-light);
    border-color: var(--primary-soft);
    color: var(--primary);
}

.prompt-submit {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    gap: 0.4rem;
    flex-shrink: 0;
    border-radius: var(--radius);
}

.prompt-note {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--gray-400);
}

@media (max-width: 768px) {
    .prompt-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .prompt-suggestions {
        justify-content: center;
    }

    .prompt-submit {
        width: 100%;
        justify-content: center;
    }
}
