/* 
 * HiBart "Liquid Dream" Design System - CTO Level Polish (OLED Edition)
 * Inspired by Minitap.ai & Apple Interface Guidelines
 */

:root {
    /* -- Colors (Apple Dark Mode Palette) -- */
    --bg-space: #000000;
    /* True OLED Black */
    --bg-card: rgba(28, 28, 30, 0.6);
    /* Apple System Gray 6 */
    --bg-elevated: #1C1C1E;

    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.2);

    --text-primary: #FFFFFF;
    --text-secondary: #86868B;
    /* Apple SF Gray */
    --text-tertiary: #636366;

    /* Apple-style Accents */
    --accent-primary: #5E5CE6;
    /* Indigo */
    --accent-glow: rgba(94, 92, 230, 0.4);
    --accent-cyan: #32ADE6;
    /* Cyan */

    /* -- Spacing -- */
    --u-1: 8px;
    --u-2: 16px;
    --u-3: 24px;
    --u-4: 32px;
    --u-6: 48px;
    --u-10: 80px;

    /* -- Radius -- */
    --r-sm: 12px;
    --r-md: 22px;
    /* Apple continuous curve feel */
    --r-lg: 34px;
    --r-xl: 48px;

    /* -- Font -- */
    /* SF Pro Display fallback chain */
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-space);
    color: var(--text-primary);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hide default for custom cursor */
}

/* --- Awwwards Polish: CINEMATIC NOISE --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

/* --- Awwwards Polish: CUSTOM CURSOR --- */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    /* Critical for that 'design' look */
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

body.is-loading {
    overflow: hidden;
    /* Lock scroll during intro */
}

/* Background Ambience - More Subtle */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    opacity: 0.3;
}

.ambient-glow {
    position: fixed;
    top: -30%;
    left: 10%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, #1C1C1E 0%, transparent 60%);
    filter: blur(150px);
    opacity: 0.4;
    z-index: -2;
}

/* ================= NAV (Island Style) ================= */
.liquid-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 400px;
    height: 54px;
    background: rgba(22, 22, 24, 0.75);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px 0 20px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 32px;
}

.logo-box img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    /* Pill spacing */
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.9rem;
    /* Increase legibility */
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
    background: white !important;
    color: black !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    margin-left: 8px;
    border-radius: 99px !important;
    /* Fix white patch square corners */
}

.nav-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ================= HERO ================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px var(--u-3) var(--u-6);
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 2000px;
}

.hero-content {
    flex: 1;
    max-width: 580px;
    z-index: 10;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    /* Neutral glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--u-3);
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #30D158;
    /* Apple Success Green */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.6);
}

.hero-content h1 {
    font-size: clamp(4rem, 6.5vw, 5.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: var(--u-3);
}

/* Text Gradient Fix for SplitType */
/* Text Gradient Removed - Solid White Clean Text */
.text-gradient {
    color: #FFFFFF;
    font-weight: 700;
    position: relative;
    display: inline-block;
    background: none;
}

.text-gradient .char {
    color: #FFFFFF;
    background: none;
    -webkit-text-fill-color: #FFFFFF;
    display: inline-block;
}

.hero-subtext {
    font-size: 1.35rem;
    color: var(--text-secondary);
    line-height: 1.4;
    letter-spacing: -0.015em;
    margin-bottom: var(--u-6);
    max-width: 480px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.liquid-button {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent !important;
    border: none;
    outline: none;
    display: inline-block;
}

.liquid-button img {
    height: 100px;
    /* Significantly larger to match request */
    width: auto;
    display: block;
    /* Clean shadow without "box" effect */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.liquid-button:hover {
    transform: scale(1.05) translateY(-3px);
    background: transparent !important;
}

.liquid-button:hover img {
    filter: drop-shadow(0 8px 30px rgba(255, 255, 255, 0.3));
}

/* ================= 3D PHONE (OLED Polish) ================= */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    height: 750px;
    align-items: center;
}

.phone-container {
    perspective: 1500px;
    transform-style: preserve-3d;
}

.phone-mockup {
    width: 350px;
    /* Wider Pro Max size */
    height: 700px;
    background: #000;
    border-radius: 54px;
    position: relative;
    border: 6px solid #2C2C2E;
    /* Dark Gray titanium frame */
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 1),
        0 40px 100px -30px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    transform: rotateY(-12deg) rotateX(6deg);
    transition: transform 0.1s linear;
    /* JS handles smooth */
}

/* Dynamic Reflection */
.phone-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%, rgba(255, 255, 255, 0.03) 100%);
    pointer-events: none;
    z-index: 90;
    border-radius: 46px;
}

.notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 100;
}

.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 5px;
    background: white;
    border-radius: 100px;
    opacity: 0.6;
    z-index: 100;
}

.app-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 46px;
    /* Inner radius matching phone curve */
    /* Enhance the screenshot a bit */
    filter: brightness(0.95);
    /* Better integration with OLED theme */
}

/* Floating Orbs - More Subtle/Darker */
.floating-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.25;
}

.orb-1 {
    background: #5E5CE6;
    top: 15%;
    right: 15%;
    animation: floatOrb 10s infinite alternate ease-in-out;
}

.orb-2 {
    background: #32ADE6;
    bottom: 15%;
    left: 15%;
    animation: floatOrb 12s infinite alternate ease-in-out reverse;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, -50px);
    }
}


/* ================= FEATURES ================= */
.features-section {
    padding: 120px var(--u-3);
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: minmax(340px, auto);
    /* Allow expansion */
    gap: 24px;
}

.glass-panel {
    background: var(--bg-card);
    /* System Gray 6 equivalent */
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    /* Smooth curves */
    padding: 32px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.12);
}

.large-card {
    grid-column: span 2;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-box img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* In-Card Demos */
.voice-demo {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    width: fit-content;
    font-weight: 500;
}

.chat-bubble.user {
    background: #2C2C2E;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.bart {
    background: var(--accent-primary);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.personality-toggles {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.toggle-pill {
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
    cursor: pointer;
}

.toggle-pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-pill.active {
    background: #FFF;
    color: #000;
    font-weight: 600;
}

/* ================= MASCOT ================= */
.mascot-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px var(--u-3);
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.spotlight {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.mascot-container {
    position: relative;
}

.big-bart {
    width: 320px;
    height: 320px;
    filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.1));
}

.mascot-text {
    max-width: 440px;
}

.mascot-text h2 {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    font-weight: 800;
}

.mascot-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.15rem;
}

/* ================= CHAOS & NARRATIVE ================= */
#chaos-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    /* Let clicks pass through, but we track mouse in JS */
    z-index: 5;
    overflow: hidden;
}

.task-bubble {
    position: absolute;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease,
        box-shadow 0.3s ease;
    user-select: none;
    cursor: grab;
    will-change: transform;
}

/* Floating animation for bubbles - disabled as it conflicts with JS positioning */
/* The bubbles are positioned and animated via JavaScript ChaosManager */
@keyframes bubbleFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

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

/* Animation removed - JS handles all bubble movement */
/*
.task-bubble:nth-child(odd) {
    animation: bubbleFloat 3s ease-in-out infinite;
}

.task-bubble:nth-child(even) {
    animation: bubbleFloat 3.5s ease-in-out infinite 0.5s;
}
*/

.task-bubble:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.task-bubble:active {
    cursor: grabbing;
    animation: none;
}

.task-bubble.urgent {
    background: rgba(255, 59, 48, 0.12);
    border-color: rgba(255, 59, 48, 0.25);
    box-shadow: 0 4px 20px rgba(255, 59, 48, 0.2);
}

.task-bubble.chill {
    background: rgba(48, 209, 88, 0.12);
    border-color: rgba(48, 209, 88, 0.25);
    box-shadow: 0 4px 20px rgba(48, 209, 88, 0.2);
}

/* Bubble pushed state (applied via JS) */
.task-bubble.pushed {
    animation: none;
}

