/* ============================================
   ORCA DESIGN SYSTEM - GRAYSCALE + PURPLE/INDIGO + NEON PINK
   ============================================ */
:root {
    /* Grayscale - Dark Theme Foundation */
    --orca-black: #0a0a0a;            /* Near Black — Primary background */
    --orca-gray-900: #18181b;         /* Very Dark Gray — Surface background */
    --orca-gray-800: #27272a;         /* Dark Gray — Elevated surfaces */
    --orca-gray-700: #3f3f46;         /* Medium Dark Gray — Borders, dividers */
    --orca-gray-600: #52525b;         /* Medium Gray — Inactive elements */
    --orca-gray-500: #71717a;         /* Mid Gray — Secondary text */
    --orca-gray-400: #a1a1aa;         /* Light Gray — Muted text */
    --orca-gray-300: #d4d4d8;         /* Lighter Gray — Subtle text */
    --orca-gray-200: #e4e4e7;         /* Very Light Gray — Rare use */
    --orca-white: #fafafa;            /* Off White — Primary text, highlights */
    
    /* Purple/Indigo Accents - Interactive Elements */
    --orca-indigo: #6366f1;           /* Indigo — Primary interactive accent */
    --orca-violet: #8b5cf6;           /* Violet — Hover states, gradients */
    --orca-purple-dark: #5b21b6;      /* Deep Purple — Pressed states */
    
    /* Neon Pink Accents - Digital/Matrix Aesthetic */
    --orca-neon-pink: #ff007f;        /* Hot Pink — Neon digital accent */
    --orca-neon-pink-hover: #ff33a1;  /* Pink Hover — Lighter for interactions */
    --orca-neon-pink-glow: rgba(255, 0, 127, 0.3); /* Pink Glow — For shadows/borders */
    
    /* Functional Colors */
    --success: #059669;               /* Confirmations, complete states */
    --warning: #D97706;               /* Processing, in-progress */
    --error: #DC2626;                 /* Errors, destructive actions */
    
    /* Font Weights - Only 2 */
    --font-regular: 400;
    --font-semibold: 600;
    
    /* Type Scale - 8px base */
    --text-xs: 12px;
    --text-sm: 14px; 
    --text-base: 16px;
    --text-lg: 20px;
    --text-xl: 28px;
    --text-2xl: 40px;
    --text-3xl: 56px;
    
    /* Line Heights */
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;
    
    /* Spacing System - 8px Grid */
    --space-1: 4px;    --space-2: 8px;     --space-3: 12px;   --space-4: 16px;
    --space-5: 20px;   --space-6: 24px;    --space-8: 32px;   --space-12: 48px;
    --space-16: 64px;  --space-20: 80px;   --space-24: 96px;  --space-32: 128px;
    
    /* Semantic Aliases */
    --orca-text-primary: var(--orca-white);
    --orca-text-secondary: var(--orca-gray-400);
    --orca-text-muted: var(--orca-gray-500);
    --orca-text-subtle: var(--orca-gray-600);
    --orca-surface-primary: var(--orca-black);
    --orca-surface-card: var(--orca-gray-900);
    --orca-surface-panel: var(--orca-gray-900);
    --orca-surface-elevated: var(--orca-gray-800);
    --orca-border-subtle: rgba(255, 255, 255, 0.05);
    --orca-border-default: rgba(255, 255, 255, 0.08);
    --orca-border-strong: rgba(255, 255, 255, 0.12);
    --orca-border-emphasis: rgba(255, 255, 255, 0.20);
    
    /* Legacy Variable Mappings */
    --orca-charcoal: var(--orca-gray-900);
    --orca-slate: var(--orca-gray-800);
    --orca-pearl: var(--orca-gray-300);
    --orca-mist: var(--orca-gray-400);
}

/* Auto-skip idle frames on looping demo videos by jumping to next marker */
.auto-skip-idle { position: relative; }

