/* Auto-skip idle frames on looping demo videos by jumping to next marker */
.auto-skip-idle { position: relative; }
#space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: #0a0a0a;
}

/* Mobile-first performance tweaks */
@media (max-width: 900px) {
    /* Hide heavy video background on mobile */
    #space-background .bg-video { display: none !important; }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: #fff;
    background-color: #0a0a0a;
    overflow-x: hidden;
    position: relative;
}

.logo-header {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.logo-header .logo-wordmark {
    height: 32px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
}

.logo-header .logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: rgba(20, 20, 22, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-header {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.glass-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 16px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: inherit;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.glass-button.primary {
    background: rgba(30, 64, 175, 0.2);
    border-color: rgba(30, 64, 175, 0.3);
    color: #fff;
}

.glass-button.primary:hover {
    background: rgba(30, 64, 175, 0.3);
    border-color: rgba(30, 64, 175, 0.4);
}

.hero-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.6'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.08;
    z-index: -1;
    mix-blend-mode: screen;
}

header {
    padding: 20px 50px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #a0a0a0;
    transition: color 0.3s;
}

nav a:hover {
    color: #fff;
}

.hero {
    position: relative;
    text-align: center;
    padding: 96px 20px 0;
    background-color: transparent;
    min-height: 48vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Subtle animated color texture behind hero */
.hero .bg-art {
    position: absolute;
    inset: -10% -10% 0 -10%;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(40% 30% at 20% 20%, rgba(59,130,246,0.12), transparent 60%),
        radial-gradient(35% 28% at 80% 25%, rgba(236,72,153,0.12), transparent 60%),
        radial-gradient(50% 40% at 50% 70%, rgba(34,197,94,0.10), transparent 60%);
    filter: blur(40px) saturate(110%);
    animation: bgDrift 18s ease-in-out infinite alternate;
}

/* Normalize standalone demo video sizes */
.debug-section video,
.fix-ai-section video {
    max-width: 720px;
}

@keyframes bgDrift {
    0%   { transform: translateY(0) scale(1); opacity: 0.7; }
    50%  { transform: translateY(-10px) scale(1.02); opacity: 0.85; }
    100% { transform: translateY(6px) scale(0.98); opacity: 0.7; }
}

.hero h1, .hero p, .hero .demo-flow, .hero .download-btn {
    position: relative;
    z-index: 1001;
}

.hero h1 {
    font-size: 64px;
    margin: 10px 0 10px 0;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
}

.hero p {
    font-size: 22px;
    margin: 0 0 16px 0;
    color: #d1d5db;
    line-height: 1.4;
    max-width: 600px;
}

/* Auth flow demo styles removed */

.demo-flow {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    min-height: 400px;
    max-height: 600px;
    overflow: visible;
}

.glass-ui {
    display: inline-block;
    background: rgba(10, 10, 10, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f0f0f0;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    transition: all 0.5s ease;
    position: relative;
    width: fit-content;
    max-width: 480px;
    transform: translateY(10px);
    opacity: 0;
}

.glass-ui.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.glass-ui.fade-out {
    opacity: 0.3;
    transform: translateY(-30px) scale(0.7);
    pointer-events: none;
    max-width: 200px;
    margin-bottom: -40px;
}

.bubble-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    width: 100%;
    justify-content: space-between;
}

.bubble-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.workflow-bubble {
    transition: all 0.6s ease;
}

.workflow-bubble.clickable {
    cursor: pointer;
}

.workflow-bubble.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.draft-preview {
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, margin-top 0.6s ease, padding-top 0.6s ease;
    margin-top: 0;
    padding-top: 0;
}

.workflow-bubble.expanded {
    max-width: 480px;
    width: fit-content;
}

.workflow-bubble.expanded .draft-preview {
    max-height: 400px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    overflow-y: auto;
}

.original-email {
    margin-bottom: 12px;
    color: #a0a0a0;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 24px;
}

.original-email.collapsed .email-header,
.original-email.collapsed .email-content {
    display: none;
}

.profile-link-static {
    color: inherit;
    text-decoration: none;
}

.profile-trigger {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.profile-preview {
    position: absolute;
    z-index: 100;
    width: 280px;
    padding: 16px;
    background: rgba(10, 10, 10, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-radius: 12px;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    display: none;
}

.profile-preview.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    display: block;
}

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

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #1e40af;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.profile-details {
    text-align: left;
}

.profile-name {
    font-size: 16px;
    font-weight: 600;
    color: #f0f0f0;
}

.profile-title {
    font-size: 13px;
    color: #c0c0c0;
    margin-top: 2px;
}

.profile-bio {
    font-size: 12px;
    color: #a0a0a0;
    margin-top: 8px;
    line-height: 1.4;
}



.original-email.collapsed .email-header-collapsed {
    display: flex;
    align-items: center;
    gap: 8px;
}

.original-email:not(.collapsed) .email-header-collapsed {
    display: none;
}

.expand-icon {
    font-size: 10px;
    color: #a0a0a0;
    transition: transform 0.3s ease;
}

.original-email:not(.collapsed) .expand-icon {
    transform: rotate(90deg);
}

.email-header-collapsed {
    font-size: 12px;
    color: #a0a0a0;
    font-weight: 500;
}

.email-header {
    font-size: 11px;
    color: #a0a0a0;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.draft-reply .email-header {
    color: #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.email-content {
    font-size: 12px;
    color: #a0a0a0;
}

.draft-reply {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin: 0 12px 12px;
    color: #e8e8e8;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
}

.draft-reply.collapsed .email-header,
.draft-reply.collapsed .email-content {
    display: none;
}

.draft-reply.collapsed .reply-header-collapsed {
    display: flex;
    align-items: center;
    gap: 8px;
}

.draft-reply:not(.collapsed) .reply-header-collapsed {
    display: none;
}

.reply-header-collapsed {
    font-size: 12px;
    color: #e0e0e0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.draft-editor {
    outline: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    transition: all 0.2s ease;
    cursor: text;
    position: relative;
    min-height: 180px;
    background: transparent;
    border: none;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    padding: 8px 12px;
    color: #f0f0f0;
}

.draft-editor:focus {
    background: rgba(20, 184, 166, 0.05);
    border-left-color: rgba(20, 184, 166, 0.6);
    box-shadow: none;
}

.bubble-content .send-option {
    display: none;
    margin-left: auto;
}

.workflow-bubble.expanded .bubble-content .send-option {
    display: flex;
}

.draft-editor:before {
    content: attr(placeholder);
    color: #a0a0a0;
    pointer-events: none;
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.draft-editor:empty:before {
    opacity: 1;
}

.send-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.send-option:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.3);
}

.send-text {
    font-size: 13px;
    font-weight: 500;
    color: #e8e8e8;
}

.send-key {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 11px;
    color: #ffffff;
    font-weight: 500;
}



.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: currentColor;
    margin-left: 2px;
    animation: blink 1s infinite;
    color: #1e40af;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.drafting-text {
    color: #1e40af;
    animation: draft-glow 1.5s ease-in-out infinite alternate;
}

@keyframes draft-glow {
    0% { 
        color: #1e40af;
    }
    100% { 
        color: #3b82f6;
    }
}

.draft-complete {
    color: #10b981;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    animation: complete-pulse 0.6s ease-out;
}

@keyframes complete-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.see-more-pill {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    margin-top: 20px;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

.see-more-pill:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.see-more-pill .arrow {
    font-size: 14px;
    animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(4px);
    }
    60% {
        transform: translateY(2px);
    }
}



.description {
    padding: 60px 0;
    margin-top: 20px;
    /* background-color: #fff; */ /* Removed white background */
    /* color: #000; */ /* Removed black text color */
    text-align: center;
}

/* Add Mechanism Video Section */
.add-mechanism-section {
    padding: 0 16px 40px;
    margin-top: 0;
    text-align: center;
    background: transparent;
}

.add-mechanism-section .container {
    max-width: 1500px;
    margin: 0 auto;
}

.add-mechanism-section h2 {
    font-size: 42px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.add-mechanism-section p {
    font-size: 20px;
    color: #c9c9d3;
    margin-bottom: 0;
    line-height: 1.5;
}

.add-mechanism-section .demo-card {
    background: transparent;
    border: none;
    padding: 0;
}

.add-mechanism-section video {
    border: 1px solid rgba(255,255,255,0.08);
}

/* Landing screenshot */
.screenshot-section { padding: 0 16px 6px; text-align: center; margin-top: 0; margin-bottom: 44px; }
.screenshot-section .container { max-width: 1400px; margin: 0 auto; }
.screenshot-img { width: 100%; max-width: 1280px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 14px 48px rgba(0,0,0,0.5); }

/* AI‑Powered Development video grid */
.development-demos .demo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}
.development-demos .demo-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px;
    text-align: left;
}
.development-demos video {
    width: 100%;
    border-radius: 8px;
    display: block;
}
.development-demos h3 { font-size: 18px; margin: 10px 0 6px; }
.development-demos p { font-size: 14px; color: #b8b8b8; margin: 0; }

@media (min-width: 900px) {
    .development-demos .demo-grid { grid-template-columns: repeat(3, 1fr); }
}

.description .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.description h2 {
    font-size: 48px;
    font-weight: 500;
    color: #e0e0e0; /* Changed text color for dark background */
}

.description p {
    font-size: 18px;
    line-height: 1.6;
    color: #a0a0a0; /* Changed text color for dark background */
}

.buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s;
}

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

