/* CSS Variables for Pillar Colors & Theme Support */
:root {
    /* Pillar Colors (constant across themes) */
    --move-primary: #E85A5A;
    --move-secondary: #FF6B6B;
    --move-glow: rgba(255, 69, 58, 0.4);
    --move-color: #E85A5A;

    --fuel-primary: #5ABF6A;
    --fuel-secondary: #6EE77A;
    --fuel-glow: rgba(50, 215, 75, 0.4);
    --fuel-color: #5ABF6A;

    --rest-primary: #9B7EC8;
    --rest-secondary: #DA8FFF;
    --rest-glow: rgba(191, 90, 242, 0.4);
    --rest-color: #9B7EC8;

    --rise-primary: #E8A54A;
    --rise-secondary: #FFB84D;
    --rise-glow: rgba(255, 159, 10, 0.4);
    --rise-color: #E8A54A;

    /* Pillar Accent Shades (secondary highlights, dividers) */
    --move-accent: #e85d5d;
    --rest-accent: #a78bfa;
    --rise-accent: #f59e0b;

    /* Shared Detail Panel UI Text */
    --text-on-accent: #0d0b14;
    --detail-nav-text: #9b9bb0;
    --detail-label-text: #c0c0d0;
    --detail-faint-text: #4a4a5a;

    /* Tooltip */
    --tooltip-bg: rgba(20, 18, 28, 0.95);
    --tooltip-border: rgba(255, 255, 255, 0.08);
    --tooltip-shadow: rgba(0, 0, 0, 0.5);

    /* Surface Interaction */
    --surface-hover-border: rgba(255, 255, 255, 0.12);

    /* Dark Theme Colors (Default) */
    --bg-dark: #000000;
    --bg-surface: #0A0A0A;
    --bg-card: #111111;
    --bg-elevated: #1a1a1a;
    --bg-section: #161616;
    --text-primary: #FFFFFF;
    --text-muted: #48484A;
    --text-secondary: #8E8E93;

    /* Theme variables (will be overridden in light mode) */
    --bg-primary: #0a0a0c;
    --bg-secondary: rgba(20, 20, 24, 0.95);
    --bg-tertiary: rgba(20, 20, 24, 0.8);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --text-quaternary: rgba(255, 255, 255, 0.4);
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.15);
    --overlay-hover: rgba(255, 255, 255, 0.05);
    --overlay-active: rgba(255, 255, 255, 0.1);

    /* Chart & Dashboard Surface Colors */
    --chart-card-bg: rgba(255, 255, 255, 0.025);
    --chart-card-border: rgba(255, 255, 255, 0.06);
    --chart-card-border-hover: rgba(255, 255, 255, 0.1);
    --chart-shimmer-from: rgba(255, 255, 255, 0.02);
    --chart-shimmer-to: rgba(255, 255, 255, 0.05);

    /* Chart Text Hierarchy */
    --chart-text-primary: #fff;
    --chart-text-secondary: #f0f0f5;
    --chart-text-muted: #8E8E93;
    --chart-text-dim: #6b6b80;
    --chart-text-faint: rgba(255, 255, 255, 0.4);
    --chart-text-label: #a0a0b0;
    --chart-text-data: #e0e0e8;
    --chart-text-data-dim: #c0c0cc;

    /* Control Surfaces (buttons, tabs, nav items) */
    --control-bg: rgba(255, 255, 255, 0.04);
    --control-border: rgba(255, 255, 255, 0.06);
    --control-text: rgba(255, 255, 255, 0.5);
    --control-text-hover: rgba(255, 255, 255, 0.8);
    --control-text-active: #fff;

    /* Modal & Overlay */
    --modal-bg: #141414;
    --modal-overlay: rgba(0, 0, 0, 0.85);
    --modal-border: rgba(255, 255, 255, 0.1);

    /* Header */
    --header-bg: rgba(10, 10, 10, 0.95);

    /* Shadows (none in dark mode — borders provide depth) */
    --shadow-card: none;
    --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-elevated: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Light Theme Override — Warm & Soft */
[data-theme="light"] {
    --bg-primary: #F2F1EC;
    --bg-dark: #F2F1EC;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-elevated: #FEFDFB;
    --bg-section: #EAE8E2;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: rgba(242, 241, 236, 0.95);
    --text-primary: #1C1C1E;
    --text-muted: #8E8E93;
    --text-secondary: #636366;
    --text-tertiary: rgba(28, 28, 30, 0.6);
    --text-quaternary: rgba(28, 28, 30, 0.4);
    --border-primary: rgba(0, 0, 0, 0.08);
    --border-secondary: rgba(0, 0, 0, 0.12);
    --overlay-hover: rgba(0, 0, 0, 0.04);
    --overlay-active: rgba(0, 0, 0, 0.08);

    /* Chart & Dashboard Surfaces */
    --chart-card-bg: #FFFFFF;
    --chart-card-border: rgba(0, 0, 0, 0.06);
    --chart-card-border-hover: rgba(0, 0, 0, 0.15);
    --chart-shimmer-from: rgba(0, 0, 0, 0.02);
    --chart-shimmer-to: rgba(0, 0, 0, 0.06);

    /* Chart Text */
    --chart-text-primary: #1C1C1E;
    --chart-text-secondary: #3A3A3C;
    --chart-text-muted: #8E8E93;
    --chart-text-dim: #AEAEB2;
    --chart-text-faint: rgba(0, 0, 0, 0.35);
    --chart-text-label: #636366;
    --chart-text-data: #1C1C1E;
    --chart-text-data-dim: #48484A;

    /* Controls */
    --control-bg: #FFFFFF;
    --control-border: rgba(0, 0, 0, 0.08);
    --control-text: #636366;
    --control-text-hover: #1C1C1E;
    --control-text-active: #FFFFFF;

    /* Modal */
    --modal-bg: #FFFFFF;
    --modal-overlay: rgba(0, 0, 0, 0.35);
    --modal-border: rgba(0, 0, 0, 0.1);

    /* Header */
    --header-bg: rgba(242, 241, 236, 0.95);

    /* Shared Detail Panel UI Text */
    --text-on-accent: #fff;
    --detail-nav-text: #555;
    --detail-label-text: #333;
    --detail-faint-text: #888;

    /* Tooltip */
    --tooltip-bg: rgba(255, 255, 255, 0.97);
    --tooltip-border: rgba(0, 0, 0, 0.1);
    --tooltip-shadow: rgba(0, 0, 0, 0.15);

    /* Surface Interaction */
    --surface-hover-border: rgba(0, 0, 0, 0.12);

    /* Shadows — better depth, warmer */
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 12px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nav-logo .logo-icon {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 0.5rem 1.25rem !important;
    background: linear-gradient(135deg, var(--move-primary), var(--rise-primary));
    border-radius: 50px;
    color: white !important;
}

/* Background Glow Effect */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    transition: background 1.5s ease-in-out;
}

