/* Index Page Styles - Themeable Landing Page */

/* Base layout keeps existing structure, colors come from `index-themes.css` variables.
   Theme variables are applied via `body[data-landing-theme]`.
*/

body[data-page-type="landing"] {
    --navbar-height: 80px;
    font-family: var(--lp-font-sans);
    color: var(--lp-text);
    position: relative;
    background: var(--lp-page-shader), var(--lp-bg);
    overflow-x: clip;
}

body[data-page-type="landing"]::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--lp-page-shader), var(--lp-bg);
}

body[data-page-type="landing"]::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: var(--lp-galaxy-opacity, 0.9);
    background:
        radial-gradient(circle at 12% 24%, var(--lp-star-strong) 0 1.35px, transparent 2.15px),
        radial-gradient(circle at 28% 72%, var(--lp-star-soft) 0 1.25px, transparent 2.1px),
        radial-gradient(circle at 45% 18%, var(--lp-star-soft) 0 1.15px, transparent 2px),
        radial-gradient(circle at 64% 66%, var(--lp-star-strong) 0 1.35px, transparent 2.2px),
        radial-gradient(circle at 82% 32%, var(--lp-star-soft) 0 1.25px, transparent 2.1px),
        radial-gradient(circle at 92% 76%, var(--lp-star-strong) 0 1.35px, transparent 2.15px);
    background-size: 260px 260px, 340px 340px, 420px 420px, 300px 300px, 380px 380px, 460px 460px;
    animation: heroStarsDrift 42s linear infinite;
}

body[data-page-type="landing"] .main-content {
    position: relative;
    z-index: 1;
    background: transparent;
}

@media (max-width: 768px) {
    .portal-card,
    .feature-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

body[data-page-type="landing"] .hero-title,
body[data-page-type="landing"] .section-title,
body[data-page-type="landing"] .portal-title,
body[data-page-type="landing"] .feature-title,
body[data-page-type="landing"] .stat-number {
    color: var(--lp-text);
}

body[data-page-type="landing"] .hero-subtitle,
body[data-page-type="landing"] .section-subtitle,
body[data-page-type="landing"] .portal-description,
body[data-page-type="landing"] .feature-description,
body[data-page-type="landing"] .stat-label {
    color: var(--lp-muted);
}

body[data-page-type="landing"] .hero-kicker {
    color: var(--lp-hero-kicker-color, var(--lp-muted));
}

body[data-page-type="landing"] .hero-subtitle {
    color: var(--lp-hero-subtitle-color, var(--lp-muted));
}

/* Hero Section */
.hero-section {
    position: sticky;
    top: 0;
    min-height: clamp(820px, 112vh, 1160px);
    width: 100%;
    padding: clamp(5rem, 8vw, 8rem) 0 clamp(5rem, 9vw, 8rem);
    overflow: hidden;
    isolation: isolate;
    background: transparent;
    /* Fold-out: scale + fade as welcome section scrolls over */
    transform-origin: 50% 60%;
    transform: scale(calc(1 - var(--hero-fold-progress, 0) * 0.08));
    opacity: calc(1 - var(--hero-fold-progress, 0) * 0.55);
    transition: transform 0.05s linear, opacity 0.05s linear;
    will-change: transform, opacity;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    width: min(100%, 1500px);
    margin: 0 auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
    min-height: clamp(680px, 94vh, 980px);
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 5rem);
    text-align: left;
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(360px, 48vw, 640px);
    margin-top: 0;
    pointer-events: none;
    transform: perspective(1100px) rotateX(calc(var(--hero-tilt-y, 0) * -1deg)) rotateY(calc(var(--hero-tilt-x, 0) * 1deg));
    transform-style: preserve-3d;
    transition: transform 220ms ease-out;
}

.hero-logo-model {
    width: min(45vw, 620px);
    height: min(45vw, 620px);
    --poster-color: transparent;
    --progress-bar-color: transparent;
    --progress-bar-height: 0px;
    background: transparent;
    filter: drop-shadow(0 22px 42px var(--lp-hero-logo-shadow, rgba(0, 0, 0, 0.28)));
}

.hero-content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 940px;
    margin: 0;
    padding: 0;
    pointer-events: none;
    text-align: center;
}

/* Hero text overlay intentionally removed — text now relies on theme-aware
   color + gradient + drop-shadow for contrast against the 3D logo. */

body[data-page-type="landing"] .hero-title:not(:has(.hero-wordmark)) {
    font-family: Impact, Haettenschweiler, "Franklin Gothic Heavy", "Arial Black", sans-serif;
    font-size: clamp(3.2rem, 9.8vw, 11.25rem);
    font-weight: 900;
    line-height: 1.12;
    margin: 0;
    padding: 0.1em 0.04em 0.14em;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: visible;
    background: var(--lp-hero-title-gradient, var(--lp-gradient));
    background-size: 240% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(var(--lp-hero-title-shadow, 0 20px 60px rgba(0, 0, 0, 0.20)));
    animation: pollarityTitleGradient 9s ease-in-out infinite alternate;
}

.hero-title,
.hero-kicker,
.hero-subtitle {
    cursor: default;
    pointer-events: auto;
}

.hero-title .hero-letter,
.hero-kicker .hero-letter,
.hero-subtitle .hero-letter {
    display: inline-block;
    position: relative;
    line-height: 1.18;
    padding: 0.08em 0.04em 0.12em;
    margin: -0.08em -0.04em -0.12em;
}

.hero-title .hero-letter {
    padding-inline: 0.055em;
    margin-inline: -0.015em;
}

.hero-letter-glyph {
    display: inline-block;
    pointer-events: none;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    transform-origin: center;
    transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1), filter 360ms ease;
    will-change: transform;
}

body[data-page-type="landing"] .hero-title .hero-letter-glyph {
    color: transparent;
    background: var(--lp-hero-title-gradient, var(--lp-gradient));
    background-size: 240% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pollarityTitleGradient 9s ease-in-out infinite alternate;
}

.hero-title .hero-letter:hover .hero-letter-glyph,
.hero-kicker .hero-letter:hover .hero-letter-glyph,
.hero-subtitle .hero-letter:hover .hero-letter-glyph {
    transform: translate3d(var(--letter-drift-x, 0.35em), var(--letter-drift-y, -0.2em), 0) rotate(var(--letter-drift-r, 7deg)) scale(1.08);
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--lp-primary) 58%, transparent));
}

.hero-title .hero-word {
    display: inline-flex;
    align-items: center;
    overflow: visible;
}

.hero-kicker {
    color: var(--lp-hero-kicker-color, var(--lp-muted));
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    font-weight: 900;
    letter-spacing: 0.32em;
    margin: 0 auto 1.85rem;
    text-transform: uppercase;
    text-shadow: var(--lp-hero-text-shadow, 0 2px 12px rgba(0, 0, 0, 0.55));
}

.hero-kicker .hero-word,
.hero-subtitle .hero-word {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

.hero-subtitle .hero-word:empty {
    display: none;
}

.hero-subtitle {
    max-width: 760px;
    margin: 2.25rem auto 0;
    color: var(--lp-hero-subtitle-color, var(--lp-muted));
    font-size: clamp(1.1rem, 1.9vw, 1.5rem);
    font-weight: 700;
    line-height: 1.55;
    text-shadow: var(--lp-hero-text-shadow, 0 2px 14px rgba(0, 0, 0, 0.55));
}

.hero-galaxy,
.hero-galaxy::before,
.hero-galaxy::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-galaxy {
    display: none;
}

.hero-galaxy::before {
    content: '';
    display: none;
}

.hero-galaxy::after {
    content: '';
    display: none;
}

@keyframes pollarityTitleGradient {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 100% center;
    }
}

@keyframes heroStarsDrift {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 260px 520px, -340px 340px, 420px -420px, -300px 600px, 380px -380px, -460px 460px;
    }
}