/* Mobile-first performance tweaks */
@media (max-width: 900px) {
    
    /* Optimize animations for mobile performance */
    .hero .bg-art {
        animation: none !important;
        filter: blur(20px) saturate(120%);
    }
    
    /* Reduce backdrop blur for better mobile performance */
    .glass-ui, .glass-button {
        backdrop-filter: blur(8px) saturate(120%);
        -webkit-backdrop-filter: blur(8px) saturate(120%);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: var(--orca-text-primary);
    background-color: var(--orca-black);
    overflow-x: hidden;
    position: relative;
    /* Improve mobile scrolling performance */
    -webkit-overflow-scrolling: touch;
    /* Prevent text size adjustment on mobile */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

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

.logo-header .logo-wordmark {
    height: 48px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(10, 10, 10, 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: var(--orca-text-primary);
    text-decoration: none;
    background: var(--orca-surface-primary);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--orca-border-strong);
    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: var(--orca-surface-primary);
    border: 1px solid var(--orca-border-default);
    border-radius: 10px;
    padding: 8px 16px;
    color: var(--orca-text-secondary);
    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: var(--orca-border-default);
    border-color: var(--orca-border-strong);
    transform: translateY(-1px);
}

.glass-button.primary {
    background: rgba(255, 0, 127, 0.1);
    border-color: var(--orca-neon-pink);
    color: var(--orca-text-primary);
    box-shadow: 0 0 12px var(--orca-neon-pink-glow);
}

.glass-button.primary:hover {
    background: rgba(255, 0, 127, 0.2);
    border-color: var(--orca-neon-pink-hover);
    box-shadow: 0 0 20px var(--orca-neon-pink-glow);
}

.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: var(--orca-text-muted);
    transition: color 0.3s;
}

nav a:hover {
    color: var(--orca-text-primary);
}

.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;
}

/* Prominent animated color texture behind hero - fallback */
.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(37, 99, 235, 0.15), transparent 60%),
        radial-gradient(35% 28% at 80% 25%, rgba(10, 15, 31, 0.2), transparent 60%),
        radial-gradient(50% 40% at 50% 70%, rgba(5, 150, 105, 0.15), transparent 60%);
    filter: blur(40px) saturate(150%);
    animation: bgDrift 18s ease-in-out infinite alternate;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero .bg-art {
        animation: none !important;
    }
}

