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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --bright-cyan: #00f5ff;
    --electric-blue: #0066ff;
    --vibrant-purple: #8b5cf6;
    --bright-yellow: #ffd700;
    --neon-green: #39ff14;
    --tech-orange: #ff6b35;
    --light-bg: #f0f9ff;
    --bright-white: #ffffff;
    --dark-text: #0a0e27;
    --light-text: #64748b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1e3a8a 50%, #312e81 100%);
    background-attachment: fixed;
    color: var(--dark-text);
    min-height: 100vh;
}

.landing-container {
    width: 100%;
    background: var(--bright-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 100px rgba(0, 245, 255, 0.1);
}

.landing-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--electric-blue);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
}

.header-content {
    width: 100%;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--vibrant-purple) 50%, var(--bright-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.5rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--electric-blue), var(--bright-cyan));
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--electric-blue);
}

nav a:hover::after {
    width: 100%;
}

main {
    flex: 1;
    padding: 5rem 3rem;
    background: linear-gradient(180deg, var(--bright-white) 0%, var(--light-bg) 100%);
    width: 100%;
    max-width: 100%;
}

.hero {
    text-align: center;
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
    pointer-events: none;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--vibrant-purple) 50%, var(--bright-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 0;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-section {
    margin: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--vibrant-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--electric-blue), var(--bright-cyan));
    margin: 0 auto;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    padding: 2.5rem;
    background: var(--bright-white);
    border: 2px solid var(--electric-blue);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--electric-blue), var(--bright-cyan), var(--vibrant-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.2);
    border-color: var(--bright-cyan);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: icon-float 3s ease-in-out infinite;
}

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

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
    font-weight: 700;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 1rem;
}

.card-connector {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--electric-blue), var(--bright-cyan));
    transition: width 0.3s ease;
}

.feature-card:hover .card-connector {
    width: 100%;
}

.demo-section {
    margin: 6rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px solid var(--electric-blue);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
    animation: rotate-glow 20s linear infinite;
}

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

.demo-section > * {
    position: relative;
    z-index: 1;
}

.demo-description {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.demo-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-group label {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1rem;
}

.tech-select {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--electric-blue);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bright-white);
    color: var(--dark-text);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-select:hover {
    border-color: var(--bright-cyan);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.tech-select:focus {
    outline: none;
    border-color: var(--bright-cyan);
    box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.2);
}

.chat-demo-container {
    max-width: 900px;
    margin: 0 auto;
    height: 400px;
    border: 2px solid var(--electric-blue);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bright-white);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.15);
    transition: height 0.3s ease;
}

.chat-demo-container.has-messages {
    height: 600px;
}

.usage-section {
    margin: 6rem 0;
}

.usage-description {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.code-example {
    max-width: 900px;
    margin: 3rem auto 0;
    background: var(--dark-text);
    border: 2px solid var(--electric-blue);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.2);
}

.code-header {
    background: linear-gradient(135deg, var(--electric-blue), var(--vibrant-purple));
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-example pre {
    margin: 0;
    padding: 2rem;
    overflow-x: auto;
    background: #1a1a2e;
}

.code-example code {
    font-family: 'Monaco', 'Courier New', 'Consolas', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e0e0;
    display: block;
    white-space: pre;
}

.code-example code .keyword {
    color: #ff79c6;
}

.code-example code .string {
    color: #50fa7b;
}

.code-example code .comment {
    color: #6272a4;
}

.landing-footer {
    padding: 3rem;
    background: linear-gradient(135deg, var(--dark-text) 0%, #1e3a8a 100%);
    color: var(--bright-white);
    border-top: 2px solid var(--electric-blue);
}

.footer-content {
    width: 100%;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.footer-links span {
    animation: icon-float 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background: var(--bright-white);
    border: 2px solid var(--electric-blue);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0, 102, 255, 0.3);
    z-index: 1001;
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--light-text);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.auth-modal-close:hover {
    color: var(--electric-blue);
}

.auth-form-group label {
    color: var(--dark-text);
    font-weight: 600;
}

.auth-form-group input[type="email"],
.auth-form-group input[type="password"],
.auth-form-group input[type="text"] {
    background: var(--bright-white);
    border: 2px solid var(--electric-blue);
    color: var(--dark-text);
}

.auth-form-group input::placeholder {
    color: var(--light-text);
}

.auth-form-group input:focus {
    border-color: var(--bright-cyan);
    box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.2);
}

.auth-toggle-password {
    color: var(--light-text);
}

.auth-toggle-password:hover {
    color: var(--electric-blue);
}

.auth-form button[type="submit"] {
    background: linear-gradient(135deg, var(--electric-blue), var(--vibrant-purple));
    border: none;
    color: var(--bright-white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-form button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--bright-cyan), var(--electric-blue));
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    nav {
        gap: 1.5rem;
    }

    nav a {
        font-size: 0.875rem;
    }

    main {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .demo-section {
        padding: 2rem 1.5rem;
    }

    .chat-demo-container {
        height: 350px;
}

    .chat-demo-container.has-messages {
        height: 500px;
    }

    .code-example {
        margin: 2rem 1rem 0;
}

    .code-example pre {
        padding: 1.5rem;
    }

    .code-example code {
        font-size: 0.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
