/* Academic Platform - Main Stylesheet */
/* Refined Professional Aesthetic with Subtle Elegance */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&family=Work+Sans:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette - Elegant Navy & Warm Accents */
    --primary: #1a365d;
    --primary-dark: #0f2744;
    --primary-light: #2d4a6f;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #0284c7;
    
    /* Neutrals */
    --gray-50: #fafaf9;
    --gray-100: #f5f5f4;
    --gray-200: #e7e5e4;
    --gray-300: #d6d3d1;
    --gray-400: #a8a29e;
    --gray-500: #78716c;
    --gray-600: #57534e;
    --gray-700: #44403c;
    --gray-800: #292524;
    --gray-900: #1c1917;
    
    /* Typography */
    --font-display: 'Crimson Pro', serif;
    --font-body: 'Work Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.container-wide {
    max-width: 1400px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--space-lg) 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo:hover {
    color: var(--accent-light);
}

.logo-icon {
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: var(--accent);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--space-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,58.7C960,64,1056,64,1152,58.7L1200,56L1200,0L1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z" fill="rgba(255,255,255,0.05)"/></svg>') repeat-x bottom;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

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

.card-header {
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-lg);
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.card-body {
    color: var(--gray-700);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 0.75rem var(--space-md);
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

.form-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover:not(:disabled) {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.badge-primary { background: var(--primary); color: white; }
.badge-success { background: var(--success); color: white; }
.badge-danger { background: var(--danger); color: white; }
.badge-warning { background: var(--warning); color: white; }
.badge-info { background: var(--info); color: white; }
.badge-secondary { background: var(--gray-500); color: white; }

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin-bottom: var(--space-lg);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: var(--gray-100);
}

.table th {
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-300);
}

.table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr {
    transition: background var(--transition-fast);
}

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

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card.accent {
    border-left-color: var(--accent);
}

.stat-card.success {
    border-left-color: var(--success);
}

.stat-card.info {
    border-left-color: var(--info);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Alerts */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    border-left: 4px solid;
    animation: slideInDown 0.3s ease-out;
}

.alert-success {
    background: #d1fae5;
    border-color: var(--success);
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    border-color: var(--danger);
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    border-color: var(--warning);
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border-color: var(--info);
    color: #075985;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-out;
}

.modal-header {
    padding: var(--space-xl);
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    padding: var(--space-xl);
}

.modal-footer {
    padding: var(--space-xl);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-xl) 0;
    margin-top: var(--space-2xl);
    text-align: center;
}

.footer a {
    color: var(--accent-light);
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .header {
        padding: var(--space-sm) 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: var(--space-sm);
    }
    
    /* Nav collapses into hamburger dropdown (see HAMBURGER MENU section) */
    .header .nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .card {
        padding: var(--space-lg);
    }
}

/* ============================================================
   LANDING PAGE v2 — Expanded Index, Floating Button & Modal
   ============================================================ */

/* --- Header polish --- */
.nav-link-cta {
    background: var(--accent);
    color: white !important;
    border-radius: var(--radius-md);
}
.nav-link-cta:hover {
    background: var(--accent-light);
}

/* --- Larger Hero --- */
.hero-large {
    padding: 5.5rem 0 5rem;
    background:
        radial-gradient(ellipse at 20% -20%, rgba(217, 119, 6, 0.18), transparent 55%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fde8c8;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease-out;
}
.hero-large h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}
.hero-large p {
    max-width: 680px;
    font-size: 1.2rem;
}
.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}
.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-hero-outline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
    color: white;
}
.hero-trust {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInUp 0.8s ease-out 0.45s backwards;
}

/* --- Stats strip --- */
.stats-strip {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-xl) 0;
    box-shadow: var(--shadow-sm);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}
.stat-label {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* --- Generic sections --- */
.section {
    padding: 4.5rem 0;
}
.section-alt {
    background: white;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}
.section-head h2 {
    font-size: 2.4rem;
}
.section-head p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* --- Steps --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}
.step-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.step-number {
    position: absolute;
    top: -1.1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}
.step-icon {
    font-size: 2.4rem;
    margin-bottom: var(--space-md);
}
.step-card h4 {
    font-size: 1.3rem;
}
.step-card p {
    color: var(--gray-600);
    margin-bottom: 0;
    font-size: 0.98rem;
}

/* --- Study types --- */
.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}
.type-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition-base);
}
.type-card:hover {
    border-color: var(--accent);
    background: white;
    box-shadow: var(--shadow-md);
}
.type-card span {
    font-size: 1.8rem;
}
.type-card h5 {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gray-800);
}
.fields-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}
.field-tag {
    background: white;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.field-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}
.feature-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}
.feature-card h4 {
    font-size: 1.2rem;
}
.feature-card p {
    color: var(--gray-600);
    margin-bottom: 0;
    font-size: 0.98rem;
}

/* --- Form layout --- */
.form-card {
    padding: var(--space-xl);
}
.form-card:hover {
    transform: none;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}