/* 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.8; }
    50%  { transform: translateY(-10px) scale(1.02); opacity: 1.0; }
    100% { transform: translateY(6px) scale(0.98); opacity: 0.8; }
}

.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: var(--orca-text-primary);
}

.hero p {
    font-size: 22px;
    margin: 0 0 16px 0;
    color: var(--orca-text-secondary);
    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: var(--orca-white);
    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: var(--orca-white);
}

.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: var(--orca-white);
}

.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: var(--orca-text-primary);
    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;
    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;
    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: var(--orca-text-primary);
    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: var(--orca-white);
    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: var(--orca-white);
    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: var(--orca-white);
    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: var(--orca-white);
}

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

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

#irbReminderFlow {
    max-width: 500px;
}

#irbDraftEditor {
    min-height: auto;
}

/* Enhanced Mobile Navigation */
@media (max-width: 900px) {
    .logo-header {
        top: 12px;
        left: 12px;
    }
    
    .logo-header .logo-wordmark {
        height: 28px;
    }
    
    .floating-header {
        top: 8px;
        right: 12px;
    }
    
    .header-content {
        gap: 8px;
    }
    
    .glass-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Ensure frontier cards don't overflow on tablets */
    .frontier-section {
        padding: 60px 20px !important;
    }
    
    .frontier-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        gap: 18px !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Improved mobile hero section */
    .hero {
        min-height: 70vh;
        padding: 80px 16px 40px !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Better mobile typography */
    .hero h1 { 
        font-size: clamp(32px, 8vw, 48px) !important; 
        line-height: 1.1 !important;
        margin: 8px auto 16px auto !important;
        text-align: center !important;
        max-width: 100% !important;
    }
    
    .hero p { 
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 20px;
        text-align: center !important;
    }
    
    /* Hero container mobile fix */
    .hero > div {
        max-width: 100% !important;
        padding: 0 16px !important;
        margin: 0 auto !important;
    }
    
    /* Download buttons mobile */
    .download-buttons-container {
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .download-btn-curved {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }
    
    /* Demo card mobile */
    .hero .demo-card {
        margin-top: 32px !important;
        padding: 24px 16px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Mobile-optimized demo flow */
    .demo-flow {
        min-height: 300px;
        max-height: 450px;
        margin-top: 20px;
        padding: 0 8px;
    }
    
    /* Improved glass UI for mobile */
    .glass-ui {
        max-width: calc(100vw - 32px);
        margin: 0 auto;
        padding: 12px 16px;
    }
    
    .workflow-bubble.expanded {
        max-width: calc(100vw - 32px);
    }
    
    /* 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 !important; 
        padding-right: 16px !important; 
        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; 
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .hero p { 
        font-size: 18px; 
        text-align: center !important;
    }
    
    /* Ensure all sections have proper mobile padding */
    section .container,
    section > div[style*="max-width"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .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;
    }
    
    /* Mobile-optimized buttons and forms */
    .buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 16px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        min-height: 48px; /* Touch-friendly size */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Mobile-friendly download button */
    .download-btn {
        font-size: 16px;
        padding: 14px 28px;
        min-height: 48px;
        width: 100%;
        max-width: 280px;
    }
    
    /* Touch-friendly form inputs */
    .waitlist-form {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
        max-width: 100%;
    }
    
    .waitlist-form input {
        width: 100%;
        min-height: 48px;
        font-size: 16px; /* Prevent zoom on iOS */
        box-sizing: border-box;
    }
    
    .waitlist-form .btn-primary {
        width: 100%;
        margin-top: 8px;
    }
    
    .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;
    }
}

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

.download-btn-curved {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--orca-white);
    border: 1px solid var(--orca-pearl);
    border-radius: 50px;
    color: var(--orca-black);
    font-size: 17px;
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn-curved:hover {
    background: var(--orca-white);
    border-color: var(--orca-mist);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 10, 10, 0.3);
}

.download-buttons-container {
    margin-top: var(--space-8);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Hero Demo Card */

.hero-video {
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
    display: block;
    margin: 0;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* Feature Video Containers */
.feature-video-container {
    position: relative;
    background: linear-gradient(135deg, var(--orca-slate) 0%, var(--orca-charcoal) 100%);
    border: 1px solid rgba(250, 250, 250, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    overflow: hidden;
}

/* ============================================
   ORCA COMPONENT SYSTEM
   ============================================ */

/* Button System */
.btn-primary {
    background: var(--orca-white);
    color: var(--orca-black);
    padding: var(--space-4) var(--space-8);
    border-radius: 50px;
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border: 1px solid var(--orca-pearl);
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
}

.btn-primary:hover {
    background: var(--orca-white);
    border-color: var(--orca-mist);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--orca-white);
    padding: var(--space-4) var(--space-8);
    border-radius: 50px;
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border: 1px solid rgba(250, 250, 250, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
}

.btn-secondary:hover {
    background: rgba(250, 250, 250, 0.1);
    border-color: rgba(250, 250, 250, 0.3);
    transform: translateY(-1px);
}

/* Card System */
.card {
    background: var(--orca-slate);
    border: 1px solid rgba(250, 250, 250, 0.1);
    border-radius: var(--space-5);
    padding: var(--space-8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(10, 10, 10, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(10, 10, 10, 0.5);
}

.card-elevated {
    background: var(--orca-charcoal);
    border: 1px solid rgba(250, 250, 250, 0.12);
    border-radius: 24px;
    padding: var(--space-12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 48px rgba(10, 10, 10, 0.5);
}

/* Text System */
.text-primary {
    color: var(--orca-white);
    font-weight: var(--font-regular);
}

.text-secondary {
    color: var(--orca-pearl);
    font-weight: var(--font-regular);
}

.text-muted {
    color: var(--orca-mist);
    font-weight: var(--font-regular);
}

.text-accent {
    color: var(--orca-navy);
    font-weight: var(--font-semibold);
}

/* Heading System */
.heading-hero {
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--orca-white);
}

.heading-xl {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--orca-white);
}

.heading-lg {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--orca-white);
}

.heading-base {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    line-height: var(--leading-normal);
    color: var(--orca-white);
}

/* Layout Utilities */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-20);
}

.container-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.container-text {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* Spacing Utilities */
.section-spacing {
    padding: var(--space-20) 0;
}

.section-spacing-lg {
    padding: var(--space-24) 0;
}

/* ============================================
   LANDING PAGE SECTIONS - PROPER SYSTEM
   ============================================ */

/* Feature Sections */
.feature-section {
    padding: var(--space-20) 0;
    background: transparent;
}

/* Color Accent System */
.feature-section:nth-child(odd) {
    background: radial-gradient(ellipse at center, rgba(10, 15, 31, 0.1) 0%, transparent 70%);
}

.feature-section:nth-child(even) {
    background: radial-gradient(ellipse at center, rgba(5, 150, 105, 0.08) 0%, transparent 70%);
}

.feature-panel {
    background: var(--orca-charcoal);
    border: 1px solid rgba(250, 250, 250, 0.06);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    padding: var(--space-12);
    display: grid;
    gap: var(--space-12);
    min-height: 450px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.feature-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--orca-navy);
    opacity: 0.3;
    z-index: 1;
}

.feature-panel-reverse {
    background: var(--orca-charcoal);
}

.feature-panel-reverse::before {
    background: var(--success);
    opacity: 0.2;
}

.feature-panel-two-column {
    grid-template-columns: 0.7fr 1.6fr;
}

.feature-panel-two-column.reverse {
    grid-template-columns: 1.6fr 0.7fr;
}

.feature-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-heading {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--orca-white);
    margin: 0 0 var(--space-4) 0;
    line-height: var(--leading-tight);
    position: relative;
}

.feature-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--orca-navy), transparent);
    border-radius: 1px;
}

