:root {
    --ks-bg: #f5f8fb;
    --ks-surface: #ffffff;
    --ks-surface-soft: #f8fafc;
    --ks-text: #1f2937;
    --ks-heading: #172033;
    --ks-title: #243244;
    --ks-price: #1f2937;
    --ks-muted: #667085;
    --ks-border: #e2e8f0;
    --ks-primary: #0ea5e9;
    --ks-primary-dark: #0284c7;
    --ks-radius-xl: 28px;
    --ks-radius-lg: 22px;
    --ks-radius-md: 16px;
    --ks-shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.12);
    --ks-shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
    --ks-shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--ks-bg);
    color: var(--ks-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}


.navbar {
    box-shadow: 0 2px 18px rgba(15, 23, 42, 0.10);
}

main.container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

.ks-home {
    max-width: 1180px;
    margin: 0 auto;
}

/* Hero */

.ks-hero {
    position: relative;

    width: 100%;
    max-width: none;

    margin: 0 0 44px;

    min-height: 460px;
    padding: 96px 24px;

    border-radius: 0;
    color: white;
    background:
        linear-gradient(rgba(8, 23, 40, 0.25), rgba(8, 23, 40, 0.35)),
        url("/images/kitesurf-hero.jpg");
    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;

    overflow: hidden;
    box-shadow: var(--ks-shadow);
}

.ks-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center 34%,
        rgba(0, 0, 0, 0.50) 0%,
        rgba(0, 0, 0, 0.34) 34%,
        rgba(0, 0, 0, 0.10) 68%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}


.ks-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 12px;
}


.ks-hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: -0.045em;
    margin-bottom: 18px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

/* .ks-hero .lead {
    font-size: clamp(20px, 2.2vw, 28px);
    color: rgba(255, 255, 255, 0.96);
    margin-bottom: 6px;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
} */

/* .ks-hero .lead {
    font-size: clamp(20px, 2.2vw, 28px);
    color: rgba(255, 255, 255, 0.98);
    margin-bottom: 6px;
    line-height: 1.35;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.75),
        0 4px 18px rgba(0, 0, 0, 0.55);
} */

.ks-hero .lead {
    font-size: clamp(20px, 2.2vw, 28px);
    color: rgba(255, 255, 255, 0.99);
    margin-bottom: 6px;
    line-height: 1.35;
    font-weight: 500;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.90),
        0 5px 20px rgba(0, 0, 0, 0.70);
}


/* .ks-hero .btn {
    min-width: 180px;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 800;
    border: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.ks-hero .btn-primary {
    background: white;
    color: var(--ks-primary-dark);
}

.ks-hero .btn-primary:hover {
    background: #f8fafc;
    color: #0369a1;
    transform: translateY(-1px);
}

.ks-hero .btn-light {
    background: rgba(255, 255, 255, 0.92);
    color: #0369a1;
}

.ks-hero .btn-light:hover {
    background: white;
    color: #035b8c;
    transform: translateY(-1px);
} */

/* Hero buttons */

