/* =============================================================================
   Genisium v3.0 — Premium PWA Styles
   Aurora Dark Theme + Vanta.js + Glass Morphism + GSAP
   ============================================================================= */

:root {
    /* Colors — Aurora Dark */
    --bg-primary: #0a0a12;
    --bg-secondary: #111119;
    --bg-tertiary: #1a1a26;
    --bg-elevated: #1e1e2e;
    --bg-glass: rgba(16, 16, 24, 0.65);
    --bg-glass-strong: rgba(16, 16, 24, 0.85);

    --bg-message-user: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
    --bg-message-user-solid: #d97706;
    --bg-message-assistant: rgba(26, 26, 38, 0.8);

    --text-primary: #e8eaf0;
    --text-secondary: #8b8fa3;
    --text-muted: #52556a;
    --text-bright: #f4f4f8;

    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-soft: rgba(251, 191, 36, 0.12);
    --accent-glow: rgba(251, 191, 36, 0.2);

    --gradient-brand: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
    --gradient-brand-hover: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(251,191,36,0.08) 0%, rgba(245,158,11,0.05) 100%);

    --success: #34d399;
    --error: #f87171;
    --warning: #fbbf24;
    --info: #38bdf8;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(251, 191, 36, 0.15);
    --shadow-glow-strong: 0 0 40px rgba(251, 191, 36, 0.25);

    /* Sizing */
    --header-height: 60px;
    --input-height: 64px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-full: 9999px;

    /* Safe areas (iOS) */
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================================
   Reset & Base
   ============================================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

#app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hidden {
    display: none !important;
}

/* Vanta canvas container */
.vanta-canvas,
.vanta-canvas canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* =============================================================================
   Logo SVG — Animated
   ============================================================================= */

.logo-svg .logo-arc {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawArc 1.5s var(--ease-out) forwards;
}

.logo-svg .logo-bar {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: drawBar 0.6s var(--ease-out) 0.8s forwards;
}

.logo-svg .logo-ring {
    animation: ringPulse 4s ease-in-out infinite;
}

.logo-svg .logo-dot {
    animation: dotPulse 3s ease-in-out infinite;
}

.logo-animated .logo-orbital-1 {
    transform-origin: 24px 24px;
    animation: orbital 8s linear infinite;
}

.logo-animated .logo-orbital-2 {
    transform-origin: 24px 24px;
    animation: orbital 8s linear infinite reverse;
}

@keyframes drawArc {
    to { stroke-dashoffset: 0; }
}

@keyframes drawBar {
    to { stroke-dashoffset: 0; }
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.02); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.9; r: 2; }
    50% { opacity: 1; r: 3; }
}

@keyframes orbital {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =============================================================================
   Landing Page
   ============================================================================= */

#landing-screen {
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-primary);
}

.landing-content {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Nav */
.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-nav-cta {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    backdrop-filter: blur(10px);
}

.btn-nav-cta:hover {
    background: var(--accent-soft);
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--text-bright);
    box-shadow: var(--shadow-glow);
}

/* Simple Landing Header */
.landing-simple-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    z-index: 10;
}

.landing-simple-header .header-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero - Ultra Simple */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 40px;
    min-height: 100vh;
    position: relative;
}

/* Hero Eyes Wrapper */
.hero-eyes-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

/* Background glow - purple */
.hero-eyes-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(124, 58, 237, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    filter: blur(50px);
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Eyes Container */
.hero-eyes-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: eyesFloat 5s ease-in-out infinite;
}

@keyframes eyesFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Eyes - Purple Genisium Style */
.hero-eye {
    width: 140px;
    height: 175px;
    background: radial-gradient(ellipse at 40% 30%, #c4b5fd 0%, #a78bfa 20%, #8b5cf6 50%, #7c3aed 80%, #4c1d95 100%);
    border-radius: 50% 50% 48% 48%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 60px 20px rgba(139, 92, 246, 0.8), 
        0 0 120px 40px rgba(124, 58, 237, 0.5),
        0 0 200px 60px rgba(76, 29, 149, 0.2),
        inset 0 3px 6px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    animation: heroBlink 6s ease-in-out infinite;
}

.hero-eye-right {
    animation-delay: 0.15s;
}

/* Eye highlight */
.hero-eye::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 35% 25%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.15) 35%, transparent 65%);
    border-radius: inherit;
    pointer-events: none;
}