/* Answer Engine Optimisation sections */
.answer-engine-section,
.home-faq-section {
    position: relative;
    z-index: 10;
    padding: 5rem 0 6.5rem;
    background: var(--lp-bg, #0a0a14);
}

/* ---- AEO intro header ---- */
.aeo-intro {
    max-width: 640px;
    margin: 0 0 3.5rem;
}

.aeo-title {
    color: var(--lp-text);
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.aeo-title-gradient {
    background: var(--lp-hero-title-gradient, var(--lp-gradient));
    background-size: 240% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pollarityTitleGradient 9s ease-in-out infinite alternate;
}

.aeo-lead {
    color: var(--lp-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

/* ---- Q&A editorial stack ---- */
.aeo-qa-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
}

.aeo-qa-item {
    display: grid;
    grid-template-columns: 7rem 1fr;
    align-items: start;
    gap: 2rem;
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--lp-border);
    position: relative;
    transition: background 0.25s ease;
}

.aeo-qa-item:first-child {
    border-top: 1px solid var(--lp-border);
}

.aeo-qa-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--lp-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aeo-qa-item:hover::before {
    opacity: 1;
}

.aeo-num {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--lp-text);
    opacity: 0.07;
    user-select: none;
    padding-top: 0.1em;
    transition: opacity 0.3s ease;
}

.aeo-qa-item:hover .aeo-num {
    opacity: 0.18;
}

.aeo-qa-body {
    padding-top: 0.2rem;
}

.aeo-question {
    color: var(--lp-text);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.65rem;
}

.aeo-answer {
    color: var(--lp-muted);
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0;
    max-width: 70ch;
}

.home-faq-list {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.home-faq-item {
    margin-bottom: 0.9rem;
    overflow: hidden;
}

.home-faq-item summary {
    color: var(--lp-text);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 900;
    list-style: none;
    padding: 1.25rem 1.5rem;
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-item summary::after {
    content: '+';
    float: right;
    color: var(--lp-muted);
    font-size: 1.2rem;
    line-height: 1;
}

.home-faq-item[open] summary::after {
    content: '−';
}

.home-faq-item p {
    color: var(--lp-muted);
    line-height: 1.7;
    margin: 0;
    padding: 0 1.5rem 1.25rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--lp-surface);
    border-radius: var(--lp-radius-lg);
    box-shadow: var(--lp-shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid var(--lp-border);
    flex-shrink: 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--lp-shadow-lg);
    background: var(--lp-surface-2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--lp-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-content {
    text-align: left;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: color-mix(in srgb, var(--lp-text) 18%, transparent);
    flex-shrink: 0;
}

/* Modern Alerts */
.alert-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--lp-radius-lg);
    border: 1px solid var(--lp-border);
    box-shadow: var(--lp-shadow-md);
    backdrop-filter: blur(14px);
    background: var(--lp-surface);
}

.alert-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-success .alert-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.alert-danger .alert-icon {
    background: linear-gradient(135deg, #fb7185 0%, #ef4444 100%);
    color: white;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--lp-text);
}

.alert-message {
    font-size: 0.95rem;
    opacity: 0.9;
    color: var(--lp-muted);
}

/* Portals Section */
.portals-section {
    position: relative;
    z-index: 10;
    padding: 5rem 0 6.5rem;
    background: var(--lp-bg, #0a0a14);
}

.portals-section .section-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}

/* Animated gradient + hero-style hover on "Choose Your Portal" */
.portals-headline {
    color: transparent;
    background: var(--lp-hero-title-gradient, var(--lp-gradient));
    background-size: 240% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pollarityTitleGradient 9s ease-in-out infinite alternate;
    cursor: default;
    display: inline-block;
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), filter 320ms ease;
}

.portals-headline:hover {
    transform: translate3d(0, -4px, 0) scale(1.03);
    filter: drop-shadow(0 0 28px color-mix(in srgb, var(--lp-primary) 65%, transparent));
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--lp-font-display);
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--lp-gradient);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.portal-card {
    position: relative;
    background: var(--lp-surface);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border-radius: var(--lp-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--lp-shadow-lg);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--lp-border);
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--lp-gradient);
    opacity: 0.85;
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 24px var(--lp-glow-primary), var(--lp-shadow-lg);
    background: var(--lp-surface-2);
    border-color: var(--lp-border-hover);
}

.portal-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, color-mix(in srgb, var(--lp-primary) 18%, transparent) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.portal-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--lp-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.portal-card:hover .portal-icon {
    transform: scale(1.08) rotate(-4deg);
}

.portal-title {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.portal-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.portal-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--lp-border) 55%, transparent);
    transition: transform 0.3s ease;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-item i {
    color: color-mix(in srgb, var(--lp-secondary) 68%, white);
    font-size: 1.1rem;
}

.feature-item span {
    font-size: 0.95rem;
    color: var(--lp-muted);
    font-weight: 600;
}

.portal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-portal {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: var(--lp-radius-md);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-portal:focus {
    outline: none;
    box-shadow: var(--lp-focus);
}

.btn-portal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-portal:hover::before {
    width: 320px;
    height: 320px;
}

.btn-portal-primary,
.btn-portal-success {
    background: var(--lp-gradient);
    color: var(--lp-btn-text);
    box-shadow: var(--lp-shadow-md);
}

.btn-portal-primary:hover,
.btn-portal-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--lp-shadow-lg);
    color: var(--lp-btn-text);
    text-decoration: none;
}

.btn-portal-outline {
    background: var(--lp-btn-outline-bg);
    color: var(--lp-text);
    border: 1px solid var(--lp-btn-outline-border);
}

.btn-portal-outline:hover {
    transform: translateY(-2px);
    box-shadow: var(--lp-shadow-md);
    color: var(--lp-text);
    text-decoration: none;
}

.btn-portal i, .btn-portal span {
    position: relative;
    z-index: 1;
}

/* Features Section */
.features-section {
    position: relative;
    padding: 5rem 0;
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--lp-surface);
    padding: 2rem;
    border-radius: var(--lp-radius-lg);
    box-shadow: var(--lp-shadow-md);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--lp-border);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 24px var(--lp-glow-primary), var(--lp-shadow-lg);
    background: var(--lp-surface-2);
    border-color: var(--lp-border-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--lp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--lp-gradient);
    box-shadow: var(--lp-shadow-md);
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
}

/* keep existing classes used by markup */
.icon-blue,
.icon-purple,
.icon-green,
.icon-orange,
.icon-pink,
.icon-cyan {
    background: var(--lp-gradient);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ============================================
   Welcome Section — folds over the hero
   ============================================ */
.welcome-section {
    position: relative;
    z-index: 10;
    margin-top: clamp(1rem, 4vw, 3rem);
    padding: clamp(3.5rem, 7vw, 5rem) 0 0;
    overflow: visible;
    /* Solid themed card that scrolls over the sticky hero */
    background: var(--lp-bg, #0a0a14);
    border-radius: 2.5rem 2.5rem 0 0;
    box-shadow:
        0 -8px 40px rgba(0, 0, 0, 0.45),
        0 -2px 0 rgba(255, 255, 255, 0.04);
}

/* Push headline content to the right */
.welcome-marquee-wrap {
    margin-left: auto;
    margin-right: auto;
    max-width: min(100%, 1120px);
    text-align: center;
    overflow: visible;
}

/* Kicker above headline */
.welcome-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lp-primary, #a78bfa);
    margin: 0 0 0.75rem;
    opacity: 0.85;
    text-align: center;
}

/* Eyebrow label */
.welcome-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lp-primary);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Main headline */
.welcome-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 0 1.25rem;
    line-height: 1.02;
}

/* Each stacked line — brick/stagger offsets */
.welcome-line {
    display: block;
    white-space: nowrap;
    padding-top: 0.08em;
    padding-bottom: 0.18em; /* generous room for italic descenders */
    overflow: visible;
}

/* Brick-like stagger: cascading left-to-right rhythm */
.welcome-line:nth-child(1),
.welcome-line:nth-child(2),
.welcome-line:nth-child(3),
.welcome-line:nth-child(4),
.welcome-line:nth-child(5) { margin-left: 0; }

.welcome-word {
    font-size: clamp(3rem, 7vw, 7.25rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--lp-text);
    cursor: default;
    display: inline-block;
    position: relative;
    overflow: visible;
    /* Scroll-in starting state */
    opacity: 0;
    transform: translateY(0.6em) skewY(4deg);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.25s ease;
    will-change: opacity, transform;
}

/* Underline sweep on hover */
.welcome-word::after {
    content: '';
    position: absolute;
    bottom: 0.04em;
    left: 0;
    width: 0;
    height: 0.08em;
    background: var(--lp-gradient);
    border-radius: 2px;
    transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-word:hover::after {
    width: 100%;
}

/* Plain word — inherits white/text colour */
.welcome-word--plain {
    color: var(--lp-text);
}

/* Ampersand — same scale as siblings, slightly muted */
.welcome-word--amp {
    color: var(--lp-muted);
    opacity: 0.6;
}

/* Gradient words — italic, wider, distinctive display treatment */
.welcome-word--gradient {
    background: var(--lp-hero-title-gradient, var(--lp-gradient));
    background-size: 240% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pollarityTitleGradient 9s ease-in-out infinite alternate;
    font-style: italic;
    font-size: clamp(3.25rem, 7.8vw, 8rem);
    letter-spacing: -0.02em;  /* less tight than plain words — italic needs room */
    font-weight: 900;
    padding-right: 0.28em;    /* italic glyphs lean right — give them room */
    padding-bottom: 0.25em;   /* extend clip region so descenders (y, g, p) are fully painted */
    margin-bottom: -0.25em;   /* cancel the extra space that padding adds to layout */
}

/* Gradient words don't need the ::after underline (already gradient) */
.welcome-word--gradient::after {
    display: none;
}

/* Sub copy */
.welcome-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--lp-muted);
    line-height: 1.65;
    max-width: 56ch;
    margin: 0 auto 1.75rem;
    text-align: center;
}

/* CTA row */
.welcome-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.75rem;
    justify-content: center;
}

.welcome-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.85em 2em;
    border-radius: var(--lp-radius-md);
    background: var(--lp-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.32);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.welcome-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
    color: #fff;
    text-decoration: none;
}

.welcome-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.85em 1.75em;
    border-radius: var(--lp-radius-md);
    background: transparent;
    color: var(--lp-text);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--lp-border);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-btn-ghost:hover {
    border-color: var(--lp-border-hover);
    background: var(--lp-surface);
    transform: translateY(-2px);
    color: var(--lp-text);
    text-decoration: none;
}

/* Scrolling ticker — full-bleed, sits outside the container */
.welcome-ticker {
    overflow: hidden;
    width: 100%;
    position: relative;
    margin-top: 2rem;
    padding: 1.1rem 0 1.45rem;
    border-top: 1px solid var(--lp-border);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.welcome-ticker-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: welcomeTicker 30s linear infinite;
}