.feature-description {
    font-size: var(--text-lg);
    font-weight: var(--font-regular);
    color: var(--orca-pearl);
    margin: 0;
    line-height: var(--leading-normal);
}

.feature-visual {
    position: relative;
    background: rgba(10, 10, 10, 0.3);
    border: 1px solid rgba(250, 250, 250, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    overflow: hidden;
}

/* Artistic Background Variants - Subtle Integration */
.feature-visual.monet-bg {
    background-image: url('images/monet-fidi-background.png');
    background-size: cover;
    background-position: center;
}

.feature-visual.monet-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.85) 0%, 
        rgba(26, 26, 26, 0.75) 50%, 
        rgba(10, 10, 10, 0.85) 100%);
    z-index: 1;
}

.feature-visual.goya-bg {
    background-image: url('images/goya-background.png');
    background-size: cover;
    background-position: center;
}

.feature-visual.goya-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(225deg, 
        rgba(10, 10, 10, 0.8) 0%, 
        rgba(42, 42, 42, 0.7) 50%, 
        rgba(10, 10, 10, 0.85) 100%);
    z-index: 1;
}

.feature-visual.chagall-bg {
    background-image: url('images/chagall-background.png');
    background-size: cover;
    background-position: center;
}

.feature-visual.chagall-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.82) 0%, 
        rgba(26, 26, 26, 0.72) 50%, 
        rgba(10, 10, 10, 0.87) 100%);
    z-index: 1;
}

.feature-visual video {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2;
}

.feature-visual video {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
}

/* Hero Section Improvements */
.hero-demo {
    margin-top: var(--space-6);
    text-align: center;
    width: 100%;
    position: relative;
    padding: 0;
    border-radius: 24px;
    background: var(--orca-charcoal);
    border: 1px solid rgba(250, 250, 250, 0.05);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.hero-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(10, 15, 31, 0.4) 20%, 
        rgba(10, 15, 31, 0.8) 50%, 
        rgba(10, 15, 31, 0.4) 80%, 
        transparent 100%);
    z-index: 1;
}