/* Bottom reflection */
.hero-eye::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 10%;
    right: 10%;
    height: 12%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15));
    border-radius: 50%;
    pointer-events: none;
}

/* Pupil */
.hero-pupil {
    width: 42px;
    height: 52px;
    background: radial-gradient(ellipse at 40% 35%, #1e1b4b 0%, #0a0a12 50%, #000 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

/* Pupil highlight */
.hero-pupil::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 15%;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

/* Blink animation */
@keyframes heroBlink {
    0%, 92%, 100% { transform: scaleY(1); }
    96% { transform: scaleY(0.03); }
}

/* Hero actions - just the button */
.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
}

.btn-hero:active {
    transform: translateY(0) scale(0.98);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px 24px 60px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.feature-card {
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease-out);
}

.feature-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    background: rgba(26, 26, 38, 0.6);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 12px;
    color: #a78bfa;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =============================================================================
   Login Screen
   ============================================================================= */

#login-screen {
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: var(--bg-primary);
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 10;
}

.btn-back {
    position: absolute;
    top: -60px;
    left: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    color: var(--text-bright);
    border-color: rgba(124, 58, 237, 0.3);
    background: var(--accent-soft);
}

.login-card {
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px 32px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.05);
    text-align: center;
}

.login-header {
    margin-bottom: 32px;
}

.login-header .logo-svg {
    margin-bottom: 16px;
}

/* Logo flutuante FORA da caixa - letras individuais livres */
.login-logo-letters {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.logo-g {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 56px;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
    display: inline-block;
}

.logo-char {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.3));
    display: inline-block;
}

.login-header h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.username-input-container input,
.pin-input-container input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    background: rgba(26, 26, 38, 0.6);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-bright);
    outline: none;
    transition: all 0.3s var(--ease-out);
}

.pin-input-container input {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 18px;
    letter-spacing: 4px;
}

.username-input-container input:focus,
.pin-input-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-glow);
    background: rgba(30, 30, 46, 0.8);
}

.username-input-container input::placeholder,
.pin-input-container input::placeholder {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: normal;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    background: var(--gradient-brand);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-sm);
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background: var(--gradient-brand-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.btn-primary svg {
    transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.error-text {
    color: var(--error);
    font-size: 13px;
    min-height: 20px;
    font-weight: 500;
}

/* =============================================================================
   Chat Screen
   ============================================================================= */

#chat-screen {
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    background: var(--bg-primary);
}

/* Header */
.chat-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

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

.logo-small {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.02em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.4s var(--ease-out);
    margin-right: 4px;
}

.status-dot.connected {
    background: var(--success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
    animation: statusPulse 3s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(52, 211, 153, 0.3); }
    50% { box-shadow: 0 0 12px rgba(52, 211, 153, 0.6); }
}

.status-dot.connecting {
    background: var(--warning);
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(251, 191, 36, 0.2); }
    50% { opacity: 0.4; box-shadow: 0 0 12px rgba(251, 191, 36, 0.4); }
}

.btn-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.btn-icon:hover {
    background: var(--accent-soft);
    color: var(--text-bright);
}

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

.btn-icon.active {
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.18);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.35) inset;
}

.btn-icon.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-icon.disabled:hover {
    background: transparent;
    color: var(--text-secondary);
}

/* Messages Container */
.messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 16px;
    scroll-behavior: smooth;
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
}

/* Message Bubble */
.message {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: var(--radius);
    word-wrap: break-word;
    position: relative;
    line-height: 1.55;
    opacity: 0;
    transform: translateY(12px);
    animation: msgIn 0.4s var(--ease-out) forwards;
}

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