.welcome-ticker-track span {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-dot {
    color: var(--lp-primary) !important;
    font-size: 1.1rem !important;
    line-height: 1;
}

@keyframes welcomeTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Scroll-in word animation ---- */
/* Once the section enters the viewport, JS adds this class */
.welcome-section.words-visible .welcome-word {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
    transition-delay: calc(var(--word-index, 0) * 80ms);
}

/* ---- Mobile ---- */
@media (max-width: 767.98px) {
    .welcome-section {
        margin-top: -1.25rem;
        padding: 3rem 0 0;
        border-radius: 1.75rem 1.75rem 0 0;
    }

    .welcome-marquee-wrap {
        max-width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .welcome-word {
        font-size: clamp(2.4rem, 11vw, 4rem);
    }

    .welcome-word--gradient {
        font-size: clamp(2.6rem, 12vw, 4.5rem);
    }

    .welcome-line,
    .welcome-line:nth-child(1),
    .welcome-line:nth-child(2),
    .welcome-line:nth-child(3),
    .welcome-line:nth-child(4),
    .welcome-line:nth-child(5) {
        white-space: normal;
        margin-left: 0;
    }

    .welcome-sub {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .welcome-cta-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.25rem;
    }

    .welcome-btn-primary,
    .welcome-btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .welcome-word {
        font-size: 2rem;
    }

    .welcome-word--gradient {
        font-size: 2.2rem;
    }
}

/* ============================================
   Feature Snapshot Section (Section 2)
   ============================================ */
.feature-snapshot-section {
    position: relative;
    z-index: 10;
    padding: 5rem 0 6.5rem;
    background: var(--lp-bg, #0a0a14);
}

/* Bigger heading just for this section */
.feature-snapshot-section .section-title {
    font-size: clamp(2.4rem, 4.5vw, 3.75rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

/* Strip layout */
.snapshot-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 0;
    border-radius: var(--lp-radius-lg);
    overflow: hidden;
    border: 1px solid var(--lp-border);
}

/* Bottom two panels span wider to fill the row evenly */
.snap-panel:nth-child(4),
.snap-panel:nth-child(5) {
    grid-column: span 1;
}

.snapshot-strip .snap-panel:nth-child(4) {
    border-top: 1px solid var(--lp-border);
}

.snapshot-strip .snap-panel:nth-child(5) {
    border-top: 1px solid var(--lp-border);
}

/* Inner vertical dividers between sibling panels */
.snap-panel:nth-child(2),
.snap-panel:nth-child(3) {
    border-left: 1px solid var(--lp-border);
}

.snap-panel:nth-child(5) {
    border-left: 1px solid var(--lp-border);
}

/* Force bottom row to be 2 equal columns inside the 3-col grid */
.snapshot-strip {
    grid-template-columns: repeat(6, 1fr);
}

.snap-panel:nth-child(1),
.snap-panel:nth-child(2),
.snap-panel:nth-child(3) {
    grid-column: span 2;
}

.snap-panel:nth-child(4),
.snap-panel:nth-child(5) {
    grid-column: span 3;
}

/* Individual panel */
.snap-panel {
    position: relative;
    overflow: hidden;
    cursor: default;
    min-height: 320px;
    transition: flex 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.snap-panel + .snap-panel {
    border-left: 1px solid var(--lp-border);
}

/* Giant watermark icon behind content */
.snap-bg-icon {
    position: absolute;
    bottom: -0.5rem;
    right: -0.75rem;
    font-size: 9rem;
    line-height: 1;
    opacity: 0.05;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.snap-panel:hover .snap-bg-icon {
    opacity: 0.10;
    transform: scale(1.08) rotate(-4deg);
}

/* Coloured top accent bar — slides in from left on hover */
.snap-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.snap-panel:hover .snap-accent-bar {
    width: 100%;
}

/* Colour variants for accent bar + icon tint */
.snap-blue  { background: rgba(99, 102, 241, 0.07); }
.snap-orange { background: rgba(249, 115, 22, 0.07); }
.snap-green { background: rgba(16, 185, 129, 0.07); }
.snap-pink  { background: rgba(236, 72, 153, 0.07); }
.snap-teal  { background: rgba(6, 182, 212, 0.07); }

.snap-blue .snap-accent-bar  { background: #6366f1; }
.snap-orange .snap-accent-bar { background: #f97316; }
.snap-green .snap-accent-bar { background: #10b981; }
.snap-pink .snap-accent-bar  { background: #ec4899; }
.snap-teal .snap-accent-bar  { background: #06b6d4; }

.snap-blue .snap-icon-wrap  { color: #6366f1; background: rgba(99, 102, 241, 0.15); }
.snap-orange .snap-icon-wrap { color: #f97316; background: rgba(249, 115, 22, 0.15); }
.snap-green .snap-icon-wrap { color: #10b981; background: rgba(16, 185, 129, 0.15); }
.snap-pink .snap-icon-wrap  { color: #ec4899; background: rgba(236, 72, 153, 0.15); }
.snap-teal .snap-icon-wrap  { color: #06b6d4; background: rgba(6, 182, 212, 0.15); }

.snap-blue .snap-bg-icon  { color: #6366f1; }
.snap-orange .snap-bg-icon { color: #f97316; }
.snap-green .snap-bg-icon { color: #10b981; }
.snap-pink .snap-bg-icon  { color: #ec4899; }
.snap-teal .snap-bg-icon  { color: #06b6d4; }

/* Inner content */
.snap-inner {
    position: relative;
    z-index: 1;
    padding: 2.25rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Icon circle */
.snap-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.4rem;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.snap-panel:hover .snap-icon-wrap {
    transform: scale(1.12);
}

.snap-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--lp-text);
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.snap-desc {
    font-size: 0.9rem;
    color: var(--lp-muted);
    line-height: 1.65;
    margin: 0 0 auto;
}

/* Animated hint link — slides up on hover */
.snap-cta-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-top: 1.4rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.snap-panel:hover .snap-cta-hint {
    opacity: 1;
    transform: translateY(0);
}

.snap-blue .snap-cta-hint  { color: #6366f1; }
.snap-orange .snap-cta-hint { color: #f97316; }
.snap-green .snap-cta-hint { color: #10b981; }
.snap-pink .snap-cta-hint  { color: #ec4899; }
.snap-teal .snap-cta-hint  { color: #06b6d4; }

@media (max-width: 991.98px) {
    .snapshot-strip {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .snap-panel {
        grid-column: span 1 !important;
    }
    .snap-panel + .snap-panel {
        border-left: none;
    }
    .snap-panel:nth-child(odd) {
        border-right: 1px solid var(--lp-border);
    }
    .snap-panel:nth-child(n+3) {
        border-top: 1px solid var(--lp-border);
    }
    /* 5th panel spans full width on tablet */
    .snap-panel:nth-child(5) {
        grid-column: span 2 !important;
        border-right: none;
    }
}

@media (max-width: 575.98px) {
    .snapshot-strip {
        grid-template-columns: 1fr !important;
    }
    .snap-panel {
        grid-column: span 1 !important;
    }
    .snap-panel:nth-child(odd) {
        border-right: none;
    }
    .snap-panel:nth-child(5) {
        grid-column: span 1 !important;
    }
    .snap-panel + .snap-panel {
        border-top: 1px solid var(--lp-border);
    }
    .snap-panel {
        min-height: unset;
    }
}

/* Modal Modern - keep existing but theme-aware */
.modal-modern {
    border-radius: var(--lp-radius-xl);
    border: 1px solid var(--lp-border);
    box-shadow: var(--lp-shadow-lg);
}

.modal-modern .modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-modern .modal-title {
    font-weight: 800;
    color: #111827;
}

.modal-modern .modal-body {
    padding: 2rem;
}

.modal-modern .modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.form-control-modern {
    padding: 0.875rem 1rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    border-color: color-mix(in srgb, var(--lp-primary) 70%, white);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--lp-primary) 22%, transparent);
}

.alert-info-modern {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: #0f172a;
    border-radius: 12px;
}

.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes logo-spin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title:not(:has(.hero-wordmark)) {
        letter-spacing: -0.08em;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: clamp(5rem, 12vw, 7rem) 0 clamp(3.5rem, 9vw, 5rem);
    }

    .hero-section .container {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 6vw, 3rem);
        text-align: center;
    }

    .hero-content {
        order: 1;
        margin-inline: auto;
    }

    .hero-visual {
        order: 2;
        min-height: clamp(280px, 56vw, 460px);
    }

    .hero-logo-model {
        width: min(72vw, 520px);
        height: min(72vw, 520px);
    }

    .aeo-qa-item {
        grid-template-columns: 4rem 1fr;
        gap: 1rem;
    }

    .aeo-num {
        font-size: 2.5rem;
    }

    .portals-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portal-card,
    .feature-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .section-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: clamp(4.5rem, 16vw, 6rem);
    }

    .hero-title:not(:has(.hero-wordmark)) {
        font-size: clamp(2.85rem, 15vw, 6.25rem);
        letter-spacing: 0.005em;
    }

    .hero-wordmark {
        --wm-size: clamp(2.85rem, 13vw, 5.5rem);
    }

    .hero-kicker {
        font-size: clamp(0.72rem, 3.1vw, 0.95rem);
    }

    .hero-subtitle {
        max-width: min(28rem, 92vw);
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    /* Ensure the 3D logo stays visible on mobile and fills the hero */
    body[data-page-type="landing"] .hero-visual {
        display: flex;
    }

    .hero-logo-model {
        width: min(92vw, 560px);
        height: min(92vw, 560px);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-section .container {
        padding-inline: 1rem;
    }

    .hero-title:not(:has(.hero-wordmark)) {
        font-size: clamp(2.45rem, 16vw, 4.75rem);
        letter-spacing: 0;
    }

    .hero-wordmark {
        --wm-size: clamp(2.5rem, 14vw, 4.5rem);
        letter-spacing: -0.035em;
    }

    .hero-kicker {
        letter-spacing: 0.14em;
    }

    .hero-subtitle {
        max-width: 21rem;
    }

    .hero-visual {
        min-height: clamp(250px, 78vw, 380px);
    }

    .hero-logo-model {
        width: min(96vw, 440px);
        height: min(96vw, 440px);
        filter: drop-shadow(0 16px 28px var(--lp-hero-logo-shadow, rgba(0, 0, 0, 0.24)));
    }

    .section-title {
        font-size: 1.6rem;
    }

    .portal-card {
        padding: 1.5rem;
    }

    .portal-actions {
        flex-direction: column;
    }

    .btn-portal {
        width: 100%;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .btn-portal {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }
}

/* ============================================
   Scroll Progress Nav — sticky left sidebar
   ============================================ */
.scroll-nav {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 920;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.scroll-nav.scroll-nav--visible {
    opacity: 1;
    pointer-events: auto;
}

/* Vertical track line — sits behind the dots column */
.scroll-nav-track {
    position: absolute;
    left: 3px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: color-mix(in srgb, var(--lp-text, #fff) 12%, transparent);
    border-radius: 2px;
    overflow: hidden;
}

/* Filled progress portion of the track */
.scroll-nav-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--lp-gradient, linear-gradient(135deg, #6366f1, #a78bfa));
    border-radius: 2px;
    transition: height 0.12s linear;
}

/* Each section row: dot + label side by side */
.scroll-nav-item {
    /* Reset all button default chrome */
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    text-align: left;
    /* Layout */
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    height: 32px;
    cursor: pointer;
    flex-shrink: 0;
    outline: none;
}

.scroll-nav-item:focus-visible .scroll-nav-dot {
    box-shadow: 0 0 0 2px var(--lp-primary, #7c3aed);
}

/* The dot */
.scroll-nav-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--lp-text, #fff) 22%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--lp-text, #fff) 20%, transparent);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease;
    position: relative;
    z-index: 1;
}

.scroll-nav-item:hover .scroll-nav-dot,
.scroll-nav-item.active .scroll-nav-dot {
    background: var(--lp-primary, #7c3aed);
    border-color: var(--lp-primary, #7c3aed);
    transform: scale(1.6);
    box-shadow: 0 0 10px color-mix(in srgb, var(--lp-primary, #7c3aed) 60%, transparent);
}

/* Always-visible text label */
.scroll-nav-label {
    white-space: nowrap;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    /* Muted by default — readable but subtle */
    color: color-mix(in srgb, var(--lp-text, #fff) 38%, transparent);
    transition:
        color 0.22s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    transform: translateX(0);
}

.scroll-nav-item[data-target="hero-section"] .scroll-nav-label::after {
    content: ' ↑';
    color: var(--lp-primary, #7c3aed);
    font-weight: 900;
}

.scroll-nav-item:hover .scroll-nav-label {
    color: color-mix(in srgb, var(--lp-text, #fff) 75%, transparent);
    transform: translateX(3px);
}

.scroll-nav-item.active .scroll-nav-label {
    color: var(--lp-text, #fff);
    font-weight: 800;
    transform: translateX(3px);
}

/* Light-mode adjustments — when --lp-text resolves to a dark colour
   the above color-mix values still work because they mix toward transparent,
   so on light themes the muted state is a semi-transparent dark text. */
body[data-landing-theme="clean"] .scroll-nav-label,
body[data-theme="light"] .scroll-nav-label {
    color: color-mix(in srgb, var(--lp-text, #0f172a) 40%, transparent);
}

body[data-landing-theme="clean"] .scroll-nav-item:hover .scroll-nav-label,
body[data-theme="light"] .scroll-nav-item:hover .scroll-nav-label {
    color: color-mix(in srgb, var(--lp-text, #0f172a) 72%, transparent);
}

body[data-landing-theme="clean"] .scroll-nav-item.active .scroll-nav-label,
body[data-theme="light"] .scroll-nav-item.active .scroll-nav-label {
    color: var(--lp-text, #0f172a);
}

/* Hide on small screens — nav would overlap content */
@media (max-width: 1099px) {
    .scroll-nav {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-nav-fill {
        transition: none;
    }
    .scroll-nav-dot,
    .scroll-nav-label {
        transition: none;
    }
}

/* Reduced motion: disable all decorative animations */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-galaxy,
    .hero-galaxy::before,
    .hero-logo-model {
        animation: none !important;
    }

    .hero-title .hero-letter,
    .hero-kicker .hero-letter,
    .hero-subtitle .hero-letter {
        transition: none !important;
    }

    .hero-letter-glyph {
        transition: none !important;
    }

    .hero-title .hero-letter:hover .hero-letter-glyph,
    .hero-kicker .hero-letter:hover .hero-letter-glyph,
    .hero-subtitle .hero-letter:hover .hero-letter-glyph {
        transform: none !important;
    }

    .portal-card,
    .feature-card,
    .snap-panel,
    .benefit-card,
    .love-card-inner,
    .use-case-card,
    .btn-cta {
        transition: none !important;
    }
}

/* ============================================
   WHY CHOOSE POLLARITY — REDESIGNED
   ============================================ */

.why-choose-section {
    position: relative;
    padding: 6rem 0 7rem;
    background: transparent;
    overflow: hidden;
}

/* Ambient radial glow behind the grid */
.why-choose-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1100px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.07) 0%, transparent 68%);
    pointer-events: none;
}

/* Per-card accent + glow palette */
.benefit-card:nth-child(1) { --bc-accent: #7c3aed; --bc-accent2: #a78bfa; --bc-glow: rgba(124, 58, 237, 0.4);  --bc-bg: rgba(124, 58, 237, 0.06); }
.benefit-card:nth-child(2) { --bc-accent: #0ea5e9; --bc-accent2: #38bdf8; --bc-glow: rgba(14, 165, 233, 0.4);  --bc-bg: rgba(14, 165, 233, 0.06); }
.benefit-card:nth-child(3) { --bc-accent: #10b981; --bc-accent2: #34d399; --bc-glow: rgba(16, 185, 129, 0.4);  --bc-bg: rgba(16, 185, 129, 0.06); }
.benefit-card:nth-child(4) { --bc-accent: #f59e0b; --bc-accent2: #fbbf24; --bc-glow: rgba(245, 158, 11, 0.4);  --bc-bg: rgba(245, 158, 11, 0.06); }
.benefit-card:nth-child(5) { --bc-accent: #ec4899; --bc-accent2: #f472b6; --bc-glow: rgba(236, 72, 153, 0.4);  --bc-bg: rgba(236, 72, 153, 0.06); }
.benefit-card:nth-child(6) { --bc-accent: #06b6d4; --bc-accent2: #22d3ee; --bc-glow: rgba(6, 182, 212, 0.4);   --bc-bg: rgba(6, 182, 212, 0.06); }

/* ---- Grid ---- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

/* ---- Card shell ---- */
.benefit-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    cursor: default;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}

/* Coloured top stripe — always visible, thickens on hover */
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bc-accent), var(--bc-accent2));
    border-radius: 24px 24px 0 0;
    transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

/* Shimmer sweep */
.benefit-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        118deg,
        transparent 20%,
        rgba(255, 255, 255, 0.055) 48%,
        rgba(255, 255, 255, 0.09) 50%,
        rgba(255, 255, 255, 0.055) 52%,
        transparent 80%
    );
    transform: translateX(-140%);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.benefit-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--bc-accent);
    box-shadow:
        0 0 0 1px var(--bc-accent),
        0 24px 64px rgba(0, 0, 0, 0.38),
        0 0 50px var(--bc-glow);
}

.benefit-card:hover::before {
    height: 6px;
}

.benefit-card:hover::after {
    transform: translateX(140%);
}

/* ---- Tinted header band ---- */
.benefit-card-head {
    position: relative;
    z-index: 1;
    padding: 1.75rem 2rem 1.5rem;
    background: var(--bc-bg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Text wrapper next to the icon in the header */
.benefit-head-text {
    flex: 1;
    min-width: 0;
}

.benefit-head-text .benefit-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--lp-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
    white-space: normal;
}

/* Number pushed to the far right in the header */
.benefit-num {
    flex-shrink: 0;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--bc-accent);
    opacity: 0.15;
    font-variant-numeric: tabular-nums;
    user-select: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    align-self: flex-start;
}
    /* ---- Icon ---- */
    .benefit-icon {
        flex-shrink: 0;
        width: 56px;
        height: 56px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--bc-accent) 0%, var(--bc-accent2) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 20px var(--bc-glow);
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
    }

    .benefit-card:hover .benefit-icon {
        transform: scale(1.12) rotate(-6deg);
        box-shadow: 0 10px 32px var(--bc-glow);
    }

    .benefit-icon i {
        font-size: 1.4rem;
        color: #fff;
    }

    .benefit-card:hover .benefit-num {
        opacity: 0.55;
        transform: scale(1.08);
    }

/* ---- Body ---- */
.benefit-card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Thin divider between head and body */
.benefit-card-body::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--bc-accent), transparent 60%);
    opacity: 0.3;
    margin-bottom: 1.25rem;
}

/* Section title size override for Why Choose */
.why-choose-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.benefit-description {
    font-size: 0.9rem;
    color: var(--lp-muted);
    line-height: 1.75;
    margin: 0;
    flex: 1;
}

/* Accent dot indicator at bottom of card */
.benefit-card-body::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--bc-accent), var(--bc-accent2));
    margin-top: 1.5rem;
    opacity: 0.5;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.benefit-card:hover .benefit-card-body::after {
    width: 52px;
    opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .benefit-card-head {
        padding: 1.5rem 1.5rem 1.25rem;
    }
    .benefit-card-body {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

/* ================================================================
   HERO SECTION — REVAMP
   Theme-aware (light/dark) via existing --lp-* variables
   ================================================================ */

/* Local hero tokens (derived from theme) */
.hero-section {
    --hero-bleed: clamp(2rem, 5vw, 4rem);
    --hero-radius: 22px;
    --hero-pill-bg: color-mix(in srgb, var(--lp-text) 8%, transparent);
    --hero-pill-border: color-mix(in srgb, var(--lp-text) 14%, transparent);
    --hero-card-bg: color-mix(in srgb, var(--lp-text) 4%, transparent);
    --hero-card-border: color-mix(in srgb, var(--lp-text) 12%, transparent);
    --hero-glow: color-mix(in srgb, var(--lp-primary) 65%, transparent);
    --hero-glow-soft: color-mix(in srgb, var(--lp-primary) 22%, transparent);
    --hero-blob-a: color-mix(in srgb, var(--lp-primary) 60%, transparent);
    --hero-blob-b: color-mix(in srgb, var(--lp-secondary, var(--lp-primary)) 55%, transparent);
    --hero-blob-c: color-mix(in srgb, var(--lp-accent, var(--lp-primary)) 50%, transparent);
}

/* Override the loose old hero layout */
.hero-section {
    position: relative;
    min-height: calc(100svh - var(--navbar-height, 80px));
    min-height: calc(100vh - var(--navbar-height, 80px));
    padding: clamp(3.25rem, 5vw, 5rem) 0 clamp(3rem, 5vw, 5rem);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
}

.hero-section .container {
    position: relative;
    z-index: 3;
    width: min(100%, 1500px);
    max-width: 1500px;
    margin: 0 auto;
    padding-inline: clamp(1.5rem, 4vw, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: center;
    column-gap: clamp(2rem, 5vw, 5rem);
    row-gap: 2rem;
    min-height: 100%;
    text-align: left;
}

.hero-content {
    position: relative;
    z-index: 4;
    grid-column: 1;
    justify-self: start;
    min-width: 0;
    width: 100%;
    max-width: 640px;
    margin: 0;
    padding: 0;
    pointer-events: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    transform: none;
}

.hero-visual {
    grid-column: 2;
    justify-self: end;
}

/* ---------- Background aurora blobs ---------- */
.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    filter: blur(70px) saturate(140%);
    opacity: 0.85;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.hero-blob--a {
    width: 55vmax;
    height: 55vmax;
    top: -18%;
    left: -12%;
    background: radial-gradient(circle at 30% 30%, var(--hero-blob-a), transparent 65%);
    animation: heroBlobFloat 24s ease-in-out infinite alternate;
}

.hero-blob--b {
    width: 48vmax;
    height: 48vmax;
    top: 20%;
    right: -14%;
    background: radial-gradient(circle at 70% 50%, var(--hero-blob-b), transparent 65%);
    animation: heroBlobFloat 30s ease-in-out -8s infinite alternate-reverse;
}

.hero-blob--c {
    width: 40vmax;
    height: 40vmax;
    bottom: -22%;
    left: 28%;
    background: radial-gradient(circle at 50% 50%, var(--hero-blob-c), transparent 65%);
    animation: heroBlobFloat 36s ease-in-out -14s infinite alternate;
}

@keyframes heroBlobFloat {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(4%, -3%, 0) scale(1.08); }
    100% { transform: translate3d(-3%, 4%, 0) scale(0.96); }
}

/* ---------- WebGL shader background + film grain ---------- */
.hero-shader {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
    opacity: 0.85;
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 55%, transparent 100%);
            mask-image: radial-gradient(ellipse at 50% 45%, #000 55%, transparent 100%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.22;
    mix-blend-mode: screen;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.88) 0 1px, transparent 1.8px),
        radial-gradient(circle at 38% 68%, rgba(34, 211, 238, 0.82) 0 1.2px, transparent 2px),
        radial-gradient(circle at 72% 28%, rgba(251, 113, 133, 0.7) 0 1px, transparent 1.9px),
        radial-gradient(circle at 86% 76%, rgba(167, 139, 250, 0.82) 0 1.1px, transparent 2px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 220px 220px, 280px 280px, 340px 340px, 420px 420px, 200px 200px;
}

/* ---------- v3.0 corner badge ---------- */
.hero-version-badge {
    position: absolute;
    top: 1.1rem;
    left: 1.25rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--lp-primary) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--lp-primary) 30%, transparent);
    color: color-mix(in srgb, var(--lp-text) 75%, transparent);
    font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    white-space: nowrap;
}

/* ---------- Announcement pill ---------- */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.9rem 0.5rem 0.55rem;
    background: var(--hero-pill-bg);
    border: 1px solid var(--hero-pill-border);
    border-radius: 999px;
    color: var(--lp-text);
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    margin-bottom: 1.5rem;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.hero-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--lp-text) 12%, transparent) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.9s ease;
}

.hero-pill:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--lp-primary) 50%, transparent);
    box-shadow: 0 10px 30px -10px var(--hero-glow-soft);
    color: var(--lp-text);
}

.hero-pill:hover::before {
    transform: translateX(100%);
}

.hero-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lp-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-primary) 22%, transparent);
    animation: heroDotPulse 2s ease-in-out infinite;
}

@keyframes heroDotPulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-primary) 22%, transparent); }
    50%      { box-shadow: 0 0 0 9px color-mix(in srgb, var(--lp-primary) 0%, transparent); }
}

.hero-pill__label {
    padding: 0.15rem 0.55rem;
    background: var(--lp-primary);
    color: #fff;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-pill__text {
    color: color-mix(in srgb, var(--lp-text) 88%, transparent);
}

.hero-pill__arrow {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.hero-pill:hover .hero-pill__arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* ---------- Kicker ---------- */
body[data-page-type="landing"] .hero-section .hero-kicker {
    margin: 0 0 1.1rem;
    width: 100%;
    font-size: clamp(0.72rem, 1.1vw, 0.85rem);
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--lp-text) 60%, transparent);
    text-shadow: none;
    text-align: left;
}

/* ---------- Title / POLLARITY wordmark ---------- */
body[data-page-type="landing"] .hero-section .hero-title {
    position: relative;
    margin: 0;
    padding: 0.04em 0 0.08em;
    width: 100%;
    line-height: 1.12;
    text-align: left;
    background: none;
    -webkit-text-fill-color: initial;
    -webkit-background-clip: border-box;
            background-clip: border-box;
    animation: none;
    filter: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    font-family: 'Unbounded', 'Space Grotesk', system-ui, sans-serif;
}

/* Eyebrow strip above the wordmark */
.hero-title__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--lp-text) 55%, transparent);
    line-height: 1;
}

.hero-title__bar {
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--lp-text) 50%, transparent), transparent);
}

.hero-title__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    background: color-mix(in srgb, var(--lp-primary) 12%, transparent);
    color: var(--lp-text);
    border: 1px solid color-mix(in srgb, var(--lp-primary) 30%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ============================================================
   Wordmark — single text-node, per-letter wave hover
   ============================================================ */
.hero-wordmark {
    --wm-size: clamp(2.75rem, 5.8vw, 6.25rem);
    --wm-grad: linear-gradient(135deg, #4f8cff 0%, #6366f1 45%, #8b5cf6 100%);
    --wm-glow: rgba(99, 102, 241, 0.45);
    position: relative;
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    max-width: min(100%, 9.35em);
    font-family: 'Unbounded', 'Space Grotesk', Impact, sans-serif;
    font-size: var(--wm-size);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.012em;
    color: transparent;
    isolation: isolate;
    cursor: default;
    overflow: visible;
    padding: 0.12em 0 0.24em;
    margin: -0.12em 0 -0.24em;
    /* Constant blue→purple — does not change with theme or animate */
    background: var(--wm-grad);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 18px 40px var(--wm-glow))
        drop-shadow(0 2px 0 rgba(15, 23, 42, 0.25));
    transition: filter 400ms ease;
    transform-origin: left center;
}

/* Per-letter wrapper — inherits the same constant gradient */
.hero-wordmark__letter {
    display: inline-block;
    position: relative;
    line-height: 1.08;
    padding: 0.08em 0.055em 0.18em;
    margin: -0.08em 0.005em -0.18em;
    background: var(--wm-grad);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition:
        transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 300ms ease;
    will-change: transform;
}

.hero-wordmark__letter:first-child {
    padding-left: 0;
    margin-left: 0;
}

.hero-wordmark__letter:last-of-type {
    padding-right: 0;
}

/* Hover wave: each letter lifts + tilts + glows in sequence */
.hero-wordmark.is-animating .hero-wordmark__letter {
    animation: wmLetterWave 1.18s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 60ms) 1 both;
}

@keyframes wmLetterWave {
    0%   { transform: translateY(0) rotate(0) scale(1); filter: none; }
    28%  { transform: translateY(-0.34em) rotate(-6deg) scale(1.12);
           filter: drop-shadow(0 18px 32px var(--wm-glow, rgba(99, 102, 241, 0.45))); }
    58%  { transform: translateY(0.08em) rotate(3deg) scale(0.96); }
    82%  { transform: translateY(-0.08em) rotate(-1.5deg) scale(1.03); }
    100% { transform: translateY(0) rotate(0) scale(1); filter: none; }
}

/* Per-letter individual hover */
.hero-wordmark:not(.is-animating) .hero-wordmark__letter:hover {
    transform: translateY(-0.26em) rotate(-4deg) scale(1.12);
    filter: drop-shadow(0 20px 34px var(--wm-glow, rgba(99, 102, 241, 0.45)));
    cursor: pointer;
}

/* Spotlight follow-on-hover — pure CSS sheen sweep over the wordmark */
.hero-wordmark__spotlight {
    position: absolute;
    inset: -10% -5%;
    z-index: -1;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(99, 102, 241, 0.35) 0%,
        transparent 45%);
    opacity: 0;
    filter: blur(40px);
    transition: opacity 500ms ease;
    pointer-events: none;
}

.hero-wordmark.is-animating .hero-wordmark__spotlight,
.hero-wordmark:hover .hero-wordmark__spotlight {
    opacity: 1;
    animation: wmSpotlight 1.6s ease-in-out 1 both;
}

@keyframes wmSpotlight {
    0%, 100% { background-position: 0% 50%; transform: translateX(0); }
    50%      { transform: translateX(20%); }
}

/* ---------- Subtitle ---------- */
body[data-page-type="landing"] .hero-section .hero-subtitle {
    max-width: 540px;
    width: 100%;
    margin: 1.4rem 0 0;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    font-weight: 500;
    line-height: 1.6;
    color: color-mix(in srgb, var(--lp-text) 75%, transparent);
    text-shadow: none;
    text-align: left;
    text-wrap: pretty;
    word-break: break-word;
    overflow-wrap: break-word;
}

body[data-page-type="landing"] .hero-section .hero-subtitle .hero-word {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

body[data-page-type="landing"] .hero-section .hero-subtitle .hero-word:empty {
    display: none;
}

body[data-page-type="landing"] .hero-section .hero-subtitle strong {
    color: var(--lp-text);
    font-weight: 700;
    background: linear-gradient(90deg, transparent 0, transparent 100%),
                var(--lp-gradient);
    background-size: 100% 2px, 200% 100%;
    background-position: 0 100%, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text, text;
            background-clip: text, text;
}

/* ---------- CTA buttons ---------- */
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.25rem;
}

.hero-btn {
    --btn-h: 56px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    height: var(--btn-h);
    padding: 0 1.7rem;
    border-radius: calc(var(--btn-h) / 2);
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
}

.hero-btn:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: 3px;
}

/* Primary CTA */
.hero-btn--primary {
    color: #fff;
    background: var(--lp-gradient);
    background-size: 220% 220%;
    background-position: 0% 50%;
    box-shadow:
        0 18px 40px -14px var(--hero-glow),
        0 0 0 1px color-mix(in srgb, #fff 14%, transparent) inset;
    animation: heroBtnGradient 7s ease-in-out infinite alternate;
}

.hero-btn--primary .hero-btn__bg {
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: var(--lp-gradient);
    filter: blur(18px);
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.hero-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 24px 50px -12px var(--hero-glow),
        0 0 0 1px color-mix(in srgb, #fff 22%, transparent) inset;
    color: #fff;
}

.hero-btn--primary:hover .hero-btn__bg { opacity: 0.9; }

.hero-btn--primary .hero-btn__arrow {
    transition: transform 0.25s ease;
}

.hero-btn--primary:hover .hero-btn__arrow {
    transform: translateX(4px);
}

@keyframes heroBtnGradient {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Ghost CTA */
.hero-btn--ghost {
    color: var(--lp-text);
    background: var(--hero-card-bg);
    border-color: var(--hero-card-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-btn--ghost:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--lp-primary) 60%, transparent);
    background: color-mix(in srgb, var(--lp-primary) 12%, transparent);
    color: var(--lp-text);
    box-shadow: 0 12px 30px -12px var(--hero-glow-soft);
}

.hero-btn__play {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--lp-primary) 25%, transparent);
    color: var(--lp-primary);
    transition: transform 0.25s ease;
}

.hero-btn--ghost:hover .hero-btn__play {
    transform: scale(1.12);
    background: var(--lp-primary);
    color: #fff;
}

/* ---------- Trust strip ---------- */
.hero-trust {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-trust__item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1;
}

.hero-trust__num {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--lp-text);
    letter-spacing: -0.01em;
    background: var(--lp-gradient);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pollarityTitleGradient 9s ease-in-out infinite alternate;
}

.hero-trust__num small {
    font-size: 0.7em;
    margin-left: 0.05em;
}

.hero-trust__num i {
    font-size: 0.85em;
    margin-right: 0.15em;
}

.hero-trust__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--lp-text) 60%, transparent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-trust__divider {
    width: 1px;
    height: 32px;
    background: color-mix(in srgb, var(--lp-text) 18%, transparent);
}

/* ---------- Visual / 3D logo stage ---------- */
.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    min-height: clamp(360px, 42vw, 580px);
    max-height: 640px;
    transform: perspective(1200px)
        translate3d(calc(var(--hero-logo-shift-x, 0) * 1px), calc(var(--hero-logo-shift-y, 0) * 1px), 0)
        rotateX(calc(var(--hero-tilt-y, 0) * -5deg))
        rotateY(calc(var(--hero-tilt-x, 0) * 7deg));
    transform-style: preserve-3d;
    transition: transform 180ms ease-out;
    will-change: transform;
    pointer-events: none;
}

.hero-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform: translateZ(-36px)
        rotateX(calc(var(--hero-tilt-y, 0) * -2deg))
        rotateY(calc(var(--hero-tilt-x, 0) * 2.5deg));
    transform-style: preserve-3d;
    transition: transform 220ms ease-out;
    will-change: transform;
}

.hero-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hero-glow) 0%, transparent 70%);
    filter: blur(50px);
    opacity: 0.55;
    animation: heroGlowPulse 6s ease-in-out infinite;
}

@keyframes heroGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50%      { transform: scale(1.15); opacity: 0.75; }
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--lp-text) 14%, transparent);
    animation: heroRingSpin 40s linear infinite;
}

