/* CueCard Website - Dark Aurora Glassmorphism Design System */

:root {
    /* Background colors */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #0d0d0d;

    /* Aurora accent colors */
    --accent-yellow: #febc2e;
    --accent-green: #19c332;
    --accent-pink: #ff6adf;
    --accent-red: #ff4d4d;

    /* Glass colors - dark theme */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-strong: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-subtle: rgba(255, 255, 255, 0.06);
    --glass-shadow: rgba(0, 0, 0, 0.5);

    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;

    /* Typography */
    --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 48px;
    --space-2xl: 80px;
    --space-3xl: 120px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Glass blur */
    --blur-glass: 20px;
    --blur-glass-strong: 30px;

    --nav-height: 64px;
    --banner-height: 36px;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

/* Aurora / Northern Lights Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(25, 195, 50, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(255, 106, 223, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 80%, rgba(254, 188, 46, 0.1) 0%, transparent 50%);
    animation: auroraShift 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 50% 60% at 70% 60%, rgba(25, 195, 50, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 30% 70%, rgba(255, 106, 223, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 40% at 60% 10%, rgba(254, 188, 46, 0.12) 0%, transparent 50%);
    animation: auroraShift 25s ease-in-out infinite reverse;
}

@keyframes auroraShift {

    0%,
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    25% {
        opacity: 0.8;
        transform: scale(1.1) translateY(-2%);
    }

    50% {
        opacity: 1;
        transform: scale(1.05) translateY(1%);
    }

    75% {
        opacity: 0.9;
        transform: scale(0.95) translateY(-1%);
    }
}


/* Selection */
::selection {
    background: var(--accent-yellow);
    color: var(--bg-primary);
}

/* Links */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-yellow);
}

/* Navigation - Rounded Rectangle with Margins */
.nav {
    position: fixed;
    top: calc(var(--space-md) + var(--banner-height));
    left: var(--space-lg);
    right: var(--space-lg);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    min-height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-glass-strong));
    -webkit-backdrop-filter: blur(var(--blur-glass-strong));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--glass-shadow);
    transition: all var(--transition-medium);
}

.nav.nav-scrolled {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--blur-glass-strong));
    -webkit-backdrop-filter: blur(var(--blur-glass-strong));
    border-color: var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

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

.logo-icon {
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-secondary);
}

.nav-secondary {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    height: var(--banner-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-lg);
}

.nav-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 100%;
    padding: 0 var(--space-lg);
    border-radius: 0;
    border: 1px solid var(--glass-border);
    border-top: none;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(var(--blur-glass-strong));
    -webkit-backdrop-filter: blur(var(--blur-glass-strong));
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}

.nav-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nav-secondary-text-mobile {
    display: none;
}

.download-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--text-primary);
    color: var(--bg-primary) !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.download-link:hover {
    background: var(--text-primary);
    color: var(--bg-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.github-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}

.github-link:hover {
    background: var(--glass-bg-strong);
    color: var(--text-primary);
}

.github-link .star-icon {
    color: var(--accent-yellow);
}

.github-link .star-count {
    font-weight: 600;
}

/* Main content */
main {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    position: relative;
    overflow: hidden;
    gap: var(--space-md);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Hero GIF Card */
.hero-gif-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-glass-strong));
    -webkit-backdrop-filter: blur(var(--blur-glass-strong));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: all var(--transition-medium);
    animation: fadeInUp 0.6s ease-out;
    max-width: 800px;
    width: 100%;
    overflow: visible;
}

.hero-gif-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--glass-shadow);
}

