/* =========================================
   CampusFaro - Premium SaaS Design System
========================================= */

:root {
    /* Color Palette - Institutional / Trust (navy + white, one muted accent) */
    --primary: #1e3a8a;
    --primary-hover: #15306e;
    --primary-light: rgba(30, 58, 138, 0.08);

    --secondary: #0f766e;
    --secondary-hover: #0b5a54;

    --success: #15803d;
    --warning: #b45309;
    --error: #b91c1c;

    /* Light institutional base */
    --bg-main: #ffffff;
    --bg-alt: #f5f7fa;
    --bg-glass: #ffffff;
    --bg-glass-heavy: #ffffff;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;

    --border-color: #e2e8f0;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-head: 'Lora', Georgia, 'Times New Roman', serif;

    /* Layout Constants */
    --container-width: 1200px;
    --container-padding: 2rem;
    --section-padding: 6rem;

    /* Effects - subtle, no glow */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 10px -2px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-mesh {
    display: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.section-padding { padding: var(--section-padding) 0; }
.pt-0 { padding-top: 0; }
.pt-3 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }
.pb-3 { padding-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: white; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-sm { font-size: 0.875rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.tracking-wide { letter-spacing: 0.05em; }
.opacity-80 { opacity: 0.8; }
.hidden { display: none !important; }
.bg-alt { background-color: var(--bg-alt); }
.divider-top { border-top: 1px solid var(--border-color); }

.text-gradient {
    color: var(--primary);
    display: inline-block;
}

.glassmorphism {
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.glass-card {
    background: var(--bg-glass-heavy);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
}

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

.glow-hover:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 58, 138, 0.25);
}

h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
    font-family: var(--font-head);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(30, 58, 138, 0.18);
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

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

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

.btn-block { width: 100%; }

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

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

.btn-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0.75rem 0.5rem;
    font-size: 1.05rem;
}

.btn-text-link:hover {
    color: var(--primary-hover);
}

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

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.logo-text { color: var(--text-main); }
.logo-dot { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn.active { color: var(--primary); }
.lang-btn:hover:not(.active) { color: var(--text-main); }
.lang-divider { color: var(--text-light); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.hero {
    padding: 12rem 0 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.dashboard-mockup {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.mockup-header {
    background: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.mockup-title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mockup-body {
    display: flex;
    height: 300px;
    background: rgba(255,255,255,0.9);
}

.mockup-sidebar {
    width: 60px;
    border-right: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8fafc;
}

.mockup-item.skeleton {
    width: 100%;
    height: 24px;
    border-radius: 4px;
    background: #e2e8f0;
}

.mockup-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

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

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

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

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.mockup-chart.skeleton {
    flex: 1;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    border: 1px dashed #cbd5e1;
}

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

.feature-card {
    padding: 2.5rem 2rem;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--primary-light);
    color: var(--primary);
}

.icon-wrapper.error {
    color: var(--error);
    background: rgba(185, 28, 28, 0.08);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Before / After Grid styling */
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.ba-card {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.ba-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.ba-header i { font-size: 2rem; }
.ba-header h3 { margin-bottom: 0; font-size: 1.25rem; }

.error-theme i { color: var(--error); }
.success-theme i { color: var(--success); }

.ba-list { list-style: none; }

.ba-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-main);
}

.ba-list li i {
    margin-top: 0.25rem;
    font-size: 1.25rem;
}

.ba-card.before .ba-list li i { color: var(--error); }
.ba-card.after .ba-list li i { color: var(--success); }

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

.stat-box {
    padding: 3rem 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-label-h {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.university-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.university-logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4rem;
}

.step-card {
    flex: 1;
    position: relative;
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.step-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.step-arrow {
    color: var(--text-light);
    font-size: 2rem;
    padding: 0 1rem;
}

.usecase-card {
    padding: 2rem;
}

.usecase-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.usecase-card h3 {
    margin-bottom: 0.75rem;
}

.usecase-card p {
    color: var(--text-muted);
}

.contact-section {
    background: #0f172a;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-wrapper {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 4rem;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.25);
}

.form-success-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.footer {
    background: white;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

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

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

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.25rem;
}

.founder-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (max-width: 992px) {
    .hero-container, .before-after-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-arrow i {
        transform: rotate(90deg);
    }
}

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

.pilot-card {
    padding: 2.5rem 2rem;
}

.pilot-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pilot-card h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.pilot-list {
    list-style: none;
    margin-top: 1rem;
}

.pilot-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.pilot-list li i {
    font-size: 1.25rem;
    margin-bottom: 0;
    margin-top: 0.1rem;
}

@media (max-width: 992px) {
    .pilot-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .grid-3, .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-wrapper {
        padding: 2rem;
    }
}

/* ROI Calculator */
.roi-calculator {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem;
}

.roi-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.roi-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.roi-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.roi-field .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
}

.roi-field .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.roi-field input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    margin-top: 0.4rem;
}

.roi-outputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.roi-out {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
}

.roi-out-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.roi-out-val {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-head);
}

.roi-out-primary {
    background: var(--primary-light);
}

.roi-out-primary .roi-out-val {
    color: var(--primary);
}

.roi-out-val.roi-negative {
    color: var(--error);
}

.roi-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 1.5rem 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .roi-inputs {
        grid-template-columns: 1fr;
    }
    .roi-outputs {
        grid-template-columns: 1fr 1fr;
    }
}