.hero-ring::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lp-primary);
    box-shadow: 0 0 14px var(--hero-glow);
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle, var(--lp-primary) 0 2px, transparent 2.8px) 50% 0 / 8px 8px no-repeat,
        radial-gradient(circle, var(--lp-secondary, var(--lp-primary)) 0 1.6px, transparent 2.4px) 100% 50% / 7px 7px no-repeat,
        radial-gradient(circle, var(--lp-accent, var(--lp-primary)) 0 1.8px, transparent 2.6px) 18% 82% / 7px 7px no-repeat,
        radial-gradient(circle, color-mix(in srgb, var(--lp-text) 70%, transparent) 0 1.2px, transparent 2px) 78% 18% / 6px 6px no-repeat;
    filter: drop-shadow(0 0 10px var(--hero-glow));
    opacity: 0.85;
}

.hero-ring--1 {
    width: 78%;
    height: 78%;
    border-color: color-mix(in srgb, var(--lp-primary) 28%, transparent);
}

.hero-ring--2 {
    width: 92%;
    height: 92%;
    border-style: dashed;
    border-color: color-mix(in srgb, var(--lp-text) 12%, transparent);
    animation-duration: 55s;
    animation-direction: reverse;
}

.hero-ring--2::before {
    background: var(--lp-secondary, var(--lp-primary));
}