.message.user {
    align-self: flex-end;
    background: var(--bg-message-user);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.message.assistant {
    align-self: flex-start;
    background: var(--bg-message-assistant);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    backdrop-filter: blur(8px);
}

/* Message Content — Markdown */
.message-content {
    font-size: 14.5px;
}

.message-content p {
    margin-bottom: 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content code {
    background: rgba(124, 58, 237, 0.15);
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.85em;
    color: #c4b5fd;
}

.message.user .message-content code {
    background: rgba(255, 255, 255, 0.18);
    color: #e0e7ff;
}

.message-content pre {
    background: #0d0d15;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 10px 0;
    border: 1px solid var(--border);
}

.message-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.6;
}

.message-content ul, .message-content ol {
    padding-left: 20px;
    margin: 6px 0;
}

.message-content li {
    margin-bottom: 4px;
}

.message-content strong {
    color: var(--text-bright);
    font-weight: 600;
}

.message.user .message-content strong {
    color: white;
}

.message-content h1, .message-content h2, .message-content h3 {
    color: var(--text-bright);
    margin: 12px 0 6px;
    font-weight: 600;
}

.message-content h1 { font-size: 18px; }
.message-content h2 { font-size: 16px; }
.message-content h3 { font-size: 15px; }

.message-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    margin: 8px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.message-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
    font-size: 13px;
}

.message-content th, .message-content td {
    border: 1px solid var(--border);
    padding: 6px 10px;
    text-align: left;
}

.message-content th {
    background: rgba(124, 58, 237, 0.1);
    font-weight: 600;
    color: var(--text-bright);
}

.message-content a {
    color: #a78bfa;
    text-decoration: none;
}

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

.message-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.message.user .message-time {
    color: rgba(255, 255, 255, 0.55);
}

.btn-speak {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    padding: 0;
    opacity: 0;
}

.message.assistant:hover .btn-speak {
    opacity: 1;
}

.btn-speak:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-speak.speaking {
    opacity: 1;
    color: var(--accent);
    animation: speakPulse 1.2s ease-in-out infinite;
}

@keyframes speakPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    background: var(--bg-message-assistant);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    align-self: flex-start;
    max-width: 72px;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
    opacity: 0.6;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.16s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.32s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Input Container */
.input-container {
    padding: 12px 16px 16px;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: rgba(26, 26, 38, 0.6);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    transition: all 0.3s var(--ease-out);
}

.input-wrapper:focus-within {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: rgba(30, 30, 46, 0.8);
}

#message-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 120px;
    line-height: 1.5;
    padding: 4px 0;
}

#message-input::placeholder {
    color: var(--text-muted);
}

.btn-send {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.btn-send:hover:not(:disabled) {
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: scale(1.05);
}

.btn-send:active:not(:disabled) {
    transform: scale(0.92);
}

.btn-send:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--bg-elevated);
    box-shadow: none;
}

/* Attach Button */
.btn-attach {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    flex-shrink: 0;
}
.btn-attach:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* Attach Preview */
.attach-preview {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    overflow-x: auto;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}
.attach-thumb {
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-main);
}
.attach-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}
.attach-thumb.attach-file {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}
.attach-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.attach-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2px 4px;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Voice Wake Indicator */
.voice-wake-indicator {
    color: #22c55e;
    display: flex;
    align-items: center;
    animation: wakeBreath 2s ease-in-out infinite;
}
@keyframes wakeBreath {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Images in messages */
.message-content img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    margin: 8px 0;
    cursor: pointer;
    transition: transform 0.2s;
}
.message-content img:hover {
    transform: scale(1.02);
}

/* Mic Button */
.btn-mic {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    flex-shrink: 0;
}

.btn-mic:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* Voice mode activo (verde) */
.btn-mic.voice-active {
    border-color: #22c55e;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.btn-mic.recording {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    animation: micPulse 1.5s ease-in-out infinite;
}

@keyframes micPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Voice mode: hide text while preparing TTS */
.message.assistant.voice-pending .message-content {
    min-height: 24px;
    color: transparent;
}
.message.assistant.voice-pending .message-content::after {
    content: '🔊 A preparar resposta...';
    color: var(--text-muted);
    font-style: italic;
    font-size: 13px;
    position: absolute;
    left: 16px;
    top: 12px;
}
.message.assistant.voice-pending {
    position: relative;
}

.btn-mic.processing {
    border-color: var(--accent);
    color: var(--accent);
    animation: micSpin 1s linear infinite;
}