/* Sticky Companion */
.bart-companion {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 100px;
    height: 100px;
    z-index: 100;
    transition: transform 0.4s var(--ease-spring), opacity 0.4s;
    opacity: 0;
    /* Hidden initially, reveals on scroll */
    transform: translateY(20px);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.bart-companion.active {
    opacity: 1;
    transform: translateY(0);
}

.bart-companion img {
    width: 100%;
    height: 100%;
    animation: float 4s ease-in-out infinite;
}

/* Chatty Speech Bubble */
.bart-speech {
    position: absolute;
    right: 110%;
    /* Left of the avatar */
    top: 10px;
    background: white;
    color: black;
    padding: 8px 16px;
    border-radius: 16px;
    border-bottom-right-radius: 4px;
    /* Point towards avatar */
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.bart-speech.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Narrative Text Helper */
.highlight-chaos {
    color: #FF3B30;
    /* Red for chaos */
}

/* ================= FEATURE SPOTLIGHTS ================= */
.spotlight-section {
    padding: 140px var(--u-3);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 100px;
    position: relative;
    /* Optional: Alternating backgrounds if desired, but keeping clean for now */
}

.spotlight-section.image-left {
    flex-direction: row-reverse;
}

.spotlight-text {
    flex: 1;
    max-width: 480px;
}

.spotlight-text h3 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.spotlight-text p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
}

.spotlight-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Reusing mini-phone but making it larger for spotlight */
.spotlight-phone {
    width: 320px;
    height: 660px;
    background: #000;
    border-radius: 48px;
    border: 5px solid #2C2C2E;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 0, 0, 1);
    position: relative;
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spotlight-section:hover .spotlight-phone {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.spotlight-phone .notch {
    width: 90px;
    height: 26px;
    top: 12px;
    border-radius: 14px;
    background: #000;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.spotlight-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 42px;
}

/* ================= iOS INTERACTIVE SCREENS ================= */
.ios-screen {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    border-radius: 42px;
    overflow: hidden;
    font-family: -apple-system, system-ui, sans-serif;
    display: flex;
    flex-direction: column;
}

/* Header */
.ios-header {
    height: 50px;
    margin-top: 40px;
    /* Below notch */
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    color: white;
    z-index: 10;
}

.ios-header h4 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.ios-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2C2C2E;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Smart Add Screen */
.ios-chat-area {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
}

.ios-bubble {
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 85%;
    font-size: 16px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ios-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ios-bubble.bart {
    background: #2C2C2E;
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ios-bubble.user {
    background: #5E5CE6;
    /* Accent */
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ios-input-bar {
    margin: 0 16px 40px;
    background: #1C1C1E;
    border-radius: 30px;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 6px 0 20px;
    color: #8E8E93;
    font-size: 16px;
    justify-content: space-between;
    border: 1px solid #333;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background: #5E5CE6;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.ios-mic-btn {
    width: 44px;
    height: 44px;
    background: #5E5CE6;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    box-shadow: 0 4px 12px rgba(94, 92, 230, 0.4);
}

/* Focus Timer Screen */
.ios-focus-screen {
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-bottom: 60px;
}

.ios-focus-label {
    margin-bottom: 40px;
    font-size: 14px;
    color: #8E8E93;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.ios-timer-circle {
    width: 240px;
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ios-timer-path {
    fill: none;
    stroke: #1C1C1E;
    stroke-width: 16;
}

.ios-timer-progress {
    fill: none;
    stroke: white;
    stroke-width: 16;
    stroke-linecap: round;
    stroke-dasharray: 703;
    /* 2 * PI * 112 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.ios-timer-text {
    position: absolute;
    font-size: 56px;
    font-weight: 700;
    color: white;
    font-variant-numeric: tabular-nums;
    font-family: "SF Pro Display", sans-serif;
}

.ios-timer-controls {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    align-items: center;
}

.ios-btn-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #1C1C1E;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.ios-btn-circle:active {
    transform: scale(0.95);
}

.ios-btn-play {
    width: 88px;
    height: 88px;
    background: white;
    color: black;
    font-size: 32px;
}

/* Settings Screen */
.ios-settings-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 20px;
}

.ios-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #8E8E93;
    margin-bottom: 10px;
    padding-left: 12px;
    text-transform: uppercase;
}

.ios-card {
    background: #1C1C1E;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
}

.ios-row {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2C2C2E;
    cursor: pointer;
    transition: background 0.2s;
}

.ios-row:last-child {
    border-bottom: none;
}

.ios-row:hover {
    background: #252527;
}

.ios-row.active {
    background: #333;
}

.ios-row-label {
    font-size: 17px;
    font-weight: 400;
    color: white;
}

.ios-row-value {
    font-size: 17px;
    color: #8E8E93;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Interactive Cursor Animation */
.fake-cursor {
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    margin-top: -12px;
    margin-left: -12px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.fake-tap {
    animation: tapPulse 0.4s ease-out;
}

@keyframes tapPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(0.5);
        opacity: 1;
        background: white;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}



.mini-phone .notch {
    width: 80px;
    height: 24px;
    top: 10px;
    border-radius: 12px;
}

.mini-phone .home-indicator {
    width: 100px;
    bottom: 6px;
}

.mini-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 38px;
    filter: brightness(0.95);
}

.gallery-caption {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes duplicated content for infinite scroll */
}

/* ================= COMPATIBILITY / FOOTER ================= */
.social-proof {
    text-align: center;
    padding: 80px 20px;
    border-top: 1px solid #1C1C1E;
    border-bottom: 1px solid #1C1C1E;
    background: rgba(255, 255, 255, 0.01);
}

.stat-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFF;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 4px;
}

.stat-separator {
    width: 1px;
    height: 50px;
    background: #2C2C2E;
}


footer {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    width: 28px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.tiny-text {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 6px;
}

.footer-right {
    display: flex;
    gap: 32px;
}

.footer-right a {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.2s;
}

.footer-right a:hover {
    color: white;
}

/* --- Focus Screen (Light Mode) --- */
.ios-focus-screen.light-mode {
    background: #F2F2F7;
    /* System Light Gray */
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
}

.focus-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
}

.focus-date {
    font-size: 1.2rem;
    font-weight: 700;
}

.focus-bart-icon {
    width: 32px;
    height: 32px;
    background: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.focus-bart-icon .eye {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    margin: 0 2px;
    animation: blink 4s infinite;
}

.focus-banner {
    background: white;
    padding: 12px 20px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    text-align: center;
    width: 90%;
}

.focus-timer-container {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space for buttons */
    margin-bottom: 24px;
}

.timer-adjust-btn {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.1s;
}

.timer-adjust-btn:active {
    transform: scale(0.9);
}

.ios-timer-circle {
    position: relative;
    width: 220px;
    height: 220px;
}

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

.ios-timer-path {
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 12;
    /* Thicker */
    fill: none;
}

.ios-timer-progress {
    stroke: #8B8BFF;
    /* Violet from screenshot */
    stroke-width: 12;
    fill: none;
    stroke-dasharray: 628;
    /* 2 * PI * 100 */
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.ios-timer-text-group {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ios-timer-text {
    font-size: 3rem;
    font-weight: 800;
    color: black;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.ios-timer-label {
    font-size: 0.9rem;
    color: #8E8E93;
    margin-top: -4px;
}

.focus-toggles {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.focus-pill {
    background: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1C1C1E;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.focus-pill.active {
    background: #1C1C1E;
    color: white;
}

.ios-timer-controls.centered {
    display: flex;
    gap: 24px;
    align-items: center;
}

.ios-btn-circle.large {
    width: 72px;
    height: 72px;
    background: #1C1C1E;
    /* Black play button */
}

.ios-btn-circle.small {
    width: 48px;
    height: 48px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- Mood Logger Screen --- */
.mood-logger-screen {
    background: #F2F2F7;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    font-family: -apple-system, system-ui, sans-serif;
    color: black;
}

.mood-header {
    text-align: center;
    margin-bottom: 20px;
}

.mood-date {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mood-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #8E8E93;
    text-transform: uppercase;
}

.mood-face-container {
    margin: 20px 0;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.mood-face {
    width: 140px;
    height: 140px;
    background: black;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.face-eyes {
    display: flex;
    gap: 20px;
    z-index: 2;
}

.star-eye {
    font-size: 40px;
    animation: rotateStar 3s infinite linear;
}

@keyframes rotateStar {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.face-blush {
    position: absolute;
    width: 20px;
    height: 10px;
    background: #FF6B6B;
    border-radius: 50%;
    opacity: 0.6;
    top: 65%;
}

.face-blush.left {
    left: 25px;
}

.face-blush.right {
    right: 25px;
}

.mood-label-group {
    text-align: center;
    margin-bottom: 30px;
}

.mood-label-group h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.mood-label-group p {
    font-size: 0.9rem;
    color: #8E8E93;
}

/* Custom Gradient Slider */
.mood-slider-container {
    width: 85%;
    position: relative;
    margin-bottom: 40px;
}

.slider-track-gradient {
    height: 12px;
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(to right, #FF3B30, #FFCC00, #34C759);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.mood-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    /* larger touch area */
    background: transparent;
    position: relative;
    z-index: 2;
    margin: 0;
}

.mood-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: grab;
    margin-top: -8px;
    /* Alignment */
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 700;
    color: #8E8E93;
    margin-top: 10px;
}

.mood-log-time {
    width: 85%;
}

.log-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8E8E93;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
}

.time-pills {
    display: flex;
    gap: 10px;
}

.time-pill {
    background: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: #1C1C1E;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.time-pill.dark {
    background: #1C1C1E;
    color: white;
}

/* --- Spotlight 4: Breakdown Screen --- */
.breakdown-screen {
    background: #F2F2F7;
    /* Light Mode */
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    font-family: -apple-system, system-ui, sans-serif;
    color: black;
}

.breakdown-header {
    padding: 0 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-date {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.breakdown-bart-icon {
    width: 36px;
    height: 36px;
    background: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breakdown-bart-icon .eye {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    margin: 0 2px;
}

/* Bart Banner Notification */
.breakdown-banner-container {
    padding: 0 24px 20px;
    height: 60px;
    /* Fixed height to prevent layout jump */
}

.breakdown-banner {
    background: #000;
    color: white;
    padding: 12px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.breakdown-banner.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bart-emoji {
    font-size: 1.2rem;
}

.banner-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

.banner-sub {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Task List */
.task-list-container {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Gap between cards */
}

.task-card {
    background: white;
    padding: 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.task-card.main-task {
    z-index: 10;
    position: relative;
}

.check-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #D1D1D6;
    border-radius: 50%;
}

.check-circle.main {
    border-color: #007AFF;
    /* iOS Blue */
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.task-title {
    font-weight: 600;
    font-size: 1rem;
}

.task-time {
    font-size: 0.8rem;
    color: #8E8E93;
}

.chevron-box {
    opacity: 0.5;
    transition: transform 0.4s;
}

/* Subtasks */
.subtask-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-top: -10px;
    /* Pull up slightly */
    padding-left: 20px;
    /* Indent subtasks */
}

.subtask-list.expanded {
    max-height: 300px;
    opacity: 1;
    margin-top: 0;
}

.task-card.subtask {
    background: white;
    /* Or slightly darker if desired */
    padding: 14px 16px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.subtask-list.expanded .task-card.subtask {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger delay for subtasks */
.subtask-list.expanded .task-card.subtask:nth-child(1) {
    transition-delay: 0.1s;
}

.subtask-list.expanded .task-card.subtask:nth-child(2) {
    transition-delay: 0.2s;
}

.subtask-list.expanded .task-card.subtask:nth-child(3) {
    transition-delay: 0.3s;
}



/* ================= MOBILE ================= */
/* ================= TABLET (max 900px) ================= */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .liquid-nav {
        width: calc(100% - 32px) !important;
        min-width: auto;
        justify-content: space-between !important;
        padding: 10px 16px !important;
    }

    .nav-feedback-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .nav-cta {
        display: none;
    }

    .nav-brand {
        margin: 0;
    }

    .nav-brand span {
        font-size: 1rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 60px;
        gap: 40px;
    }

    .hero-actions {
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-subtext {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto;
    }

    .hero-btn-large {
        margin: 0 auto;
    }

    /* Hide floating task bubbles on tablet/mobile */
    .chaos-task {
        display: none !important;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 0 20px;
    }

    .large-card {
        grid-column: span 1;
    }

    .mascot-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 20px;
    }

    .big-bart {
        width: 200px;
        height: 200px;
    }

    .stat-row {
        flex-direction: column;
        gap: 30px;
    }

    .stat-separator {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    /* Phone mockup - hide or scale */
    .phone-mockup-wrapper,
    .floating-phone {
        transform: scale(0.7);
        margin-top: -40px;
    }
}

/* Sticky Bart Companion Enhancements */


#mood-description {
    transition: opacity 0.2s ease;
}

/* Large Hero Button - Clean & Transparent */
.hero-btn-large {
    display: inline-block;
    transform: scale(1);
    margin-bottom: 16px;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    /* No padding for alignment */
    border-radius: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-btn-large:hover {
    transform: scale(1.03) translateY(-2px);
    background: transparent !important;
    box-shadow: none !important;
}

.hero-btn-large img {
    height: auto;
    width: 200px;
    /* Smaller, refined size */
    max-width: 90vw;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.hero-btn-large:hover img {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)) brightness(1.05);
    transform: scale(1.02);
}

/* Nav with Logo Left, Feedback Right */
.liquid-nav {
    justify-content: space-between !important;
    padding: 12px 24px !important;
    min-width: unset !important;
    width: calc(100% - 48px) !important;
    max-width: 1200px !important;
}

.nav-brand {
    margin-right: 0 !important;
}

/* Feedback Button in Nav */
.nav-feedback-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-feedback-btn:hover {
    background: white;
    color: black;
    border-color: white;
    transform: scale(1.02);
}

/* Contact/Email Link Styling */
.contact-line {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--text-tertiary);
}

.email-link {
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.email-link:hover {
    background: white;
    color: black;
}

/* ================= FEEDBACK PAGE ================= */
.feedback-page {
    padding: 140px var(--u-3) 120px;
    /* Increased bottom padding for safety */
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.feedback-container {
    width: 100%;
    max-width: 680px;
}

.feedback-header {
    text-align: center;
    margin-bottom: 40px;
}

.feedback-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
}

.feedback-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* User Details Section */
.user-details-section {
    background: linear-gradient(135deg, rgba(94, 92, 230, 0.1), rgba(0, 0, 0, 0.2));
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(94, 92, 230, 0.2);
}

.user-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

/* Chaos Slider */
.range-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.range-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.chaos-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
}

.chaos-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFF;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

.chaos-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Interaction Pills */
.interaction-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill-checkbox input {
    display: none;
}

.pill-checkbox span {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.pill-checkbox input:checked+span {
    background: #FFF;
    color: #000;
    font-weight: 600;
    border-color: #FFF;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.pill-checkbox:hover span {
    background: rgba(255, 255, 255, 0.1);
}

.pill-checkbox input:checked:hover span {
    background: #F0F0F0;
}

/* Text & Inputs */
.feedback-form textarea,
.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    color: #FFF;
    font-family: var(--font-stack);
    font-size: 1rem;
    transition: 0.2s;
}

.feedback-form textarea:focus,
.input-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(94, 92, 230, 0.1);
}

/* Collab Toggle */
.collab-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #30D158;
}

input:checked+.slider:before {
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.collab-fields {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collab-fields select {
    grid-column: span 2;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 16px;
    background: #FFFFFF !important;
    color: #000000 !important;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.submit-btn:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
    background: #FFFFFF !important;
    color: #000000 !important;
}

/* ================= FEEDBACK FOOTER ================= */
.feedback-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 40px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.feedback-footer .footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-lockup .footer-logo {
    height: 32px;
    width: auto;
}

.footer-brand-lockup span {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.footer-brand-lockup .sub-brand {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 8px;
    font-weight: 400;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a.active {
    color: white;
}

.footer-legal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: white;
}

@media (max-width: 600px) {

    .footer-row,
    .footer-legal-row {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-brand-lockup {
        flex-direction: column;
        gap: 8px;
    }

    .footer-brand-lockup .sub-brand {
        margin-left: 0;
    }
}

/* ================= UNIFIED FOOTER (SHARED) ================= */
footer.shared-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 40px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
    background: transparent;
}

.footer-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 22.5%;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.footer-nav-primary {
    display: flex;
    gap: 20px;
}

.footer-nav-primary a {
    color: rgba(255, 255, 255, 0.9);
    /* White/Grey instead of Blue */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-nav-primary a:hover {
    color: #FFF;
    text-decoration: underline;
}

/* Legal Links */
.footer-nav-legal {
    display: flex;
    gap: 16px;
}

.footer-nav-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-nav-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-brand-center {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bart-logo-svg {
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.bart-logo-svg:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .footer-top-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-right-col {
        align-items: center;
    }
}

/* ================= COMPREHENSIVE RESPONSIVE DESIGN ================= */

/* --- iPad Pro & Large Tablets (1024px) --- */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        padding: 140px 24px 80px;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: auto;
    }

    .hero-content h1 {
        font-size: clamp(3rem, 6vw, 4.5rem);
    }

    .hero-actions {
        align-items: center;
    }

    .phone-mockup {
        width: 300px;
        height: 600px;
        transform: rotateY(-8deg) rotateX(4deg);
    }

    .spotlight-section {
        flex-direction: column !important;
        gap: 60px;
        padding: 100px 24px;
    }

    .spotlight-section.image-left {
        flex-direction: column !important;
    }

    .spotlight-text {
        max-width: 100%;
        text-align: center;
    }

    .spotlight-text h3 {
        font-size: 2.2rem;
    }

    .spotlight-phone {
        width: 280px;
        height: 580px;
        transform: rotateY(0) rotateX(0);
    }

    .spotlight-section:hover .spotlight-phone {
        transform: scale(1.02);
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .large-card {
        grid-column: span 2;
    }

    .mascot-section {
        flex-direction: column;
        gap: 50px;
        text-align: center;
        padding: 100px 24px;
    }

    .mascot-text {
        max-width: 100%;
    }

    .mascot-text h2 {
        font-size: 2.8rem;
    }
}

/* --- Tablets & Small iPads (768px) --- */
@media (max-width: 768px) {

    /* Hide task bubbles on smaller screens for cleaner mobile experience */
    #chaos-container {
        display: none;
    }

    /* Hide custom cursor on touch devices */
    .custom-cursor {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    .hero-section {
        padding: 120px 20px 60px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-subtext {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }

    .hero-btn-large img {
        height: 80px;
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
        border-radius: 44px;
        border-width: 4px;
    }

    .phone-mockup .notch {
        width: 80px;
        height: 24px;
    }

    .phone-mockup .home-indicator {
        width: 100px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .large-card {
        grid-column: span 1;
    }

    .glass-panel {
        padding: 24px;
        border-radius: 24px;
    }

    .card-content h3 {
        font-size: 1.3rem;
    }

    .card-content p {
        font-size: 0.95rem;
    }

    .spotlight-section {
        padding: 80px 20px;
        gap: 40px;
    }

    .spotlight-text h3 {
        font-size: 1.8rem;
    }

    .spotlight-text p {
        font-size: 1rem;
    }

    .spotlight-phone {
        width: 240px;
        height: 500px;
        border-radius: 40px;
    }

    .mascot-section {
        padding: 80px 20px;
    }

    .big-bart {
        width: 200px;
        height: 200px;
    }

    .mascot-text h2 {
        font-size: 2.2rem;
    }

    .mascot-text p {
        font-size: 1rem;
    }

    /* Social Proof adjustments */
    .social-proof {
        padding: 40px 20px;
    }

    .stat-num {
        font-size: 2rem;
    }

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

    /* Features section */
    .features-section {
        padding: 80px 20px;
    }

    .personality-toggles {
        gap: 8px;
    }

    .toggle-pill {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    /* Navigation */
    .liquid-nav {
        top: 16px;
        height: 48px;
        padding: 0 16px !important;
    }

    .nav-brand {
        font-size: 0.9rem;
    }

    .logo-box img {
        width: 22px;
        height: 22px;
    }

    /* Footer responsive */
    .shared-footer {
        padding: 60px 20px;
    }

    .footer-top-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .footer-left-col {
        align-items: center;
    }

    .footer-right-col {
        align-items: center;
    }

    .footer-nav-primary,
    .footer-nav-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-brand-center {
        margin-top: 24px;
    }

    /* Feedback Page Responsive */
    .feedback-page {
        padding: 100px 16px 40px;
    }

    .feedback-header h1 {
        font-size: 2rem;
    }

    .feedback-header p {
        font-size: 1rem;
    }

    .feedback-form {
        gap: 24px;
    }

    .form-section h3 {
        font-size: 1.1rem;
    }

    .user-inputs {
        grid-template-columns: 1fr;
    }

    .interaction-pills {
        gap: 8px;
    }

    .pill-checkbox span {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .range-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
        padding: 16px;
    }

    .range-wrapper .chaos-slider {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }

    .range-wrapper .range-label:first-child {
        order: 1;
    }

    .range-wrapper .range-label:last-child {
        order: 2;
        text-align: right;
    }

    .submit-btn {
        padding: 16px 20px;
        font-size: 1rem;
    }
}

/* --- Mobile Phones (480px) --- */
@media (max-width: 480px) {
    .liquid-nav {
        padding: 8px 12px !important;
    }

    .nav-brand span {
        font-size: 0.9rem;
    }

    .nav-feedback-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .hero-section {
        padding: 100px 16px 40px;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }

    .hero-subtext {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .badge-pill {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .hero-btn-large img {
        width: 160px;
    }

    .platform-note {
        font-size: 0.75rem;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 36px;
    }

    .phone-mockup .notch {
        width: 70px;
        height: 20px;
        top: 10px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .spotlight-text h3 {
        font-size: 1.5rem;
    }

    .spotlight-phone {
        width: 200px;
        height: 420px;
        border-radius: 32px;
    }

    .mascot-text h2 {
        font-size: 1.8rem;
    }

    .big-bart {
        width: 160px;
        height: 160px;
    }

    /* Bento cards */
    .icon-box {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .icon-box img {
        width: 32px;
        height: 32px;
    }

    .voice-demo {
        margin-top: 20px;
    }

    .chat-bubble {
        font-size: 0.85rem;
        padding: 8px 14px;
    }

    /* Footer mobile */
    .footer-nav-primary {
        gap: 16px;
    }

    .footer-nav-primary a {
        font-size: 0.9rem;
    }

    .footer-nav-legal {
        gap: 12px;
    }

    .footer-nav-legal a {
        font-size: 0.8rem;
    }

    .footer-brand-logo {
        width: 50px;
        height: 50px;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    .footer-tagline {
        font-size: 0.75rem;
    }
}

/* --- Very Small Phones (360px) --- */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-subtext {
        font-size: 0.9rem;
    }

    .phone-mockup {
        width: 180px;
        height: 360px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .spotlight-phone {
        width: 170px;
        height: 360px;
    }

    .glass-panel {
        padding: 20px;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }
}

/* --- Touch Device Optimizations --- */
@media (hover: none) and (pointer: coarse) {

    /* Hide custom cursor on touch devices */
    .custom-cursor {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    /* Hide chaotic bubbles on touch */
    #chaos-container {
        display: none;
    }

    /* Larger tap targets for touch */
    .toggle-pill {
        padding: 10px 18px;
        min-height: 44px;
    }

    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-nav-primary a,
    .footer-nav-legal a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Remove hover effects that don't work well on touch */
    .glass-panel:hover {
        transform: none;
    }

    .spotlight-section:hover .spotlight-phone {
        transform: none;
    }
}

/* --- Landscape Mobile --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 24px 40px;
        flex-direction: row;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-visual {
        height: auto;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }
}

/* --- High DPI / Retina Display optimizations --- */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .phone-mockup {
        border-width: 4px;
    }
}

/* ================= MOBILE CAROUSEL FOR BENTO CARDS ================= */
@media (max-width: 768px) {
    .features-section {
        overflow: visible;
    }

    .bento-grid {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 20px 20px 30px 20px;
        margin: 0 -20px;
        width: calc(100% + 40px);
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .bento-grid::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .bento-grid .bento-card {
        flex: 0 0 calc(85vw - 20px);
        min-width: calc(85vw - 20px);
        max-width: calc(85vw - 20px);
        scroll-snap-align: center;
        margin: 0;
        min-height: auto !important;
        height: fit-content !important;
    }

    .bento-grid .bento-card.large-card {
        flex: 0 0 calc(85vw - 20px);
        min-width: calc(85vw - 20px);
        max-width: calc(85vw - 20px);
        min-height: auto !important;
        height: fit-content !important;
    }

    .bento-grid .glass-panel {
        min-height: auto !important;
        height: fit-content !important;
        padding: 28px 24px;
        display: flex;
        flex-direction: column;
    }

    .bento-grid .card-content {
        min-height: auto !important;
        flex-grow: 0;
    }

    .bento-grid .icon-box {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }

    .bento-grid .card-content h3 {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .bento-grid .card-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Carousel indicator dots */
    .features-section::after {
        content: '';
        display: block;
        text-align: center;
        padding: 15px 0;
    }
}

/* ================= SPOTLIGHT SECTIONS MOBILE ================= */
.spotlight-section {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (max-width: 768px) {
    .spotlight-section {
        flex-direction: column !important;
        padding: 50px 20px;
        gap: 30px;
        text-align: center;
        opacity: 0.3;
        transform: translateY(20px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }

    .spotlight-section.in-view {
        opacity: 1;
        transform: translateY(0);
    }

    .spotlight-section.image-left {
        flex-direction: column !important;
    }

    .spotlight-text {
        order: 1;
    }

    .spotlight-visual {
        order: 2;
    }

    .spotlight-text h3 {
        font-size: 1.6rem;
    }

    .spotlight-text p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .spotlight-phone {
        width: 180px;
        height: 380px;
        margin: 0 auto;
    }
}

/* ================= CAROUSEL AUTO-SLIDER INDICATORS ================= */
.carousel-indicators {
    display: none;
}

@media (max-width: 768px) {
    .carousel-indicators {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 20px 0 30px;
        margin-top: -10px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }

    .carousel-dot.active {
        width: 24px;
        border-radius: 4px;
        background: linear-gradient(135deg, var(--primary), var(--accent));
    }

    .carousel-dot:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .carousel-dot.active:hover {
        background: linear-gradient(135deg, var(--primary), var(--accent));
    }
}