/*
 * vault.lc — Landing Page Styles
 *
 * All visual variables are defined in :root below.
 * To restyle the page, adjust the custom properties here first
 * before touching anything else.
 */

/* Design Tokens */

:root {
    /* Palette */
    --c-hero-bg:        #1a2e24;   /* dark forest — hero background */
    --c-hero-surface:   #243b2f;   /* slightly lighter — card on dark */
    --c-accent:         #3d8c5c;   /* forest green — primary accent */
    --c-accent-bright:  #5dac6c;   /* brighter green — eyebrow / highlights */
    --c-accent-hover:   #2f6e48;   /* darker green — hover state */
    --c-bg:             #f4f6f4;   /* warm off-white — page background */
    --c-surface:        #ffffff;   /* card / section surface */
    --c-border:         #dde5df;   /* subtle border */
    --c-text:           #1a2e24;   /* primary text */
    --c-text-muted:     #6a7b72;   /* secondary / caption text */
    --c-text-on-dark:   #e8f0ea;   /* primary text on dark backgrounds */
    --c-text-dim:       #9eb5a7;   /* muted text on dark backgrounds */

    /* Typography */
    --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                   'Helvetica Neue', Arial, sans-serif;
    --font-mono:   'SFMono-Regular', Menlo, Consolas, monospace;

    /* Spacing scale */
    --sp-xs:   0.375rem;
    --sp-sm:   0.75rem;
    --sp-md:   1.25rem;
    --sp-lg:   2rem;
    --sp-xl:   3.5rem;
    --sp-2xl:  6rem;

    /* Layout */
    --max-w:      1080px;
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  14px;
}

/* Reset */

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

/* Base */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--c-accent);
    text-decoration: none;
}

a:hover {
    color: var(--c-accent-hover);
    text-decoration: underline;
}

/* Layout */

.container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--sp-lg);
}

/* Navigation */

.site-nav {
    background: var(--c-hero-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-block: var(--sp-sm);
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--c-text-on-dark);
}

.nav-brand span {
    color: var(--c-accent);
}

.nav-actions {
    display: flex;
    gap: var(--sp-sm);
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: 1px solid transparent;
    line-height: 1.5;
}

.btn-ghost {
    color: var(--c-text-dim);
    border-color: rgba(255, 255, 255, 0.18);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--c-text-on-dark);
    border-color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.btn-primary {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}

.btn-primary:hover {
    background: var(--c-accent-hover);
    border-color: var(--c-accent-hover);
    color: #fff;
    text-decoration: none;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
}

/* Hero
 *
 * To switch image sets: change the prefix in the two url() calls below
 * (and the @media block beneath). Available sets: Lizard, Kearsarge, Glen-pass.
 * Each set provides: {prefix}-1920.webp, {prefix}-960.webp, {prefix}-1920.jpg
 * Do not remove the gradient overlay — it keeps the text legible.
 */

.hero {
    background-color: var(--c-hero-bg);   /* placeholder while image loads */
    background-image:
        linear-gradient(rgba(20, 40, 28, 0.37), rgba(20, 40, 28, 0.37)),
        image-set(
            url('/static/img/Lizard-1920.webp') type('image/webp'),
            url('/static/img/Lizard-1920.jpg')  type('image/jpeg')
        );
    background-size: cover;
    background-position: center;
    color: var(--c-text-on-dark);
    padding-block: var(--sp-2xl);
    text-align: center;
}

@media (max-width: 1024px) {
    .hero {
        background-image:
            linear-gradient(rgba(20, 40, 28, 0.52), rgba(20, 40, 28, 0.52)),
            url('/static/img/Lizard-960.webp');
    }
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-accent-bright);
    margin-bottom: var(--sp-md);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--c-text-on-dark);
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: var(--sp-md);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--c-text-dim);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--sp-xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--sp-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */

.section {
    padding-block: var(--sp-xl);
}

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

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: var(--sp-xs);
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-text);
    margin-bottom: var(--sp-sm);
}

.section-intro {
    font-size: 1rem;
    color: var(--c-text-muted);
    max-width: 620px;
    line-height: 1.7;
}

/* Use-case cards */

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--sp-md);
    margin-top: var(--sp-lg);
}

.use-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-lg);
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.use-card-icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: var(--sp-xs);
}

.use-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-text);
}

.use-card-body {
    font-size: 0.93rem;
    color: var(--c-text-muted);
    line-height: 1.7;
}

/* Platform strip */

.platform-strip {
    background: var(--c-hero-surface);
    color: var(--c-text-on-dark);
    padding-block: var(--sp-xl);
}

.platform-strip .section-title {
    color: var(--c-text-on-dark);
}

.platform-strip .section-intro {
    color: var(--c-text-dim);
}

.platform-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md);
    margin-top: var(--sp-lg);
}

.platform-item {
    flex: 1 1 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--sp-md);
}

.platform-item-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: var(--sp-xs);
}

.platform-item-desc {
    font-size: 0.87rem;
    color: var(--c-text-dim);
    line-height: 1.6;
}

/* CTA banner */

.cta-banner {
    padding-block: var(--sp-xl);
    text-align: center;
}

.cta-banner .section-title {
    margin-bottom: var(--sp-sm);
}

.cta-banner p {
    color: var(--c-text-muted);
    margin-bottom: var(--sp-lg);
    font-size: 0.97rem;
}

/* Footer */

.site-footer {
    background: var(--c-hero-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-block: var(--sp-lg);
    text-align: center;
}

.site-footer p {
    font-size: 0.83rem;
    color: var(--c-text-dim);
}

/* Responsive */

@media (max-width: 640px) {
    .container {
        padding-inline: var(--sp-md);
    }

    .hero {
        padding-block: var(--sp-xl);
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .platform-items {
        flex-direction: column;
    }
}