@keyframes micSpin {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* =============================================================================
   Welcome Message
   ============================================================================= */

.welcome-message {
    text-align: center;
    padding: 20px 24px 60px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

/* Logo hidden: floating character already provides visual identity */
.welcome-message .welcome-logo {
    display: none;
}

.welcome-message h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.welcome-message p {
    font-size: 14px;
    max-width: 280px;
    line-height: 1.6;
}

.welcome-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    max-width: 380px;
}

.welcome-chip {
    padding: 8px 16px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    white-space: nowrap;
}

.welcome-chip:hover {
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--text-bright);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

/* =============================================================================
   Screen Transitions (GSAP-driven, these are fallback)
   ============================================================================= */

.screen-enter {
    opacity: 0;
    transform: translateY(20px);
}

.screen-exit {
    opacity: 0;
    transform: translateY(-20px);
}

/* =============================================================================
   Scrollbar
   ============================================================================= */

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

/* =============================================================================
   Selection
   ============================================================================= */

::selection {
    background: rgba(124, 58, 237, 0.3);
    color: var(--text-bright);
}

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

@media (max-width: 480px) {
    .message {
        max-width: 90%;
    }

    .welcome-suggestions {
        padding: 0 8px;
    }

    .hero-title {
        font-size: 28px;
    }

    .features {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .feature-card {
        padding: 18px;
    }

    .login-card {
        padding: 32px 24px;
    }
}

@media (min-width: 768px) {
    .messages-container {
        padding: 28px 12%;
    }

    .message {
        max-width: 68%;
    }

    .input-container {
        padding: 12px 12% 20px;
    }

    .hero {
        padding: 100px 40px 60px;
    }

    .features {
        padding: 20px 40px 80px;
    }
}

@media (min-width: 1200px) {
    .messages-container {
        padding: 32px 20%;
    }

    .input-container {
        padding: 12px 20% 20px;
    }

    .message {
        max-width: 60%;
    }

    .hero {
        padding: 120px 60px 80px;
    }
}

/* =============================================================================
   Focus visible (accessibility)
   ============================================================================= */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* =============================================================================
   Modal Overlay (Telegram Pairing, etc.)
   ============================================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modalFadeIn 0.2s ease-out;
}
.modal-overlay.hidden {
    display: none;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    animation: modalSlideUp 0.25s ease-out;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--text-primary);
}

.modal-icon {
    margin-bottom: 12px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 20px;
    line-height: 1.5;
}
.modal-desc code {
    background: var(--bg-main);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-main);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: monospace;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.modal-input:focus {
    border-color: var(--accent);
}

.modal-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.modal-btn:hover {
    opacity: 0.9;
}
.modal-btn:active {
    transform: scale(0.98);
}
.modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pair-status {
    min-height: 20px;
    margin-top: 10px;
    font-size: 0.8rem;
    line-height: 1.4;
}
.pair-status.success {
    color: #22c55e;
}
.pair-status.error {
    color: #ef4444;
}

/* =============================================================================
   Character Stage — Genisium Animated Face
   ============================================================================= */