.btn-primary {
    background-color: #fff; /* Inverted for dark mode */
    color: #000;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
} 

.waitlist-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 40px auto 0;
}

.waitlist-form input {
    flex-grow: 1;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.waitlist-form input:focus {
    border-color: rgba(30, 64, 175, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.waitlist-form .btn-primary {
    flex-shrink: 0;
}

.waitlist-message {
    margin-top: 20px;
    font-size: 14px;
    height: 20px;
}

footer {
    padding: 16px 16px; /* reduced height */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #121212;
}

.footer-links {
    margin-bottom: 10px; /* tighter */
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: #a0a0a0;
    font-size: 12px;
}

.feature-highlight {
    padding: 60px 0;
    text-align: center;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-highlight h2 {
    font-size: 48px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 16px;
}

.feature-highlight p {
    font-size: 18px;
    color: #a0a0a0;
    margin-bottom: 30px;
}

kbd {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 8px;
    font-family: monospace;
    font-size: 14px;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.spotlight-demo {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    min-height: 280px;
    max-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    overflow: visible;
}

.demo-trigger {
    margin-bottom: 40px;
}

.key-combo {
    display: inline-block;
    background: rgba(20, 20, 20, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 28px;
    font-size: 24px;
    font-weight: 600;
    color: #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 20px 0;
}

.key-combo:hover {
    background: rgba(30, 30, 30, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

h2 .key-combo {
    display: inline-block;
    background: rgba(20, 20, 20, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 20px;
    font-weight: 600;
    color: #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-left: 16px;
    vertical-align: middle;
}

h2 .key-combo:hover {
    background: rgba(30, 30, 30, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.spotlight-mock {
    background: rgba(10, 10, 10, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spotlight-mock.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.spotlight-input-mock {
    margin-bottom: 0;
}

.spotlight-input-mock input {
    width: 100%;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotlight-input-mock input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.detection-banner {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.1s ease;
    opacity: 0;
    transform: translateY(-10px);
    display: none;
}

.detection-banner.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.detection-banner.meeting-type {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.detection-banner.date-type {
    background: rgba(30, 64, 175, 0.1);
    border-color: rgba(147, 51, 234, 0.3);
}

.detection-content {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.detection-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detection-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.detection-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detection-title {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
}

.detection-description {
    font-size: 12px;
    color: #a0a0a0;
}

.detection-action {
    font-size: 12px;
    color: #a0a0a0;
    font-style: italic;
}



.spotlight-footer-mock {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.spotlight-footer-mock .tip {
    font-size: 12px;
    color: #a0a0a0;
    background: rgba(10, 10, 10, 0.5);
    padding: 4px 8px;
    border-radius: 4px;
} 

.created-items {
    margin-top: 30px;
    display: none;
    width: 100%;
    max-width: 600px;
}

.created-items h4 {
    color: #e0e0e0;
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
}

.item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.item-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
}

.item-title {
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    flex-shrink: 1;
    min-width: 0;
}

.item-time {
    font-size: 12px;
    color: #1e40af;
    opacity: 0.8;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Reminder demo styles removed - section was deleted */

.email-workflow {
    background: transparent;
}

.email-workflow .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.meeting-demo {
    background: transparent;
    text-align: center;
}

.meeting-flow {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 450px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    overflow: visible;
}

.meeting-demo-container {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    align-items: flex-start;
    justify-content: center;
}

.transcript-container {
    background: rgba(10, 10, 10, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 500px;
    transition: all 0.4s ease;
    flex: 1;
}

.transcript-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.transcript-icon {
    font-size: 16px;
}

.transcript-title {
    font-size: 14px;
    font-weight: 600;
    color: #f0f0f0;
    flex: 1;
    text-align: left;
}

.transcript-status {
    font-size: 12px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.transcript-status:before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-recording 2s infinite;
}

.transcript-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
    text-align: left;
}

.transcript-content .meeting-participants {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.transcript-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.5s ease;
    transform: translateY(10px);
    line-height: 1.4;
}

.transcript-line.visible {
    opacity: 1 !important;
    transform: translateY(0);
}

.speaker {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 13px;
    min-width: 80px;
    flex-shrink: 0;
}

.speaker .profile-trigger {
    color: inherit;
    text-decoration: none;
}

.speaker .profile-trigger:hover {
    color: #fff;
}

.text {
    color: #e0e0e0;
    font-size: 13px;
    flex: 1;
    text-align: left;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background: #1e40af;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

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

.typing-text {
    font-size: 12px;
    color: #1e40af;
    font-style: italic;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}



/* Meeting context styles removed - no longer needed */

.recording-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-recording 2s infinite;
}

@keyframes pulse-recording {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Meeting title styles removed - no longer needed */

.meeting-participants {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.participant {
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 11px;
    color: #c0c0c0;
}

.participant .profile-trigger {
    color: inherit;
    text-decoration: none;
}

.participant .profile-trigger:hover {
    color: #fff;
}

.meeting-tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    flex: 1;
}

.meeting-task {
    background: rgba(10, 10, 10, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    transform: translateY(10px);
}

.meeting-task.visible {
    opacity: 1 !important;
    transform: translateY(0);
}

.task-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #f0f0f0;
}

.task-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.task-text {
    flex: 1;
    text-align: left;
}

#irbReminderFlow {
    max-width: 500px;
}

#irbDraftEditor {
    min-height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }
    
    /* Add Mechanism Video Section Mobile */
    .add-mechanism-section {
        padding: 28px 16px 40px;
    }
    
    .add-mechanism-section h2 {
        font-size: 28px;
    }
    
    .add-mechanism-section p {
        font-size: 17px;
    }
    
    .add-mechanism-section video {
        max-width: 100%;
    }
    
    .screenshot-section { margin-top: 0; margin-bottom: 24px; }

    /* Add comfortable side padding on mobile */
    .container { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
    /* Override inline H1 sizing for small screens */
    .hero h1 { font-size: clamp(36px, 9vw, 44px) !important; line-height: 1.08 !important; }
    .hero p { font-size: 18px; }
    
    .spotlight-demo,
    .meeting-flow {
        min-height: 250px;
        max-height: 350px;
        padding: 15px 0;
    }
    
    .spotlight-mock {
        max-width: 100%;
        padding: 16px;
        margin: 0 10px;
        gap: 10px;
    }
    
    .detection-banner {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .detection-content {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .detection-info {
        gap: 8px;
    }
    
    .detection-icon {
        font-size: 18px;
    }
    
    .detection-title {
        font-size: 13px;
    }
    
    .detection-description {
        font-size: 11px;
    }
    
    .detection-action {
        font-size: 11px;
        align-self: flex-end;
    }
    
    .meeting-demo-container {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
    }
    
    .demo-flow {
        min-height: 300px;
        max-height: 450px;
    }
    
    .feature-highlight { min-height: auto !important; padding: 28px 0; }
    
    .description {
        padding: 60px 0;
        margin-top: 20px;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .transcript-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .transcript-header-left {
        align-self: flex-start;
    }
    
    .meeting-tasks {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .task-content {
        font-size: 13px;
    }
    
    .workflow-bubble.expanded .draft-preview {
        max-height: 300px;
    }
    
    .transcript-container {
        max-width: 100%;
        padding: 16px;
        margin: 0;
    }
    
    .transcript-content {
        max-height: 250px;
    }
    
    .speaker {
        min-width: 70px;
        font-size: 12px;
    }
    
    .text {
        font-size: 12px;
    }
    
    /* Auth flow demo responsive styles removed */
    
    .floating-header {
        top: 10px;
        right: 10px;
    }
    
    .header-content {
        padding: 6px 8px;
        gap: 8px;
    }
    
    .glass-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .created-items {
        margin-top: 20px;
        margin-left: 10px;
        margin-right: 10px;
        max-width: calc(100% - 20px);
    }
    
    .created-items h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .item {
        padding: 10px 12px;
        margin-bottom: 6px;
    }
    
    .item-title {
        font-size: 13px;
    }
    
    .item-time {
        font-size: 11px;
    }
}

/* New Lapis-specific styles */
.download-btn {
    font-size: 18px;
    padding: 16px 32px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.agents-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.agent-column h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.godot-section h3 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.agent-column p {
    font-size: 22px;
    line-height: 1.6;
    color: #b8b8b8;
    margin-bottom: 16px;
}

.godot-demo {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.plugin-preview {
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    width: 100%;
}

.godot-header {
    background: #478cbf;
    color: white;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    margin: -20px -20px 16px -20px;
}

.plugin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plugin-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 6px;
    color: #e0e0e0;
    border-left: 3px solid #478cbf;
}

.download-section {
    text-align: center;
    margin-top: 40px;
}

.btn.large {
    font-size: 20px;
    padding: 20px 40px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.apple-logo {
    width: 14px;
    height: 17px;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.github-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.github-icon:hover {
    opacity: 1;
}

.platform-links {
    margin-top: 20px;
}

.platform-note {
    color: #a0a0a0;
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
}

.platforms {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.platform {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #e0e0e0;
    border: 1px solid transparent;
}

.platform.available {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
    font-weight: 600;
}

.platform.coming-soon {
    background: rgba(255, 255, 255, 0.05);
    color: #a0a0a0;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px; /* tighter */
}

.tech-note {
    color: #a0a0a0;
    font-size: 14px;
}

.footer-link {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-link:hover {
    color: #fff;
}

/* Responsive updates for new sections */
@media (max-width: 768px) {
    .agents-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .agent-column h2 {
        font-size: 28px;
    }
    
    .godot-section h3 {
        font-size: 24px;
        margin-top: 30px;
    }
    
    .agent-column p {
        font-size: 19px;
    }
    
    .download-btn {
        font-size: 16px;
        padding: 14px 28px;
    }
    
    .btn.large {
        font-size: 18px;
        padding: 16px 32px;
        width: 100%;
        max-width: 300px;
    }
    
    .apple-logo {
        width: 12px;
        height: 15px;
    }
    
    .platforms {
        flex-direction: column;
        align-items: center;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left, .footer-right {
        justify-content: center;
    }
} 

/* Normalize header button sizes (GitHub/Discord/Download) */
.floating-header .glass-button { padding: 8px 14px; font-size: 13px; line-height: 1; }
.floating-header .glass-button svg { width: 14px; height: 14px; margin-right: 6px; }

/* Discord icon appears smaller due to glyph padding; bump size slightly for visual parity */
.floating-header .discord-icon { width: 16px; height: 16px; vertical-align: middle; }
/* Normalize Discord glyph to appear optically equal to GitHub at same size */
.floating-header .discord-icon,
footer .footer-link .discord-icon {
    width: 16px;
    height: 16px;
}

/* Pull hero download button closer */
.hero .download-btn { margin-top: 8px !important; }

/* AI 3D Generation Layout Styles */
.ai-3d-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1400px;
    margin: 40px auto 0;
}



/* 3D Viewer Section */
.viewer-section {
    background: rgba(10, 10, 10, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.viewer-header h3 {
    margin: 0;
    color: #f0f0f0;
    font-size: 18px;
}

.viewer-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.model-viewer {
    height: 400px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.viewer-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #a0a0a0;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.viewer-placeholder h4 {
    margin: 0 0 8px 0;
    color: #e0e0e0;
    font-size: 18px;
}

.viewer-placeholder p {
    margin: 0;
    font-size: 14px;
}

.viewer-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.viewer-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.model-info {
    margin: 0;
    font-size: 12px;
    color: #a0a0a0;
    text-align: center;
}

.generation-time {
    font-size: 11px;
    color: #3b82f6;
    margin-top: 4px;
}

/* Chat Section */
.chat-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-container {
    background: rgba(10, 10, 10, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    height: 560px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3 {
    margin: 0;
    color: #f0f0f0;
    font-size: 18px;
}

.user-session {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a0a0a0;
}

.session-id {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: #e0e0e0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0 4px;
    margin-bottom: 16px;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: messageAppear 0.3s ease-out;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-message .message-avatar {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.assistant-message .message-avatar {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

.message-content {
    flex: 1;
    color: #e0e0e0;
    line-height: 1.4;
}

.message-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

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

.message-examples {
    font-size: 13px !important;
    color: #a0a0a0 !important;
    font-style: italic;
}

.message-examples em {
    color: #3b82f6;
    font-style: normal;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.generation-status {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.status-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.progress-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.status-text {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 500;
}

.chat-input-area {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.model-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
}

/* Generation Mode Tabs */
.generation-mode-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-tab {
    flex: 1;
    background: none;
    border: none;
    color: #a0a0a0;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.mode-tab.active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.mode-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

/* Generation Mode Content */
.generation-mode {
    display: none;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.generation-mode.active {
    display: flex !important;
}

/* Image Upload Zone */
.image-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-upload-zone:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.05);
}

.upload-text {
    color: #a0a0a0;
    font-size: 14px;
}

.upload-preview {
    position: absolute;
    inset: 4px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.8);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Texture Mode Inputs */
#texture-mode textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 36px;
}

#texture-mode textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* Session Actions */
.session-actions {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.current-model-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.model-label {
    color: #a0a0a0;
}

.model-name {
    color: #22c55e;
    font-weight: 600;
}

.model-quality {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    flex: 1;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-btn.secondary {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.action-btn.secondary:hover {
    background: rgba(59, 130, 246, 0.2);
}

/* Edit Section */
.edit-section, .add-texture-section {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.edit-header, .texture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #3b82f6;
}

.cancel-edit, .cancel-texture {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cancel-edit:hover, .cancel-texture:hover {
    background: rgba(239, 68, 68, 0.1);
}

.edit-input-container, .texture-input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#edit-input, #texture-only-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 44px;
}

/* Multiview Options */
.multiview-options {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Compact Time Calculator in Header */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-calculator-compact {
    position: relative;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-calculator-compact:hover {
    background: rgba(245, 158, 11, 0.15);
}

.time-calculator-compact .time-value {
    font-size: 13px;
    font-weight: 600;
    color: #f59e0b;
    font-family: monospace;
}

.time-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    white-space: nowrap;
}

.time-calculator-compact:hover .time-tooltip {
    opacity: 1;
}

.time-breakdown-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-breakdown-compact span {
    font-size: 11px;
    color: #d97706;
}

.reset-chat-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.reset-chat-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    min-height: 44px;
    max-height: 120px;
    transition: all 0.2s ease;
}

#chat-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.send-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    min-height: 44px;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.send-icon {
    font-size: 16px;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #a0a0a0;
}

.rate-limit-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-counter {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
}

.char-counter {
    font-family: monospace;
}

/* Generation History */
.generation-history {
    background: rgba(10, 10, 10, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-header h4 {
    margin: 0;
    color: #e0e0e0;
    font-size: 16px;
}

.clear-history {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.clear-history:hover {
    background: rgba(239, 68, 68, 0.1);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.history-item-prompt {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 2px;
}

.history-item-time {
    color: #a0a0a0;
    font-size: 11px;
}

/* Error Message */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.error-content {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 16px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.error-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.error-text {
    flex: 1;
}

.error-text strong {
    color: #fca5a5;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.error-text p {
    color: #e0e0e0;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.error-close {
    background: none;
    border: none;
    color: #fca5a5;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Responsive Design for AI 3D */
@media (max-width: 1024px) {
    .ai-3d-layout {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .ai-3d-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 24px;
    }
    
    .model-viewer {
        height: 300px;
    }
    
    .chat-container {
        height: 500px;
    }
}