/* ============================================
   FXbuddy Landing Page - Neumorphic Design System
   ============================================ */

:root {
    /* Colors */
    --bg-base: #eef0f5;
    --text-primary: #000000;
    --text-secondary: #6b7280;
    --text-tertiary: #8a8a8a;
    --accent: #000000;
    
    /* Shadows - Neumorphic Light */
    --shadow-raised: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5);
    --shadow-pressed: inset 6px 6px 10px 0 rgba(163,177,198, 0.7), inset -6px -6px 10px 0 rgba(255,255,255, 0.8);
    --shadow-icon: 5px 5px 10px #babecc, -5px -5px 10px #ffffff;
    --shadow-button: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff;
    --shadow-button-active: inset 4px 4px 8px #b8b9be, inset -4px -4px 8px #ffffff;
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Radius */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 9999px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Film Grain Overlay */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    filter: url(#noiseFilter);
}

.hidden-svg {
    position: absolute;
    width: 0;
    height: 0;
}

/* ============================================
   Layout
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ============================================
   Mascot Styles
   ============================================ */

.mascot-container {
    position: relative;
    width: 120px;
    height: 80px;
    margin-bottom: 1rem;
    /* Entrance Animation */
    opacity: 0;
    transform: translateY(-20px);
    animation: mascot-drop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.mascot-body {
    width: 100%;
    height: 100%;
    background-color: #000000;
    border-radius: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-icon);
    z-index: 2;
    transition: transform 0.1s ease-out; /* For physics/squash-stretch */
}

.mascot-glare {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 20px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    transform: rotate(12deg);
}