.hero-gif {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

/* Iframe video specific styling */
.hero-gif[id="hero-video"] {
    aspect-ratio: 16 / 9;
    height: auto;
}

.hero-gif-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.hero-gif-card.hero-gif-loaded .hero-gif-loader {
    opacity: 0;
}

.hero-gif-loader-circle {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #ffffff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hero-gif-loader-icon {
    color: #0d0d0d;
    animation: heroGifSpin 1s linear infinite;
}

@keyframes heroGifSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.gif-demo-link {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    z-index: 1;
    transition: all var(--transition-fast);
}

.gif-demo-link svg {
    flex-shrink: 0;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-yellow);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Shimmer animation */
.shimmer {
    background: linear-gradient(90deg,
            var(--text-secondary) 0%,
            var(--text-secondary) 30%,
            white 50%,
            var(--text-secondary) 70%,
            var(--text-secondary) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-tagline.shimmer {
    animation: fadeInUp 0.6s ease-out 0.3s both, shimmerAnimation 6s ease-in-out 0.9s infinite;
}

@keyframes shimmerAnimation {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--text-primary);
    max-width: 800px;
    line-height: 1.5;
    margin-bottom: var(--space-xl);
    padding-top: var(--space-xl);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-note {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease-out 0.25s both;
}

.hero-note a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.hero-note a:hover {
    color: var(--text-primary);
}

.hero-note-link {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.hero-note-link:hover {
    color: var(--text-primary);
}

/* Hero Platforms Section */
.hero-platforms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    animation: fadeInUp 0.6s ease-out 0.25s both;
}

.platforms-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.platforms-logos {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.platform-logo {
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-display);
    transition: all var(--transition-fast);
    cursor: default;
}

.platform-logo:hover {
    transform: translateY(-2px);
}

.platform-zoom {
    color: #2D8CFF;
}

.platform-teams {
    color: #6264A7;
}

.platform-meet {
    color: #00897B;
}

.platforms-more {
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--text-secondary);
    margin: 0;
}

.platforms-more a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.platforms-more a:hover {
    color: var(--text-primary);
}

/* Animated highlights - Curved Brush Stroke Underlines (from app) */
.highlight {
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

.highlight::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: -1px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: brush-stroke 0.6s ease-out forwards;
    border-radius: 50% 50% 50% 50% / 60% 30% 60% 30%;
    opacity: 0.8;
}

.highlight-yellow::after {
    background: var(--accent-yellow);
    animation-delay: 0.8s;
}

.highlight-green::after {
    background: var(--accent-green);
    animation-delay: 1.1s;
}

.highlight-pink::after {
    background: var(--accent-pink);
    animation-delay: 1.4s;
}

.highlight-blue::after {
    background: #2D8CFF;
    animation-delay: 0.8s;
}

.highlight-purple::after {
    background: #6264A7;
    animation-delay: 0.8s;
}

@keyframes brush-stroke {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Inline highlights */
.highlight-inline {
    position: relative;
    display: inline-block;
}

.highlight-inline::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: -1px;
    height: 2px;
    border-radius: 50% 50% 50% 50% / 60% 30% 60% 30%;
    opacity: 0.8;
}

.highlight-inline.highlight-yellow::after {
    background: var(--accent-yellow);
}

.highlight-inline.highlight-green::after {
    background: var(--accent-green);
}

.highlight-inline.highlight-pink::after {
    background: var(--accent-pink);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons - Glassmorphism */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg-strong);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-large {
    padding: var(--space-lg) var(--space-xl);
    font-size: 1.125rem;
}


/* Section styling */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-title.section-title-small {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
}

/* Features Section */
.features {
    padding: var(--space-3xl) var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    grid-auto-rows: 1fr;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-glass-strong));
    -webkit-backdrop-filter: blur(var(--blur-glass-strong));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.feature-card:hover {
    border-color: var(--glass-border);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--glass-shadow);
}

.feature-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.feature-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-yellow);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(254, 188, 46, 0.1);
    border-radius: var(--radius-sm);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.code-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.code-time {
    color: var(--accent-green);
    border-color: rgba(25, 195, 50, 0.4);
}

.code-note {
    color: var(--accent-pink);
    border-color: rgba(255, 106, 223, 0.4);
}

.feature-demo {
    aspect-ratio: 16/9;
    margin-top: auto;
}