.form-footnote {
    color: var(--gray-600);
}
.form-footnote a {
    color: var(--accent);
    font-weight: 500;
}

/* --- FAQ --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.faq-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}
.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform var(--transition-fast);
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item p {
    margin: var(--space-md) 0 0;
    color: var(--gray-600);
}

/* --- CTA band --- */
.cta-band {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}
.cta-band h2 {
    color: white;
    font-size: 2.2rem;
}
.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

/* --- Rich footer --- */
.footer-rich {
    padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
    text-align: left;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-sm);
}
.footer-grid p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}
.footer-grid h5 {
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}
.footer-grid a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}
.footer-grid a:hover {
    color: var(--accent-light);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: var(--space-lg);
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* --- Floating Action Button --- */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
    transition: all var(--transition-base);
    animation: fabPulse 2.5s ease-in-out infinite;
}
.fab:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.55);
    animation: none;
}
.fab-icon {
    font-size: 1.2rem;
}
.fab-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
}
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45); }
    50% { box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45), 0 0 0 12px rgba(217, 119, 6, 0.12); }
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 39, 68, 0.65);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition-base);
}
.modal-overlay.is-open .modal {
    transform: translateY(0) scale(1);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
}
.modal-close {
    background: var(--gray-100);
    border: none;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.modal-close:hover {
    background: var(--danger);
    color: white;
}
.modal-body {
    padding: var(--space-xl);
    overflow-y: auto;
}
body.modal-open {
    overflow: hidden;
}

/* --- Responsive for new sections --- */
@media (max-width: 992px) {
    .steps-grid,
    .features-grid,
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .hero-large {
        padding: 3.5rem 0 3rem;
    }
    .hero-large h1 {
        font-size: 2.2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid,
    .features-grid,
    .types-grid,
    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid {
        gap: var(--space-2xl);
    }
    .footer-grid {
        text-align: center;
    }
    .section {
        padding: 3rem 0;
    }
    .fab {
        padding: 0.9rem 1.1rem;
        bottom: 1rem;
        right: 1rem;
    }
    .fab-text {
        display: none;
    }
    .fab-icon {
        font-size: 1.5rem;
    }
}

/* ============================================================
   RESPONSIVE v2 — Platform-wide (dashboards, tables, forms)
   ============================================================ */

/* Smoother horizontal scroll for tables everywhere */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}
.table {
    min-width: 640px; /* scroll instead of crushing columns on phones */
}
.table th,
.table td {
    white-space: nowrap;
}
.table td .btn + .btn {
    margin-left: 0.35rem;
}

/* Tablets & small laptops */
@media (max-width: 1100px) {
    .container,
    .container-wide {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets portrait */
@media (max-width: 992px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.8rem; }

    .card-header .flex,
    .card-header.flex,
    .flex.justify-between {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
}

/* Phones */
@media (max-width: 768px) {
    /* Prevent iOS auto-zoom when focusing inputs (needs >=16px) */
    .form-control,
    select.form-control,
    textarea.form-control {
        font-size: 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .stat-card {
        padding: var(--space-lg);
    }

    .card-header {
        padding-bottom: var(--space-sm);
        margin-bottom: var(--space-md);
    }
    .card-title {
        font-size: 1.25rem;
    }

    /* Action buttons inside cells stay tappable */
    .btn-sm {
        padding: 0.45rem 0.7rem;
    }

    /* Filter/search rows in dashboards stack nicely */
    .flex {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    /* Wide inline-padded mains breathe less on phones */
    main[style],
    section[style] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Modal becomes a bottom sheet on phones */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .modal {
        max-width: 100%;
        max-height: 94vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    .modal-body {
        padding: var(--space-lg);
    }
    .modal-header {
        padding: var(--space-md) var(--space-lg);
    }

    .footer {
        padding: var(--space-xl) 0;
        font-size: 0.9rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container,
    .container-wide,
    .container-narrow {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .logo {
        font-size: 1.15rem;
    }

    .hero-large h1,
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-large p,
    .hero p {
        font-size: 1rem;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-trust {
        gap: var(--space-sm) var(--space-lg);
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
    .stat-number {
        font-size: 1.9rem;
    }

    .section {
        padding: 2.5rem 0;
    }
    .section-head h2 {
        font-size: 1.7rem;
    }

    .card,
    .form-card {
        padding: var(--space-lg) var(--space-md);
    }

    .btn-lg {
        padding: 0.8rem 1.4rem;
        font-size: 1rem;
    }

    .cta-band h2 {
        font-size: 1.6rem;
    }

    .table {
        min-width: 560px;
    }
}

/* ============================================================
   HAMBURGER MENU (mobile navigation)
   ============================================================ */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}
.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
    }

    .header .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
        padding: var(--space-sm) var(--space-lg) var(--space-lg);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        animation: slideInDown 0.25s ease-out;
    }

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

    .header .nav .nav-link {
        width: 100%;
        text-align: left;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }

    .header .nav .nav-link.active,
    .header .nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    .nav-link-cta {
        text-align: center !important;
    }
}