/* ============================================================
   SOLACE WEBSITE — STYLE.CSS
   "A Day in Scroll" — dawn to night single-page experience
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand Colors */
    --warm-amber: #FF9F0A;
    --active-green: #34C759;
    --interactive-blue: #0A84FF;
    --moon-purple: #7070DE;
    --sun-orange: #FF9500;
    --warmth-warm: #FF9329;
    --warmth-cool: #FFE4C4;
    --error-red: #FF4545;

    /* Theme-aware colors (default: dark) */
    --bg-main: #1C1C1E;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #EBEBF5;
    --text-secondary: rgba(235, 235, 245, 0.6);
    --text-tertiary: rgba(235, 235, 245, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: clamp(2rem, 4vh, 3rem);
    --content-max-width: 1100px;
    --content-padding: clamp(1.5rem, 4vw, 3rem);

    /* Scroll progress (set by JS) */
    --scroll: 0;

    /* Warm overlay (set by JS) */
    --warm-opacity: 0;
}

/* Light theme overrides */
[data-theme="light"] {
    --bg-main: #F2F2F7;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --text-primary: #1C1C1E;
    --text-secondary: rgba(28, 28, 30, 0.6);
    --text-tertiary: rgba(28, 28, 30, 0.4);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    overflow-x: hidden;
    transition: color 0.6s ease;
}

a {
    color: var(--interactive-blue);
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; }

/* ---------- Sky Background ---------- */
#sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    transition: none;
}

/* ---------- Star Canvas ---------- */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -9;
    pointer-events: none;
}

/* ---------- Clouds ---------- */
#clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -7;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* ---------- Warm Overlay ---------- */
#warm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 159, 10, var(--warm-opacity));
    z-index: -6;
    pointer-events: none;
    transition: none;
}

/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    z-index: 1000;
    background: var(--interactive-blue);
    transition: none;
}

/* ---------- Navigation Bar ---------- */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    pointer-events: none;
}

.nav-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.7rem 0.875rem;
    border-radius: 100px;
    pointer-events: auto;
    transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), gap 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Invisible initially */
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid rgba(255, 255, 255, 0);
    box-shadow: none;
}

/* Scrolled: transparent glass that lets the sky through */
.nav-pill.scrolled {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    gap: 0.25rem;
}

[data-theme="light"] .nav-pill.scrolled {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    white-space: nowrap;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo:hover {
    opacity: 1;
}

.nav-logo-icon {
    width: 0;
    height: 32px;
    border-radius: 7px;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.5);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill.scrolled .nav-logo-icon {
    width: 32px;
    opacity: 1;
    transform: scale(1);
}

.nav-logo-text {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    transition: font-size 0.6s cubic-bezier(0.16, 1, 0.3, 1), font-weight 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill.scrolled .nav-logo-text {
    font-size: 1.15rem;
    font-weight: 700;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), gap 0.6s cubic-bezier(0.16, 1, 0.3, 1), margin 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill.scrolled .nav-links {
    max-width: 500px;
    opacity: 1;
    gap: 0.125rem;
    margin-left: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.4rem 0.875rem;
    border-radius: 100px;
    color: rgba(235, 235, 245, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
    color: #EBEBF5;
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

[data-theme="light"] .nav-link {
    color: rgba(28, 28, 30, 0.6);
}

[data-theme="light"] .nav-link:hover {
    color: #1C1C1E;
    background: rgba(0, 0, 0, 0.05);
}

/* Separator */
.nav-sep {
    width: 0;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0;
    flex-shrink: 0;
    opacity: 0;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), margin 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill.scrolled .nav-sep {
    width: 1px;
    margin: 0 0.375rem;
    opacity: 1;
}

[data-theme="light"] .nav-sep {
    background: rgba(0, 0, 0, 0.12);
}

/* Buy Now button */
.nav-buy {
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--warm-amber), #FF7B00);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transform: scale(0.8);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1), padding 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 12px rgba(255, 159, 10, 0.25);
}

.nav-pill.scrolled .nav-buy {
    opacity: 1;
    max-width: 120px;
    padding: 0.4rem 1.125rem;
    transform: scale(1);
}

.nav-buy:hover {
    box-shadow: 0 4px 20px rgba(255, 159, 10, 0.45);
    transform: scale(1.03) !important;
    color: #fff;
    opacity: 1;
}

/* ---------- Floating Theme Toggle ---------- */
#theme-toggle {
    display: none !important;
}
#theme-toggle:hover {
    transform: scale(1.1);
    background: var(--bg-card-hover);
}
#theme-toggle:active {
    transform: scale(0.95);
}
#theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s, transform 0.3s;
}
.toggle-sun { display: none; }
.toggle-moon { display: block; }
[data-theme="light"] .toggle-sun { display: block; }
[data-theme="light"] .toggle-moon { display: none; }

/* ---------- Toast ---------- */
#toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
    white-space: nowrap;
    pointer-events: none;
}
#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ---------- Cursor Warmth Trail ---------- */
#cursor-warmth {
    position: fixed;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 159, 10, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -5;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s;
}

/* ---------- Section Base ---------- */
.section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding) var(--content-padding);
    z-index: 1;
}

/* More breathing room from Weather Aware downwards */
.section-weather,
.section-demo,
.section-pricing,
.section-testimonials,
.section-privacy,
.section-faq {
    padding-top: clamp(5rem, 10vh, 8rem);
    padding-bottom: clamp(5rem, 10vh, 8rem);
}

.section-content {
    max-width: var(--content-max-width);
    width: 100%;
    margin: 0 auto;
}

/* ---------- Typography ---------- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.section-headline {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    transition: color 0.6s ease;
    text-wrap: balance;
}

.section-body {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 2rem;
    transition: color 0.6s ease;
    text-wrap: pretty;
}

/* ---------- Section 1: Hero ---------- */
.section-hero {
    text-align: center;
    min-height: 100vh;
    padding-top: clamp(3rem, 8vh, 6rem);
}

/* Hero logo removed — "Solace" title now lives in the nav bar */