/* Container System */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-20);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .section-container {
        padding: 0 var(--space-4);
    }
    
    .feature-panel {
        padding: var(--space-6);
        min-height: auto;
    }
    
    .feature-panel-two-column,
    .feature-panel-two-column.reverse {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .feature-heading {
        font-size: var(--text-lg);
        text-align: center;
    }
    
    .feature-description {
        font-size: var(--text-base);
        text-align: center;
    }
    
    .feature-visual {
        padding: var(--space-4);
    }
    
    .hero-demo {
        padding: 0;
        border-radius: 16px;
        margin-top: var(--space-4);
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .container-wide {
        padding: 0 var(--space-4);
    }
    
    .container-content,
    .container-text {
        padding: 0 var(--space-4);
    }
    
    .section-spacing {
        padding: var(--space-16) 0;
    }
    
    .section-spacing-lg {
        padding: var(--space-20) 0;
    }
    
    .heading-hero {
        font-size: clamp(32px, 8vw, 48px);
    }
    
    .heading-xl {
        font-size: var(--text-xl);
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        min-height: 44px;
    }
    
    .download-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .hero-demo {
        padding: var(--space-6);
        margin-top: var(--space-6);
    }
    
    .card-elevated {
        padding: var(--space-6);
        border-radius: 16px;
    }
}

.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;
}

/* Frontier section responsive */
@media (max-width: 768px) {
    .frontier-section {
        padding: 40px 20px !important;
    }
    
    .frontier-section h2 {
        font-size: 32px !important;
        margin-bottom: 32px !important;
    }
    
    .frontier-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 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; }

/* Mobile Navigation Styles */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: var(--orca-surface-primary);
    border: 1px solid var(--orca-border-default);
    border-radius: 10px;
    padding: 8px;
    color: var(--orca-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
    background: var(--orca-border-default);
    border-color: var(--orca-border-strong);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(28, 25, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--orca-border-default);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
}

.mobile-menu.show {
    display: block;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--orca-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-family: inherit;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--orca-text-primary);
}

.mobile-menu-item svg {
    flex-shrink: 0;
}