.background-glow.move-active {
    background: radial-gradient(ellipse at center, rgba(255, 69, 58, 0.08) 0%, transparent 60%);
}

.background-glow.fuel-active {
    background: radial-gradient(ellipse at center, rgba(50, 215, 75, 0.08) 0%, transparent 60%);
}

.background-glow.rest-active {
    background: radial-gradient(ellipse at center, rgba(191, 90, 242, 0.08) 0%, transparent 60%);
}

.background-glow.rise-active {
    background: radial-gradient(ellipse at center, rgba(255, 159, 10, 0.08) 0%, transparent 60%);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Floating Attributes Layer */
.attributes-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.attribute {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    opacity: 0.3;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    pointer-events: none;
}

.attribute.active.attr-move {
    color: var(--move-primary);
    opacity: 1;
    text-shadow: 0 0 20px var(--move-glow), 0 0 40px var(--move-glow);
    transform: scale(1.1);
}

.attribute.active.attr-fuel {
    color: var(--fuel-primary);
    opacity: 1;
    text-shadow: 0 0 20px var(--fuel-glow), 0 0 40px var(--fuel-glow);
    transform: scale(1.1);
}

.attribute.active.attr-rest {
    color: var(--rest-primary);
    opacity: 1;
    text-shadow: 0 0 20px var(--rest-glow), 0 0 40px var(--rest-glow);
    transform: scale(1.1);
}

.attribute.active.attr-rise {
    color: var(--rise-primary);
    opacity: 1;
    text-shadow: 0 0 20px var(--rise-glow), 0 0 40px var(--rise-glow);
    transform: scale(1.1);
}

/* Pulse Animation for Active Attributes */
@keyframes pulse-move {

    0%,
    100% {
        text-shadow: 0 0 20px var(--move-glow), 0 0 40px var(--move-glow);
    }

    50% {
        text-shadow: 0 0 30px var(--move-primary), 0 0 60px var(--move-glow), 0 0 80px var(--move-glow);
    }
}

@keyframes pulse-fuel {

    0%,
    100% {
        text-shadow: 0 0 20px var(--fuel-glow), 0 0 40px var(--fuel-glow);
    }

    50% {
        text-shadow: 0 0 30px var(--fuel-primary), 0 0 60px var(--fuel-glow), 0 0 80px var(--fuel-glow);
    }
}

@keyframes pulse-rest {

    0%,
    100% {
        text-shadow: 0 0 20px var(--rest-glow), 0 0 40px var(--rest-glow);
    }

    50% {
        text-shadow: 0 0 30px var(--rest-primary), 0 0 60px var(--rest-glow), 0 0 80px var(--rest-glow);
    }
}

@keyframes pulse-rise {

    0%,
    100% {
        text-shadow: 0 0 20px var(--rise-glow), 0 0 40px var(--rise-glow);
    }

    50% {
        text-shadow: 0 0 30px var(--rise-primary), 0 0 60px var(--rise-glow), 0 0 80px var(--rise-glow);
    }
}

.attribute.active.attr-move {
    animation: pulse-move 1.5s ease-in-out infinite;
}

.attribute.active.attr-fuel {
    animation: pulse-fuel 1.5s ease-in-out infinite;
}

.attribute.active.attr-rest {
    animation: pulse-rest 1.5s ease-in-out infinite;
}

.attribute.active.attr-rise {
    animation: pulse-rise 1.5s ease-in-out infinite;
}

/* Center Content */
.center-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    user-select: none;
}

.logo-icon-hero {
    filter: drop-shadow(0 0 30px rgba(255, 69, 58, 0.3));
}

.logo-text {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 200;
    letter-spacing: -0.02em;
}

.logo-4 {
    font-weight: 600;
    background: linear-gradient(135deg, var(--move-primary) 0%, var(--rise-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sight {
    font-weight: 200;
    color: var(--text-secondary);
}

.tagline {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 3rem);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.pillar-word {
    position: relative;
    color: var(--text-muted);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.pillar-word::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-word.active[data-pillar="move"] {
    color: var(--move-primary);
    text-shadow: 0 0 30px var(--move-glow), 0 0 60px var(--move-glow);
}

.pillar-word.active[data-pillar="move"]::after {
    width: 100%;
    background: var(--move-primary);
    box-shadow: 0 0 10px var(--move-glow);
}

.pillar-word.active[data-pillar="fuel"] {
    color: var(--fuel-primary);
    text-shadow: 0 0 30px var(--fuel-glow), 0 0 60px var(--fuel-glow);
}

.pillar-word.active[data-pillar="fuel"]::after {
    width: 100%;
    background: var(--fuel-primary);
    box-shadow: 0 0 10px var(--fuel-glow);
}

.pillar-word.active[data-pillar="rest"] {
    color: var(--rest-primary);
    text-shadow: 0 0 30px var(--rest-glow), 0 0 60px var(--rest-glow);
}

.pillar-word.active[data-pillar="rest"]::after {
    width: 100%;
    background: var(--rest-primary);
    box-shadow: 0 0 10px var(--rest-glow);
}

.pillar-word.active[data-pillar="rise"] {
    color: var(--rise-primary);
    text-shadow: 0 0 30px var(--rise-glow), 0 0 60px var(--rise-glow);
}

.pillar-word.active[data-pillar="rise"]::after {
    width: 100%;
    background: var(--rise-primary);
    box-shadow: 0 0 10px var(--rise-glow);
}

.subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

/* CTA Buttons */
.cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    position: relative;
    z-index: 20;
}

.cta-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--move-primary) 0%, var(--rise-primary) 100%);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 69, 58, 0.3);
    pointer-events: auto;
    cursor: pointer;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 69, 58, 0.4);
}