.ks-hero-actions {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.ks-hero-btn {
    min-width: 230px;
    border-radius: 999px;
    padding: 17px 36px;
    font-weight: 850;
    font-size: 1.45rem;
    line-height: 1.15;
    border: 0;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

/* Primary action: Share Board */
.ks-hero-btn-primary {
    background: #1ea7ea;
    color: #ffffff;
}

.ks-hero-btn-primary:hover {
    background: #0f95d8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
}

/* Secondary action: Find Board */
.ks-hero-btn-secondary {
    background: #ffffff;
    color: #0284c7;
}

.ks-hero-btn-secondary:hover {
    background: #f8fafc;
    color: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.26);
}

/* Section headings */

.section-heading {
    margin: 64px 0 24px;
}

.section-kicker {
    margin-bottom: 6px;
    color: var(--ks-primary-dark);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ks-home .headline {
    margin-top: 0 !important;
    margin-bottom: 18px;
    color: var(--ks-heading);
    font-size: clamp(1.9rem, 3.2vw, 2.75rem);
    line-height: 1.12;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto;
    color: var(--ks-muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

/* Map */

#cluster-map {
    height: 520px;
    border-radius: var(--ks-radius-xl);
    overflow: hidden;
    box-shadow: var(--ks-shadow-md);
    border: 1px solid var(--ks-border);
    background: white;
}

/* Recent listings */

.recent-listing-card {
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--ks-radius-lg);
    overflow: hidden;
    background: var(--ks-surface);
    box-shadow: var(--ks-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.recent-listing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.30);
    box-shadow: var(--ks-shadow-md);
}

.recent-listing-img {
    width: 100%;
    height: 185px;
    object-fit: cover;
}

.recent-listing-card .card-body {
    padding: 16px 18px 18px;
}

.recent-listing-title {
    min-height: 2.7em;
    color: var(--ks-title);
    font-size: 1rem;
    line-height: 1.38;
    font-weight: 700;
    letter-spacing: -0.012em;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-listing-location {
    max-width: 100%;
    color: var(--ks-muted);
    font-size: 0.94rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-listing-location i {
    color: var(--ks-primary);
}

.recent-listing-price {
    margin-top: 8px;
    color: var(--ks-price);
    font-size: 0.95rem;
    font-weight: 700;
}

.owner-profile-header {
    margin-top: 1rem;
}

.owner-profile-label {
    margin-bottom: 0.25rem;
    color: var(--ks-muted);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.owner-profile-name {
    margin-bottom: 0.45rem;
    color: var(--ks-heading);
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.owner-profile-joined {
    color: var(--ks-muted);
    font-size: 1.05rem;
}

/* Shared sections */

.home-section,
#contact {
    margin-top: 72px;
    padding: 42px 28px;
    border-radius: var(--ks-radius-xl);
    background: var(--ks-surface);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--ks-shadow-sm);
}

/* How it works */

/* How it works */

.how-card {
    height: 100%;
    padding: 30px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.how-card:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 165, 233, 0.25);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.how-emoji {
    margin-bottom: 16px;
    font-size: 3rem;
    line-height: 1;
}

.how-card h5 {
    margin-bottom: 10px;
    color: var(--ks-title);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.012em;
}

.how-card p {
    max-width: 280px;
    margin: 0 auto;
    color: var(--ks-muted);
    font-size: 0.98rem;
    line-height: 1.58;
}

/* Story */

.story-section {
    margin-top: 48px;
}

.story-section .headline {
    margin-bottom: 24px;
}


.story-card {
    max-width: 820px;
    color: var(--ks-text);
    font-size: 1.08rem;
    line-height: 1.78;
}

.story-card p {
    margin-bottom: 18px;
}

/* Contact */

#contactForm {
    padding: 26px;
    border-radius: var(--ks-radius-lg);
    background: var(--ks-surface-soft);
    border: 1px solid var(--ks-border);
}

.form-control {
    border-radius: 12px;
    border-color: #d7dde7;
    padding: 12px 14px;
}

.form-control:focus {
    border-color: var(--ks-primary);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.16);
}

/* Buttons */

.btn-primary {
    background: var(--ks-primary);
    border-color: var(--ks-primary);
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary:hover {
    background: var(--ks-primary-dark);
    border-color: var(--ks-primary-dark);
}

.btn-outline-primary,
.btn-outline-secondary {
    border-radius: 999px;
    font-weight: 800;
}

/* Footer */

footer {
    margin-top: 72px;
}

/* Mobile */

@media (max-width: 768px) {
    main.container {
    max-width: 100%;
    overflow-x: hidden;
    }

    
    .ks-hero {
        width: 100%;
        max-width: none;
        min-height: 430px;
        margin: 0 0 38px;
        padding: 58px 18px;
        border-radius: 0;
        background-position: center;
    }

    .ks-hero-actions {
        gap: 14px;
        margin-top: 24px;
    }

    .ks-hero-btn {
        width: 100%;
        min-width: 0;
        padding: 16px 24px;
        font-size: 1.25rem;
        margin: 0 !important;
    }

    .section-heading {
        margin: 52px 0 22px;
    }

    #cluster-map {
        height: 390px;
        border-radius: 22px;
    }

    .recent-listing-img {
        height: 220px;
    }

    .home-section,
    #contact {
        margin-top: 56px;
        padding: 30px 18px;
        border-radius: 24px;
    }

    .how-card {
        padding: 24px 18px;
    }
    
    #how-it-works {
        margin-top: 48px;
    }

    .story-card {
        font-size: 1rem;
        line-height: 1.7;
    }

    .how-intro {
        margin-bottom: 26px;
        font-size: 1rem;
    }

    .how-note {
        margin-top: 18px;
        font-size: 0.95rem;
    }
}

/* Small spacing before How it works section */
#how-it-works {
    margin-top: 40px;
}

#how-it-works .headline {
    margin-top: 0 !important;
}

.how-intro {
    max-width: 760px;
    margin: 0 auto 34px;
    color: var(--ks-text);
    font-size: 1.05rem;
    line-height: 1.6;
}

.how-note {
    margin-top: 26px;
    margin-bottom: 0;
    color: var(--ks-muted);
    font-size: 0.98rem;
}

main.container:has(.ks-hero) {
    margin-top: 0 !important;
    padding-left: 0;
    padding-right: 0;
}

main.container:has(.ks-hero) .ks-home {
    padding-left: 16px;
    padding-right: 16px;
}



.ks-home .row {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Fixed navbar spacing */
body {
    padding-top: 56px;
}

.navbar.fixed-top {
    z-index: 1030;
}

@media (max-width: 768px) {
    .ks-hero .ks-hero-actions {
        gap: 10px;
        margin-top: 20px;
    }

    .ks-hero .ks-hero-btn {
        width: 74%;
        max-width: 300px;
        min-width: 0;
        padding: 11px 18px;
        font-size: 1.1rem;
        line-height: 1.15;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}