/* ===== GIF Demo Animations ===== */
.gif-demo {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

/* Screen share area */
.demo-screen-area {
    position: relative;
    flex: 1;
    border: 2px solid var(--accent-green);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    align-items: stretch;
}

/* Slides window */
.demo-slides-window {
    flex: 1;
    background: #e8e8e8;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.demo-slides-sidebar {
    width: 22%;
    background: #d4d4d4;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-slide-thumb {
    aspect-ratio: 16/10;
    background: #b0b0b0;
    border-radius: 4px;
}

.demo-slide-thumb.active {
    background: var(--accent-yellow);
}

.demo-main-slide {
    flex: 1;
    background: var(--accent-yellow);
    margin: 8px;
    border-radius: 8px;
}

/* Floating CueCard app */
.demo-floating-app {
    position: absolute;
    background: #0d0d0d;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.demo-app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.demo-traffic-lights {
    display: flex;
    gap: 5px;
}

.demo-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-light.red {
    background: #ff5f57;
}

.demo-app-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.demo-app-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Toggle for visibility demo */
.demo-toggle {
    display: flex;
    align-items: center;
}

.demo-toggle-track {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--accent-green);
    position: relative;
    transition: background 0.3s ease;
}

.demo-toggle-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 22px;
    transition: left 0.3s ease;
}

.demo-toggle-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Slider for transparency demo */
.demo-slider {
    display: flex;
    align-items: center;
}

.demo-slider-track {
    width: 100px;
    height: 8px;
    background: #444;
    border-radius: 4px;
    position: relative;
}

.demo-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #666;
    border-radius: 4px;
    animation: sliderFill 5s ease-in-out infinite;
}

.demo-slider-thumb {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--accent-green);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    animation: sliderThumb 5s ease-in-out infinite;
}

.demo-slider-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
}

@keyframes sliderFill {

    0%,
    10% {
        width: 75%;
    }

    40%,
    60% {
        width: 25%;
    }

    90%,
    100% {
        width: 75%;
    }
}

@keyframes sliderThumb {

    0%,
    10% {
        left: 75px;
    }

    40%,
    60% {
        left: 12px;
    }

    90%,
    100% {
        left: 75px;
    }
}

/* ===== Visibility (Ghost Mode) Demo ===== */
/* JS controls animation - CSS just provides transitions */
.gif-demo-visibility .demo-screen-area {
    transition: border-color 0.4s ease;
}

.gif-demo-visibility .demo-floating-app {
    transition: opacity 0.4s ease;
}

/* ===== Transparency Demo ===== */
.gif-demo-transparency .demo-floating-app {
    animation: appTransparency 5s ease-in-out infinite;
}

@keyframes appTransparency {

    0%,
    10% {
        opacity: 1;
    }

    40%,
    60% {
        opacity: 0.4;
    }

    90%,
    100% {
        opacity: 1;
    }
}