.cta-primary.large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.cta-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-muted);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    background: var(--overlay-hover);
}

/* Store Badges */
.store-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.store-badges.center {
    margin-top: 2rem;
}

.store-badge {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.store-badge:hover {
    transform: scale(1.05);
    opacity: 1;
}

.badge-svg {
    height: 45px;
    width: auto;
}

/* Smaller badges for CTA section */
.store-badges.small .badge-svg {
    height: 38px;
}

/* Footer badges - even smaller and stacked */
.store-badges.footer-badges {
    justify-content: flex-start;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.store-badges.footer-badges .badge-svg {
    height: 32px;
}

/* Pillar Indicator */
.pillar-indicator {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 100;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.5s ease;
}

.indicator-dot.active[data-pillar="move"] {
    background: var(--move-primary);
    box-shadow: 0 0 15px var(--move-glow);
    transform: scale(1.3);
}

.indicator-dot.active[data-pillar="fuel"] {
    background: var(--fuel-primary);
    box-shadow: 0 0 15px var(--fuel-glow);
    transform: scale(1.3);
}

.indicator-dot.active[data-pillar="rest"] {
    background: var(--rest-primary);
    box-shadow: 0 0 15px var(--rest-glow);
    transform: scale(1.3);
}

.indicator-dot.active[data-pillar="rise"] {
    background: var(--rise-primary);
    box-shadow: 0 0 15px var(--rise-glow);
    transform: scale(1.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-8px);
    }

    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

@keyframes scroll-wheel {

    0%,
    100% {
        opacity: 1;
        top: 6px;
    }

    50% {
        opacity: 0.3;
        top: 16px;
    }
}

/* Section Styles */
section {
    position: relative;
    z-index: 10;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* Integrations Section */
.integrations-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
}

/* ── Platform Bridge Cards ── */
.int-bridges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto 2.5rem;
}

.int-bridge-card {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    background: var(--bg-card);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.int-bridge-card:hover {
    border-color: var(--border-secondary);
    transform: translateY(-3px);
}

.int-bridge-glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
}

.int-bridge-glow--apple { background: #FF2D55; }
.int-bridge-glow--android { background: #4285F4; }

.int-bridge-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.int-bridge-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--overlay-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.int-bridge-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.int-bridge-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.int-bridge-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.int-bridge-stat {
    font-size: 0.78rem;
    color: var(--fuel-primary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.int-bridge-header .integration-badge {
    position: static;
    flex-shrink: 0;
    align-self: flex-start;
}

.int-bridge-desc {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.int-bridge-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.int-bridge-app-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: var(--overlay-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.int-bridge-app-tag--more {
    background: transparent;
    border-color: transparent;
    color: var(--text-quaternary);
    font-style: italic;
}

/* ── Section Divider ── */
.int-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto 2rem;
}

.int-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
}

.int-divider-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── Direct & Import Grid ── */
.int-direct-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.int-direct-grid .integration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 0.75rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    position: relative;
}

.int-direct-grid .integration-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-secondary);
    background: var(--bg-elevated);
}

.int-direct-type {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ── Shared integration styles ── */
.integration-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--overlay-hover);
}

.integration-icon svg {
    width: 28px;
    height: 28px;
}

.integration-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}

.integration-icon.fitbit { color: #00B0B9; }
.integration-icon.health-connect { color: #4285F4; }
.integration-icon.apple-health { color: #FF2D55; }
.integration-icon.ringconn { color: #9B59B6; }
.integration-icon.renpho { color: #3EABF4; }
.integration-icon.loseit { color: #FF6B00; }
.integration-icon.csv-import { color: var(--text-tertiary); }

.integration-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.integrations-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .int-bridges {
        grid-template-columns: 1fr;
    }
    .int-direct-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .int-direct-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* All-in-One Section */
.allinone-section {
    background: var(--bg-dark);
    overflow: hidden;
}

.allinone-header {
    text-align: center;
    margin-bottom: 4rem;
}

.allinone-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.15), rgba(255, 159, 10, 0.15));
    border: 1px solid rgba(255, 69, 58, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rise-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

/* App Replacement Visual */
.app-replacement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.old-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 400px;
    justify-content: center;
}

.old-app {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
    text-decoration: line-through;
    transition: all 0.3s ease;
}

.old-app:hover {
    opacity: 0.3;
}

.replacement-arrow {
    flex-shrink: 0;
}

.replacement-arrow svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(8px);
        opacity: 1;
    }
}

.new-app {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.1), rgba(50, 215, 75, 0.1), rgba(191, 90, 242, 0.1), rgba(255, 159, 10, 0.1));
    border: 2px solid var(--border-primary);
    border-radius: 32px;
    position: relative;
    animation: glow-rotate 8s linear infinite;
}