.hero-ring--2::after {
    background:
        radial-gradient(circle, var(--lp-secondary, var(--lp-primary)) 0 2.2px, transparent 3px) 12% 23% / 8px 8px no-repeat,
        radial-gradient(circle, var(--lp-primary) 0 1.5px, transparent 2.3px) 64% 1% / 7px 7px no-repeat,
        radial-gradient(circle, var(--lp-accent, var(--lp-primary)) 0 1.7px, transparent 2.5px) 96% 66% / 7px 7px no-repeat,
        radial-gradient(circle, color-mix(in srgb, var(--lp-text) 70%, transparent) 0 1.2px, transparent 2px) 36% 96% / 6px 6px no-repeat;
}

.hero-ring--3 {
    width: 108%;
    height: 108%;
    border-color: color-mix(in srgb, var(--lp-accent, var(--lp-primary)) 20%, transparent);
    animation-duration: 70s;
}

.hero-ring--3::before {
    background: var(--lp-accent, var(--lp-primary));
    width: 6px;
    height: 6px;
    top: -3px;
}

.hero-ring--3::after {
    background:
        radial-gradient(circle, var(--lp-accent, var(--lp-primary)) 0 1.8px, transparent 2.6px) 8% 58% / 7px 7px no-repeat,
        radial-gradient(circle, var(--lp-primary) 0 1.4px, transparent 2.2px) 30% 6% / 6px 6px no-repeat,
        radial-gradient(circle, var(--lp-secondary, var(--lp-primary)) 0 1.6px, transparent 2.4px) 72% 92% / 7px 7px no-repeat,
        radial-gradient(circle, color-mix(in srgb, var(--lp-text) 65%, transparent) 0 1.1px, transparent 1.9px) 98% 36% / 6px 6px no-repeat;
}