/* ===== Screen sharing banners ===== */
.demo-share-banner {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Default banner (for transparency demo) */
.gif-demo-transparency .demo-share-banner {
    background: var(--accent-green);
}

/* Visibility demo - JS controls banner switching */
.gif-demo-visibility .demo-banner-on,
.gif-demo-visibility .demo-banner-off {
    min-width: 160px;
    text-align: center;
}

.gif-demo-visibility .demo-banner-on {
    background: var(--accent-green);
}

.gif-demo-visibility .demo-banner-off {
    background: var(--accent-red);
    opacity: 0;
}

/* Animated cursor - macOS style */
.demo-cursor {
    position: absolute;
    width: 17px;
    height: 24px;
    pointer-events: none;
    opacity: 0;
    z-index: 100;
    transition: opacity 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='24' viewBox='0 0 17 24'%3E%3Cpath fill='%23fff' stroke='%23000' stroke-width='1.5' d='M1 1l14 10.5-6 1.5 4 9-3 1.5-4-9-5 4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Responsive adjustments for demos */
@media (max-width: 768px) {
    .demo-floating-app {
        min-width: 150px;
        padding: 12px 14px;
    }

    .demo-app-header {
        margin-bottom: 10px;
    }

    .demo-app-title {
        font-size: 0.8rem;
    }

    .demo-toggle-label,
    .demo-slider-label {
        font-size: 0.7rem;
    }

    .demo-light {
        width: 9px;
        height: 9px;
    }

    .demo-toggle-track {
        width: 36px;
        height: 20px;
    }

    .demo-toggle-thumb {
        width: 16px;
        height: 16px;
    }

    .demo-slider-track {
        width: 70px;
    }

    .demo-slider-thumb {
        animation: sliderThumbMobile 5s ease-in-out infinite;
    }

    @keyframes sliderThumbMobile {

        0%,
        10% {
            left: 52px;
        }

        40%,
        60% {
            left: 8px;
        }

        90%,
        100% {
            left: 52px;
        }
    }

    .demo-share-banner {
        font-size: 0.6rem;
        padding: 6px 16px;
    }
}

/* Syntax Notes Preview */
.syntax-notes .feature-card {
    gap: var(--space-md);
}

.syntax-notes .notes-preview {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-height: 280px;
    flex: 1;
    font-family: var(--font-body);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.syntax-notes .notes-preview-raw {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.syntax-notes .notes-preview-highlighted {
    background: linear-gradient(135deg, rgba(25, 195, 50, 0.08), rgba(0, 0, 0, 0.7));
    border-color: rgba(25, 195, 50, 0.3);
    box-shadow: inset 0 0 40px rgba(25, 195, 50, 0.08);
}

.syntax-notes .notes-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-line;
}

.syntax-notes .notes-preview-highlighted .notes-content {
    color: var(--text-primary);
}

.syntax-notes .notes-content .timestamp {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-green);
    margin-bottom: var(--space-xs);
    transition: color var(--transition-fast);
}

.syntax-notes .notes-content .timestamp-warning {
    color: var(--accent-yellow);
}

.syntax-notes .notes-content .timestamp-danger {
    color: var(--accent-red);
}

.syntax-notes .notes-content .action-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-pink);
    border-radius: var(--radius-sm);
    padding: 2px 4px;
    margin: var(--space-xs) 0;
}

.syntax-notes .slides-link {
    color: var(--accent-green);
    text-decoration: underline;
}