/* Mobile responsive header */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .floating-header {
        position: relative;
    }
    
    /* Fix "Why Orca is different" section on mobile */
    .frontier-section {
        padding: 40px 12px !important;
        overflow-x: hidden;
    }
    
    .frontier-section h2 {
        font-size: 28px !important;
        margin-bottom: 24px !important;
        text-align: center;
        padding: 0 4px;
    }
    
    .frontier-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        max-width: 100% !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .frontier-card {
        padding: 24px 20px !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
    
    .frontier-card h3 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
        line-height: 1.3;
    }
    
    .frontier-card p {
        font-size: 14px !important;
        margin-bottom: 16px !important;
        line-height: 1.4;
    }
    
    /* Fix model selector demo on mobile */
    .model-selector-demo {
        padding: 12px !important;
        margin-top: 16px !important;
    }
    
    .model-option {
        padding: 6px 10px !important;
        margin-bottom: 4px !important;
    }
    
    .model-option div:first-child div:first-child {
        font-size: 12px !important;
    }
    
    .model-option div:first-child div:last-child {
        font-size: 10px !important;
    }
    
    /* Fix game knowledge demo on mobile */
    .game-knowledge-demo {
        padding: 12px !important;
        height: 160px !important;
        font-size: 12px !important;
    }
    
    /* Fix asset generation demo on mobile */
    .asset-gen-demo {
        padding: 12px !important;
    }
    
    .asset-gen-demo input {
        font-size: 14px !important;
        padding: 8px 10px !important;
    }
    
    .asset-gen-demo button {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
    
    /* Ensure no horizontal overflow on any mobile device */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
    }
    
    /* Fix any remaining width issues */
    .container, section, div {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure all text content fits */
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Mobile Touch Optimizations */
@media (max-width: 768px) {
    /* Improve tap targets for mobile */
    .glass-button, .btn, .download-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation; /* Prevent double-tap zoom */
    }
    
    /* Optimize scrolling areas */
    .chat-messages, .transcript-content {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Mobile-friendly video controls */
    video {
        max-width: 100%;
        height: auto;
        touch-action: manipulation;
    }
    
    /* Optimize background images for mobile performance */
    .demo-card {
        background-size: cover !important;
        background-attachment: scroll !important;
        margin-top: 40px !important;
        padding: 20px !important;
    }
    
    /* Reduce image quality on mobile for faster loading */
    .team-section .card-media,
    .frontier-card,
    .demo-card {
        image-rendering: optimizeSpeed;
        image-rendering: -webkit-optimize-contrast;
    }
    
    /* Optimize video loading on mobile */
    video {
        preload: metadata;
    }
    
    /* Lazy load images on mobile */
    img {
        loading: lazy;
    }
    
    /* Prevent horizontal scroll on mobile */
    .container, .hero, .description {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Mobile-optimized spacing */
    .feature-highlight, .description {
        padding: 40px 16px;
    }
    
    /* Better mobile footer */
    footer {
        padding: 20px 16px;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    /* Mobile-friendly platform display */
    .platforms {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .platform {
        width: 100%;
        max-width: 200px;
        text-align: center;
        padding: 8px 16px;
    }
}

/* 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: var(--orca-surface-primary);
    border: 1px solid var(--orca-border-default);
    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 #292524;
}

.viewer-header h3 {
    margin: 0;
    color: var(--orca-text-primary);
    font-size: 18px;
}

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

.control-btn {
    background: var(--orca-border-default);
    border: 1px solid var(--orca-border-strong);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orca-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.control-btn:hover {
    background: var(--orca-border-strong);
    border-color: var(--orca-border-emphasis);
}

.model-viewer {
    height: 400px;
    background: var(--orca-accent-navy);
    border: 1px solid var(--orca-border-default);
    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: var(--orca-text-muted);
}

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

.viewer-placeholder h4 {
    margin: 0 0 8px 0;
    color: var(--orca-text-secondary);
    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: var(--orca-text-muted);
    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: var(--orca-surface-primary);
    border: 1px solid var(--orca-border-default);
    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 #292524;
}

.chat-header h3 {
    margin: 0;
    color: var(--orca-text-primary);
    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: var(--orca-border-default);
    border: 1px solid var(--orca-border-strong);
    color: var(--orca-text-secondary);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
}

/* Generation Mode Tabs */
.generation-mode-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    background: var(--orca-accent-navy);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid var(--orca-border-default);
}

.mode-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--orca-text-muted);
    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: var(--orca-border-default);
    color: var(--orca-text-secondary);
}

/* 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: var(--orca-surface-primary);
    border: 1px solid var(--orca-border-default);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--orca-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    flex: 1;
}

.action-btn:hover {
    background: var(--orca-border-default);
    border-color: var(--orca-border-strong);
}

.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: var(--orca-surface-primary);
    border: 1px solid var(--orca-border-default);
    border-radius: 8px;
    padding: 12px;
    color: var(--orca-text-secondary);
    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: var(--orca-border-default);
    border: 1px solid var(--orca-border-strong);
    border-radius: 8px;
    padding: 12px;
    color: var(--orca-text-secondary);
    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: var(--orca-border-emphasis);
    background: var(--orca-border-strong);
    box-shadow: 0 0 0 2px rgba(87, 83, 78, 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: var(--orca-text-muted);
}

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

.rate-limit-counter {
    background: var(--orca-border-default);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
}

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

/* Generation History */
.generation-history {
    background: var(--orca-surface-primary);
    border: 1px solid var(--orca-border-default);
    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: var(--orca-text-secondary);
    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;
    }
}

/* AI Chat Animation Styles - Cursor-like */
.ai-question {
    color: var(--orca-text-primary);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeSlideIn 0.4s ease-out forwards;
}

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

.ai-tool-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    opacity: 0;
    animation: fadeSlideIn 0.3s ease-out forwards;
}

.ai-tool-label {
    color: var(--orca-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.ai-tool-detail {
    color: var(--orca-text-subtle);
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-read-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    opacity: 0;
    animation: fadeSlideIn 0.3s ease-out forwards;
}

.ai-read-label {
    color: var(--orca-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.ai-read-file {
    color: var(--orca-text-secondary);
    font-size: 14px;
}