.mascot-face {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.eyes {
    display: flex;
    gap: 12px;
    transition: transform 0.1s ease-out; /* For look-around */
}

.eye {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

/* Eye states are managed directly via JS (inline styles on SVG elements).
   CSS transitions on the SVG elements provide smooth interpolation. */
.eye-oval, .eye-path {
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}


/* Hero Mascot Bubble */
.mascot-bubble,
.mascot-bubble-second {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 16px;
    box-shadow: 2px 2px 5px #babecc, -2px -2px 5px #ffffff;
    position: absolute;
    top: -46px;
    left: 50%;
    translate: -50% 0;
    white-space: nowrap;
    z-index: 3;
    opacity: 0;
}

.mascot-bubble {
    animation: bubble-slide-up-down 2.4s ease-in-out forwards;
    animation-delay: 1s;
}

.mascot-bubble-second {
    animation: bubble-slide-up-down 2.4s ease-in-out forwards;
    animation-delay: 3.6s;
}

@keyframes bubble-slide-up-down {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    25% {
        opacity: 1;
        transform: translateY(0);
    }
    70% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes bubble-slide-up {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.mascot-zzz {
    position: absolute;
    top: -10px;
    right: -5px;
    color: var(--text-tertiary);
    font-weight: bold;
    font-family: var(--font-display);
    z-index: 3;
}
.mascot-zzz .z1 { font-size: 14px; animation: z-float 2s infinite ease-in-out; display: block; position: absolute; right: 0; }
.mascot-zzz .z2 { font-size: 10px; animation: z-float 2s infinite 0.6s ease-in-out; display: block; position: absolute; right: 8px; top: -8px; }

.hidden { display: none !important; }

/* ============================================
   Typography & Text Animations
   ============================================ */

.brand-name {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1;
    display: flex;
    justify-content: center;
    gap: 0.05em;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    animation: char-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(0.3s + (var(--char-index) * 0.04s));
}

.created-by {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin: 0.3rem 0 0;
    font-weight: 400;
    letter-spacing: 0.04em;
    opacity: 0;
    animation: fade-in 0.6s ease-out forwards;
    animation-delay: 0.8s;
}

.created-by-name {
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
}

.text-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fade-up 0.6s ease-out forwards;
    animation-delay: 0.5s;
}

.tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.value-prop {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Hero CTA Button */
.hero-cta-button {
    align-self: center;
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    margin-top: 1.5rem;
}

.hero-cta-button:hover {
    box-shadow: var(--shadow-button-active);
}

.hero-cta-button:active {
    transform: scale(0.97);
}

.works-with {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: var(--text-primary);
}

.app-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 4px;
}

/* ============================================
   Form & Interactive
   ============================================ */

.form-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.signup-form.form-hidden {
    display: none;
}

.input-wrapper {
    width: 100%;
}

input[type="email"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: box-shadow 0.2s ease;
}

input[type="email"]::placeholder {
    color: var(--text-tertiary);
}

input[type="email"]:focus {
    box-shadow: inset 4px 4px 8px rgba(163,177,198, 0.5), inset -4px -4px 8px rgba(255,255,255, 0.6), 0 0 0 2px rgba(0,0,0,0.05);
}

.cta-button {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.cta-button:active {
    box-shadow: var(--shadow-button-active);
    transform: scale(0.98);
}

/* Magnetic effect handled in JS, but base transition needed */
.magnetic-btn {
    /* transition: transform 0.1s ease-out; - handled in JS for snappy feel, CSS for return */
}

/* Success State */
.success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
}

.success-state.visible {
    display: flex;
    animation: fade-up 0.5s ease-out forwards;
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.share-prompt {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.share-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-1px);
}

.share-btn:active {
    box-shadow: var(--shadow-button-active);
    transform: translateY(0);
}

.copy-btn {
    padding: 0.75rem;
}

/* Counter */
.counter-wrapper {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    gap: 4px;
}

.counter-number {
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0;
    animation: fade-in 1s ease-out forwards, bounce-subtle 2s ease-in-out infinite;
    animation-delay: 1.2s, 1.2s;
    transition: color 0.2s ease, box-shadow 0.2s ease;
    z-index: 3;
}

.scroll-indicator:hover {
    color: var(--text-primary);
    box-shadow: var(--shadow-button-active);
}

.demo-scroll-indicator {
    animation-delay: 0s, 0s;
    opacity: 0;
}

.demo-scroll-indicator.animate-in {
    animation: fade-in 1s ease-out forwards, bounce-subtle 2s ease-in-out infinite;
    animation-delay: 0.3s, 0.3s;
}

/* ============================================
   Demo Section
   ============================================ */

.demo-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
    gap: 2.5rem;
}

.demo-header {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 2;
}

.demo-header.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.demo-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.demo-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Floating GIFs Background
   ============================================ */

.floating-gifs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-gif {
    position: absolute;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-base);
    box-shadow: var(--shadow-raised);
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    translate: var(--parallax-x, 0) var(--parallax-y, 0);
    will-change: transform, opacity, translate;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                translate 0.3s ease-out;
}

.floating-gif.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: gif-drift var(--drift-duration, 8s) ease-in-out infinite;
    animation-delay: 0.1s;
}

.floating-gif img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    mix-blend-mode: luminosity;
    opacity: 0.5;
    filter: contrast(1.1) brightness(1.05);
}

/* ── Individual GIF positions & sizing ── */

.floating-gif--1 {
    width: 130px;
    height: 95px;
    top: 6%;
    left: 4%;
    --drift-duration: 8s;
    --drift-x: 6px;
    --drift-y: -14px;
    --rot: -4deg;
}

.floating-gif--2 {
    width: 110px;
    height: 80px;
    top: 10%;
    right: 7%;
    --drift-duration: 10s;
    --drift-x: -5px;
    --drift-y: -10px;
    --rot: 3deg;
}

.floating-gif--3 {
    width: 120px;
    height: 85px;
    bottom: 16%;
    left: 3%;
    --drift-duration: 9s;
    --drift-x: 8px;
    --drift-y: -12px;
    --rot: -2deg;
}

.floating-gif--4 {
    width: 105px;
    height: 75px;
    bottom: 12%;
    right: 6%;
    --drift-duration: 11s;
    --drift-x: -6px;
    --drift-y: -16px;
    --rot: 5deg;
}

.floating-gif--5 {
    width: 95px;
    height: 70px;
    top: 52%;
    left: 6%;
    margin-top: -35px;
    --drift-duration: 7s;
    --drift-x: 4px;
    --drift-y: -10px;
    --rot: -3deg;
}

