/* ============================================
   V2 CSALI SHELL
   Small first-screen shell for useful-material pages.
   Keeps the hero stable while larger shared CSS loads.
   ============================================ */

:root {
    --v2-shell-hero-gradient: linear-gradient(135deg, #f6fbfa 0%, #eef7f6 55%, #fdfcfa 100%);
    --v2-shell-hero-blob1: rgba(123, 204, 200, 0.52);
    --v2-shell-hero-blob2: rgba(212, 240, 235, 0.7);
    --v2-shell-badge-bg: rgba(35, 122, 135, 0.08);
    --v2-shell-badge-border: rgba(35, 122, 135, 0.14);
    --v2-shell-badge-color: #1a5f6a;
    --v2-shell-title-color: #1a5f6a;
    --v2-shell-subtitle-color: #4d6266;
    --v2-shell-text-gradient: linear-gradient(135deg, #237a87 0%, #1a5f6a 100%);
}

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

html {
    font-size: 16px;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text, #2a3f42);
    background: var(--cream, #fdfcfa);
    overflow-x: clip;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3,
li,
span,
a {
    overflow-wrap: break-word;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md, 1.5rem);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 10000;
    padding: 0.75rem 1rem;
    background: var(--teal-dark, #1a5f6a);
    color: white;
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(253, 252, 250, 0.94);
    border-bottom: 1px solid rgba(26, 95, 106, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: var(--space-xs, 0.5rem) var(--space-md, 1.5rem);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm, 1rem);
    flex-shrink: 0;
}

.logo-image {
    width: auto;
    height: 60px;
    max-width: 250px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: var(--text, #2a3f42);
    font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    border: 2px solid transparent;
    border-radius: 40px;
    font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.btn-primary {
    background: var(--teal-dark, #1a5f6a);
    border-color: var(--teal-dark, #1a5f6a);
    color: white;
}

.v2-hero {
    position: relative;
    overflow: hidden;
    min-height: auto;
    padding: var(--space-xl, 4rem) 0 var(--space-xl, 4rem);
    background: var(--v2-shell-hero-gradient);
}

.v2-hero::before,
.v2-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.24;
    filter: blur(64px);
}

.v2-hero::before {
    top: -180px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: var(--v2-shell-hero-blob1);
}

.v2-hero::after {
    bottom: -120px;
    left: -90px;
    width: 280px;
    height: 280px;
    background: var(--v2-shell-hero-blob2);
}

.v2-hero > .container {
    position: relative;
    z-index: 1;
}

.v2-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: var(--space-xl, 4rem);
    align-items: center;
}

.v2-hero-content {
    min-width: 0;
}

.v2-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: var(--space-md, 1.5rem);
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--v2-shell-badge-border);
    border-radius: 40px;
    background: var(--v2-shell-badge-bg);
    color: var(--v2-shell-badge-color);
    font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    max-width: 100%;
}

.v2-hero-title {
    margin: 0 0 var(--space-md, 1.5rem);
    color: var(--v2-shell-title-color);
    font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.v2-hero-title .text-gradient {
    background: var(--v2-shell-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v2-hero-subtitle,
.v2-hero-tagline {
    max-width: 540px;
    color: var(--v2-shell-subtitle-color);
    font-size: 1.08rem;
    line-height: 1.75;
}

.v2-hero-subtitle {
    margin: 0;
}

.v2-hero-tagline {
    margin: 0 0 var(--space-lg, 2.5rem);
}

.v2-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm, 1rem);
    margin: 0 0 var(--space-lg, 2.5rem);
}

.v2-hero-social-proof,
.v2-hero-trust {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--v2-shell-subtitle-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.v2-hero-trust {
    flex-wrap: wrap;
    gap: var(--space-md, 1.5rem);
}

.v2-hero-trust .trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.v2-avatar-stack {
    display: flex;
}

.v2-avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: -8px;
    border: 2px solid white;
    border-radius: 50%;
    color: var(--teal-dark, #1a5f6a);
    font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f5fffd 0%, #e6f6f3 100%);
}

.v2-avatar-circle:first-child {
    margin-left: 0;
}

.v2-hero-image {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 500px;
    justify-self: end;
    aspect-ratio: var(--v2-hero-aspect-ratio, 8 / 5);
    contain: layout paint;
}

.v2-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(26, 95, 106, 0.14);
}


@media (max-width: 1024px) {
    .v2-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .v2-hero-image {
        order: -1;
        width: min(100%, 460px);
        max-width: min(100%, 460px);
        margin: 0 auto;
        justify-self: center;
    }

    .v2-hero-subtitle,
    .v2-hero-tagline,
    .v2-hero-social-proof,
    .v2-hero-trust {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}

@media (max-width: 1199px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        border: 0;
        background: transparent;
        cursor: pointer;
        padding: 8px;
    }

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        border-radius: 2px;
        background: var(--text, #2a3f42);
    }
}

@media (max-width: 768px) {
    .v2-hero {
        padding-top: calc(60px + var(--space-lg, 2.5rem));
        padding-bottom: var(--space-lg, 2.5rem);
    }

    .v2-hero::before,
    .v2-hero::after {
        display: none;
    }

    .v2-hero-title {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
        min-height: 3.3em;
    }

    .v2-hero-subtitle,
    .v2-hero-tagline {
        font-size: 1rem;
    }

    .v2-hero-social-proof,
    .v2-hero-trust {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .v2-hero-title {
        min-height: 3.7em;
    }

    .v2-hero-badge {
        padding-inline: 0.9rem;
    }
}