.syntax-timer {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
    min-width: 90px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.syntax-timer .timer-label {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.syntax-timer .timer-loop {
    position: relative;
    width: 100%;
    height: 24px;
}

.syntax-timer .timer-state {
    position: absolute;
    top: 0;
    right: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    opacity: 0;
    animation: timerLoop 12s linear infinite;
}

.syntax-timer .timer-state:nth-child(1) {
    animation-delay: 0s;
}

.syntax-timer .timer-state:nth-child(2) {
    animation-delay: 2s;
}

.syntax-timer .timer-state:nth-child(3) {
    animation-delay: 4s;
}

.syntax-timer .timer-state:nth-child(4) {
    animation-delay: 6s;
}

.syntax-timer .timer-state:nth-child(5) {
    animation-delay: 8s;
}

.syntax-timer .timer-state:nth-child(6) {
    animation-delay: 10s;
}

.syntax-timer .timer-state.overtime {
    color: #ff736a;
}

@keyframes timerLoop {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    25% {
        opacity: 1;
        transform: translateY(0);
    }

    35% {
        opacity: 0;
        transform: translateY(-6px);
    }

    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* FAQ Section */
.faq {
    padding: var(--space-3xl) var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.faq.faq-followup {
    padding-top: 0;
    margin-top: calc(var(--space-3xl) * -1);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.faq-item {
    margin-bottom: var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--glass-border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    list-style: none;
}

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

.faq-icon {
    transition: transform var(--transition-fast);
    color: var(--text-secondary);
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--accent-yellow);
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-page-hero {
    padding-bottom: var(--space-xl);
    padding-top: calc(var(--space-3xl) + var(--nav-height));
}

.faq-page-hero .section-header {
    margin-bottom: var(--space-lg);
}

.faq-search {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    max-width: 680px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
}

.faq-search-icon {
    color: var(--text-secondary);
}

.faq-search-input {
    border: none;
    background: transparent;
    color: var(--text-primary);
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
}

.faq-search-input::placeholder {
    color: var(--text-secondary);
}

.faq-search-input:focus {
    outline: none;
}

.faq-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

/* Download Section */
.download-section {
    padding: var(--space-3xl) var(--space-xl);
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.download-stats {
    color: var(--text-primary);
    font-size: 1rem;
    margin-top: var(--space-md);
}

.download-stats .total-downloads {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.download-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.release-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.release-selector label {
    font-weight: 600;
    color: var(--text-secondary);
}

.release-dropdown {
    background: rgba(255, 255, 255, 0);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    min-width: 200px;
    transition: all var(--transition-fast);
}

.release-dropdown:hover {
    background: rgba(255, 255, 255, 0);
    transform: translateY(-1px);
}

.release-dropdown:focus {
    outline: none;
    background: rgba(255, 255, 255, 0);
}

.release-dropdown option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

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

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

.download-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
}

/* Platform Card Styles */
.platform-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-glass-strong));
    -webkit-backdrop-filter: blur(var(--blur-glass-strong));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    padding-bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
    transition: all var(--transition-medium);
    overflow: visible;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.platform-card:hover {
    border-color: var(--glass-border);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--glass-shadow);
}

.platform-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.platform-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    margin-bottom: var(--space-sm);
}

.platform-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
}

.platform-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.platform-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.platform-downloads {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    width: 100%;
}

.platform-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px var(--space-lg);
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.platform-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    color: var(--bg-primary);
}

.platform-download-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-label {
    white-space: nowrap;
}

.btn-version {
    font-weight: 400;
    opacity: 0.6;
    font-size: 0.8em;
}

.btn-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
    margin-bottom: var(--space-xs);
}

.release-notes-button-container {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

.release-notes-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Platform Badge (for "Coming to Store" labels) */
.platform-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid rgba(254, 188, 46, 0.4);
    color: var(--accent-yellow);
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    z-index: 1;
}

/* Coming Soon Card Styles */
.platform-card-coming-soon {
    opacity: 0.7;
}

.platform-card-coming-soon:hover {
    transform: none;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Installation Instructions Accordion */
.install-instructions {
    width: 100%;
    margin-top: auto;
    padding-top: var(--space-md);
    text-align: left;
}

.install-instructions-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: var(--space-sm) 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    list-style: none;
    transition: color var(--transition-fast);
}

.install-instructions-summary::-webkit-details-marker {
    display: none;
}

.install-instructions-summary:hover {
    color: var(--text-primary);
}

.install-instructions-icon {
    transition: transform var(--transition-fast);
    color: var(--text-secondary);
}

.install-instructions[open] .install-instructions-icon {
    transform: rotate(180deg);
}

.install-instructions-list {
    padding: var(--space-sm) 0 0 var(--space-md);
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: left;
}

.install-instructions-list li {
    margin-bottom: var(--space-xs);
}

.install-instructions-list li:last-child {
    margin-bottom: 0;
}

/* Manual Install Section (for store-available extensions) */
.manual-install-section {
    width: 100%;
    margin-top: var(--space-md);
    text-align: center;
}

.manual-install-summary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    padding: var(--space-xs) 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    list-style: none;
    transition: color var(--transition-fast);
    opacity: 0.7;
}

.manual-install-summary::-webkit-details-marker {
    display: none;
}

.manual-install-summary:hover {
    color: var(--text-primary);
    opacity: 1;
}

.manual-install-icon {
    transition: transform var(--transition-fast);
    color: var(--text-secondary);
}

