/* Kitt Homepage — Ultra-professional landing page */

.kitt-home {
    --kh-primary: #0b5393;
    --kh-primary-dark: #073a68;
    --kh-primary-light: #1a6bb5;
    --kh-accent: #3d8fd4;
    --kh-surface: #f8fafc;
    --kh-surface-elevated: #ffffff;
    --kh-text: #0f172a;
    --kh-text-muted: #64748b;
    --kh-border: rgba(15, 23, 42, 0.08);
    --kh-radius: 16px;
    --kh-radius-lg: 24px;
    --kh-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    --kh-shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
    --kh-shadow-lg: 0 24px 60px rgba(11, 83, 147, 0.15);
    --kh-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--kh-text);
    overflow-x: hidden;
}

/* ── Hero ─────────────────────────────────────────────── */

.kh-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, var(--kh-primary-dark) 0%, var(--kh-primary) 45%, #0e5fa8 100%);
    padding: 5rem 0 7rem;
    overflow: hidden;
}

.kh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(61, 143, 212, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 10% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.kh-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
    pointer-events: none;
}

.kh-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.kh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
}

.kh-hero-badge .kh-pulse {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: kh-pulse 2s ease-in-out infinite;
}

@keyframes kh-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.kh-hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    max-width: 14ch;
}

.kh-hero h1 .kh-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #a8d4f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kh-hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    max-width: 54ch;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.kh-hero-lead p {
    margin: 0 0 1rem;
}

.kh-hero-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.kh-hero-benefits li {
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.25);
}

.kh-hero-benefits strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.kh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 3rem;
}

.kh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform var(--kh-transition), box-shadow var(--kh-transition), background var(--kh-transition);
    text-decoration: none;
}

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

.kh-btn-primary {
    background: #ffffff;
    color: var(--kh-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.kh-btn-primary:hover {
    background: #f0f7ff;
    color: var(--kh-primary-dark);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.kh-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.kh-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero search bar */
.kh-search-bar {
    display: flex;
    align-items: center;
    background: var(--kh-surface-elevated);
    border-radius: 14px;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    box-shadow: var(--kh-shadow-lg);
    max-width: 560px;
    gap: 0.5rem;
}

.kh-search-bar i {
    color: var(--kh-text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.kh-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--kh-text);
    background: transparent;
    min-width: 0;
}

.kh-search-bar input::placeholder {
    color: #94a3b8;
}

.kh-search-bar .kh-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Hero visual */
.kh-hero-visual {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    width: 46%;
    max-width: 540px;
    z-index: 1;
    display: none;
}

.kh-hero-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--kh-radius-lg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.kh-hero-visual::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--kh-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

@media (min-width: 992px) {
    .kh-hero-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 3rem;
    }

    .kh-hero-visual {
        display: block;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
    }

    .kh-hero {
        min-height: auto;
        padding: 6rem 0 5rem;
    }
}

/* ── Stats bar ────────────────────────────────────────── */

.kh-stats {
    position: relative;
    z-index: 10;
    margin-top: -3rem;
    padding: 0 1.5rem;
}

.kh-stats-inner {
    max-width: 900px;
    margin: 0 auto;
    background: var(--kh-surface-elevated);
    border-radius: var(--kh-radius);
    box-shadow: var(--kh-shadow-md);
    border: 1px solid var(--kh-border);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: hidden;
}

.kh-stat {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.kh-stat:first-child {
    border-right: 1px solid var(--kh-border);
}

.kh-stat-value {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--kh-primary);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.375rem;
}

.kh-stat-label {
    font-size: 0.875rem;
    color: var(--kh-text-muted);
    font-weight: 500;
}

.kh-section-listings {
    padding-top: 3rem;
}

.kh-section-listings .kh-section-header {
    margin-bottom: 2.5rem;
}

/* ── Section shared ───────────────────────────────────── */

.kh-section {
    padding: 5.5rem 1.5rem;
}

.kh-section-alt {
    background: var(--kh-surface);
}

.kh-container {
    max-width: 1200px;
    margin: 0 auto;
}

.kh-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.kh-section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--kh-primary);
    margin-bottom: 0.75rem;
}