@keyframes heroRingSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Floating feature badges */
.hero-float {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: var(--hero-card-bg);
    border: 1px solid var(--hero-card-border);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    color: var(--lp-text);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 12px 30px -10px rgba(0,0,0,0.25);
    pointer-events: none;
    animation: heroFloatY 6s ease-in-out infinite;
}

.hero-float i {
    color: var(--lp-primary);
    font-size: 0.95rem;
}

.hero-float--tl { top: 6%;  left: 4%;  animation-delay: -0.5s; }
.hero-float--tr { top: 12%; right: 2%; animation-delay: -2s;   }
.hero-float--bl { bottom: 14%; left: 6%; animation-delay: -3.5s; }
.hero-float--br { bottom: 6%; right: 4%;  animation-delay: -1.2s; }

@keyframes heroFloatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* 3D logo override (sits above stage) */
.hero-section .hero-logo-model {
    position: relative;
    z-index: 2;
    width: min(100%, 38vw, 560px);
    height: min(100%, 38vw, 560px);
    aspect-ratio: 1 / 1;
    --poster-color: transparent;
    --progress-bar-color: transparent;
    --progress-bar-height: 0px;
    background: transparent;
    filter: drop-shadow(0 28px 50px var(--hero-glow));
    transform: translate3d(calc(var(--hero-logo-shift-x, 0) * -0.25px), calc(var(--hero-logo-shift-y, 0) * -0.2px), 48px)
        scale(calc(1 + (var(--hero-logo-hover, 0) * 0.018)));
    transform-style: preserve-3d;
    transition: filter 160ms ease-out, transform 180ms ease-out;
    will-change: transform;
}