@keyframes glow-rotate {
    0% {
        box-shadow: 0 0 30px rgba(255, 69, 58, 0.2);
    }

    25% {
        box-shadow: 0 0 30px rgba(50, 215, 75, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(191, 90, 242, 0.2);
    }

    75% {
        box-shadow: 0 0 30px rgba(255, 159, 10, 0.2);
    }

    100% {
        box-shadow: 0 0 30px rgba(255, 69, 58, 0.2);
    }
}

.new-app-logo {
    filter: drop-shadow(0 0 20px rgba(255, 69, 58, 0.4));
}

/* ML Highlight */
.ml-highlight {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(191, 90, 242, 0.08), rgba(50, 215, 75, 0.05));
    border: 1px solid rgba(191, 90, 242, 0.2);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 4rem;
}

.ml-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(191, 90, 242, 0.15);
    border-radius: 16px;
}

.ml-icon svg {
    width: 32px;
    height: 32px;
    color: var(--rest-primary);
}

.ml-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--rest-primary), var(--fuel-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ml-content>p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ml-examples {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ml-example {
    padding: 1rem 1.25rem;
    background: var(--overlay-active);
    border-left: 3px solid var(--rest-primary);
    border-radius: 0 8px 8px 0;
}

.ml-quote {
    font-style: italic;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Built-in Features */
.builtin-features {
    text-align: center;
}

.builtin-features h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.builtin-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.builtin-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.builtin-item:hover {
    background: var(--bg-elevated);
    border-color: var(--border-secondary);
    color: var(--text-primary);
}

.bi-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--bi-color, var(--text-secondary));
    box-shadow: 0 0 6px var(--bi-color, transparent), 0 0 12px var(--bi-color, transparent);
}

@media (max-width: 1100px) {
    .builtin-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .ml-highlight {
        flex-direction: column;
        padding: 2rem;
    }

    .builtin-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .app-replacement {
        flex-direction: column;
        gap: 2rem;
    }

    .replacement-arrow svg {
        transform: rotate(90deg);
    }

    @keyframes pulse-arrow {

        0%,
        100% {
            transform: rotate(90deg) translateX(0);
            opacity: 0.5;
        }

        50% {
            transform: rotate(90deg) translateX(8px);
            opacity: 1;
        }
    }
}

@media (max-width: 480px) {
    .builtin-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .builtin-item {
        font-size: 0.75rem;
        padding: 0.6rem 0.75rem;
    }
}

/* Features Section */
.features-section {
    background: var(--bg-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-secondary);
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card .feature-icon svg {
    width: 28px;
    height: 28px;
}

.move-card .feature-icon {
    background: rgba(255, 69, 58, 0.12);
    color: var(--move-primary);
    box-shadow: 0 0 20px rgba(255, 69, 58, 0.15);
}

.fuel-card .feature-icon {
    background: rgba(50, 215, 75, 0.12);
    color: var(--fuel-primary);
    box-shadow: 0 0 20px rgba(50, 215, 75, 0.15);
}

.rest-card .feature-icon {
    background: rgba(191, 90, 242, 0.12);
    color: var(--rest-primary);
    box-shadow: 0 0 20px rgba(191, 90, 242, 0.15);
}

.rise-card .feature-icon {
    background: rgba(255, 159, 10, 0.12);
    color: var(--rise-primary);
    box-shadow: 0 0 20px rgba(255, 159, 10, 0.15);
}

.move-card:hover {
    border-color: rgba(255, 69, 58, 0.3);
}

.fuel-card:hover {
    border-color: rgba(50, 215, 75, 0.3);
}

.rest-card:hover {
    border-color: rgba(191, 90, 242, 0.3);
}

.rise-card:hover {
    border-color: rgba(255, 159, 10, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.move-card h3 {
    color: var(--move-primary);
}

.fuel-card h3 {
    color: var(--fuel-primary);
}

.rest-card h3 {
    color: var(--rest-primary);
}

.rise-card h3 {
    color: var(--rise-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-metrics {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-metrics li {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    background: var(--overlay-hover);
    border-radius: 50px;
    color: var(--text-secondary);
}

/* Insights Section */
.insights-section {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
}

.insights-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-card {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-primary);
    text-align: center;
}

.insight-visual {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.insight-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.insight-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
}

/* Correlation Viz */
.correlation-viz {
    position: relative;
    width: 200px;
    height: 100px;
}

.viz-line {
    position: absolute;
    height: 3px;
    width: 80px;
    border-radius: 2px;
}

.viz-line.move-line {
    background: var(--move-primary);
    top: 20px;
    left: 20px;
    transform: rotate(15deg);
    box-shadow: 0 0 20px var(--move-glow);
}

.viz-line.rest-line {
    background: var(--rest-primary);
    bottom: 20px;
    right: 20px;
    transform: rotate(-15deg);
    box-shadow: 0 0 20px var(--rest-glow);
}

.viz-connection {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px dashed var(--border-secondary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-connection 2s ease-in-out infinite;
}

@keyframes pulse-connection {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

/* Trend Viz */
.trend-viz {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
}

.trend-bar {
    width: 20px;
    height: var(--height);
    background: linear-gradient(180deg, var(--text-muted) 0%, rgba(72, 72, 74, 0.3) 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.trend-bar.active {
    background: linear-gradient(180deg, var(--fuel-primary) 0%, rgba(50, 215, 75, 0.3) 100%);
    box-shadow: 0 0 20px var(--fuel-glow);
}

/* Prediction Viz */
.prediction-viz {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prediction-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.prediction-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.prediction-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--move-primary), var(--fuel-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA Section */
.cta-section {
    background: var(--bg-dark);
    text-align: center;
    padding: 6rem 2rem;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.final-cta {
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.footer-logo .logo-icon {
    flex-shrink: 0;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--overlay-hover);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--overlay-active);
    color: var(--text-primary);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border-primary);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-directory-links {
    margin-left: 0.4rem;
    font-size: 0.7rem;
    opacity: 0.35;
}

.footer-directory-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-directory-links a:hover {
    opacity: 0.7;
}

/* ============================================
   Dashboard Showcase Section
   ============================================ */
.dashboards-section {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 40%, var(--bg-dark) 60%, var(--bg-surface) 100%);
    overflow: hidden;
}

.dashboards-section .section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ds-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, rgba(232, 165, 74, 0.12), rgba(232, 90, 90, 0.12));
    border: 1px solid rgba(232, 165, 74, 0.25);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rise-primary);
    margin-bottom: 1.5rem;
}

/* Pillar Tabs */
.ds-pillar-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.ds-pillar-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 100px;
    color: var(--text-quaternary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ds-pillar-tab:hover {
    border-color: var(--border-secondary);
    color: var(--text-secondary);
}

.ds-tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: box-shadow 0.3s ease;
}

.ds-pillar-tab[data-ds-pillar="move"] .ds-tab-dot {
    background: var(--move-primary);
}

.ds-pillar-tab[data-ds-pillar="fuel"] .ds-tab-dot {
    background: var(--fuel-primary);
}

.ds-pillar-tab[data-ds-pillar="rest"] .ds-tab-dot {
    background: var(--rest-primary);
}

.ds-pillar-tab[data-ds-pillar="rise"] .ds-tab-dot {
    background: var(--rise-primary);
}

.ds-pillar-tab.active {
    color: var(--text-primary);
}

.ds-pillar-tab[data-ds-pillar="move"].active {
    background: rgba(232, 90, 90, 0.1);
    border-color: rgba(232, 90, 90, 0.4);
    box-shadow: 0 0 24px rgba(232, 90, 90, 0.1);
}

.ds-pillar-tab[data-ds-pillar="move"].active .ds-tab-dot {
    box-shadow: 0 0 8px var(--move-glow);
}

.ds-pillar-tab[data-ds-pillar="fuel"].active {
    background: rgba(90, 191, 106, 0.1);
    border-color: rgba(90, 191, 106, 0.4);
    box-shadow: 0 0 24px rgba(90, 191, 106, 0.1);
}

.ds-pillar-tab[data-ds-pillar="fuel"].active .ds-tab-dot {
    box-shadow: 0 0 8px var(--fuel-glow);
}

.ds-pillar-tab[data-ds-pillar="rest"].active {
    background: rgba(155, 126, 200, 0.1);
    border-color: rgba(155, 126, 200, 0.4);
    box-shadow: 0 0 24px rgba(155, 126, 200, 0.1);
}

.ds-pillar-tab[data-ds-pillar="rest"].active .ds-tab-dot {
    box-shadow: 0 0 8px var(--rest-glow);
}

.ds-pillar-tab[data-ds-pillar="rise"].active {
    background: rgba(232, 165, 74, 0.1);
    border-color: rgba(232, 165, 74, 0.4);
    box-shadow: 0 0 24px rgba(232, 165, 74, 0.1);
}

.ds-pillar-tab[data-ds-pillar="rise"].active .ds-tab-dot {
    box-shadow: 0 0 8px var(--rise-glow);
}

/* Browser Frame */
.ds-browser {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-secondary);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.3);
}

.ds-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 350px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    transition: background 0.8s ease;
    background: var(--move-primary);
}

.ds-browser[data-active-pillar="move"] .ds-glow {
    background: var(--move-primary);
}

.ds-browser[data-active-pillar="fuel"] .ds-glow {
    background: var(--fuel-primary);
}

.ds-browser[data-active-pillar="rest"] .ds-glow {
    background: var(--rest-primary);
}

.ds-browser[data-active-pillar="rise"] .ds-glow {
    background: var(--rise-primary);
}

.ds-browser-chrome {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: #1a1a1e;
    border-bottom: 1px solid var(--chart-card-border);
    position: relative;
    z-index: 1;
}

.ds-dots {
    display: flex;
    gap: 6px;
}

.ds-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ds-dots span:nth-child(1) {
    background: #ff5f57;
}

.ds-dots span:nth-child(2) {
    background: #febc2e;
}

.ds-dots span:nth-child(3) {
    background: #28c840;
}

.ds-url-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: var(--overlay-active);
    border-radius: 6px;
    flex: 1;
    max-width: 260px;
    margin: 0 auto;
    color: var(--text-quaternary);
    font-size: 0.75rem;
    font-family: inherit;
}

.ds-url-bar svg {
    color: #28c840;
    flex-shrink: 0;
}

/* Screenshot Viewport */
.ds-viewport {
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    aspect-ratio: 1 / 1.15;
    cursor: pointer;
}

.ds-viewport::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.ds-viewport-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--control-text);
    font-size: 11px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: 0.04em;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ds-viewport-hint svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.ds-img {
    display: block;
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.ds-img.active {
    opacity: 1;
    pointer-events: auto;
}

/* Dashboard Lightbox */
.ds-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
    overflow-y: auto;
    padding: 40px 20px;
}

.ds-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.ds-lightbox img {
    max-width: min(95vw, 1100px);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
}

.ds-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 10000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-secondary);
    background: rgba(20, 20, 20, 0.8);
    color: var(--text-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ds-lightbox-close:hover {
    background: rgba(60, 60, 60, 0.8);
    border-color: var(--border-secondary);
}

/* Sub-tabs */
.ds-sub-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.ds-sub-group {
    display: none;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ds-sub-group.active {
    display: flex;
}

.ds-sub {
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-quaternary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ds-sub:hover {
    color: var(--text-secondary);
    background: var(--overlay-hover);
}

.ds-sub.active {
    color: var(--text-primary);
    background: var(--overlay-active);
    border-color: var(--border-primary);
}

/* Stats */
.ds-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2.5rem;
}

.ds-stat {
    text-align: center;
}

.ds-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ds-stat-label {
    font-size: 0.8rem;
    color: var(--text-quaternary);
    letter-spacing: 0.03em;
}

/* CTA */
.ds-cta {
    text-align: center;
}

.ds-cta-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-quaternary);
}

/* Light theme overrides */
[data-theme="light"] .ds-browser-chrome {
    background: #e4e4e8;
}

[data-theme="light"] .ds-url-bar {
    background: rgba(0, 0, 0, 0.07);
    color: var(--text-quaternary);
}

[data-theme="light"] .ds-browser {
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.12),
        0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .ds-glow {
    opacity: 0.08;
}

[data-theme="light"] .ds-browser-chrome {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .ds-viewport-hint {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .ds-lightbox-close {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}

[data-theme="light"] .ds-lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
}

/* ── Landing Page Light Overrides ── */
[data-theme="light"] .background-glow.move-active,
[data-theme="light"] .background-glow.fuel-active,
[data-theme="light"] .background-glow.rest-active,
[data-theme="light"] .background-glow.rise-active {
    opacity: 0.5;
}

[data-theme="light"] .feature-card {
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .feature-card:hover {
    box-shadow: var(--shadow-card-hover);
}

[data-theme="light"] .integration-card {
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .integration-card:hover {
    box-shadow: var(--shadow-card-hover);
}

[data-theme="light"] .pricing-card-preview {
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .pricing-card-preview:hover {
    box-shadow: var(--shadow-card-hover);
}

[data-theme="light"] .footer-social a {
    box-shadow: var(--shadow-card);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile Nav (compact inline) ── */
.nav-mobile-links {
    display: none;
    align-items: center;
    gap: 1.25rem;
}

.nav-mobile-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-mobile-links a:hover {
    color: var(--text-primary);
}

.nav-mobile-links .nav-cta {
    padding: 0.4rem 1rem !important;
    background: linear-gradient(135deg, var(--move-primary), var(--rise-primary));
    border-radius: 50px;
    color: white !important;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-mobile-links {
        display: flex;
    }

    /* Hero section mobile fixes */
    .hero {
        min-height: 100vh;
        padding: 0 1rem;
    }

    .center-content {
        padding: 1rem;
    }

    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-icon-hero {
        width: 50px !important;
        height: 50px !important;
    }

    .logo-text {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    /* Mobile floating attributes - show select few in corners */
    .attributes-layer {
        display: block;
    }

    /* Hide all attributes by default on mobile */
    .attribute {
        display: none;
        font-size: 0.7rem;
        opacity: 0.35;
    }

    /* Show corner-positioned attributes on mobile */
    .attribute.mobile-tl,
    .attribute.mobile-tr,
    .attribute.mobile-bl,
    .attribute.mobile-br {
        display: block;
    }

    /* Top-left corner - stagger by pillar */
    .attribute.mobile-tl {
        left: 4% !important;
    }

    .attribute.mobile-tl[data-pillar="move"] {
        top: 8% !important;
    }

    .attribute.mobile-tl[data-pillar="fuel"] {
        top: 12% !important;
    }

    .attribute.mobile-tl[data-pillar="rest"] {
        top: 16% !important;
    }

    .attribute.mobile-tl[data-pillar="rise"] {
        top: 20% !important;
    }

    /* Top-right corner - stagger by pillar */
    .attribute.mobile-tr {
        left: auto !important;
        right: 4%;
        text-align: right;
    }

    .attribute.mobile-tr[data-pillar="move"] {
        top: 8% !important;
    }

    .attribute.mobile-tr[data-pillar="fuel"] {
        top: 12% !important;
    }

    .attribute.mobile-tr[data-pillar="rest"] {
        top: 16% !important;
    }

    .attribute.mobile-tr[data-pillar="rise"] {
        top: 20% !important;
    }

    /* Bottom-left corner - stagger by pillar */
    .attribute.mobile-bl {
        left: 4% !important;
        top: auto !important;
    }

    .attribute.mobile-bl[data-pillar="move"] {
        bottom: 20% !important;
    }

    .attribute.mobile-bl[data-pillar="fuel"] {
        bottom: 16% !important;
    }

    .attribute.mobile-bl[data-pillar="rest"] {
        bottom: 12% !important;
    }

    .attribute.mobile-bl[data-pillar="rise"] {
        bottom: 8% !important;
    }

    /* Bottom-right corner - stagger by pillar */
    .attribute.mobile-br {
        left: auto !important;
        right: 4%;
        top: auto !important;
        text-align: right;
    }

    .attribute.mobile-br[data-pillar="move"] {
        bottom: 20% !important;
    }

    .attribute.mobile-br[data-pillar="fuel"] {
        bottom: 16% !important;
    }

    .attribute.mobile-br[data-pillar="rest"] {
        bottom: 12% !important;
    }

    .attribute.mobile-br[data-pillar="rise"] {
        bottom: 8% !important;
    }

    .tagline {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.75rem;
        letter-spacing: 0.15em;
        font-size: 0.7rem;
    }

    .cta-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Section titles */
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Integrations grid */
    .integrations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .integration-card {
        padding: 1rem 0.5rem;
    }

    .integration-name {
        font-size: 0.7rem;
    }

    /* Dashboard showcase */
    .ds-pillar-tabs {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .ds-pillar-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .ds-browser {
        border-radius: 8px;
    }

    .ds-stats {
        gap: 2rem;
    }

    .ds-stat-num {
        font-size: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .pillar-indicator {
        bottom: 6rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .tagline {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    .section-container {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Dashboard showcase */
    .ds-stats {
        gap: 1.5rem;
    }

    .ds-sub {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Integrations - 2 columns on very small screens */
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .integration-card {
        padding: 0.75rem 0.25rem;
    }

    .integration-icon {
        width: 32px;
        height: 32px;
    }

    .integration-name {
        font-size: 0.65rem;
    }

    /* CTA buttons */
    .cta-primary,
    .cta-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

.attribute {
    animation-delay: calc(var(--stagger, 0) * 0.1s);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 2rem 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--move-primary), var(--rise-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Integration Status Badges */
.integration-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.integration-badge.live {
    background: rgba(50, 215, 75, 0.15);
    color: var(--fuel-primary);
}

.integration-badge.import {
    background: rgba(66, 133, 244, 0.15);
    color: #4285F4;
}

/* Balance Check CTA Section */
.balance-check-cta {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

.balance-check-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.balance-check-visual {
    flex-shrink: 0;
}

.balance-check-ring {
    position: relative;
    width: 120px;
    height: 120px;
    animation: balance-ring-spin 12s linear infinite;
}

@keyframes balance-ring-spin {
    to { transform: rotate(360deg); }
}

.balance-check-ring svg {
    display: block;
}

.balance-check-qmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    animation: none;
}

.balance-check-ring .balance-check-qmark {
    animation: balance-qmark-pulse 2s ease-in-out infinite;
}

@keyframes balance-qmark-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.balance-check-text .section-title {
    text-align: left;
    margin-bottom: 0.75rem;
}

.balance-check-text .section-subtitle {
    text-align: left;
    margin-bottom: 1.5rem;
}

.balance-check-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.balance-check-btn {
    background: linear-gradient(135deg, #E8A54A, #f0c060);
    color: #1a1a1a;
}

.balance-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 165, 74, 0.35);
}

@media (max-width: 768px) {
    .balance-check-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .balance-check-text .section-title,
    .balance-check-text .section-subtitle {
        text-align: center;
    }

    .balance-check-btn {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .balance-check-ring {
        animation: none;
    }

    .balance-check-ring .balance-check-qmark {
        animation: none;
    }
}

/* Pricing Preview Section */
.pricing-preview {
    background: var(--bg-surface);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card-preview {
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-primary);
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card-preview:hover {
    transform: translateY(-4px);
}

.pricing-card-preview.featured {
    border-color: var(--rise-primary);
    background: linear-gradient(180deg, rgba(155, 126, 200, 0.1), var(--bg-card));
}

.pricing-card-preview .plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(155, 126, 200, 0.15);
    color: var(--rise-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.pricing-card-preview .plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-card-preview .plan-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.pricing-card-preview .plan-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-card-preview .plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-card-preview .plan-features li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card-preview .plan-features li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--fuel-primary);
}

.pricing-card-preview .plan-features li.disabled {
    opacity: 0.4;
}

.pricing-card-preview .plan-features li.disabled svg {
    color: var(--text-muted);
}

.pricing-card-preview .plan-cta {
    display: block;
    width: 100%;
    padding: 0.875rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card-preview .plan-cta.primary {
    background: linear-gradient(135deg, var(--move-primary), var(--rise-primary));
    color: white;
}

.pricing-card-preview .plan-cta.primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 69, 58, 0.3);
}

.pricing-card-preview .plan-cta.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.pricing-card-preview .plan-cta.secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.pricing-link {
    text-align: center;
    margin-top: 2rem;
}

.pricing-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.pricing-link a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .stats-bar {
        gap: 1.5rem;
        padding: 1.5rem 1rem 0;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .integration-badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.3rem;
    }
}

/* ================================================
   GALEN AI SECTION
   ================================================ */
.galen-section {
    position: relative;
    overflow: hidden;
    background: #020810;
    border-top: 1px solid rgba(0, 217, 255, 0.08);
    border-bottom: 1px solid rgba(0, 217, 255, 0.08);
}

/* Force dark context regardless of theme */
.galen-section,
[data-theme="light"] .galen-section {
    color: #ffffff;
}

[data-theme="light"] .galen-section .section-title {
    -webkit-text-fill-color: transparent;
}

/* Atmospheric background layers */
.galen-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 217, 255, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 100%, rgba(0, 217, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 217, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.galen-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black 20%, transparent 70%);
    pointer-events: none;
}

/* Section header */
.galen-section .section-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.galen-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 50px;
    color: #00D9FF;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Pulsing Orb */
.galen-orb {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 2.5rem auto 2rem;
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: #00D9FF;
    border-radius: 50%;
    box-shadow:
        0 0 16px rgba(0, 217, 255, 0.8),
        0 0 40px rgba(0, 217, 255, 0.4),
        0 0 80px rgba(0, 217, 255, 0.15);
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 217, 255, 0.2);
    animation: galen-orb-pulse 3.5s ease-in-out infinite;
}

.orb-ring-1 {
    width: 36px;
    height: 36px;
    animation-delay: 0s;
}

.orb-ring-2 {
    width: 58px;
    height: 58px;
    animation-delay: 0.6s;
}

.orb-ring-3 {
    width: 82px;
    height: 82px;
    animation-delay: 1.2s;
}

@keyframes galen-orb-pulse {

    0%,
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
        border-color: rgba(0, 217, 255, 0.15);
    }

    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.08);
        border-color: rgba(0, 217, 255, 0.35);
    }
}

/* Title with cyan gradient */
.galen-title {
    background: linear-gradient(135deg, #00D9FF 0%, #00a3cc 50%, #00D9FF 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.galen-subtitle {
    color: var(--control-text) !important;
    max-width: 560px;
    margin: 0 auto 3rem !important;
}

/* ---- Chat + Capabilities Grid ---- */
.galen-showcase {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    max-width: 1060px;
    margin: 0 auto;
    text-align: left;
    align-items: start;
}

/* Chat Mockup */
.galen-chat {
    background: #0a1628;
    border: 1px solid rgba(0, 217, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 60px rgba(0, 217, 255, 0.06),
        0 0 0 1px rgba(0, 217, 255, 0.04);
}

.galen-chat-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.08);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #00D9FF;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.galen-chat-indicator {
    width: 7px;
    height: 7px;
    background: #00D9FF;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 217, 255, 0.7);
    animation: galen-indicator 2.5s ease-in-out infinite;
}

@keyframes galen-indicator {

    0%,
    100% {
        opacity: 0.5;
        box-shadow: 0 0 4px rgba(0, 217, 255, 0.4);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
    }
}

.galen-chat-status {
    font-size: 0.6rem;
    color: rgba(0, 217, 255, 0.35);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.galen-chat-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.galen-msg {
    max-width: 92%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.galen-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

.galen-msg.user {
    align-self: flex-end;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.18);
    color: #c8f0ff;
    font-weight: 500;
}

.galen-msg.ai {
    align-self: flex-start;
    background: var(--control-bg);
    border: 1px solid var(--chart-card-border);
    color: var(--text-secondary);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    line-height: 1.65;
}

.galen-msg.ai strong {
    color: #00D9FF;
    font-weight: 700;
}

.galen-chat-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.25rem;
    border-top: 1px solid rgba(0, 217, 255, 0.08);
    color: rgba(0, 217, 255, 0.25);
    font-size: 0.78rem;
    font-family: 'Courier New', Courier, monospace;
}

.galen-chat-input svg {
    width: 16px;
    height: 16px;
    stroke: rgba(0, 217, 255, 0.25);
    flex-shrink: 0;
}

/* ---- Conversation Carousel ---- */
.galen-conv-dots {
    display: flex;
    gap: 6px;
    margin-left: auto;
    align-items: center;
}

.galen-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.galen-dot.active {
    background: #00D9FF;
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
    transform: scale(1.2);
}

/* Typing indicator */
.galen-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.7rem 1rem;
    align-self: flex-start;
}

.galen-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.5);
    animation: galen-typing-bounce 1.4s infinite ease-in-out;
}

.galen-typing-dot:nth-child(2) {
    animation-delay: 0.16s;
}

.galen-typing-dot:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes galen-typing-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Chat body fixed height to prevent layout jump */
.galen-chat-body {
    min-height: 320px;
}

/* Fade-out when swapping conversations */
.galen-chat-body.fading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galen-chat-body:not(.fading) {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ---- Capabilities Panel ---- */
.galen-capabilities h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.galen-capabilities>p {
    font-size: 0.92rem;
    color: var(--control-text);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.galen-query-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.galen-query-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    background: rgba(0, 217, 255, 0.04);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    transition: all 0.25s ease;
}

.galen-query-chip:hover {
    background: rgba(0, 217, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.22);
    color: #00D9FF;
}

.galen-query-chip svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: #00D9FF;
    opacity: 0.5;
}

.galen-query-chip:hover svg {
    opacity: 0.9;
}

/* Suggested Questions */
.galen-suggested-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(0, 217, 255, 0.3);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.galen-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.galen-suggestion {
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(0, 217, 255, 0.12);
    border-radius: 50px;
    font-size: 0.72rem;
    color: rgba(0, 217, 255, 0.45);
    font-style: italic;
    transition: all 0.25s ease;
    cursor: default;
}

.galen-suggestion:hover {
    border-color: rgba(0, 217, 255, 0.35);
    color: #00D9FF;
    background: rgba(0, 217, 255, 0.04);
}

/* ---- Safety note ---- */
.galen-safety {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.7rem;
    color: var(--text-quaternary);
}

.galen-safety svg {
    width: 14px;
    height: 14px;
    stroke: rgba(0, 217, 255, 0.3);
    flex-shrink: 0;
}

/* ---- CTA ---- */
.galen-cta {
    text-align: center;
    margin-top: 3.5rem;
}

.galen-section .cta-primary {
    background: linear-gradient(135deg, #00b8d9, #00D9FF);
    color: #020810;
    font-weight: 700;
}

.galen-section .cta-primary:hover {
    box-shadow: 0 4px 30px rgba(0, 217, 255, 0.3);
}

.galen-cta-note {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: rgba(0, 217, 255, 0.3);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .galen-showcase {
        grid-template-columns: 1fr;
        max-width: 540px;
    }
}

@media (max-width: 768px) {
    .galen-showcase {
        gap: 2rem;
    }

    .galen-query-types {
        grid-template-columns: 1fr 1fr;
    }

    .galen-orb {
        width: 70px;
        height: 70px;
        margin: 2rem auto 1.5rem;
    }

    .orb-ring-1 {
        width: 30px;
        height: 30px;
    }

    .orb-ring-2 {
        width: 48px;
        height: 48px;
    }

    .orb-ring-3 {
        width: 68px;
        height: 68px;
    }

    .orb-core {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .galen-query-types {
        grid-template-columns: 1fr;
    }

    .galen-suggestions {
        gap: 0.35rem;
    }

    .galen-msg {
        max-width: 96%;
        font-size: 0.78rem;
    }

    .galen-msg.ai {
        font-size: 0.74rem;
    }
}

/* ── Screen-reader only utility ─────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── FAQ Section ────────────────────────────────────────────── */
.faq-section {
    padding: 5rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-primary);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-primary);
}

.faq-item summary {
    padding: 1.25rem 2.5rem 1.25rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item summary:hover {
    color: var(--text-secondary);
}

.faq-answer {
    padding: 0 0 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }

    .faq-item summary {
        font-size: 0.95rem;
        padding-right: 2rem;
    }

    .faq-answer p {
        font-size: 0.88rem;
    }
}

/* ── Reduced Motion ────────────────────────────────────────── */
/* Global catch-all: disables animations & transitions for users
   who prefer reduced motion.  Uses 0.01ms (not 0s) so that
   animationend / transitionend events still fire for any JS
   listeners that depend on them.  Placed at the end of the
   main stylesheet so it overrides every @keyframes rule across
   all CSS files site-wide (auth, early-access, charts, move,
   rest, rise, fuel, etc.). */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Focus Visible ────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid #E85A5A;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--bg-primary, #0a0a1a);
    color: var(--text-primary, #e0e0f0);
    padding: 8px 16px;
    z-index: 10001;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}