.manual-install-section[open] .manual-install-icon {
    transform: rotate(180deg);
}

.manual-install-content {
    padding-top: var(--space-md);
    text-align: center;
}

.manual-install-content .platform-downloads {
    margin-bottom: var(--space-sm);
}

.manual-install-content .install-instructions {
    margin-top: var(--space-sm);
    padding-top: 0;
}

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

    .release-selector {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: var(--space-xs);
    }

    .release-dropdown {
        width: auto;
        min-width: 0;
    }

    .release-selector label {
        white-space: nowrap;
    }

    .nav .github-link {
        display: none;
    }

    /* Minimize nav download button to icon only on small screens */
    .nav .download-link span {
        display: none;
    }

    .nav .download-link {
        padding: var(--space-sm);
    }
}

/* Footer */
.footer {
    padding: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section-title {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section-title a {
    color: inherit;
    text-decoration: none;
}

.footer-section-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-section-links a {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 700;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Policy pages */
.policy-page {
    padding: var(--space-3xl) var(--space-xl);
    padding-top: calc(var(--space-3xl) + 80px);
    max-width: 800px;
    margin: 0 auto;
}

.policy-header {
    margin-bottom: var(--space-2xl);
}

.policy-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.policy-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.policy-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.policy-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.policy-content p {
    margin-bottom: var(--space-md);
}

.policy-content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.policy-content li {
    margin-bottom: var(--space-sm);
}

.policy-content a {
    color: var(--accent-yellow);
}

.policy-content a:hover {
    text-decoration: underline;
}

/* Blog page */
.blog-page {
    padding: var(--space-3xl) var(--space-xl);
    padding-top: calc(var(--space-3xl) + 80px);
    max-width: 980px;
    margin: 0 auto;
}

.blog-hero {
    margin-bottom: var(--space-2xl);
}

.blog-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-yellow);
    margin-bottom: var(--space-sm);
}

.blog-page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.blog-page-subtitle {
    color: var(--text-secondary);
    max-width: 720px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.blog-entry {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 12px 32px var(--glass-shadow);
    backdrop-filter: blur(var(--blur-glass));
}

.blog-entry-header {
    margin-bottom: var(--space-md);
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.blog-meta-separator {
    margin: 0 var(--space-xs);
    color: var(--text-muted);
}

.blog-entry-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
}

.blog-entry-title a {
    color: inherit;
}

.blog-entry-title a:hover {
    color: var(--accent-yellow);
}

.blog-entry-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.blog-entry-content h2,
.blog-entry-content h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.blog-entry-content p {
    margin-bottom: var(--space-md);
}

.blog-entry-content ul,
.blog-entry-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.blog-entry-content li {
    margin-bottom: var(--space-sm);
}

.blog-entry-content a {
    color: var(--accent-yellow);
    text-decoration: underline;
    text-decoration-color: rgba(254, 188, 46, 0.6);
}

.blog-entry-content a:hover {
    color: var(--text-primary);
    text-decoration-color: var(--accent-yellow);
}

.blog-entry-content code {
    background: var(--glass-bg-strong);
    padding: 0 6px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9em;
    color: var(--text-primary);
}

.blog-entry-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    overflow-x: auto;
    margin-bottom: var(--space-md);
}

.blog-entry-link {
    display: inline-flex;
    margin-top: var(--space-sm);
    font-weight: 600;
    color: var(--accent-yellow);
}

.blog-entry-link:hover {
    color: var(--text-primary);
}

.blog-post-header {
    margin-bottom: var(--space-xl);
}

.blog-post-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.blog-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.blog-post-actions .blog-entry-link {
    margin-top: 0;
}

.blog-cta {
    margin-top: var(--space-2xl);
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 12px 32px var(--glass-shadow);
    backdrop-filter: blur(var(--blur-glass));
}

.blog-cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.blog-cta-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.blog-cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Mobile line break */
.mobile-br {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .blog-page {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
        --banner-height: 32px;
    }

    .mobile-br {
        display: inline;
    }

    :root {
        --space-xl: 32px;
        --space-2xl: 60px;
        --space-3xl: 80px;
    }

    .desktop-br {
        display: none;
    }

    .nav {
        padding: var(--space-md);
        left: var(--space-md);
        right: var(--space-md);
    }

    .blog-page {
        padding-top: calc(var(--space-3xl) + 60px);
    }

    .blog-entry {
        padding: var(--space-lg);
    }

    .blog-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .blog-post-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .nav-secondary {
        left: 0;
        right: 0;
        padding: 0;
    }

    .nav-secondary-btn {
        width: 100%;
        padding: 0 var(--space-md);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .nav-secondary-text {
        display: none;
    }

    .nav-secondary-text-mobile {
        display: inline;
    }

    .nav-links {
        gap: var(--space-md);
    }

    .github-link span {
        display: none;
    }

    .github-link {
        padding: var(--space-sm);
    }

    .hero {
        padding: calc(var(--space-3xl) + var(--banner-height) + 24px) var(--space-xl) var(--space-2xl);
        gap: var(--space-md);
    }

    .hero-gif-card {
        padding: var(--space-md);
        margin-bottom: 0;
    }

    .feature-card {
        padding: var(--space-md);
    }
    
    /* Set consistent width for hero text elements */
    .hero-subtitle {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding-top: 0;
        margin-bottom: 0;
    }

    .hero-tagline {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero-note {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Hide mobile-br in hero-note only */
    .hero-note .mobile-br {
        display: none;
    }

    .hero-cta {
        flex-direction: row;
        width: 100%;
        max-width: 300px;
        gap: var(--space-sm);
        margin-top: 0;
    }

    .btn {
        width: auto;
        flex: 1;
        justify-content: center;
    }

    /* Make View Source button show only GitHub logo */
    #hero-source-btn #hero-stars-text {
        display: none;
    }

    #hero-source-btn {
        flex: 0 0 auto;
        padding: var(--space-md);
    }

    .hero .app-store-buttons {
        margin-top: 0;
    }

    .hero .app-screenshots {
        margin: 0 auto;
    }

    .view-source-btn span {
        display: none;
    }

    .view-source-btn {
        padding: var(--space-md);
    }

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

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

    .download-section .section-desc {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-section {
        text-align: center;
    }

    .footer-section-links {
        align-items: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations for scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Landing Page Styles */
.landing-hero {
    padding-top: calc(var(--space-3xl) + 60px);
}

.landing-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.platform-features .features-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .platform-features .features-grid.three-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .landing-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

/* ===== Mobile App Pages ===== */

/* Mobile App Screenshots Gallery */
.app-screenshots {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin: var(--space-xl) auto;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
    align-self: stretch;
}

.app-screenshot-card {
    width: 280px;
    max-width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-glass-strong));
    -webkit-backdrop-filter: blur(var(--blur-glass-strong));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: all var(--transition-medium);
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.6s ease-out forwards;
}

.app-screenshot {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

.app-screenshot-card:nth-child(1) {
    animation-delay: 0.1s;
}

.app-screenshot-card:nth-child(2) {
    animation-delay: 0.2s;
}

.app-screenshot-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-screenshot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px var(--glass-shadow);
}


@media (max-width: 768px) {
    /* Allow app screenshots to go full-bleed on app pages */
    .hero.hero-app {
        margin-top: var(--space-xl);
        overflow: clip;
    }

    .hero.hero-app .app-screenshots {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 0;
        gap: var(--space-md);
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .app-screenshots::-webkit-scrollbar {
        display: none;
    }

    .hero.hero-app .app-screenshot-card {
        width: 70vw;
        flex: 0 0 70vw;
        scroll-snap-align: center;
    }

    .hero.hero-app .app-screenshot-card:first-child {
        margin-left: var(--space-lg);
    }

    .hero.hero-app .app-screenshot-card:last-child {
        margin-right: var(--space-lg);
    }
}

/* App Store Buttons - same style as desktop download buttons */
.app-store-buttons {
    display: flex;
    flex-direction: row;
    gap: var(--space-md);
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--text-primary);
    color: var(--bg-primary) !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
    min-height: 48px;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
    color: var(--bg-primary) !important;
}

.app-store-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.app-store-buttons .btn {
    min-height: 48px;
    justify-content: center;
}

.app-store-btn,
.app-store-buttons .btn {
    flex: 1 1 240px;
    max-width: 320px;
    width: auto;
}

.app-store-buttons--paired {
    flex-wrap: nowrap;
}

.app-store-buttons--paired .app-store-btn {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
}

.app-store-buttons--paired .btn {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.app-store-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    white-space: nowrap;
}

.app-store-name {
    font-weight: 600;
}

.app-store-name-short {
    display: none;
}

.app-store-btn.coming-soon {
    background: var(--text-primary);
    color: var(--bg-primary) !important;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.app-store-btn.coming-soon:hover {
    transform: none;
    box-shadow: none;
}

/* Disabled app store button - not dimmed, just not clickable */
.app-store-btn-disabled {
    cursor: default;
}

.app-store-btn-disabled svg {
    display: flex;
    align-self: center;
}

.coming-soon-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

/* Waitlist Form */
.waitlist-form {
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px var(--glass-shadow);
    backdrop-filter: blur(var(--blur-glass-strong));
    -webkit-backdrop-filter: blur(var(--blur-glass-strong));
}

.waitlist-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.waitlist-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.waitlist-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.waitlist-fields {
    display: flex;
    gap: var(--space-sm);
    align-items: stretch;
}

.waitlist-input {
    flex: 1 1 auto;
    min-width: 200px;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

.waitlist-input::placeholder {
    color: var(--text-secondary);
}

.waitlist-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.waitlist-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.waitlist-status:empty {
    display: none;
}

.waitlist-status.is-success {
    color: var(--accent-green);
}

.waitlist-status.is-error {
    color: var(--accent-red);
}

.waitlist-form--success {
    border-color: rgba(25, 195, 50, 0.4);
}

.waitlist-form--loading {
    opacity: 0.9;
}

.waitlist-honeypot {
    position: absolute;
    left: -9999px;
}

/* App Features Grid */
.app-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.app-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-glass-strong));
    -webkit-backdrop-filter: blur(var(--blur-glass-strong));
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-medium);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.app-feature-item:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border);
    box-shadow: 0 16px 48px var(--glass-shadow);
}

