/* Fitness.CareDesk — Landing Page (official brand colors) */

:root {
    --cd-blue: #005696;
    --cd-blue-dark: #004D6E;
    --cd-teal: #00A8B5;
    --cd-green: #76BC21;
    --cd-green-bright: #8ED030;
    --cd-primary: #005696;
    --cd-primary-dark: #004D6E;
    --cd-primary-light: #00A8B5;
    --cd-accent: #76BC21;
    --cd-care: #005696;
    --cd-desk: #00627E;
    --cd-dark: #0A2540;
    --cd-dark-soft: #123A5C;
    --cd-muted: #6B7280;
    --cd-surface: #F4F8FB;
    --cd-white: #FFFFFF;
    --cd-border: #DDE8F0;
    --cd-shadow: 0 20px 50px -20px rgba(0, 86, 150, 0.22);
    --cd-gradient: linear-gradient(135deg, #76BC21 0%, #00A8B5 45%, #005696 100%);
    --cd-gradient-soft: linear-gradient(160deg, #F0FAE8 0%, #E8F7FA 40%, #FFFFFF 100%);
    --cd-radius: 16px;
    --cd-radius-lg: 24px;
    --cd-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body.cd-landing {
    font-family: var(--cd-font);
    color: var(--cd-dark);
    background: var(--cd-white);
    overflow-x: hidden;
    margin: 0;
}

/* ── Navbar ── */
.cd-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.cd-nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--cd-border);
    padding: 10px 0;
}

.cd-nav .navbar-brand img { height: 46px; width: auto; max-width: 220px; object-fit: contain; }

.cd-nav .nav-link {
    color: var(--cd-dark-soft);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    transition: color 0.2s;
}

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

.cd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
}

.cd-btn:hover { transform: translateY(-1px); text-decoration: none; }

.cd-btn-primary {
    background: var(--cd-gradient);
    color: var(--cd-white);
    box-shadow: 0 8px 24px -8px rgba(0, 86, 150, 0.45);
}

.cd-btn-primary:hover {
    color: var(--cd-white);
    box-shadow: 0 12px 28px -8px rgba(118, 188, 33, 0.4);
    filter: brightness(1.05);
}

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

.cd-btn-outline:hover {
    border-color: var(--cd-primary);
    color: var(--cd-primary);
}

.cd-btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: var(--cd-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cd-btn-ghost:hover { background: rgba(255, 255, 255, 0.25); color: var(--cd-white); }

/* ── Hero ── */
.cd-hero {
    position: relative;
    padding: 140px 0 100px;
    background: var(--cd-gradient-soft);
    overflow: hidden;
}

.cd-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 86, 150, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cd-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(118, 188, 33, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 86, 150, 0.08);
    border: 1px solid rgba(0, 86, 150, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cd-blue-dark);
    margin-bottom: 16px;
}

.cd-tagline {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--cd-muted);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}

.cd-tagline span { color: var(--cd-green); font-weight: 700; }

.cd-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--cd-gradient);
    border-radius: 50%;
    animation: cd-pulse 2s infinite;
}

@keyframes cd-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.cd-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.cd-hero h1 .care { color: var(--cd-care); }
.cd-hero h1 .desk { color: var(--cd-desk); }
.cd-hero h1 .fitness {
    background: var(--cd-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cd-hero-lead {
    font-size: 1.125rem;
    color: var(--cd-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}

.cd-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.cd-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.cd-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--cd-muted);
}

.cd-hero-trust-item i {
    color: var(--cd-primary);
    font-size: 1.1rem;
}

/* Dashboard mockup */
.cd-mockup {
    position: relative;
    border-radius: var(--cd-radius-lg);
    background: var(--cd-dark);
    padding: 12px;
    box-shadow: var(--cd-shadow);
}

.cd-mockup-bar {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
}

.cd-mockup-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.cd-mockup-bar span:nth-child(1) { background: #EF4444; }
.cd-mockup-bar span:nth-child(2) { background: #F59E0B; }
.cd-mockup-bar span:nth-child(3) { background: #22C55E; }

.cd-mockup-body {
    background: var(--cd-surface);
    border-radius: 12px;
    padding: 20px;
    min-height: 320px;
}

.cd-mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.cd-stat-card {
    background: var(--cd-white);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--cd-border);
}

.cd-stat-card .label { font-size: 0.7rem; color: var(--cd-muted); margin-bottom: 4px; }
.cd-stat-card .value { font-size: 1.25rem; font-weight: 700; color: var(--cd-dark); }
.cd-stat-card .value.blue { color: var(--cd-blue); }
.cd-stat-card .value.green { color: var(--cd-green); }

.cd-mockup-chart {
    background: var(--cd-white);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--cd-border);
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.cd-chart-bar {
    flex: 1;
    background: var(--cd-gradient);
    border-radius: 6px 6px 0 0;
    opacity: 0.88;
}

.cd-float-card {
    position: absolute;
    background: var(--cd-white);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.2);
    border: 1px solid var(--cd-border);
    font-size: 0.8rem;
    animation: cd-float 4s ease-in-out infinite;
}

.cd-float-card.top { top: -16px; right: -16px; }
.cd-float-card.bottom { bottom: 24px; left: -24px; animation-delay: 1s; }

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

/* ── Sections ── */
.cd-section { padding: 96px 0; }
.cd-section-alt { background: var(--cd-surface); }

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

.cd-section-header .eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cd-primary);
    margin-bottom: 12px;
}