.floating-gif--6 {
    width: 115px;
    height: 82px;
    top: 32%;
    right: 3%;
    --drift-duration: 9.5s;
    --drift-x: -7px;
    --drift-y: -11px;
    --rot: 4deg;
}

.floating-gif--7 {
    width: 100px;
    height: 72px;
    top: 55%;
    right: 8%;
    --drift-duration: 8.5s;
    --drift-x: 5px;
    --drift-y: -13px;
    --rot: -3deg;
}

.floating-gif--8 {
    width: 120px;
    height: 88px;
    bottom: 32%;
    left: 5%;
    --drift-duration: 10.5s;
    --drift-x: -4px;
    --drift-y: -15px;
    --rot: 2deg;
}

.floating-gif--9 {
    width: 108px;
    height: 78px;
    bottom: 6%;
    left: 35%;
    --drift-duration: 7.5s;
    --drift-x: 6px;
    --drift-y: -9px;
    --rot: -5deg;
}

/* ── Keyframes ── */

@keyframes gif-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(var(--rot, 0deg));
    }
    33% {
        transform: translate(var(--drift-x, 5px), var(--drift-y, -12px)) rotate(calc(var(--rot, 0deg) + 1.5deg));
    }
    66% {
        transform: translate(calc(var(--drift-x, 5px) * -0.6), calc(var(--drift-y, -12px) * 0.5)) rotate(calc(var(--rot, 0deg) - 1deg));
    }
}

/* ── Floating Prompt Pills ── */

.floating-prompt {
    position: absolute;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-raised);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    translate: var(--parallax-x, 0) var(--parallax-y, 0);
    will-change: transform, opacity, translate;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                translate 0.3s ease-out;
}

.floating-prompt.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: prompt-drift var(--drift-duration, 7s) ease-in-out infinite;
}

/* Positions — scattered around, filling gaps between the GIFs */
.floating-prompt--1 {
    top: 22%;
    left: 15%;
    --drift-duration: 7s;
    --drift-x: 4px;
    --drift-y: -8px;
    --rot: -1deg;
}

.floating-prompt--2 {
    top: 5%;
    right: 22%;
    --drift-duration: 9s;
    --drift-x: -5px;
    --drift-y: -10px;
    --rot: 2deg;
}

.floating-prompt--3 {
    top: 50%;
    left: 2%;
    margin-top: -10px;
    --drift-duration: 8s;
    --drift-x: 6px;
    --drift-y: -7px;
    --rot: -1deg;
}

.floating-prompt--4 {
    top: 48%;
    right: 2%;
    --drift-duration: 10s;
    --drift-x: -4px;
    --drift-y: -9px;
    --rot: 1deg;
}

.floating-prompt--5 {
    bottom: 20%;
    left: 14%;
    --drift-duration: 8.5s;
    --drift-x: 5px;
    --drift-y: -6px;
    --rot: -2deg;
}

.floating-prompt--6 {
    bottom: 6%;
    right: 18%;
    --drift-duration: 7.5s;
    --drift-x: -3px;
    --drift-y: -8px;
    --rot: 1deg;
}

@keyframes prompt-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(var(--rot, 0deg));
    }
    33% {
        transform: translate(var(--drift-x, 4px), var(--drift-y, -8px)) rotate(calc(var(--rot, 0deg) + 1deg));
    }
    66% {
        transform: translate(calc(var(--drift-x, 4px) * -0.5), calc(var(--drift-y, -8px) * 0.4)) rotate(calc(var(--rot, 0deg) - 0.5deg));
    }
}

/* Responsive: hide on small screens, scale on medium */
@media (max-width: 768px) {
    .floating-gifs {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .floating-gif {
        transform: scale(0.7);
    }
    .floating-prompt--3,
    .floating-prompt--4 {
        display: none;
    }
}

/* ============================================
   Panel Card
   ============================================ */

.panel-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 2;
}

.panel-card.animate-in {
    animation: fade-up 0.7s ease-out 0.15s forwards;
}