.app-feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(254, 188, 46, 0.12);
    border-radius: 50%;
    margin-bottom: var(--space-md);
    color: var(--accent-yellow);
}

.app-feature-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.app-feature-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

    .app-store-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .app-store-btn,
    .app-store-buttons .btn {
        max-width: 100%;
        width: 100%;
    }

    .app-store-buttons--paired {
        flex-wrap: nowrap;
        gap: var(--space-sm);
    }

    .app-store-buttons--paired .app-store-btn,
    .app-store-buttons--paired .btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
    }

    .app-store-buttons--paired .app-store-label {
        display: block;
        white-space: normal;
        text-align: center;
    }

    .app-store-buttons--paired .app-store-name-full {
        display: none;
    }

    .app-store-buttons--paired .app-store-name-short {
        display: inline;
    }

    .app-store-buttons--paired .app-store-btn {
        flex: 1 1 auto;
    }

    .app-store-buttons--paired .view-source-btn {
        flex: 0 0 auto;
    }

    .hero.hero-app .app-store-buttons {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    .waitlist-form {
        padding: var(--space-md);
        max-width: 100%;
    }

    .waitlist-fields {
        flex-direction: column;
    }

    .nav.nav-app-both .github-link {
        display: flex;
        padding: var(--space-sm);
    }
}