.cd-section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cd-section-header p {
    color: var(--cd-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Stats row */
.cd-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cd-stat-box {
    text-align: center;
    padding: 32px 20px;
    background: var(--cd-white);
    border-radius: var(--cd-radius);
    border: 1px solid var(--cd-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.cd-stat-box .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cd-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.cd-stat-box .text { color: var(--cd-muted); font-weight: 500; }

/* Feature cards */
.cd-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cd-feature-card {
    background: var(--cd-white);
    border: 1px solid var(--cd-border);
    border-radius: var(--cd-radius);
    padding: 32px 28px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cd-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cd-shadow);
    border-color: rgba(0, 86, 150, 0.25);
}

.cd-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.cd-feature-icon.blue { background: rgba(0, 86, 150, 0.1); color: var(--cd-blue); }
.cd-feature-icon.green { background: rgba(118, 188, 33, 0.12); color: var(--cd-green); }
.cd-feature-icon.blue { background: rgba(59, 130, 246, 0.12); color: #3B82F6; }
.cd-feature-icon.purple { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }
.cd-feature-icon.rose { background: rgba(244, 63, 94, 0.12); color: #F43F5E; }
.cd-feature-icon.amber { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }

.cd-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cd-feature-card p {
    color: var(--cd-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* How it works */
.cd-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.cd-step {
    text-align: center;
    position: relative;
}

.cd-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cd-gradient);
    color: var(--cd-white);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px -6px rgba(0, 86, 150, 0.35);
}

.cd-step h4 { font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.cd-step p { color: var(--cd-muted); font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* Pricing */
.cd-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.cd-price-card {
    background: var(--cd-white);
    border: 1px solid var(--cd-border);
    border-radius: var(--cd-radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.cd-price-card.featured {
    border-color: var(--cd-primary);
    box-shadow: 0 0 0 1px var(--cd-primary), var(--cd-shadow);
    transform: scale(1.03);
}

.cd-price-card .plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cd-muted);
    margin-bottom: 16px;
}

.cd-price-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cd-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.cd-price-card .price sup { font-size: 1.25rem; vertical-align: super; }
.cd-price-card .price span { font-size: 0.9rem; font-weight: 500; color: var(--cd-muted); }

.cd-price-features {
    list-style: none;
    padding: 24px 0;
    margin: 0 0 24px;
    text-align: left;
}

.cd-price-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--cd-dark-soft);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cd-price-features li i { color: var(--cd-primary); }

/* FAQ */
.cd-faq .accordion-item {
    border: 1px solid var(--cd-border);
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.cd-faq .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--cd-dark);
    background: var(--cd-white);
    box-shadow: none !important;
    padding: 20px 24px;
}

.cd-faq .accordion-button:not(.collapsed) {
    color: var(--cd-primary);
    background: rgba(0, 86, 150, 0.05);
}

.cd-faq .accordion-body {
    color: var(--cd-muted);
    line-height: 1.7;
    padding: 0 24px 20px;
}

/* CTA */
.cd-cta {
    background: linear-gradient(135deg, var(--cd-dark) 0%, var(--cd-blue-dark) 55%, #003D5C 100%);
    border-radius: var(--cd-radius-lg);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cd-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(118, 188, 33, 0.2) 0%, transparent 70%);
}

.cd-cta h2 {
    color: var(--cd-white);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.cd-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 32px;
    position: relative;
}

.cd-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.cd-mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Footer */
.cd-footer {
    background: var(--cd-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 32px;
}

.cd-footer h5 {
    color: var(--cd-white);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.cd-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.cd-footer a:hover { color: var(--cd-green-bright); }

.cd-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cd-footer-brand img { width: 44px; height: 44px; border-radius: 10px; }

.cd-footer-brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.cd-footer-brand-text .fitness { color: #5BA3D9; }
.cd-footer-brand-text .care { color: #5BA3D9; }
.cd-footer-brand-text .desk { color: var(--cd-green-bright); }

.cd-footer-links { list-style: none; padding: 0; margin: 0; }
.cd-footer-links li { margin-bottom: 10px; }

.cd-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 48px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 991px) {
    .cd-features-grid { grid-template-columns: repeat(2, 1fr); }
    .cd-stats-row { grid-template-columns: repeat(2, 1fr); }
    .cd-steps { grid-template-columns: repeat(2, 1fr); }
    .cd-hero { padding: 120px 0 80px; }
    .cd-mockup { margin-top: 48px; }
    .cd-float-card { display: none; }
}

@media (max-width: 575px) {
    .cd-features-grid,
    .cd-stats-row,
    .cd-steps { grid-template-columns: 1fr; }
    .cd-section { padding: 64px 0; }
    .cd-cta { padding: 48px 24px; }
    .cd-price-card.featured { transform: none; }
    .cd-mockup-stats { grid-template-columns: 1fr; }
}