/* ---------- Scroll indicator ---------- */
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: clamp(1rem, 2.4vw, 2rem);
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    color: color-mix(in srgb, var(--lp-text) 65%, transparent);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    z-index: 4;
    transition: color 0.25s ease, transform 0.25s ease;
}

.hero-scroll:hover {
    color: var(--lp-text);
    transform: translateX(-50%) translateY(-2px);
}

.hero-scroll__arrows {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-size: 1rem;
    line-height: 0.72;
    color: currentColor;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--lp-secondary) 50%, transparent));
}

.hero-scroll__arrows i {
    animation: heroScrollArrow 1.45s ease-in-out infinite;
}

.hero-scroll__arrows i:nth-child(2) {
    animation-delay: 0.18s;
}

@keyframes heroScrollArrow {
    0%, 100% { transform: translateY(-2px); opacity: 0.38; }
    50%      { transform: translateY(5px); opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: clamp(3.75rem, 8vw, 5rem) 0 clamp(4.75rem, 10vw, 6rem);
    }

    .hero-section .container {
        grid-template-columns: 1fr !important;
        gap: clamp(1.25rem, 4vw, 2rem);
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        align-items: center;
        margin-inline: auto;
        transform: translateY(0.75rem);
        overflow: visible;
    }

    .hero-wordmark {
        --wm-size: clamp(2.25rem, 8.2vw, 4.8rem);
        max-width: calc(100vw - 2rem);
        align-self: center;
        justify-content: center;
        text-align: center;
        margin-inline: auto;
        letter-spacing: -0.018em;
        transform-origin: center;
    }

    body[data-page-type="landing"] .hero-section .hero-kicker,
    body[data-page-type="landing"] .hero-section .hero-title,
    body[data-page-type="landing"] .hero-section .hero-subtitle {
        text-align: center !important;
    }

    body[data-page-type="landing"] .hero-section .hero-subtitle {
        margin-inline: auto;
        max-width: min(34rem, 94vw);
    }

    .hero-cta-row,
    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        order: 2;
        grid-column: 1 !important;
        justify-self: center;
        min-height: clamp(280px, 48vw, 440px);
        max-height: 440px;
        aspect-ratio: 1 / 1;
        width: 100%;
    }

    .hero-section .hero-logo-model {
        width: min(66vw, 430px);
        height: min(66vw, 430px);
    }

    .hero-float--tl, .hero-float--bl { left: 2%; }
    .hero-float--tr, .hero-float--br { right: 2%; }

    .hero-scroll {
        bottom: 1.8rem;
        font-size: 0.62rem;
    }
}

@media (max-width: 768px) {
    /* Ensure single-column layout on all phones/small tablets */
    .hero-section .container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 0.9rem;
        padding-inline: 1rem;
        overflow: visible;
    }

    .hero-content {
        order: 1;
        align-items: center !important;
        max-width: 100%;
        margin-inline: auto;
        transform: translateY(0.35rem);
    }

    body[data-page-type="landing"] .hero-section .hero-kicker,
    body[data-page-type="landing"] .hero-section .hero-title,
    body[data-page-type="landing"] .hero-section .hero-subtitle {
        text-align: center !important;
    }

    body[data-page-type="landing"] .hero-section .hero-subtitle {
        margin-inline: auto;
        max-width: min(32rem, 94vw);
        text-align: center !important;
    }

    .hero-cta-row,
    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        order: 2;
        grid-column: 1 !important;
        justify-self: center;
        min-height: clamp(240px, 58vw, 340px) !important;
        max-height: 340px;
        aspect-ratio: 1 / 1;
        width: 100%;
    }

    .hero-wordmark {
        --wm-size: clamp(1.9rem, 8.8vw, 3.7rem);
        max-width: calc(100vw - 2rem);
        overflow: visible;
        align-self: center;
        justify-content: center;
        text-align: center;
        margin-inline: auto;
        letter-spacing: -0.02em;
        transform-origin: center;
    }

    .hero-pill {
        font-size: 0.78rem;
        padding: 0.4rem 0.8rem 0.4rem 0.45rem;
    }

    .hero-pill__text {
        max-width: 14rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-section .hero-logo-model {
        width: min(70vw, 330px) !important;
        height: min(70vw, 330px) !important;
    }

    .hero-btn {
        --btn-h: 52px;
        font-size: 0.92rem;
        padding: 0 1.4rem;
    }

    .hero-cta-row {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        justify-content: center;
    }

    .hero-trust__num { font-size: 1.2rem; }
    .hero-trust { gap: 1rem; }
    .hero-trust__divider { height: 26px; }

    .hero-float { font-size: 0.72rem; padding: 0.45rem 0.8rem; }
    .hero-float--bl, .hero-float--br { display: none; }
}

@media (max-width: 480px) {
    .hero-float--tl, .hero-float--tr { display: none; }
}

/* ================================================================
   HERO — MOBILE RESPONSIVE OVERRIDES
   Fixes for phones (≤ 600px) where the hero looks broken
   ================================================================ */