/* Panel Tabs */
.panel-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.panel-tab {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-tab:hover {
    color: var(--text-primary);
}

.panel-tab:focus-visible {
    outline: 2px solid rgba(0,0,0,0.1);
    outline-offset: 2px;
}

.panel-tab.active {
    background: var(--bg-base);
    box-shadow: var(--shadow-button-active);
    color: var(--text-primary);
}

/* Panel Status Dot */
.panel-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.panel-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.panel-status-text {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    opacity: 0.5;
}

/* Panel Mini Mascot */
.panel-mascot {
    display: flex;
    justify-content: center;
}

.panel-mascot-body {
    width: 80px;
    height: 50px;
    background: #000000;
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 6px #babecc, -3px -3px 6px #ffffff;
}

.panel-mascot-glare {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 14px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    transform: rotate(12deg);
}

.panel-mascot-face {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.panel-eyes {
    display: flex;
    gap: 8px;
    transition: transform 0.15s ease-out;
}

.panel-eye {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.panel-eye-oval, .panel-eye-path {
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

/* Panel Tab Content */
.panel-tab-content {
    display: none;
    flex-direction: column;
    gap: 1rem;
    animation: panel-fade 0.25s ease-out;
}

.panel-tab-content.active {
    display: flex;
}

@keyframes panel-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-content-heading {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Panel Textarea */
.panel-input-area {
    position: relative;
    flex: 1;
}

.panel-textarea {
    width: 100%;
    min-height: 100px;
    background: var(--bg-base);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    box-shadow: var(--shadow-pressed);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--text-primary);
    resize: none;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.panel-textarea::placeholder {
    color: var(--text-tertiary);
}

.panel-textarea:focus {
    box-shadow: inset 4px 4px 8px rgba(163,177,198, 0.5), inset -4px -4px 8px rgba(255,255,255, 0.6), 0 0 0 2px rgba(0,0,0,0.04);
}

.panel-enhance-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-enhance-btn:hover {
    color: var(--text-primary);
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
}

.panel-enhance-btn:active {
    box-shadow: var(--shadow-button-active);
}

.panel-input-icons {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
}

.panel-input-icons .panel-enhance-btn {
    position: static;
}

/* Generation Status */
.panel-gen-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.25rem;
}

.panel-gen-status.hidden {
    display: none;
}

.panel-gen-status-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.panel-gen-status-text.status-failed {
    color: #ef4444;
}

/* Panel Actions */
.panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.panel-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-base);
    border-radius: 50%;
    box-shadow: var(--shadow-button);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.panel-icon-btn:hover {
    box-shadow: var(--shadow-button-active);
    color: var(--text-primary);
}

.panel-icon-btn:active {
    transform: scale(0.95);
}

.panel-generate-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: var(--bg-base);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-button);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-generate-btn:hover:not(:disabled) {
    box-shadow: var(--shadow-button-active);
}

.panel-generate-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.panel-generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.panel-generate-btn-full {
    width: 100%;
    flex: none;
}

.panel-generate-text {
    /* shown by default */
}

.panel-generate-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-generate-spinner.hidden {
    display: none;
}

.spinner-ring {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Progress Bar */
.panel-progress-track {
    width: 100%;
    height: 5px;
    background: var(--bg-base);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-pressed);
    overflow: hidden;
}

.panel-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: var(--radius-pill);
    background: var(--text-primary);
    transition: width 0.4s ease-out;
}

.panel-progress-fill.status-success {
    background: #22c55e;
}

.panel-progress-fill.status-failed {
    background: #ef4444;
}

/* Effects Grid */
.panel-effects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.panel-effect-card {
    height: 80px;
    border: none;
    background: var(--bg-base);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-button);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-effect-card:hover {
    box-shadow: var(--shadow-button-active);
}

.panel-effect-card:active {
    transform: scale(0.96);
}

/* Clean focus styles for all panel interactive elements */
.panel-card button:focus-visible,
.panel-card textarea:focus-visible {
    outline: 2px solid rgba(0,0,0,0.1);
    outline-offset: 2px;
}

.panel-effect-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-base);
    box-shadow: var(--shadow-icon);
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-effect-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-primary);
    opacity: 0.5;
}

