* {
    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;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.header-top-row {
    display: flex;
    align-items: center;
}

.bw-mobile-menu-btn {
    display: none;
    width: 40px;
    height: 36px;
    border: 1px solid rgba(0, 102, 255, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--electric-blue);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.bw-mobile-menu-btn:hover {
    background: rgba(0, 102, 255, 0.08);
}

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

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

/* =============================================================================
   NAV DROPDOWN
   ============================================================================= */

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: inherit;
    transition: color 0.3s ease;
}

.nav-dropdown-trigger:hover {
    color: var(--electric-blue);
}

.nav-dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    display: inline-block;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown-open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 170px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.55rem 1.25rem;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a:hover {
    background: rgba(0, 102, 255, 0.06);
    color: var(--electric-blue);
}

.nav-dropdown-menu a.nav-dropdown-active {
    color: var(--electric-blue);
    font-weight: 600;
}

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

.integration-link {
    text-align: center;
    margin-bottom: 2rem;
}

.integration-link a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid var(--electric-blue);
    border-radius: 8px;
    color: var(--electric-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.integration-link a:hover {
    background: linear-gradient(135deg, var(--electric-blue), var(--vibrant-purple));
    color: var(--bright-white);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
    transform: translateY(-2px);
}

.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: 2rem;
}

.footer-links a {
    color: var(--bright-white);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

/* =============================================================================
   HERO CTA BUTTONS
   ============================================================================= */

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.cta-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--electric-blue), var(--vibrant-purple));
    color: var(--bright-white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.cta-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: var(--electric-blue);
    color: var(--bright-white);
}

/* =============================================================================
   BENEFITS SECTION
   ============================================================================= */

.benefits-section {
    margin: 5rem 0;
}

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

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

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

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

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.2);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

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

/* =============================================================================
   HOW IT WORKS SECTION
   ============================================================================= */

.how-it-works-section {
    margin: 5rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 24px;
}

.steps-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    padding: 2rem;
    max-width: 220px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--electric-blue), var(--vibrant-purple));
    color: var(--bright-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.step p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-arrow {
    font-size: 2rem;
    color: var(--electric-blue);
    font-weight: 300;
}

/* =============================================================================
   CODE SECTION
   ============================================================================= */

.code-section {
    margin: 5rem 0;
}

.code-note {
    text-align: center;
    color: var(--light-text);
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

/* =============================================================================
   MODELS SECTION
   ============================================================================= */

.models-section {
    margin: 5rem 0;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.model-card {
    padding: 2rem;
    background: var(--bright-white);
    border: 2px solid var(--electric-blue);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

.model-card.coming-soon {
    border-color: var(--light-text);
    opacity: 0.7;
}

.model-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--electric-blue), var(--vibrant-purple));
    color: var(--bright-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.model-card.coming-soon .model-logo {
    background: var(--light-text);
}

.model-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.model-status {
    font-size: 0.85rem;
    color: var(--neon-green);
    font-weight: 600;
}

.model-card.coming-soon .model-status {
    color: var(--light-text);
}

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

.bw-auth-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bw-signin-btn {
    background: transparent;
    border: 2px solid var(--electric-blue);
    color: var(--electric-blue);
}

.bw-signin-btn:hover {
    background: var(--electric-blue);
    color: var(--bright-white);
}

.bw-signup-btn {
    background: linear-gradient(135deg, var(--electric-blue), var(--vibrant-purple));
    border: none;
    color: var(--bright-white);
}

.bw-signup-btn:hover {
    background: linear-gradient(135deg, var(--bright-cyan), var(--electric-blue));
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.bw-auth-email {
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.bw-logout-btn {
    background: transparent;
    border: 2px solid var(--light-text);
    color: var(--light-text);
}

.bw-logout-btn:hover {
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

.api-key-modal-content {
    text-align: center;
}

.api-key-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--vibrant-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.api-key-loading {
    color: var(--light-text);
    font-size: 1rem;
}

.api-key-instruction {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.api-key-box {
    background: var(--dark-text);
    border: 2px solid var(--electric-blue);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.api-key-box code {
    font-family: 'Monaco', 'Courier New', 'Consolas', 'Menlo', monospace;
    font-size: 0.9rem;
    color: var(--bright-cyan);
    word-break: break-all;
}

.api-key-copy-btn {
    background: linear-gradient(135deg, var(--electric-blue), var(--vibrant-purple));
    border: none;
    color: var(--bright-white);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.api-key-copy-btn:hover {
    background: linear-gradient(135deg, var(--bright-cyan), var(--electric-blue));
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    transform: translateY(-2px);
}

.api-key-warning {
    color: var(--tech-orange);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 980px) {
    .landing-header {
        padding: 1rem 0;
    }

    .header-content {
        padding: 0 1rem;
        align-items: stretch;
        gap: 0.4rem;
    }

    .header-top-row {
        width: 100%;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.35rem;
        flex: 1;
        min-width: 0;
    }

    .bw-mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    nav,
    .header-actions {
        display: none;
        width: 100%;
    }

    .header-content.bw-mobile-open nav,
    .header-content.bw-mobile-open .header-actions {
        display: flex;
    }

    nav {
        gap: 0.3rem;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid rgba(0, 102, 255, 0.15);
        padding-top: 0.45rem;
    }

    nav a,
    .nav-dropdown-trigger {
        font-size: 0.85rem;
        padding: 0.42rem 0;
        white-space: normal;
    }

    nav a,
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown {
        align-items: stretch;
    }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
        border-top: 1px solid rgba(0, 102, 255, 0.15);
        padding-top: 0.5rem;
    }

    .bw-auth-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        border-radius: 7px;
    }

    .bw-auth-email {
        max-width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        min-width: 0;
        width: 100%;
        margin-top: 0.2rem;
        display: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
    }

    .nav-dropdown-open .nav-dropdown-menu {
        display: block;
    }
}

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

    .logo {
        font-size: 1.15rem;
    }

    .logo-icon {
        font-size: 1.05rem;
    }

    nav a,
    .nav-dropdown-trigger {
        font-size: 0.78rem;
    }

    .bw-mobile-menu-btn {
        width: 36px;
        height: 33px;
        font-size: 1rem;
    }

    .header-actions {
        gap: 0.4rem;
    }

    .bw-auth-btn {
        padding: 0.42rem 0.65rem;
        font-size: 0.74rem;
    }

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