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

:root {
    --primary-blue: #2563eb;
    --primary-purple: #7c3aed;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* HS */
    --hsf-global__font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --hsf-global__font-size: 1 rem;
    --hsf-global__color: #fff;
    --hsf-button__font-size: 0.8rem;
    --hsf-background__padding: 0;
    --hsf-field-input__padding: 1rem;
    --hsf-field-label__font-size: 0;
    --hsf-row__vertical-spacing: 0.25rem;
    --hsf-button__width: 100%;

}

.dark-mode {
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: rgba(17, 24, 39, 0.8);
    --border-color: rgba(75, 85, 99, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.5s ease;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 1rem; */
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dark-mode-toggle .icon {
    width: 1rem;
    height: 1rem;
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    overflow: hidden;
}

.background-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bg-blur {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(3rem);
    animation: pulse 4s ease-in-out infinite;
}

.bg-blur-1 {
    top: -10rem;
    right: -10rem;
    background: rgba(59, 130, 246, 0.3);
}

.bg-blur-2 {
    bottom: -10rem;
    left: -10rem;
    background: rgba(147, 51, 234, 0.3);
    animation-delay: 1s;
}

.bg-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.05), 
        rgba(147, 51, 234, 0.05), 
        rgba(236, 72, 153, 0.05));
    animation: gradientShift 8s ease-in-out infinite;
    opacity: 0.5;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

/* Hero Content */
.hero-content {
    space-y: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    animation: shimmer 2s linear infinite;
    margin-bottom: 1.5rem;
}

.badge .icon {
    width: 1rem;
    height: 1rem;
    color: var(--primary-blue);
    animation: pulse 2s ease-in-out infinite;
}

.badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-blue);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 3s ease-in-out infinite;
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 32rem;
    margin-bottom: 2rem;
}

/* Email Form */

.email-form-container {
    max-width: 28rem;
}

.email-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.email-input {
    flex: 1;
    height: 3.5rem;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-primary);
}

.dark-mode .email-input {
    background: rgba(31, 41, 55, 0.5);
}

.email-input:focus {
    outline: none;
    ring: 2px solid rgba(59, 130, 246, 0.5);
    border-color: var(--primary-blue);
}

.submit-btn {
    height: 3.5rem;
    padding: 0 2rem;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover::before {
    opacity: 1;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 0.75rem;
    backdrop-filter: blur(4px);
    animation: slideInFromBottom 0.5s ease-out;
}

.success-message .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #22c55e;
}

.success-message span {
    color: #22c55e;
    font-weight: 500;
}

.form-subtitle {
    padding-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* Chat Demo */
.chat-demo {
    position: relative;
}

.chat-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dark-mode .chat-card {
    background: rgba(17, 24, 39, 0.2);
}

.chat-glow {
    position: absolute;
    inset: -1px;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.5), rgba(147, 51, 234, 0.5));
    border-radius: 1.5rem;
    filter: blur(8px);
    opacity: 0.3;
    animation: pulseGlow 2s ease-in-out infinite;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
    position: relative;
    z-index: 1;
}

.ai-avatar {
    position: relative;
    width: 3rem;
    height: 3rem;
    /* background: linear-gradient(to right, var(--primary-blue), var(--primary-purple)); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ai-avatar .icon {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 1rem;
    height: 1rem;
    background: #22c55e;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.ai-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 0.5rem;
    height: 0.5rem;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.chat-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    height: 55vh;
    min-height: 550px;
}

.chat-intro {
    margin-bottom: 1.5rem;
}

.chat-intro h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.chat-intro p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.chat-messages {
    height: 20rem;
   /* overflow: hidden; */
}

.message {
    margin-bottom: 1rem;
    animation: slideInFromRight 0.5s ease-out;
}

.message.ai-message {
    animation: slideInFromLeft 0.5s ease-out;
}

.message-bubble {
    max-width: 18rem;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message {
    display: flex;
    justify-content: flex-end;
}

.user-bubble {
    background: linear-gradient(to right, var(--primary-blue), #1d4ed8);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.ai-message {
    display: flex;
    justify-content: flex-start;
}

.ai-bubble, .typing-bubble {
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-bottom-left-radius: 0.25rem;
}

.dark-mode .ai-bubble,
.dark-mode .typing-bubble {
    background: linear-gradient(to right, #374151, #4b5563);
    border-color: rgba(107, 114, 128, 0.5);
}

.ai-message-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ai-icon {
    width: 1.5rem;
    height: 1.5rem;
    /* background: linear-gradient(to right, var(--primary-blue), var(--primary-purple)); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.ai-icon .icon {
    width: 0.75rem;
    height: 0.75rem;
    color: white;
}

.ai-text p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.message-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(209, 213, 219, 0.5);
}

.dark-mode .message-footer {
    border-color: rgba(107, 114, 128, 0.5);
}

.message-footer span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.data-indicator {
    width: 0.25rem;
    height: 0.25rem;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.5rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #9ca3af;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(2) {
    animation-delay: 0.16s;
}

.dot:nth-child(3) {
    animation-delay: 0.32s;
}

.typing-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.float-1 {
    top: -1rem;
    right: -1rem;
    width: 2rem;
    height: 2rem;
    background: rgba(59, 130, 246, 0.2);
}

.float-2 {
    bottom: -1.5rem;
    left: -1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(147, 51, 234, 0.2);
    animation-delay: 1s;
}

.float-3 {
    top: 50%;
    right: -2rem;
    width: 1rem;
    height: 1rem;
    background: rgba(236, 72, 153, 0.2);
    animation-delay: 0.5s;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .footer {
    border-color: rgba(75, 85, 99, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    /* background: linear-gradient(to right, var(--primary-blue), var(--primary-purple)); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-tagline {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradientShift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

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

@keyframes slideInFromBottom {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromRight {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromLeft {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .chat-messages {
        height: 16rem;
    }
    
    .message-bubble {
        max-width: 14rem;
    }
}