.kh-section-header h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--kh-text);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.kh-section-header p {
    font-size: 1.0625rem;
    color: var(--kh-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Features ─────────────────────────────────────────── */

.kh-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.kh-feature-card {
    background: var(--kh-surface-elevated);
    border: 1px solid var(--kh-border);
    border-radius: var(--kh-radius);
    padding: 2rem 1.75rem;
    transition: transform var(--kh-transition), box-shadow var(--kh-transition), border-color var(--kh-transition);
}

.kh-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--kh-shadow-md);
    border-color: rgba(11, 83, 147, 0.15);
}

.kh-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(11, 83, 147, 0.1) 0%, rgba(61, 143, 212, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--kh-primary);
    font-size: 1.25rem;
}

.kh-feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--kh-text);
}

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

/* ── How it works ─────────────────────────────────────── */

.kh-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    counter-reset: kh-step;
}

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

.kh-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--kh-primary);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(11, 83, 147, 0.3);
}

.kh-step h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.kh-step p {
    font-size: 0.9rem;
    color: var(--kh-text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 28ch;
    margin-inline: auto;
}

/* ── Listings ─────────────────────────────────────────── */

.kh-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.kh-listings-grid > div {
    display: flex;
}

.kh-listings-grid .position-relative {
    width: 100%;
}

.kh-view-all {
    text-align: center;
    margin-top: 2.5rem;
}

.kh-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    border: 2px solid var(--kh-primary);
    color: var(--kh-primary);
    background: transparent;
    transition: all var(--kh-transition);
    text-decoration: none;
}

.kh-btn-outline:hover {
    background: var(--kh-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 83, 147, 0.25);
    text-decoration: none;
}

/* ── Spotlight cards ──────────────────────────────────── */

.kh-spotlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.kh-spotlight-card {
    display: flex;
    gap: 1.5rem;
    background: var(--kh-surface-elevated);
    border: 1px solid var(--kh-border);
    border-radius: var(--kh-radius);
    padding: 1.75rem;
    transition: transform var(--kh-transition), box-shadow var(--kh-transition);
    text-decoration: none;
    color: inherit;
}

.kh-spotlight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--kh-shadow-md);
    color: inherit;
    text-decoration: none;
}

.kh-spotlight-img {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.kh-spotlight-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--kh-text);
}

.kh-spotlight-card p {
    font-size: 0.875rem;
    color: var(--kh-text-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.kh-spotlight-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--kh-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.kh-spotlight-link i {
    transition: transform var(--kh-transition);
}

.kh-spotlight-card:hover .kh-spotlight-link i {
    transform: translateX(4px);
}

/* ── CTA band ─────────────────────────────────────────── */

.kh-cta {
    background: linear-gradient(135deg, var(--kh-primary-dark) 0%, var(--kh-primary) 100%);
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.kh-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(61, 143, 212, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.kh-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.kh-cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.kh-cta p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 2rem;
    line-height: 1.65;
}

.kh-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
}

/* ── Trust strip ──────────────────────────────────────── */

.kh-trust {
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--kh-border);
    border-bottom: 1px solid var(--kh-border);
    background: var(--kh-surface-elevated);
}

.kh-trust-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3rem;
}

.kh-trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--kh-text-muted);
}

.kh-trust-item i {
    color: var(--kh-primary);
    font-size: 1.125rem;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 575px) {
    .kh-stats-inner {
        grid-template-columns: 1fr;
    }

    .kh-stat:first-child {
        border-right: none;
        border-bottom: 1px solid var(--kh-border);
    }

    .kh-hero {
        padding: 3.5rem 0 5rem;
        min-height: auto;
    }

    .kh-search-bar {
        flex-direction: column;
        padding: 1rem;
        align-items: stretch;
    }

    .kh-search-bar .kh-btn {
        justify-content: center;
    }

    .kh-spotlight-card {
        flex-direction: column;
        text-align: center;
    }

    .kh-spotlight-img {
        margin: 0 auto;
    }
}