.character-stage {
    /* Float above chat — no visual box, blends into messages */
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 10;
    height: clamp(200px, 30dvh, 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Dark backdrop at top so scrolled messages don't bleed through */
    background: linear-gradient(to bottom, var(--bg-primary) 30%, rgba(10,10,18,0.7) 60%, transparent 100%);
    overflow: visible;
    pointer-events: none;
    /* Gradient fade — character fades into messages below */
    -webkit-mask-image: linear-gradient(to bottom, black 38%, rgba(0,0,0,0.9) 58%, rgba(0,0,0,0.25) 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 38%, rgba(0,0,0,0.9) 58%, rgba(0,0,0,0.25) 80%, transparent 100%);
}

.char-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Aura glow ring */
.char-aura {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    transition: box-shadow 0.6s ease, background 0.6s ease;
    pointer-events: none;
}

.char-aura.aura-idle {
    box-shadow: 0 0 40px 8px rgba(124, 58, 237, 0.18), 0 0 80px 20px rgba(124, 58, 237, 0.08);
    animation: auraPulse 3s ease-in-out infinite;
}
.char-aura.aura-thinking {
    box-shadow: 0 0 50px 12px rgba(124, 58, 237, 0.35), 0 0 100px 30px rgba(124, 58, 237, 0.12);
    animation: auraPulse 1.2s ease-in-out infinite;
}
.char-aura.aura-listening {
    box-shadow: 0 0 50px 14px rgba(52, 211, 153, 0.3), 0 0 90px 30px rgba(52, 211, 153, 0.1);
    animation: auraRing 1s ease-in-out infinite;
}
.char-aura.aura-speaking {
    box-shadow: 0 0 60px 16px rgba(124, 58, 237, 0.45), 0 0 120px 40px rgba(168, 85, 247, 0.15);
    animation: auraPulse 0.5s ease-in-out infinite;
}
.char-aura.aura-happy {
    box-shadow: 0 0 60px 16px rgba(251, 191, 36, 0.35), 0 0 100px 30px rgba(251, 191, 36, 0.12);
    animation: auraPulse 1.5s ease-in-out infinite;
}
.char-aura.aura-alert {
    box-shadow: 0 0 60px 16px rgba(248, 113, 113, 0.4), 0 0 100px 30px rgba(248, 113, 113, 0.15);
    animation: auraFlash 0.4s ease-in-out infinite;
}
.char-aura.aura-sleeping {
    box-shadow: 0 0 20px 4px rgba(124, 58, 237, 0.06);
    animation: auraPulse 6s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.04); }
}
@keyframes auraRing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@keyframes auraFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Face — transparent so only eyes float in the dark */
.char-face {
    width: 160px;
    height: 160px;
    background: transparent;
    border-radius: 50%;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    transition: transform 0.4s var(--ease-spring);
    animation: charFloat 4s ease-in-out infinite;
}

.char-face.state-sleeping {
    animation: charFloat 8s ease-in-out infinite;
}
.char-face.state-speaking {
    animation: charFloat 2s ease-in-out infinite;
}
.char-face.state-alert {
    animation: charShake 0.3s ease-in-out 2;
}

@keyframes charFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
@keyframes charShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Eyes */
.char-eyes {
    display: flex;
    gap: 16px;
    align-items: center;
}

.char-eye {
    width: 48px;
    height: 60px;
    background: radial-gradient(ellipse at 40% 30%, #fef3c7 0%, #fcd34d 20%, #f59e0b 50%, #b45309 100%);
    border-radius: 50% 50% 45% 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-radius 0.3s ease, height 0.3s ease;
    position: relative;
    /* Strong glow - warm yellow/orange like the reference */
    box-shadow: 
        0 0 30px 8px rgba(251, 191, 36, 0.8), 
        0 0 60px 20px rgba(245, 158, 11, 0.4),
        0 0 100px 40px rgba(180, 83, 9, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

/* Inner gradient overlay for 3D effect */
.char-eye::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 35% 25%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 70%);
    border-radius: inherit;
    pointer-events: none;
}

/* Bottom reflection highlight */
.char-eye::after {
    content: '';
    position: absolute;
    bottom: 8%;
    left: 15%;
    right: 15%;
    height: 20%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15));
    border-radius: 50%;
    pointer-events: none;
}

.char-pupil {
    width: 16px;
    height: 20px;
    background: radial-gradient(ellipse at 40% 35%, #1e1b4b 0%, #0a0a12 60%, #000 100%);
    border-radius: 50%;
    position: relative;
    transition: transform 0.2s ease;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

/* Pupil highlight - small bright dot */
.char-pupil::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 15%;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Mouth */
.char-mouth-wrap {
    width: 60px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.25s ease;
}

.char-mouth {
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, rgba(124,58,237,0.6), rgba(168,85,247,0.8), rgba(236,72,153,0.6));
    border-radius: 0 0 20px 20px;
    transition: height 0.15s ease, border-radius 0.15s ease, transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
    opacity: 0.7;
}

/* Chat screen layout — mobile-first */
#chat-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

#messages-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: clamp(160px, 24dvh, 240px);
}

/* Action pills */
.action-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 12px 10px;
}

.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-full);
    color: #a78bfa;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.action-pill:hover {
    background: rgba(124, 58, 237, 0.22);
    border-color: rgba(124, 58, 237, 0.5);
}

.action-pill:active {
    transform: scale(0.96);
}

.action-pill--subtle {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
}

.action-pill--subtle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* =============================================================================
   RADICAL Landing Page - MEGA LOGO
   ============================================================================= */