.hero-headline {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    transition: color 0.6s ease;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    transition: color 0.6s ease;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-badge {
    margin-bottom: 3rem;
    animation: badgeFadeIn 0.8s ease 0.4s both;
}

@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge a {
    display: inline-block;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.hero-badge a:hover {
    opacity: 1;
}

.pricing-badge {
    margin-top: 1.5rem;
}

.pricing-badge a {
    display: inline-block;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.pricing-badge a:hover {
    opacity: 1;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, background 0.3s;
    text-decoration: none;
    border: none;
}
.btn:hover {
    transform: translateY(-2px);
    opacity: 1;
}
.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: var(--interactive-blue);
    color: #fff;
    box-shadow: 0 4px 20px rgba(10, 132, 255, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(10, 132, 255, 0.4);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-medium);
}
.btn-secondary:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-hero {
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(10, 132, 255, 0.3); }
    50% { box-shadow: 0 4px 40px rgba(10, 132, 255, 0.5), 0 0 60px rgba(10, 132, 255, 0.15); }
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.scroll-indicator svg {
    width: 20px;
    height: 20px;
    animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ---------- Section 2: Problem ---------- */
/* ---------- Section 2: Solution / App Mockup ---------- */
.section-solution {
    text-align: center;
}
.section-solution .section-body {
    margin-left: auto;
    margin-right: auto;
}

.app-mockup {
    margin-top: 2rem;
    perspective: 1000px;
}

/* Legacy popover base (shared with mockup-v2) */
.mockup-popover {
    max-width: 340px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    animation: float-gentle 4s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ---------- App Mockup V2 — Faithful Card-Based Layout ---------- */
.mockup-v2 {
    max-width: 340px;
    background: rgba(44, 44, 48, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .mockup-v2 {
    background: rgba(242, 242, 247, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Cards inside the popover */
.m2-card {
    background: rgba(58, 58, 62, 0.8);
    border-radius: 12px;
    padding: 14px;
}

[data-theme="light"] .m2-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.m2-card-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

/* Header card */
.m2-header-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    background: rgba(58, 58, 62, 0.8);
    cursor: pointer;
    transition: background 0.2s;
}

.m2-header-card:hover {
    background: rgba(68, 68, 72, 0.8);
}

[data-theme="light"] .m2-header-card {
    background: rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .m2-header-card:hover {
    background: rgba(255, 255, 255, 1);
}

.m2-mode-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.m2-mode-icon.sun-icon {
    background: linear-gradient(135deg, #FFA500, #FFBD2E);
    color: #fff;
}
.m2-mode-icon.moon-icon {
    background: linear-gradient(135deg, #9D5FFF, #7B68EE);
    color: #fff;
}
.m2-mode-icon.sun-icon svg,
.m2-mode-icon.moon-icon svg {
    width: 20px;
    height: 20px;
}

.m2-mode-info {
    flex: 1;
}

.m2-mode-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.m2-mode-subtitle {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.3;
}

/* Wallpapers card */
.m2-wallpapers-card {
    padding: 14px;
}

.m2-wallpaper-row {
    display: flex;
    gap: 10px;
}

.m2-wallpaper-item {
    flex: 1;
    text-align: center;
}

.m2-wallpaper-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
}

.m2-wallpaper-item.active .m2-wallpaper-thumb {
    border-color: var(--interactive-blue);
    box-shadow: 0 0 0 1px var(--interactive-blue);
}

.m2-wallpaper-thumb.light-wp {
    background:
        radial-gradient(ellipse 90% 15% at 35% 72%, rgba(245, 200, 120, 0.9) 0%, transparent 70%),
        radial-gradient(ellipse 80% 18% at 68% 78%, rgba(220, 170, 90, 0.8) 0%, transparent 65%),
        radial-gradient(ellipse 120% 12% at 50% 85%, rgba(200, 150, 70, 0.7) 0%, transparent 60%),
        linear-gradient(180deg, #4a90c8 0%, #6aadda 15%, #8cc5e8 28%, #c8dff0 38%, #f0dfc0 48%, #e8c490 55%, #daa858 62%, #d09840 70%, #c88830 78%, #c08028 86%, #b87820 100%);
}

.m2-wallpaper-thumb.dark-wp {
    background:
        radial-gradient(ellipse 90% 12% at 35% 72%, rgba(40, 55, 95, 0.8) 0%, transparent 65%),
        radial-gradient(ellipse 80% 14% at 68% 78%, rgba(30, 45, 80, 0.7) 0%, transparent 60%),
        radial-gradient(ellipse 120% 10% at 50% 85%, rgba(25, 38, 70, 0.6) 0%, transparent 55%),
        linear-gradient(180deg, #0a0e1a 0%, #0e1428 12%, #121a38 24%, #162048 34%, #1a2850 42%, #1e3058 50%, #1a2848 58%, #152040 66%, #101838 74%, #0c1230 84%, #080e24 100%);
    position: relative;
}

.m2-wallpaper-thumb.dark-wp::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 1px at 20% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(circle 0.5px at 45% 8%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(circle 1px at 70% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(circle 0.5px at 85% 12%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(circle 0.5px at 30% 25%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(circle 1px at 55% 18%, rgba(255,255,255,0.45) 0%, transparent 100%);
}

.m2-wp-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 6px;
}

.m2-active-dot {
    color: var(--interactive-blue);
    font-size: 8px;
    vertical-align: middle;
}

/* Screen Comfort card */
.m2-comfort-card {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.m2-subsection {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.m2-subsection:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

[data-theme="light"] .m2-subsection {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Subsection background card */
.m2-subsection-bg {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 10px;
    margin: 0 -4px;
}

[data-theme="light"] .m2-subsection-bg {
    background: rgba(0, 0, 0, 0.02);
}

.m2-subsection-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.m2-subsection-icon {
    font-size: 14px;
    line-height: 1;
}

.m2-subsection-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.m2-location-pill {
    font-size: 10px;
    font-weight: 500;
    color: var(--active-green);
    background: rgba(52, 199, 89, 0.12);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: auto;
}

.m2-active-pill {
    font-size: 10px;
    font-weight: 600;
    color: var(--active-green);
    background: rgba(52, 199, 89, 0.12);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: auto;
}

.m2-time-value {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: auto;
    margin-right: 6px;
}

.m2-warmth-dropdown {
    font-size: 12px;
    font-weight: 600;
    color: #FF9500;
    margin-left: 2px;
    cursor: default;
}

.m2-warmth-dropdown::after {
    content: ' \25BE';
    font-size: 9px;
    opacity: 0.6;
}

/* Schedule track */
.m2-schedule-track {
    position: relative;
    height: 28px;
    margin-bottom: 2px;
}

.m2-schedule-bar {
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 6px;
    transform: translateY(-50%);
    background: rgba(112, 112, 222, 0.25);
    border-radius: 3px;
    overflow: hidden;
}

[data-theme="light"] .m2-schedule-bar {
    background: rgba(112, 112, 222, 0.15);
}

.m2-schedule-light {
    position: absolute;
    left: 25%;
    right: 28%;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #FF9500, #FFD60A 50%, #FF9500);
    border-radius: 3px;
}

.m2-schedule-sun {
    position: absolute;
    left: 28%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    line-height: 1;
}

.m2-schedule-moon {
    position: absolute;
    right: 28%;
    top: 50%;
    transform: translate(50%, -50%);
    font-size: 14px;
    line-height: 1;
}

/* Schedule markers (circular with gradient and white border) */
.m2-schedule-marker {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%);
    z-index: 2;
}

.m2-schedule-sun-marker {
    left: 23%;
    transform: translate(-50%, -50%);
    background: linear-gradient(140deg, #FFA500, #FFD60A);
}

.m2-schedule-moon-marker {
    left: 70%;
    transform: translate(-50%, -50%);
    background: linear-gradient(140deg, #7070DE, #9D5FFF);
}

.m2-schedule-times {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
}

.m2-chevron {
    font-size: 8px;
    opacity: 0.45;
    margin-left: 1px;
}

/* Warmth track */
.m2-warmth-track {
    position: relative;
    height: 28px;
    margin-bottom: 2px;
}

.m2-warmth-gradient {
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 6px;
    transform: translateY(-50%);
    background: linear-gradient(to right, #FF6B00 0%, #FF9329 20%, #FFB86C 45%, #FFE4C4 70%, #E0E8F0 100%);
    border-radius: 3px;
}

.m2-warmth-thumb {
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(140deg, #FF6B00, #FF9500);
    border: 2.5px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}

.m2-warmth-presets {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
}

.m2-warmth-presets span.active {
    color: var(--warm-amber);
    font-weight: 600;
}

/* Weather row */
.m2-weather-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.m2-weather-condition {
    display: flex;
    align-items: center;
    gap: 6px;
}

.m2-weather-emoji {
    font-size: 15px;
    line-height: 1;
}

.m2-weather-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.m2-weather-temp {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.2;
    margin-top: 1px;
}

.m2-mode-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
}
.m2-mode-pill.light {
    background: rgba(255, 149, 0, 0.12);
    color: #FF9500;
}
.m2-mode-pill.dark {
    background: rgba(112, 112, 222, 0.12);
    color: var(--moon-purple);
}

/* Weather stats */
.m2-weather-stats {
    display: flex;
    gap: 4px;
    align-items: stretch;
}

/* Stat divider (thin vertical line between stats) */
.m2-stat-divider {
    width: 0.5px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
    flex-shrink: 0;
}

[data-theme="light"] .m2-stat-divider {
    background: rgba(0, 0, 0, 0.06);
}

.m2-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

[data-theme="light"] .m2-stat {
    background: rgba(0, 0, 0, 0.03);
}

.m2-stat-icon {
    font-size: 14px;
    line-height: 1;
}

.m2-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.m2-stat-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Weather trigger pills */
.m2-weather-triggers {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.m2-weather-trig {
    flex: 1;
    font-size: 10.5px;
    font-weight: 500;
    padding: 4px 0;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.3;
}

[data-theme="light"] .m2-weather-trig {
    background: rgba(0, 0, 0, 0.045);
    color: rgba(0, 0, 0, 0.38);
}

.m2-weather-trig.active {
    background: rgba(255, 149, 0, 0.14);
    color: #FF9500;
    font-weight: 600;
}

[data-theme="light"] .m2-weather-trig.active {
    background: rgba(255, 149, 0, 0.10);
    color: #d48000;
}

/* Footer */
.m2-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.m2-shortcut-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.m2-shortcut-group kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

[data-theme="light"] .m2-shortcut-group kbd {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.m2-shortcut-group span {
    font-size: 10px;
    margin-left: 2px;
    color: var(--text-tertiary);
}

/* Footer divider */
.m2-footer-divider {
    width: 0.5px;
    height: 14px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

[data-theme="light"] .m2-footer-divider {
    background: rgba(0, 0, 0, 0.06);
}

.m2-info-icon {
    font-size: 14px;
    color: var(--text-tertiary);
    cursor: default;
}

/* Step card kbd */
.step-card kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---------- Two Column Layout ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-col.reverse {
    direction: rtl;
}
.two-col.reverse > * {
    direction: ltr;
}

/* ---------- Feature List ---------- */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--active-green);
    opacity: 0.8;
}

/* ---------- Section 4: Sun Arc ---------- */
.sun-arc-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
}

.sun-arc-svg {
    width: 100%;
    height: auto;
    color: var(--text-primary);
}

/* ---------- Section 5: Weather — Immersive Storm ---------- */
.section-weather {
    text-align: center;
}
.section-weather .section-body {
    margin-left: auto;
    margin-right: auto;
}

.weather-cta {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
}
.weather-cta a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.weather-cta a:hover { color: var(--text-primary); }
.weather-cta strong { color: var(--interactive-blue); }

/* Weather Mockup Pair: Before → After */
.weather-mockup-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.weather-mockup-card {
    width: 220px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.weather-mockup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.wm-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
}
.wm-header.light {
    background: rgba(255, 255, 255, 0.95);
    color: #1C1C1E;
}
.wm-header.dark {
    background: rgba(40, 40, 44, 0.95);
    color: #EBEBF5;
}

.wm-icon {
    font-size: 18px;
    line-height: 1;
}

.wm-title {
    font-size: 14px;
    font-weight: 600;
}

.wm-body {
    padding: 12px 14px;
}
.wm-body.light {
    background: rgba(242, 242, 247, 0.95);
    color: #1C1C1E;
}
.wm-body.dark {
    background: rgba(28, 28, 30, 0.95);
    color: #EBEBF5;
}

.wm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
}

.wm-pill {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
}
.wm-pill.active-green {
    background: rgba(52, 199, 89, 0.15);
    color: var(--active-green);
}

.wm-condition {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.wm-emoji {
    font-size: 20px;
    line-height: 1;
}

.wm-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: inherit;
    opacity: 0.65;
}

.wm-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.wm-status-dot.green { background: var(--active-green); }
.wm-status-dot.amber { background: var(--warm-amber); }

.weather-arrow {
    color: var(--text-tertiary);
    opacity: 0.5;
    flex-shrink: 0;
}

/* ---------- Rain Overlay (full viewport) ---------- */
#rain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -6;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    width: 1.5px;
    background: linear-gradient(to bottom, transparent, rgba(120, 160, 255, 0.35));
    top: -60px;
    transform: rotate(-5deg);
}

/* ---------- Lightning Flash ---------- */
#lightning-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    pointer-events: none;
    background: white;
    opacity: 0;
    transition: opacity 0.05s;
}

/* ---------- Section 6: Wallpapers ---------- */
.section-wallpapers {
    text-align: center;
}
.section-wallpapers .section-body {
    margin-left: auto;
    margin-right: auto;
}

.wallpaper-showcase {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.macbook-mockup {
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}
.macbook-mockup:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.35));
}
[data-theme="light"] .macbook-mockup {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}
[data-theme="light"] .macbook-mockup:hover {
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.18));
}

.macbook-frame {
    width: 320px;
    background: linear-gradient(180deg, #2a2a2c 0%, #1d1d1f 50%, #2a2a2c 100%);
    border-radius: 14px 14px 0 0;
    padding: 10px 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

[data-theme="light"] .macbook-frame {
    background: linear-gradient(180deg, #e8e8ed 0%, #d2d2d7 50%, #e0e0e5 100%);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Camera notch */
.macbook-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 10px;
    background: #1d1d1f;
    border-radius: 0 0 8px 8px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.macbook-notch::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0a0a0a;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .macbook-notch {
    background: #d2d2d7;
}
[data-theme="light"] .macbook-notch::after {
    background: #b0b0b5;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.macbook-screen {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.macbook-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 40%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 5;
    border-radius: 4px;
}

.macbook-wallpaper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Day wallpaper — Coastal Beach Scene (Enhanced) */
.wallpaper-day {
    background: linear-gradient(180deg, #4A90C8 0%, #6BB3D9 20%, #8CC8E5 35%, #A8D8EA 45%, #4AA8B8 52%, #3A9BA8 58%, #2F8A96 62%, #E8D5B0 65%, #F0DDB8 75%, #DEC9A0 100%);
    overflow: hidden;
}

.wp-sky-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48%;
    background: linear-gradient(180deg, #3A7CC0 0%, #5198D3 25%, #6BB3D9 50%, #8DD4EB 80%, #B8E6F3 100%);
}

.wp-sun {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFF8E1 0%, #FFE082 30%, #FFD54F 60%, #FFB300 100%);
    box-shadow: 0 0 12px rgba(255, 224, 130, 0.8), 0 0 30px rgba(255, 193, 7, 0.4), 0 0 50px rgba(255, 152, 0, 0.15);
    top: 10%;
    right: 24%;
}

.wp-sun-halo {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 248, 225, 0.15) 0%, rgba(255, 224, 130, 0.06) 40%, transparent 70%);
    top: 4%;
    right: 18%;
    pointer-events: none;
}

.wp-cloud-1 {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 55px;
    height: 14px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    filter: blur(1.5px);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
}
.wp-cloud-1::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 12px;
    width: 22px;
    height: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    filter: blur(1px);
}
.wp-cloud-1::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 28px;
    width: 16px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(1px);
}

.wp-cloud-2 {
    position: absolute;
    top: 18%;
    right: 12%;
    width: 40px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    filter: blur(2px);
}
.wp-cloud-2::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 8px;
    width: 18px;
    height: 12px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    filter: blur(1.5px);
}

.wp-cloud-3 {
    position: absolute;
    top: 25%;
    left: 50%;
    width: 30px;
    height: 8px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    filter: blur(2px);
}

.wp-hills-far {
    position: absolute;
    top: 42%;
    left: 0;
    right: 0;
    height: 14%;
    background: linear-gradient(180deg, #5E9E7E 0%, #4E8E6E 100%);
    clip-path: polygon(0% 100%, 0% 65%, 8% 45%, 18% 60%, 28% 35%, 40% 55%, 55% 25%, 68% 50%, 78% 30%, 88% 55%, 100% 40%, 100% 100%);
    opacity: 0.5;
}

.wp-hills-near {
    position: absolute;
    top: 44%;
    left: 0;
    right: 0;
    height: 12%;
    background: linear-gradient(180deg, #4A8A6A 0%, #3D7A5D 100%);
    clip-path: polygon(0% 100%, 0% 50%, 12% 30%, 25% 55%, 38% 20%, 52% 50%, 65% 25%, 78% 55%, 90% 35%, 100% 50%, 100% 100%);
    opacity: 0.35;
}

.wp-ocean {
    position: absolute;
    top: 48%;
    left: 0;
    right: 0;
    height: 18%;
    background: linear-gradient(180deg, #3B9DAD 0%, #3392A0 30%, #2B8594 50%, #267888 70%, #1F6B7B 100%);
}

.wp-wave {
    position: absolute;
    top: 47%;
    left: 0;
    right: 0;
    height: 4%;
    background: linear-gradient(180deg, rgba(180, 220, 235, 0.3) 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    border-radius: 0 0 60% 60%;
}

.wp-wave-2 {
    position: absolute;
    top: 58%;
    left: 0;
    right: 0;
    height: 3%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0 0 50% 50%;
}

.wp-shore-foam {
    position: absolute;
    top: 64%;
    left: 0;
    right: 0;
    height: 2%;
    background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.2) 15%, rgba(255, 255, 255, 0.3) 25%, rgba(255, 255, 255, 0.15) 40%, rgba(255, 255, 255, 0.25) 55%, rgba(255, 255, 255, 0.1) 70%, rgba(255, 255, 255, 0.2) 85%, transparent 95%);
    filter: blur(0.5px);
}

.wp-sand {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 34%;
    background: linear-gradient(180deg, #E8D2A8 0%, #DFCA9E 20%, #D4BF92 50%, #CCB688 80%, #C4AD80 100%);
}

.wp-sand-texture {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 34%;
    background-image:
        radial-gradient(1px 1px at 15% 20%, rgba(0,0,0,0.04) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 40%, rgba(0,0,0,0.03) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 25%, rgba(0,0,0,0.04) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 50%, rgba(0,0,0,0.03) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 60%, rgba(0,0,0,0.03) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 30%, rgba(0,0,0,0.04) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 70%, rgba(0,0,0,0.02) 0%, transparent 100%);
}

/* Night wallpaper — Twilight Mountain Lake (Enhanced) */
.wallpaper-night {
    background: #070D18;
    overflow: hidden;
}

.wp-night-sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, #050A14 0%, #0B1628 20%, #111F3A 35%, #182B4A 50%, #1F3558 70%, #243B55 100%);
}

.wp-stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background-image:
        radial-gradient(1px 1px at 8% 6%, rgba(255,255,255,0.95) 0%, transparent 100%),
        radial-gradient(1.2px 1.2px at 20% 12%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(0.8px 0.8px at 32% 4%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 18%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 55% 8%, rgba(200,220,255,0.95) 0%, transparent 100%),
        radial-gradient(0.8px 0.8px at 65% 22%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 78% 10%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(0.6px 0.6px at 88% 16%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 28%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(0.8px 0.8px at 42% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1.2px 1.2px at 92% 5%, rgba(200,210,255,0.85) 0%, transparent 100%),
        radial-gradient(0.6px 0.6px at 72% 2%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(0.8px 0.8px at 3% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 58% 32%, rgba(255,255,255,0.35) 0%, transparent 100%);
}

.wp-milky-way {
    position: absolute;
    top: 0;
    left: 15%;
    right: 25%;
    height: 45%;
    background: linear-gradient(140deg, transparent 0%, rgba(100, 120, 180, 0.04) 20%, rgba(140, 160, 200, 0.06) 40%, rgba(120, 140, 190, 0.04) 60%, transparent 80%);
    filter: blur(6px);
    transform: rotate(-15deg);
    transform-origin: center;
}

.wp-moon-bg {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #F0F0F8 0%, #D8D8E8 50%, #C0C0D5 100%);
    box-shadow: 0 0 8px rgba(200, 200, 255, 0.5), 0 0 20px rgba(180, 180, 240, 0.2), 0 0 40px rgba(160, 160, 220, 0.08);
    top: 8%;
    right: 18%;
}

.wp-moon-glow {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 190, 240, 0.08) 0%, rgba(160, 170, 220, 0.03) 40%, transparent 70%);
    top: 1%;
    right: 12%;
    pointer-events: none;
}

.wp-aurora {
    position: absolute;
    top: 22%;
    left: 5%;
    right: 20%;
    height: 22%;
    background: linear-gradient(120deg, transparent 0%, rgba(60, 200, 140, 0.08) 20%, rgba(80, 220, 160, 0.12) 35%, rgba(60, 180, 200, 0.08) 50%, rgba(100, 160, 240, 0.06) 70%, transparent 100%);
    filter: blur(6px);
    border-radius: 40%;
}

.wp-aurora-2 {
    position: absolute;
    top: 28%;
    left: 20%;
    right: 5%;
    height: 16%;
    background: linear-gradient(100deg, transparent 0%, rgba(80, 180, 220, 0.06) 25%, rgba(100, 200, 180, 0.08) 50%, rgba(60, 160, 200, 0.05) 75%, transparent 100%);
    filter: blur(8px);
    border-radius: 40%;
}

.wp-mountain-far {
    position: absolute;
    bottom: 28%;
    left: 0;
    right: 0;
    height: 28%;
    background: linear-gradient(180deg, #1a2a42 0%, #162238 100%);
    clip-path: polygon(0% 100%, 0% 70%, 5% 55%, 12% 65%, 18% 40%, 25% 55%, 32% 30%, 40% 50%, 48% 25%, 55% 45%, 62% 20%, 70% 40%, 78% 28%, 85% 50%, 92% 35%, 100% 55%, 100% 100%);
}

.wp-mountain-mid {
    position: absolute;
    bottom: 26%;
    left: 0;
    right: 0;
    height: 24%;
    background: linear-gradient(180deg, #142036 0%, #101a2e 100%);
    clip-path: polygon(0% 100%, 0% 60%, 8% 45%, 16% 60%, 24% 35%, 32% 55%, 42% 22%, 52% 48%, 60% 30%, 68% 50%, 76% 20%, 84% 45%, 92% 32%, 100% 48%, 100% 100%);
}

.wp-mountain-near {
    position: absolute;
    bottom: 24%;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(180deg, #0e1828 0%, #0a1220 100%);
    clip-path: polygon(0% 100%, 0% 55%, 10% 38%, 22% 58%, 35% 30%, 48% 55%, 62% 22%, 75% 48%, 88% 32%, 100% 50%, 100% 100%);
}

.wp-treeline {
    position: absolute;
    bottom: 24%;
    left: 0;
    right: 0;
    height: 6%;
    background: #080e1a;
    clip-path: polygon(
        0% 100%, 0% 60%,
        2% 40%, 3% 60%, 5% 30%, 6% 55%, 8% 35%, 9% 60%, 11% 25%, 12% 55%, 14% 40%, 15% 60%,
        17% 30%, 18% 55%, 20% 35%, 21% 60%, 23% 25%, 24% 55%, 26% 40%, 27% 60%,
        29% 30%, 30% 55%, 32% 35%, 33% 58%, 35% 28%, 36% 55%, 38% 38%, 39% 60%,
        41% 30%, 42% 55%, 44% 35%, 45% 58%, 47% 25%, 48% 55%, 50% 38%, 51% 60%,
        53% 30%, 54% 55%, 56% 35%, 57% 58%, 59% 28%, 60% 55%, 62% 38%, 63% 60%,
        65% 30%, 66% 55%, 68% 35%, 69% 58%, 71% 25%, 72% 55%, 74% 38%, 75% 60%,
        77% 30%, 78% 55%, 80% 35%, 81% 58%, 83% 28%, 84% 55%, 86% 38%, 87% 60%,
        89% 30%, 90% 55%, 92% 35%, 93% 58%, 95% 28%, 96% 55%, 98% 38%, 100% 55%,
        100% 100%
    );
}

.wp-lake {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 26%;
    background: linear-gradient(180deg, #0c1624 0%, #0a1220 30%, #08101c 60%, #060e18 100%);
}

.wp-lake-reflection {
    position: absolute;
    bottom: 8%;
    left: 0;
    right: 0;
    height: 16%;
    background:
        linear-gradient(180deg, rgba(80, 180, 220, 0.04) 0%, transparent 30%),
        linear-gradient(180deg, rgba(200, 200, 240, 0.02) 0%, transparent 20%);
    opacity: 0.8;
}

.macbook-dock {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.macbook-dock.dark {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.05);
}

.dock-icon {
    width: 10px;
    height: 10px;
    border-radius: 22%;
}
.dock-icon:nth-child(1) {
    background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    opacity: 0.8;
}
.dock-icon:nth-child(2) {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
    opacity: 0.8;
}
.dock-icon:nth-child(3) {
    background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
    opacity: 0.8;
}
.dock-icon:nth-child(4) {
    background: linear-gradient(135deg, #AF52DE 0%, #BF5AF2 100%);
    opacity: 0.8;
}
.dock-icon:nth-child(5) {
    background: linear-gradient(135deg, #FF2D55 0%, #FF375F 100%);
    opacity: 0.8;
}

.macbook-base {
    width: 108%;
    margin-left: -4%;
    height: 10px;
    background: linear-gradient(180deg, #3a3a3c 0%, #2c2c2e 40%, #1d1d1f 100%);
    border-radius: 0 0 10px 10px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .macbook-base {
    background: linear-gradient(180deg, #c7c7cc 0%, #b0b0b5 40%, #a0a0a5 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.macbook-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0 0 4px 4px;
}

[data-theme="light"] .macbook-base::before {
    background: rgba(0, 0, 0, 0.06);
}

.macbook-label {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Feature Chips */
.feature-chips {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.chip svg {
    color: var(--text-tertiary);
}

/* ---------- Section 4: Wallpapers — Scroll Viewport ---------- */
.wps-track {
    position: relative;
    height: 240vh;
}

.wps-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wps-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

/* ── Copy column ── */
.wps-copy {
    display: flex;
    flex-direction: column;
}
.wps-copy .section-label {
    margin-bottom: 1.25rem;
}

.wps-copy-states {
    display: grid;
    margin-bottom: 1.75rem;
}
.wps-copy-state {
    grid-area: 1 / 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}
.wps-copy-state.wps-out {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}
.wps-copy .section-headline {
    margin-bottom: 1rem;
}

/* ── Toggle pill ── */
.wps-pill {
    position: relative;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    height: 38px;
    padding: 3px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    margin-top: 2rem;
}

.wps-pill-thumb {
    position: absolute;
    top: 3px; bottom: 3px;
    width: calc(50% - 3px);
    border-radius: 100px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    transition: left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wps-thumb-day   { left: 3px; }
.wps-thumb-night { left: calc(50%); }

.wps-pill-opt {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    height: 100%;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.4s ease;
    user-select: none;
}
.wps-opt-active-day    { color: rgba(150, 90, 0, 1); }
.wps-opt-inactive-day  { color: rgba(255, 255, 255, 0.45); }
.wps-opt-active-night  { color: rgba(50, 90, 185, 1); }
.wps-opt-inactive-night{ color: rgba(255, 255, 255, 0.45); }

/* ── Viewport column ── */
.wps-viewport {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.wps-glow {
    position: absolute;
    inset: -25% -20%;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
    transition: background 0.9s ease, opacity 0.9s ease;
}
.wps-glow-day {
    background: radial-gradient(ellipse at 55% 35%, rgba(90, 155, 210, 0.3), rgba(160, 200, 120, 0.1) 55%, transparent 75%);
    opacity: 0.45;
}
.wps-glow-night {
    background: radial-gradient(ellipse at 40% 30%, rgba(10, 80, 100, 0.5), rgba(5, 25, 60, 0.25) 55%, transparent 75%);
    opacity: 0.45;
}

/* The screen */
.wps-screen {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 2px 8px  rgba(0, 0, 0, 0.22),
        0 14px 36px rgba(0, 0, 0, 0.28),
        0 36px 72px rgba(0, 0, 0, 0.2),
        0 60px 100px rgba(0, 0, 0, 0.12);
}

.wps-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    outline: 1px solid rgba(255, 255, 255, 0.08);
    outline-offset: -1px;
}
.wps-img-day   { opacity: 1; }
.wps-img-night { opacity: 0; }

.wps-vignette {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 2;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.18) 0%,
        transparent 14%,
        transparent 80%,
        rgba(0,0,0,0.2) 100%
    );
}

/* Menu bar — height is % of screen so it scales with the viewport */
.wps-menubar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4%;
    min-height: 10px; max-height: 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 0 5px;
    transition: background 0.75s ease, color 0.75s ease, border-color 0.75s ease;
}
.wps-mb-light {
    background: rgba(228, 228, 228, 0.74);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #111;
    backdrop-filter: blur(16px) saturate(2);
    -webkit-backdrop-filter: blur(16px) saturate(2);
}
.wps-mb-dark {
    background: rgba(14, 16, 22, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.wps-mb-apple {
    font-size: 6px;
    margin-right: 4px;
    opacity: 0.8;
    line-height: 1;
}
.wps-mb-menus { display: flex; }
.wps-mb-item {
    font-size: 5.5px;
    font-weight: 400;
    padding: 1px 3px;
    opacity: 0.85;
    font-family: var(--font-family);
}
.wps-mb-bold { font-weight: 600; }
.wps-mb-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    font-size: 5.5px;
    opacity: 0.8;
}
.wps-mb-clock {
    font-variant-numeric: tabular-nums;
    font-family: var(--font-family);
}

/* Dock */
.wps-dock {
    position: absolute;
    bottom: 3.5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 5px;
    border-radius: 6px;
    z-index: 10;
    transition: background 0.75s ease, border-color 0.75s ease, box-shadow 0.75s ease;
}
.wps-dock-light {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px) saturate(1.8);
    -webkit-backdrop-filter: blur(12px) saturate(1.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.wps-dock-dark {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.wps-di {
    width: 13px; height: 13px;
    border-radius: 3px;
    flex-shrink: 0;
    transition: background 0.75s ease;
}
.wps-dock-light .wps-di { background: rgba(0, 0, 0, 0.13); }
.wps-dock-dark  .wps-di { background: rgba(255, 255, 255, 0.13); }
.wps-dock-sep {
    width: 1px; height: 9px;
    flex-shrink: 0;
    transition: background 0.75s ease;
}
.wps-dock-light .wps-dock-sep { background: rgba(0, 0, 0, 0.13); }
.wps-dock-dark  .wps-dock-sep { background: rgba(255, 255, 255, 0.13); }

/* Glass edge highlight */
.wps-screen-edge {
    position: absolute; inset: 0;
    border-radius: 10px;
    pointer-events: none; z-index: 20;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Responsive */
@media (max-width: 860px) {
    .wps-track {
        height: 320vh;
        margin-top: clamp(2.5rem, 5vh, 4rem);
    }
    .wps-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
        align-items: flex-start;
    }
    .wps-sticky { align-items: flex-start; overflow-y: auto; }
    .wps-screen { width: 100%; }
    .wps-copy-states { margin-bottom: 0.75rem; }
    .wps-pill { margin-top: 0.75rem; }
}

/* ---------- Section 7: Transition ---------- */
.section-transition {
    text-align: center;
    min-height: 95vh;
    display: flex;
    align-items: center;
}

.transition-intro {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
    transition: color 0.6s ease;
}

.transition-headline {
    margin-bottom: 2rem;
}

.transition-word {
    display: block;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    transition: color 0.6s ease;
}

.transition-follow {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    transition: color 0.6s ease;
}

.transition-body {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    transition: color 0.6s ease;
}

/* ---------- Section 8: Evening Warmth ---------- */
.kelvin-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.kelvin-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.kelvin-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.kelvin-label.warm { color: var(--warm-amber); }
.kelvin-label.cool { color: var(--text-tertiary); }

.kelvin-track {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #FF9329, #FFB86C, #FFE4C4, #E8F0FF);
    margin-bottom: 1rem;
}

.kelvin-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
}

.kelvin-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--warm-amber);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transform: translate(-50%, -50%);
    transition: left 0.1s ease-out;
}

.kelvin-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--warm-amber);
    margin-bottom: 1rem;
}

.kelvin-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.kelvin-time svg {
    color: var(--text-tertiary);
}

/* ---------- Section 9: How It Works ---------- */
.section-how {
    text-align: center;
}
.section-how .section-headline {
    margin-bottom: 3rem;
}

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

.step-card {
    text-align: left;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.step-card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s, background 0.3s;
}
.step-card.glass:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .step-card.glass:hover {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
}

.step-number {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    color: var(--moon-purple);
    opacity: 0.15;
    line-height: 1;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-body {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ---------- Demonstration Section ---------- */
.section-demo {
    text-align: center;
}

.demo-player {
    margin-top: 2rem;
    width: 100%;
}

/* ---- Video container ---- */
.demo-video-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    cursor: pointer;
}

.demo-video {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- Centre play/pause overlay ---- */
.demo-center-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.25s;
}

.demo-center-btn .demo-center-icon {
    width: 64px;
    height: 64px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    padding: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    transition: transform 0.15s, opacity 0.25s;
}

.demo-center-btn:hover .demo-center-icon {
    transform: scale(1.08);
}

.demo-center-btn.playing {
    opacity: 0;
    pointer-events: none;
}

.demo-video-wrap:hover .demo-center-btn.playing {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Bottom controls bar ---- */
.demo-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.demo-video-wrap:hover .demo-controls,
.demo-video-wrap.controls-visible .demo-controls {
    opacity: 1;
    pointer-events: auto;
}

/* Scrub bar */
.demo-scrub {
    width: 100%;
    padding: 10px 0 6px;
    cursor: pointer;
}

.demo-scrub-track {
    position: relative;
    height: 3px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    transition: height 0.15s;
}

.demo-scrub:hover .demo-scrub-track {
    height: 5px;
}

.demo-scrub-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
    pointer-events: none;
}

/* Chapter tick marks */
.demo-tick {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
    pointer-events: none;
}

/* Thumb */
.demo-scrub-thumb {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.15s;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.demo-scrub:hover .demo-scrub-thumb {
    transform: translate(-50%, -50%) scale(1);
}

/* Controls row */
.demo-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.demo-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-controls-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Icon buttons */
.demo-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.15s, transform 0.15s;
    border-radius: 6px;
}

.demo-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.demo-icon {
    width: 18px;
    height: 18px;
}

/* Time display */
.demo-time {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.9);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.demo-time-total {
    color: rgba(255,255,255,0.45);
}

/* ---- Chapter row ---- */
.demo-chapters {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.demo-chapter {
    font-family: var(--font-family);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 8px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-chapter:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.demo-chapter.active {
    background: rgba(255, 149, 0, 0.15);
    border-color: rgba(255, 149, 0, 0.45);
}

.demo-chapter-ts {
    display: none;
}

.demo-chapter-name {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    font-weight: 700;
}

.demo-chapter.active .demo-chapter-name {
    color: #fff;
}

/* Mobile */
@media (max-width: 640px) {
    .demo-video-wrap {
        border-radius: 14px;
    }
    .demo-chapters {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Section 10: Pricing ---------- */
.section-pricing {
    text-align: center;
}

.pricing-card {
    max-width: 440px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.pricing-card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.pricing-card-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--warm-amber), var(--moon-purple), var(--interactive-blue));
    z-index: -1;
    opacity: 0.25;
    filter: blur(8px);
    animation: glow-breathe 4s ease-in-out infinite;
}

@keyframes glow-breathe {
    0%, 100% { opacity: 0.2; filter: blur(8px); transform: scale(1); }
    50% { opacity: 0.4; filter: blur(12px); transform: scale(1.02); }
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.pricing-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    margin: 0.5rem 0;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.pricing-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-decimal {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.4rem;
    align-self: flex-start;
}

.pricing-punchline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1.5rem;
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.45;
}

.pricing-features li strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.pricing-features li svg {
    flex-shrink: 0;
    color: var(--active-green);
    margin-top: 2px;
}

.pricing-anchor {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* ---------- Section 10b: Testimonials ---------- */
.section-testimonials {
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.testimonial-card {
    position: relative;
    text-align: left;
    padding: 1.75rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s;
}

.testimonial-flag {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 1rem;
    opacity: 0.55;
    line-height: 1;
}

.testimonial-card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="light"] .testimonial-card:hover {
    border-color: rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
    color: #FFB800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    line-height: 1;
}

.testimonial-quote {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-secondary);
    font-style: normal;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.testimonial-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.3;
}

/* ---------- Section 10a: Comparison (before Pricing) ---------- */
.section-comparison-outer {
    position: relative;
    height: 200vh;
}

.section-comparison-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 var(--content-padding);
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.section-comparison-sticky::-webkit-scrollbar { display: none; }

.section-comparison-sticky .section-content {
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
    will-change: transform;
}

/* Convergence visual */
.convergence-stage {
    position: relative;
    width: 560px;
    height: 560px;
    margin: 1rem auto;
    overflow: visible;
    will-change: width, height;
}

/* Central Solace logo */
.convergence-center {
    position: absolute;
    top: 50%; left: 50%;
    width: 96px; height: 96px;
    margin-left: -48px; margin-top: -48px;
    z-index: 10;
    will-change: transform, filter;
}
.convergence-center svg { width: 100%; height: 100%; }

/* Orbital ring */
.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 380px; height: 380px;
    margin-left: -190px; margin-top: -190px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    will-change: opacity, transform;
}
[data-theme="light"] .orbit-ring { border-color: rgba(0, 0, 0, 0.06); }

/* Connecting lines */
.connecting-lines {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}
.connecting-lines line {
    stroke: var(--text-tertiary); stroke-width: 1;
    stroke-dasharray: 4 4; opacity: 0.15;
}

/* Orbit nodes */
.orbit-node {
    position: absolute; z-index: 5;
    display: flex; justify-content: center;
    will-change: transform, opacity;
}
.node-inner { width: 100px; text-align: center; }

.orbit-node[data-pos="top"] { top: 0; left: 50%; margin-left: -50px; }
.orbit-node[data-pos="right"] { top: 50%; right: 0; margin-top: -40px; }
.orbit-node[data-pos="bottom"] { bottom: 0; left: 50%; margin-left: -50px; }
.orbit-node[data-pos="left"] { top: 50%; left: 0; margin-top: -40px; }

.node-icon {
    width: 56px; height: 56px; border-radius: 14px;
    margin: 0 auto 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    position: relative;
    filter: grayscale(1) brightness(0.85);
    opacity: 0.8;
    overflow: visible;
}
.node-icon svg { flex-shrink: 0; }
.node-icon:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.node-name { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.node-capability { font-size: 0.7rem; color: var(--text-secondary); line-height: 1.3; }

.node-warning {
    position: absolute; top: -4px; right: -4px;
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(255, 69, 69, 0.2);
    border: 1.5px solid var(--error-red);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: var(--error-red); line-height: 1;
}

/* Pulse rings */
.pulse-ring {
    position: absolute; top: 50%; left: 50%;
    width: 96px; height: 96px;
    margin-left: -48px; margin-top: -48px;
    border-radius: 50%;
    border: 1px solid var(--interactive-blue);
    opacity: 0; z-index: 9; pointer-events: none;
}
.convergence-stage.pulse-active .pulse-ring { animation: pulse-expand 2s ease-out infinite; }
.pulse-ring:nth-of-type(2) { animation-delay: 0.5s !important; }
.pulse-ring:nth-of-type(3) { animation-delay: 1s !important; }

@keyframes pulse-expand {
    0% { width: 96px; height: 96px; margin-left: -48px; margin-top: -48px; opacity: 0.4; }
    100% { width: 300px; height: 300px; margin-left: -150px; margin-top: -150px; opacity: 0; }
}

/* Merged labels */
.merged-labels {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 11; pointer-events: none;
}
.merged-label {
    position: absolute; display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 100px;
    background: var(--glass-bg); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    font-size: 0.78rem; font-weight: 600; color: var(--text-primary);
    white-space: nowrap; opacity: 0; transform: scale(0.8);
    will-change: opacity, transform;
}
.merged-label .label-icon {
    width: 22px; height: 22px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; line-height: 1;
}
.merged-label .label-check { color: var(--active-green); font-size: 13px; font-weight: 700; }

.merged-label[data-pos="top"] { top: 8%; left: 50%; transform: translateX(-50%) scale(0.8); }
.merged-label[data-pos="right"] { top: 50%; right: 2%; transform: translateY(-50%) scale(0.8); }
.merged-label[data-pos="bottom"] { bottom: 8%; left: 50%; transform: translateX(-50%) scale(0.8); }
.merged-label[data-pos="left"] { top: 50%; left: 2%; transform: translateY(-50%) scale(0.8); }

/* Comparison scroll hint */
.comparison-scroll-hint {
    margin-top: 1rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
    color: var(--text-tertiary); font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.6;
}
.comparison-scroll-hint svg { width: 16px; height: 16px; animation: bounce-down 2s ease-in-out infinite; }

/* Comparison table */
.comparison-table-wrapper {
    max-height: 0; overflow: hidden;
    opacity: 0; margin-top: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    border-radius: 16px; overflow: hidden;
    background: var(--glass-bg); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
}
.comparison-table thead th {
    padding: 1rem 0.75rem; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--text-tertiary); text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}
.comparison-table thead th:first-child { text-align: left; padding-left: 1.25rem; }
.comparison-table thead th.solace-col { color: var(--interactive-blue); position: relative; }
.comparison-table thead th.solace-col::after {
    content: ''; position: absolute; bottom: 0; left: 10%; right: 10%;
    height: 2px; background: var(--interactive-blue); border-radius: 1px;
}
.comparison-table tbody td {
    padding: 0.75rem; font-size: 0.85rem; color: var(--text-secondary);
    text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}
[data-theme="light"] .comparison-table tbody td { border-bottom-color: rgba(0, 0, 0, 0.03); }
.comparison-table tbody td:first-child { text-align: left; font-weight: 500; color: var(--text-primary); padding-left: 1.25rem; }
.comparison-table tbody td.solace-col { background: rgba(10, 132, 255, 0.04); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.comparison-table tbody tr:hover td.solace-col { background: rgba(10, 132, 255, 0.08); }
[data-theme="light"] .comparison-table tbody tr:hover td { background: rgba(0, 0, 0, 0.02); }
[data-theme="light"] .comparison-table tbody tr:hover td.solace-col { background: rgba(10, 132, 255, 0.08); }

.comparison-table .check { color: var(--active-green); font-weight: 700; font-size: 1rem; }
.comparison-table .cross { color: var(--text-tertiary); opacity: 0.4; font-size: 1rem; }

.comparison-swipe-hint {
    display: none;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .comparison-swipe-hint { display: block; }
}

.comparison-punchline {
    margin-top: 2rem; font-size: 0.95rem;
    color: var(--text-secondary); font-style: italic;
    opacity: 0;
}

.comparison-links { margin-top: 1rem; font-size: 0.82rem; color: var(--text-tertiary); text-align: center; }
.comparison-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.comparison-links a:hover { color: var(--text-primary); }

/* ---------- Section 11: Privacy ---------- */
.section-privacy {
    text-align: center;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.trust-badge {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
}

.trust-badge.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.trust-icon {
    margin-bottom: 1rem;
    color: var(--active-green);
}

.trust-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.trust-body {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------- Section 11b: FAQ ---------- */
.section-faq {
    text-align: center;
}

.faq-container {
    max-width: 680px;
    margin: 2rem auto 0;
    text-align: left;
}

.faq-container details {
    margin-bottom: 0;
    border-bottom: 1px solid var(--glass-border);
}

.faq-container details:first-of-type {
    border-top: 1px solid var(--glass-border);
}

.faq-container summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    cursor: pointer;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    list-style: none;
    transition: color 0.2s;
}

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

.faq-container summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
}

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

.faq-container summary:hover {
    color: var(--interactive-blue);
}

.faq-container .faq-answer {
    padding: 0 0 1.25rem 0;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ---------- Section 12: Final CTA ---------- */
.section-final {
    text-align: center;
    min-height: 80vh;
    position: relative;
}

.final-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.final-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.final-post-purchase {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}
.final-post-purchase a {
    color: var(--interactive-blue);
}
.final-post-video {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}
.final-post-video a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.final-post-video a:hover {
    color: var(--text-primary);
}

.pricing-post-purchase {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
}
.pricing-post-purchase a {
    color: var(--interactive-blue);
}

/* Nebula glow behind final headline */
.final-nebula {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 112, 222, 0.08) 0%, rgba(100, 100, 200, 0.04) 30%, transparent 70%);
    pointer-events: none;
    animation: nebula-pulse 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes nebula-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -60%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -60%) scale(1.08); }
}

.dawn-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(0deg, rgba(255, 179, 71, 0.06) 0%, transparent 100%);
    pointer-events: none;
}

/* ---------- Shooting Star ---------- */
#shooting-star {
    position: fixed;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 2px;
    z-index: -8;
    pointer-events: none;
    opacity: 0;
    transform: rotate(-35deg);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* ---------- Interactive Wallpaper MacBooks ---------- */
.macbook-interactive {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.macbook-interactive.active {
    transform: scale(1.04);
}

.macbook-interactive:not(.active) {
    opacity: 0.6;
}

.macbook-interactive:not(.active):hover {
    opacity: 0.85;
    transform: scale(1.01);
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 2rem var(--content-padding);
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left { display: flex; align-items: center; gap: 0.5rem; }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-brand:hover {
    opacity: 0.8;
    color: var(--text-primary);
}

.footer-social { color: var(--text-tertiary); transition: color 0.2s; display: flex; align-items: center; }
.footer-social:hover { color: var(--text-primary); }

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.footer-compare-wrapper { position: relative; }
.footer-compare-trigger { font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; transition: color 0.2s; display: flex; align-items: center; gap: 0.3rem; }
.footer-compare-trigger:hover { color: var(--text-primary); }
.footer-compare-trigger .caret { width: 8px; height: 8px; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.footer-compare-trigger .caret svg { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-compare-wrapper:hover .footer-compare-trigger .caret { transform: rotate(180deg); }
.footer-compare-dropdown { position: absolute; bottom: calc(100% + 0.6rem); left: 50%; transform: translateX(-50%) translateY(4px); background: var(--bg-card-hover); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 0.4rem; display: flex; flex-direction: column; min-width: 180px; opacity: 0; visibility: hidden; transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease; box-shadow: var(--shadow-card); }
.footer-compare-dropdown::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: var(--bg-card-hover); border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.footer-compare-wrapper:hover .footer-compare-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.footer-compare-dropdown a { font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; padding: 0.45rem 0.75rem; border-radius: 6px; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.footer-compare-dropdown a:hover { background: var(--border-subtle); color: var(--text-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .two-col.reverse {
        direction: ltr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .wallpaper-showcase {
        gap: 1.5rem;
    }

    .macbook-frame {
        width: 38vw;
        max-width: 280px;
    }

    .macbook-notch {
        width: 40px;
        height: 6px;
    }

    .macbook-notch::after {
        width: 3px;
        height: 3px;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    #cursor-warmth {
        display: none;
    }

    .mockup-v2 {
        max-width: 100%;
        transform: scale(0.55);
        transform-origin: center top;
        margin-bottom: -45%;
    }

    .weather-mockup-pair {
        flex-direction: column;
        gap: 1rem;
    }

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

    .weather-mockup-card {
        width: 100%;
        max-width: 280px;
    }

    .pricing-period {
        font-size: 0.75rem;
    }
    .pricing-anchor {
        font-size: 0.7rem;
    }
    .final-sub {
        font-size: 0.9rem;
    }

    /* Nav bar responsive */
    .nav-links,
    .nav-sep {
        display: none !important;
    }

    .nav-pill.scrolled {
        gap: 0.5rem;
    }

    .nav-pill.scrolled .nav-buy {
        margin-left: auto;
    }

    /* Comparison section responsive */
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.6rem 0.4rem;
        font-size: 0.75rem;
    }

    .comparison-table {
        min-width: 580px;
    }

    .comparison-table-wrapper {
        position: relative;
    }

    /* Final CTA subtitle: prevent awkward wrapping */
    .final-sub {
        font-size: 0.95rem;
    }
}

@media (max-width: 620px) {
    .convergence-stage { width: 340px; height: 340px; }
    .convergence-center { width: 72px; height: 72px; margin-left: -36px; margin-top: -36px; }
    .orbit-ring { width: 240px; height: 240px; margin-left: -120px; margin-top: -120px; }
    .merged-label { font-size: 0.65rem; padding: 4px 10px; }
    .merged-label .label-icon { width: 18px; height: 18px; font-size: 10px; }
    .merged-label[data-pos="top"] { top: 2%; }
    .merged-label[data-pos="bottom"] { bottom: 2%; }
    .merged-label[data-pos="left"] { left: -2%; }
    .merged-label[data-pos="right"] { right: -2%; }
    .node-icon { width: 44px; height: 44px; font-size: 20px; border-radius: 11px; }
    .node-name { font-size: 0.7rem; }
    .node-inner { width: 80px; }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .feature-chips {
        flex-direction: column;
        align-items: center;
    }

    .node-capability { display: none; }

    .pricing-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    #theme-toggle {
        width: 40px;
        height: 40px;
        top: 1rem;
        right: 1rem;
    }

    #toast {
        white-space: normal;
        left: 1rem;
        right: 1rem;
        transform: translateY(100px);
        text-align: center;
    }

    #toast.show {
        transform: translateY(0);
    }

    .final-nebula {
        width: 300px;
        height: 300px;
    }
}
