/* ==========================================================================
   leadworks Splashpage
   ========================================================================== */

/* Geist Font */
@font-face {
    font-family: 'Geist';
    src: url('../assets/fonts/Geist-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('../assets/fonts/Geist-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors */
    --color-background: #00212b;
    --color-accent: #97C459;   /* leadworks green — from the r2 template */
    --color-text-primary: #ffffff;
    --color-text-secondary: #b0c4ca;
    --color-text-muted: #8ba3aa;
    --color-text-constant: #d6dfdc;   /* light grey — the quiet constant ("LEAD WITH FOCUS.") */

    /* Typography */
    --font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Layout */
    --max-width: 1400px;
    --padding-x: clamp(1.5rem, 5vw, 4rem);
}

/* Reset & Base
   ========================================================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

/* Page Layout
   ========================================================================== */

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1090px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--padding-x);
}

/* Header
   ========================================================================== */

.header {
    flex-shrink: 0;
    padding-bottom: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: clamp(20px, 2.6vw, 26px);
    width: auto;
}

.logo-divider {
    color: var(--color-text-muted);
    opacity: 0.6;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.logo-claim {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* Language Selector
   ========================================================================== */

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: var(--color-text-secondary);
}

.lang-btn.active {
    color: var(--color-accent);
}

.lang-divider {
    color: var(--color-text-muted);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    opacity: 0.5;
}

/* Main Content
   ========================================================================== */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* Hero Section — rotating question + constant answer
   ========================================================================== */

.hero-section {
    margin-bottom: var(--spacing-2xl);
}

.hero-question {
    font-size: clamp(40px, 6vw, 96px);   /* dominant hero moment — r2 values */
    font-weight: 700;
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: -1px;
    white-space: nowrap;
    color: var(--color-text-primary);    /* lead line white; pole word green via .highlight */
    /* Reserve a fixed height for 3 lines (line-height 1.02 → ~3.06em) with a
       little headroom so the block never grows when the 3rd line lands and
       the vertically-centered layout doesn't jump while questions rotate. */
    height: 3.4em;
    margin-bottom: 0;                    /* gap to the answer lives on .hero-answer (r2: 36px) */
}

.hero-question .highlight {
    color: var(--color-accent);
}

.hero-question .cursor {
    display: inline-block;
    width: 0.08em;
    height: 1em;
    background-color: var(--color-accent);
    margin-left: 0.05em;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Constant answer — stays while the questions rotate */
.hero-answer {
    margin-top: 2.25rem;                     /* 36px — real breathing room from the question */
    font-size: clamp(18px, 1.9vw, 24px);     /* small constant, not a competing headline (4:1 vs. question) */
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-constant);       /* light grey #d6dfdc — quiet refrain, not white, not accent */
    animation: answer-in 0.8s ease-out both;
}

@keyframes answer-in {
    from { opacity: 0; transform: translateY(0.4rem); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Content Section
   ========================================================================== */

.content-section {
    max-width: 850px;
}

.headline {
    font-size: clamp(24px, 2.3vw, 31px);   /* ~31px anchor of the lower block — bold white */
    font-weight: 600;
    line-height: 1.22;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
}

.subheadline {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 500;
    color: var(--color-text-muted);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.005em;
}

.body-text {
    font-size: clamp(15px, 1.3vw, 17px);   /* subordinate to the steering headline — r2 scale */
    font-weight: 300;
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 580px;
    margin-bottom: var(--spacing-md);      /* CTA follows as the quiet action */
}

/* CTA
   ========================================================================== */

.cta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.cta-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--color-text-primary);
}

.cta-link {
    font-size: 15px;                 /* quieter action — must not compete with the headline */
    font-weight: 500;
    color: var(--color-accent);      /* accent reserved for the action (and the rotating pole word) */
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

.cta-link:hover {
    opacity: 0.8;
}

/* Footer
   ========================================================================== */

.footer {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    margin-top: auto;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo {
    height: clamp(18px, 2vw, 22px);
    width: auto;
    opacity: 0.7;
}

.footer-left .logo-claim {
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    opacity: 0.7;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-xs);
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--color-text-muted);
}

.footer-sites {
    white-space: nowrap;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--color-text-muted);
}

.footer-partners {
    white-space: nowrap;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

/* Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .page-wrapper {
        padding: var(--spacing-md) var(--spacing-md);
    }

    .header {
        align-items: flex-start;
    }

    /* Stack the claim below the logo on the second line */
    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .logo-divider {
        display: none;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .footer-right {
        align-items: flex-start;
    }
}



/* Animation States
   ========================================================================== */

.hero-question.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}