/* Landing screen container */
#landing-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Animated background */
#landing-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
    animation: bgPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* MEGA LOGO CONTAINER */
.mega-logo-container {
    position: relative;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Logo glow effect */
.mega-logo-glow {
    position: absolute;
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(251, 191, 36, 0.5) 0%, transparent 70%);
    filter: blur(60px);
    animation: megaGlowPulse 2s ease-in-out infinite;
}

@keyframes megaGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* MEGA LOGO SVG */
.mega-logo {
    width: 280px;
    height: 95px;
    position: relative;
    animation: megaLogoBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.8));
}

@keyframes megaLogoBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-15px) scale(1.02); }
    50% { transform: translateY(-5px) scale(1); }
    75% { transform: translateY(-20px) scale(1.03); }
}

/* Animated G letter */
.mega-g {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawMegaG 2s ease-out forwards, megaGGlow 1.5s ease-in-out infinite 2s;
}

@keyframes drawMegaG {
    to { stroke-dashoffset: 0; }
}

@keyframes megaGGlow {
    0%, 100% { stroke-width: 8; filter: drop-shadow(0 0 10px rgba(251, 191, 36, 1)); }
    50% { stroke-width: 10; filter: drop-shadow(0 0 25px rgba(251, 191, 36, 1)); }
}

/* Animated dot */
.mega-dot {
    animation: megaDotPulse 1s ease-in-out infinite, megaDotMove 2s ease-in-out infinite;
}

@keyframes megaDotPulse {
    0%, 100% { r: 10; opacity: 1; }
    50% { r: 14; opacity: 0.7; }
}

@keyframes megaDotMove {
    0%, 100% { cx: 100; }
    50% { cx: 105; }
}

/* Eyes area */
.landing-eyes-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
}

/* Background glow - amber */
.landing-eyes-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.5) 0%, rgba(245, 158, 11, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    animation: eyesGlowPulse 3s ease-in-out infinite;
    filter: blur(50px);
}

@keyframes eyesGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Eyes Container */
.landing-eyes {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: eyesFloat 4s ease-in-out infinite;
}

@keyframes eyesFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Big amber/golden eyes */
.landing-eye {
    width: 130px;
    height: 160px;
    background: radial-gradient(ellipse at 40% 30%, #fffbeb 0%, #fcd34d 20%, #fbbf24 45%, #f59e0b 75%, #d97706 100%);
    border-radius: 50% 50% 48% 48%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 50px 15px rgba(251, 191, 36, 0.9), 
        0 0 100px 35px rgba(245, 158, 11, 0.6),
        inset 0 4px 8px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    animation: landingBlink 5s ease-in-out infinite;
}

.landing-eye-right {
    animation-delay: 0.15s;
}

/* Eye highlight */
.landing-eye::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 35% 25%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.2) 30%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

/* Pupil */
.landing-pupil {
    width: 38px;
    height: 48px;
    background: radial-gradient(ellipse at 40% 35%, #1e1b4b 0%, #0a0a12 50%, #000 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Pupil highlight */
.landing-pupil::after {
    content: '';
    position: absolute;
    top: 12%;
    right: 15%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Blink animation */
@keyframes landingBlink {
    0%, 92%, 100% { transform: scaleY(1); }
    96% { transform: scaleY(0.03); }
}

/* Bottom bar with button */
.landing-bottom-bar {
    padding: 20px 30px 30px;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

/* MEGA BUTTON */
.btn-mega {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 56px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
    color: #0a0a12;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 25px rgba(251, 191, 36, 0.5), 0 0 50px rgba(251, 191, 36, 0.3);
    letter-spacing: -0.01em;
    animation: megaButtonPulse 2s ease-in-out infinite;
}

@keyframes megaButtonPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 25px rgba(251, 191, 36, 0.5), 0 0 50px rgba(251, 191, 36, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 6px 35px rgba(251, 191, 36, 0.7), 0 0 70px rgba(251, 191, 36, 0.5); }
}

.btn-mega:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.6), 0 0 80px rgba(251, 191, 36, 0.4);
}

.btn-mega:active {
    transform: translateY(0) scale(0.95);
}

.btn-mega svg {
    transition: transform 0.3s var(--ease-out);
}

.btn-mega:hover svg {
    transform: translateX(5px);
}