@media (max-width: 600px) {
    /* Shrink hero height so it doesn't over-fill the viewport */
    .hero-section {
        min-height: calc(100svh - var(--navbar-height, 66px)) !important;
        padding-top: clamp(1.7rem, 5.5vw, 2.4rem);
        padding-bottom: clamp(3.4rem, 11vw, 4.6rem);
        display: flex;
        align-items: center;
    }

    /* Single-column, centred layout */
    .hero-section .container {
        grid-template-columns: 1fr !important;
        gap: clamp(0.55rem, 2.4vw, 0.9rem);
        padding-inline: 1rem;
        text-align: center;
        min-height: 0;
        overflow: visible;
    }

    /* Content first, model second */
    .hero-content {
        order: 1;
        align-items: center !important;
        max-width: 100%;
        margin-inline: auto;
        transform: none;
    }

    .hero-visual {
        order: 2;
        grid-column: 1 !important;
        justify-self: center;
        min-height: clamp(210px, 60vw, 280px) !important;
        max-height: 280px;
        aspect-ratio: 1 / 1;
        width: 100%;
    }

    /* ---- Wordmark ---- */
    .hero-wordmark {
        --wm-size: clamp(1.65rem, 8.4vw, 2.7rem);
        max-width: calc(100vw - 2rem);
        overflow: visible;
        align-self: center;
        justify-content: center;
        text-align: center;
        margin-inline: auto;
        letter-spacing: -0.024em;
        transform-origin: center;
    }

    /* ---- Pill ---- */
    .hero-pill {
        font-size: 0.72rem;
        padding: 0.38rem 0.7rem 0.38rem 0.4rem;
        gap: 0.4rem;
        max-width: calc(100vw - 2rem);
    }

    .hero-pill__text {
        max-width: 11rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ---- Kicker ---- */
    body[data-page-type="landing"] .hero-section .hero-kicker {
        font-size: clamp(0.56rem, 2.25vw, 0.65rem);
        letter-spacing: 0.16em;
        text-align: center !important;
        margin-bottom: 0.45rem;
    }

    /* ---- Title eyebrow ---- */
    .hero-title__eyebrow {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
        gap: 0.4rem;
    }

    .hero-title__bar {
        width: 18px;
    }

    /* ---- Subtitle ---- */
    body[data-page-type="landing"] .hero-section .hero-subtitle {
        font-size: clamp(0.84rem, 3.75vw, 1rem);
        max-width: min(28rem, calc(100vw - 2rem));
        width: 100%;
        margin-inline: auto;
        margin-top: 0.8rem;
        line-height: 1.48;
        text-align: center !important;
        text-wrap: balance;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* ---- CTA row ---- */
    .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.62rem;
        margin-top: 1rem;
    }

    .hero-btn {
        --btn-h: 47px;
        font-size: 0.86rem;
        padding: 0 1.2rem;
        justify-content: center;
        width: 100%;
    }

    /* ---- Trust strip ---- */
    .hero-trust {
        gap: 0.45rem;
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .hero-trust__item {
        min-width: 4.25rem;
        align-items: center;
        text-align: center;
    }

    .hero-trust__num { font-size: clamp(0.92rem, 4vw, 1.05rem); }
    .hero-trust__label { font-size: clamp(0.54rem, 2.3vw, 0.62rem); }
    .hero-trust__divider { height: 20px; }

    /* ---- 3D Logo ---- */
    .hero-section .hero-logo-model {
        width: min(72vw, 270px) !important;
        height: min(72vw, 270px) !important;
    }

    .hero-ring--2,
    .hero-ring--3 {
        display: none;
    }

    .hero-scroll {
        bottom: 0.7rem;
        gap: 0.25rem;
        font-size: 0.56rem;
    }

    .hero-scroll__arrows {
        font-size: 0.8rem;
    }
}

/* Extra-small phones (≤ 360px) */
@media (max-width: 360px) {
    .hero-section {
        padding-top: 1.25rem;
        padding-bottom: 3.15rem;
    }

    .hero-wordmark {
        --wm-size: clamp(1.35rem, 8vw, 1.85rem);
        letter-spacing: -0.026em;
        overflow: visible;
        align-self: center;
        justify-content: center;
        text-align: center;
        margin-inline: auto;
        transform-origin: center;
        max-width: calc(100vw - 1.5rem);
    }

    .hero-pill__text {
        max-width: 8rem;
    }

    .hero-section .hero-logo-model {
        width: min(70vw, 225px) !important;
        height: min(70vw, 225px) !important;
    }

    .hero-visual {
        min-height: clamp(170px, 57vw, 225px) !important;
        max-height: 225px;
    }

    .hero-btn {
        --btn-h: 43px;
        font-size: 0.8rem;
    }

    body[data-page-type="landing"] .hero-section .hero-subtitle {
        font-size: 0.82rem;
        line-height: 1.42;
    }

    .hero-trust {
        gap: 0.4rem;
    }

    .hero-trust__divider { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-blob,
    .hero-glow,
    .hero-ring,
    .hero-float,
    .hero-pill__dot,
    .hero-wordmark,
    .hero-wordmark__main,
    .hero-wordmark__shine,
    .hero-wordmark__scan,
    .hero-scroll__arrows i,
    .hero-btn--primary,
    body[data-page-type="landing"] .hero-section .hero-title {
        animation: none !important;
    }
}

/* ================================================================
   LIGHT MODE HERO — vibrant white + blue
   Active when [data-landing-theme="clean"]
   ================================================================ */
body[data-landing-theme="clean"][data-page-type="landing"] .hero-section,
[data-landing-theme="clean"] .hero-section {
    /* Re-skin the local hero tokens to a crisp blue palette */
    --hero-pill-bg:      rgba(255, 255, 255, 0.85);
    --hero-pill-border:  rgba(37, 99, 235, 0.22);
    --hero-card-bg:      rgba(255, 255, 255, 0.78);
    --hero-card-border:  rgba(37, 99, 235, 0.18);
    --hero-glow:         rgba(59, 130, 246, 0.55);
    --hero-glow-soft:    rgba(59, 130, 246, 0.22);
    --hero-blob-a:       rgba(59, 130, 246, 0.55);   /* sky blue */
    --hero-blob-b:       rgba(99, 102, 241, 0.40);   /* indigo */
    --hero-blob-c:       rgba(14, 165, 233, 0.45);   /* cyan */
    background:
        radial-gradient(1200px 800px at 0% 0%,   rgba(219, 234, 254, 0.55), transparent 60%),
        radial-gradient(1000px 700px at 100% 0%, rgba(224, 242, 254, 0.55), transparent 60%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 60%, #eef4ff 100%);
}

/* Aurora is more saturated/visible against white */
[data-landing-theme="clean"] .hero-aurora {
    opacity: 0.55;
    filter: blur(80px) saturate(160%);
    mix-blend-mode: multiply;
}

/* Noise overlay reduced on white so it doesn't read as dirt */
[data-landing-theme="clean"] .hero-noise {
    opacity: 0.025;
    mix-blend-mode: multiply;
}

/* Shader canvas — softer presence on white */
[data-landing-theme="clean"] .hero-shader {
    opacity: 0.55;
    mix-blend-mode: multiply;
}

/* Pill — frosted white with vibrant blue accent */
[data-landing-theme="clean"] .hero-pill {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(37, 99, 235, 0.22);
    color: #0f172a;
    box-shadow: 0 6px 20px -8px rgba(37, 99, 235, 0.25);
}
[data-landing-theme="clean"] .hero-pill__label {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
}
[data-landing-theme="clean"] .hero-pill__dot {
    background: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22);
}
[data-landing-theme="clean"] .hero-pill__text {
    color: rgba(15, 23, 42, 0.8);
}

/* Eyebrow */
[data-landing-theme="clean"] .hero-title__eyebrow {
    color: rgba(37, 99, 235, 0.75);
}
[data-landing-theme="clean"] .hero-title__bar {
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.45), transparent);
}
[data-landing-theme="clean"] .hero-title__tag {
    background: rgba(219, 234, 254, 0.85);
    border-color: rgba(37, 99, 235, 0.30);
    color: #1e3a8a;
}

/* Wordmark — keep blue→purple constant gradient but punch up the shadow + add brighter glow against white */
[data-landing-theme="clean"] .hero-wordmark {
    --wm-grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
    --wm-glow: rgba(37, 99, 235, 0.45);
    filter:
        drop-shadow(0 18px 36px rgba(37, 99, 235, 0.30))
        drop-shadow(0 2px 0 rgba(15, 23, 42, 0.10));
}
[data-landing-theme="clean"] .hero-wordmark__spotlight {
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.45) 0%, transparent 45%);
}

/* Kicker + subtitle */
[data-landing-theme="clean"] body[data-page-type="landing"] .hero-section .hero-kicker,
body[data-landing-theme="clean"][data-page-type="landing"] .hero-section .hero-kicker {
    color: rgba(37, 99, 235, 0.85);
}
[data-landing-theme="clean"] body[data-page-type="landing"] .hero-section .hero-subtitle,
body[data-landing-theme="clean"][data-page-type="landing"] .hero-section .hero-subtitle {
    color: rgba(15, 23, 42, 0.72);
}
[data-landing-theme="clean"] body[data-page-type="landing"] .hero-section .hero-subtitle strong,
body[data-landing-theme="clean"][data-page-type="landing"] .hero-section .hero-subtitle strong {
    color: #1e3a8a;
}

/* Primary CTA — bold blue */
[data-landing-theme="clean"] .hero-btn--primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6 50%, #6366f1);
    box-shadow:
        0 18px 40px -12px rgba(37, 99, 235, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.40) inset;
}
[data-landing-theme="clean"] .hero-btn--primary:hover {
    box-shadow:
        0 24px 50px -10px rgba(37, 99, 235, 0.70),
        0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

/* Ghost CTA — frosted white with blue border */
[data-landing-theme="clean"] .hero-btn--ghost {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(37, 99, 235, 0.25);
    color: #1e3a8a;
}
[data-landing-theme="clean"] .hero-btn--ghost:hover {
    background: rgba(219, 234, 254, 0.9);
    border-color: rgba(37, 99, 235, 0.55);
    color: #1e3a8a;
}
[data-landing-theme="clean"] .hero-btn__play {
    background: rgba(37, 99, 235, 0.18);
    color: #2563eb;
}
[data-landing-theme="clean"] .hero-btn--ghost:hover .hero-btn__play {
    background: #2563eb;
    color: #fff;
}

/* Trust strip */
[data-landing-theme="clean"] .hero-trust__num {
    background: linear-gradient(135deg, #2563eb, #6366f1);
    -webkit-background-clip: text;
            background-clip: text;
}
[data-landing-theme="clean"] .hero-trust__label {
    color: rgba(15, 23, 42, 0.6);
}
[data-landing-theme="clean"] .hero-trust__divider {
    background: rgba(37, 99, 235, 0.22);
}

/* Floating badges around the 3D model — frosted white */
[data-landing-theme="clean"] .hero-float {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(37, 99, 235, 0.18);
    color: #1e3a8a;
    box-shadow: 0 12px 28px -10px rgba(37, 99, 235, 0.28);
}
[data-landing-theme="clean"] .hero-float i {
    color: #2563eb;
}

/* Orbital rings + glow around the 3D logo */
[data-landing-theme="clean"] .hero-ring {
    border-color: rgba(37, 99, 235, 0.20);
}
[data-landing-theme="clean"] .hero-ring--1 {
    border-color: rgba(37, 99, 235, 0.40);
}
[data-landing-theme="clean"] .hero-ring--2 {
    border-color: rgba(99, 102, 241, 0.20);
}
[data-landing-theme="clean"] .hero-ring--3 {
    border-color: rgba(14, 165, 233, 0.25);
}
[data-landing-theme="clean"] .hero-ring::before {
    background: #3b82f6;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.6);
}
[data-landing-theme="clean"] .hero-glow {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, transparent 70%);
}

/* Scroll indicator */
[data-landing-theme="clean"] .hero-scroll {
    color: rgba(37, 99, 235, 0.65);
}
[data-landing-theme="clean"] .hero-scroll:hover {
    color: #1e3a8a;
}

/* ================================================================
   DARK MODE HERO WORDMARK — brighter, cleaner, high-contrast
   Active when [data-landing-theme="3d"]
   ================================================================ */
[data-landing-theme="3d"] .hero-wordmark {
    --wm-grad: linear-gradient(135deg,
        #e0f2ff 0%,
        #93c5fd 30%,
        #a5b4fc 60%,
        #c4b5fd 100%);
    --wm-glow: rgba(147, 197, 253, 0.55);
    filter:
        drop-shadow(0 0 24px rgba(147, 197, 253, 0.35))
        drop-shadow(0 18px 40px rgba(99, 102, 241, 0.45))
        drop-shadow(0 2px 0 rgba(15, 23, 42, 0.55));
}

[data-landing-theme="3d"] .hero-wordmark__spotlight {
    background: radial-gradient(circle at 30% 50%,
        rgba(147, 197, 253, 0.45) 0%,
        rgba(167, 139, 250, 0.20) 30%,
        transparent 55%);
}




