/* ============================================
   AFM Onboarding Platform — Landing Page Styles
   ============================================ */

:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2d5a8e;
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --accent-light: #ccfbf1;
    --amber: #f59e0b;
    --purple: #7c3aed;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(30, 58, 95, 0.08);
    --shadow-lg: 0 20px 60px rgba(30, 58, 95, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ---- Buttons ---- */
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.text-accent {
    color: var(--accent) !important;
}

/* ---- Navigation ---- */
#mainNav {
    background: transparent;
    padding: 0.65rem 0;
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    background: rgba(30, 58, 95, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.45rem 0;
}

#mainNav.menu-open {
    background: var(--primary-dark);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding-bottom: 1rem;
}

.navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
}

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer .brand-logo {
    height: 34px;
}

.navbar-brand .brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.nav-link {
    font-weight: 500;
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fff !important;
}

.navbar-toggler-custom {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    transition: all 0.2s ease;
}

.navbar-toggler-custom:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.navbar-toggler-custom .toggler-icon-close {
    display: none;
}

.navbar-toggler-custom[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-custom[aria-expanded="true"] .toggler-icon-open {
    display: none;
}

.navbar-toggler-custom[aria-expanded="true"] .toggler-icon-close {
    display: inline-block;
}

/* ---- Section Layout ---- */
.section-block {
    padding: 2.75rem 0;
}

.section-block-sm {
    padding: 2rem 0;
}

.section-header {
    margin-bottom: 1.75rem;
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0f2744 100%);
    position: relative;
    overflow: hidden;
    padding-top: 72px;
    padding-bottom: 2rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-badge {
    background: rgba(13, 148, 136, 0.2);
    color: var(--accent-light);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(13, 148, 136, 0.3);
}

.hero-title {
    color: #fff;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    max-width: 480px;
    line-height: 1.55;
}

.hero-stats .stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Hero Dashboard Mockup */
.hero-dashboard {
    position: relative;
}

.dashboard-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    z-index: 2;
}

.dashboard-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.pipeline-stage {
    margin-bottom: 0.5rem;
}

.stage-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 4px;
    margin-bottom: 0.35rem;
    transition: width 1s ease;
}

