:root {
    --bg: #f3f6ff;
    --card: #ffffff;
    --primary: #3d5afe;
    --primary-dark: #2d46d6;
    --primary-light: #eef2ff;
    --border: #dfe7ff;
    --text: #1d2433;
    --muted: #5d697c;
    --success: #1e9e6d;
    --warning: #d97706;
    --error: #d63b3b;
    --gradient-primary: linear-gradient(135deg, #3d5afe 0%, #7048e8 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #eef4ff 0%, #f9fbff 100%);
    color: var(--text);
}

/* Top Navigation */
.top-nav {
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.9;
}

.brand-icon {
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    height: 38px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.primary-nav-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(61, 90, 254, 0.25);
}

.primary-nav-btn svg {
    width: 15px;
    height: 15px;
}

.primary-nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(61, 90, 254, 0.35);
}

/* Home Layout */
.home-main {
    flex: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 36px 24px 60px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 40px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(61, 90, 254, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(61, 90, 254, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(61, 90, 254, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(61, 90, 254, 0); }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    max-width: 850px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.65;
    color: var(--muted);
    max-width: 780px;
    margin: 0 0 32px;
}

.hero-subtitle strong {
    color: var(--text);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(61, 90, 254, 0.28);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(61, 90, 254, 0.36);
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary-dark);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}

.btn-secondary:hover {
    background: #f8faff;
    border-color: #c7d2fe;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

/* Stats Bar */
.stats-bar {
    width: 100%;
    max-width: 960px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 12px 30px rgba(61, 90, 254, 0.05);
    flex-wrap: wrap;
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* Common Section Styles */
.section {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 0.98rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Pipeline Grid */
.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.pipeline-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 22px;
    position: relative;
    box-shadow: 0 8px 20px rgba(61, 90, 254, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.pipeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(61, 90, 254, 0.09);
    border-color: #c7d2fe;
}

.card-step {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.pipeline-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.pipeline-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    flex: 1;
}

/* Application Tracker Showcase Section */
.tracker-showcase-section {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 32px;
    box-shadow: 0 12px 36px rgba(61, 90, 254, 0.05);
}

.tracker-pill {
    margin-bottom: 12px;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #059669;
}

.tracker-pill .pulse-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.tracker-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.tracker-feature-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tracker-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(61, 90, 254, 0.08);
    border-color: #c7d2fe;
}

.tracker-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tracker-card-icon svg {
    width: 22px;
    height: 22px;
}

.tracker-card-icon.applied-accent {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.tracker-card-icon.stage-accent {
    background: rgba(61, 90, 254, 0.12);
    color: var(--primary);
}

.tracker-card-icon.notes-accent {
    background: rgba(147, 51, 234, 0.12);
    color: #9333ea;
}

.tracker-card-icon.stats-accent {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.tracker-feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.tracker-feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    flex: 1;
}

.tracker-feature-card p strong {
    color: var(--text);
}

.tracker-cta-row {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* Score Tiers Grid */
.score-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.tier-card {
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid var(--border);
    background: var(--card);
    transition: transform 0.2s ease;
}

.tier-card:hover {
    transform: translateY(-2px);
}

.tier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tier-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.tier-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.tier-urgent {
    border-color: rgba(214, 59, 59, 0.4);
    background: linear-gradient(180deg, rgba(214, 59, 59, 0.08), #ffffff);
}
.tier-urgent .tier-badge { background: linear-gradient(135deg, #d63b3b, #ef5a5a); }

.tier-high {
    border-color: rgba(255, 140, 0, 0.4);
    background: linear-gradient(180deg, rgba(255, 140, 0, 0.08), #ffffff);
}
.tier-high .tier-badge { background: linear-gradient(135deg, #ff8a00, #ffb000); }

.tier-mid {
    border-color: rgba(46, 204, 113, 0.4);
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.08), #ffffff);
}
.tier-mid .tier-badge { background: linear-gradient(135deg, #19a76b, #49d38a); }

.tier-low {
    border-color: rgba(61, 90, 254, 0.3);
    background: linear-gradient(180deg, rgba(61, 90, 254, 0.06), #ffffff);
}
.tier-low .tier-badge { background: linear-gradient(135deg, #3d5afe, #6b7cff); }

.tier-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Tech Section */
.tech-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tech-tag {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 4px 10px rgba(61, 90, 254, 0.04);
}

.portals-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

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

.portal-pill {
    background: #eef2ff;
    color: var(--primary-dark);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid #c7d2fe;
}

/* Guidelines Section */
.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.guideline-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guideline-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.88rem;
}

.success-icon {
    background: #dcfce7;
    color: #15803d;
}

.warning-icon {
    background: #fef3c7;
    color: #b45309;
}

.guideline-card h4 {
    margin: 4px 0 0;
    font-size: 1rem;
    font-weight: 700;
}

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

/* CTA Banner */
.cta-banner {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 48px 32px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 18px 40px rgba(61, 90, 254, 0.25);
}

.cta-content {
    max-width: 680px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 0 0 14px;
    font-weight: 800;
}

.cta-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 28px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn-primary:hover {
    background: #f4f6ff;
}

/* Footer */
.home-footer {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 48px 24px 24px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid #edf2f7;
}

.footer-brand {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-column h4 {
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.link-column a,
.link-column span {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1300px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        order: 2;
    }

    .nav-actions {
        order: 3;
    }

    .stats-bar {
        flex-direction: column;
    }

    .stat-divider {
        display: none;
    }

    .cta-banner {
        padding: 32px 20px;
    }
}