.panel-effect-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    padding: 0 0.25rem;
    line-height: 1.3;
}

/* Motion Templates */
.panel-templates-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0.125rem 0.75rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.panel-templates-scroll::-webkit-scrollbar {
    display: none;
}

.panel-template-pill {
    padding: 0.5rem 0.875rem;
    border: none;
    background: var(--bg-base);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-button);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.panel-template-pill:hover {
    box-shadow: var(--shadow-button-active);
}

.panel-template-pill:active {
    transform: scale(0.95);
}

/* Coming Soon Pages */
.panel-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.875rem;
    padding: 1.5rem 1rem;
    flex: 1;
}

.panel-coming-soon-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-base);
    box-shadow: var(--shadow-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.panel-coming-soon-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.panel-coming-soon-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
    max-width: 260px;
}

.panel-coming-soon-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

/* Panel Footer */
.panel-footer {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
}

.panel-footer-brand {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    opacity: 0.5;
}

.panel-footer-version {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    opacity: 0.4;
}

/* Demo Nudge */
.demo-nudge {
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.demo-nudge.visible {
    opacity: 1;
    transform: translateY(0);
}

.demo-nudge.hidden {
    display: none;
}

.demo-nudge-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}

.demo-nudge-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.demo-nudge-link:hover {
    box-shadow: var(--shadow-button-active);
}

.demo-nudge-link:active {
    transform: scale(0.97);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.cta-content.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.cta-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.cta-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* CTA Mascot */
.cta-mascot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    animation: cta-mascot-bob 2.5s ease-in-out infinite;
}

@keyframes cta-mascot-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.cta-mascot-bubble {
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: 2px 2px 5px #babecc, -2px -2px 5px #ffffff;
    position: relative;
    white-space: nowrap;
}

.cta-mascot-bubble::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--bg-surface);
}

.cta-mascot-body {
    width: 90px;
    height: 56px;
    background-color: #000000;
    border-radius: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 6px #babecc, -3px -3px 6px #ffffff;
}

.cta-mascot-glare {
    position: absolute;
    top: 7px;
    right: 10px;
    width: 10px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: rotate(12deg);
}

.cta-mascot-face {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cta-eyes {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.cta-eye {
    display: block;
}

/* Footer */
.site-footer {
    position: absolute;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    opacity: 0;
    animation: fade-in 1s ease-out forwards;
    animation-delay: 0.5s;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
}

.footer-link {
    color: inherit;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

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

/* ============================================
   Animations Keyframes
   ============================================ */

@keyframes mascot-drop {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes char-enter {
    0% { opacity: 0; transform: translateY(10px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade-up {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    to { opacity: 1; }
}

@keyframes z-float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-10px) translateX(5px); opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes mascot-wiggle {
    0%   { transform: rotate(0deg)   translateX(0);    }
    15%  { transform: rotate(-6deg)  translateX(-2px); }
    30%  { transform: rotate(5deg)   translateX(2px);  }
    45%  { transform: rotate(-4deg)  translateX(-1px); }
    60%  { transform: rotate(3deg)   translateX(1px);  }
    80%  { transform: rotate(-1deg)  translateX(0);    }
    100% { transform: rotate(0deg)   translateX(0);    }
}

.mascot-wiggle {
    animation: mascot-wiggle 0.45s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes eye-loading {
    0%   { transform: scale(1.15); }
    20%  { transform: scaleY(0.3) scaleX(1.1); }
    40%  { transform: scale(1.05); }
    60%  { transform: scaleY(0.35) scaleX(1.05); }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1.15); }
}

.eye-loading {
    animation: eye-loading 1.4s ease-in-out infinite;
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

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

/* ============================================
   Responsive
   ============================================ */

@media (min-width: 768px) {
    .brand-name { font-size: 4.5rem; }
    .tagline { font-size: 1.5rem; }
    .demo-heading { font-size: 2.5rem; }
    .cta-heading { font-size: 2.5rem; }
    .form-container { max-width: 480px; }
    .signup-form { flex-direction: row; }
    .input-wrapper { flex: 1; }
    .cta-button { width: auto; white-space: nowrap; }
}