.stage-bar-teal { background: linear-gradient(90deg, var(--accent), #14b8a6); }
.stage-bar-amber { background: linear-gradient(90deg, var(--amber), #fbbf24); }
.stage-bar-green { background: linear-gradient(90deg, #22c55e, #4ade80); }

.stage-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.stage-info span { color: var(--text-muted); }
.stage-info strong { color: var(--text-dark); }

.candidate-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--border);
}

.candidate-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.candidate-avatar.avatar-2 {
    background: linear-gradient(135deg, var(--accent), #14b8a6);
}

.candidate-avatar.avatar-3 {
    background: linear-gradient(135deg, var(--purple), #a78bfa);
}

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

.candidate-info strong {
    display: block;
    font-size: 0.875rem;
}

.candidate-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.floating-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1rem;
}

.floating-card small {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.floating-card strong {
    font-size: 0.85rem;
}

.floating-card-1 {
    top: -10px;
    right: -20px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 20px;
    left: -20px;
    animation-delay: 1.5s;
}

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

/* ---- Trusted Section ---- */
.trusted-section {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 0;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.trusted-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.6;
    margin: 0;
    padding: 0.25rem 0;
}

.trust-logo {
    font-weight: 700;
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.trust-logo:hover {
    color: var(--primary);
}

/* ---- Section Utilities ---- */
.section-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    color: var(--text-dark);
    font-size: 1.65rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 540px;
    margin-bottom: 0;
}

/* ---- Feature Cards ---- */
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

.icon-blue { background: #dbeafe; color: #2563eb; }
.icon-teal { background: var(--accent-light); color: var(--accent); }
.icon-purple { background: #ede9fe; color: var(--purple); }
.icon-amber { background: #fef3c7; color: var(--amber); }
.icon-green { background: #dcfce7; color: #16a34a; }
.icon-red { background: #fee2e2; color: #dc2626; }

.feature-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ---- Multi-Tenant Section ---- */
.multitenant-section {
    background: #fff;
}

.multitenant-list {
    list-style: none;
    padding: 0;
}

.multitenant-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.multitenant-list li i {
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.multitenant-list li strong {
    display: block;
    margin-bottom: 0.25rem;
}

.multitenant-list li span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.tenant-diagram {
    background: linear-gradient(135deg, var(--bg-light), #eef2ff);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    position: relative;
}

.tenant-hub {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: var(--primary);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.tenant-hub i {
    font-size: 1.5rem;
}

.tenant-hub span {
    font-weight: 600;
}

.tenant-nodes {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tenant-node {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tenant-node:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.tenant-node i {
    font-size: 1.25rem;
    color: var(--primary);
}

.tenant-node span {
    font-weight: 600;
    font-size: 0.8rem;
}

/* ---- Steps ---- */
.step-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

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

.step-number {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.step-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 0 auto 0.85rem;
}

.step-card h5 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 0;
    line-height: 1.45;
}

.section-header-sm {
    margin-bottom: 1.25rem;
}

/* ---- Pricing ---- */
.pricing-section .section-title {
    font-size: 1.45rem;
}

.pricing-section .section-subtitle {
    font-size: 0.875rem;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 0.9rem;
    position: relative;
    transition: all 0.3s ease;
}

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

.pricing-card-featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-card h5 {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.price {
    margin-bottom: 0.35rem;
}

.price .currency {
    font-size: 0.85rem;
    font-weight: 600;
    vertical-align: super;
    color: var(--text-muted);
}

.price .amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.price .period {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.price .amount-custom {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0.65rem 0 0.85rem;
}

.pricing-features li {
    padding: 0.15rem 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.35;
}

.pricing-features li i {
    color: var(--accent);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ---- CTA Section ---- */
.cta-section {
    background: var(--bg-light);
    padding: 1.25rem 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    color: #fff;
}

.cta-title {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.3;
}

.cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    max-width: 420px;
    line-height: 1.45;
    margin-bottom: 0.75rem !important;
}

/* ---- Contact ---- */
.contact-section .section-title {
    font-size: 1.45rem;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-item i {
    width: 30px;
    height: 30px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.contact-form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-form-card .form-control {
    border-radius: 8px;
    border-color: var(--border);
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.contact-form-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.contact-form-card .form-label {
    font-weight: 500;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

/* ---- Footer ---- */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
}

.footer-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-meta {
    color: rgba(255, 255, 255, 0.55);
}

/* Override Bootstrap text-muted inside dark footer */
.footer .text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    transition: color 0.2s;
}

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

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    #mainNav .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.25rem 0 0;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    #mainNav .navbar-nav {
        width: 100%;
        gap: 0.15rem;
    }

    #mainNav .nav-item {
        width: 100%;
    }

    #mainNav .nav-link {
        padding: 0.65rem 0.75rem !important;
        border-radius: 6px;
    }

    #mainNav .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    #mainNav .nav-item.ms-lg-2 {
        margin-left: 0 !important;
        margin-top: 0.35rem;
    }

    #mainNav .navbar-nav .btn {
        width: 100%;
        display: block;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-block {
        padding: 2.25rem 0;
    }

    .floating-card-1 {
        right: 0;
        top: -20px;
    }

    .floating-card-2 {
        left: 0;
    }

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

@media (max-width: 767.98px) {
    .hero-stats {
        gap: 1rem !important;
    }

    .stat-number {
        font-size: 1.15rem;
    }

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

    .section-block {
        padding: 2rem 0;
    }

    .cta-section {
        padding: 1rem 0;
    }

    .cta-box {
        padding: 1rem 0.85rem;
    }

    .contact-form-card {
        padding: 1rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Scroll padding for fixed nav */
section[id] {
    scroll-margin-top: 70px;
}
