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

:root {
    /* Light Mode Colors - matching docs.getanchor.dev */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --bg: #f8fafc;
    --bg-secondary: #f1f5f9;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    
    /* Legacy variable names for backward compatibility */
    --primary-color: var(--primary);
    --primary-hover: var(--primary-dark);
    --text-primary: var(--text);
    --bg-primary: var(--surface);
    --border-color: var(--border);
    --success-color: var(--success);
    --error-color: var(--danger);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s, color 0.3s;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.header-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.header-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-links a:hover {
    color: var(--text);
    text-decoration: underline;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    color: var(--text);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    white-space: nowrap;
}

.title:last-of-type {
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.cta-section {
    margin-bottom: 1.5rem;
}

.auth-form-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.auth-mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: var(--radius);
}

.mode-toggle-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-toggle-btn:hover {
    color: var(--text);
    background: rgba(37, 99, 235, 0.05);
}

.mode-toggle-btn.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: 0.01em;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: all 0.2s ease;
    background: var(--surface);
    color: var(--text);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
    font-weight: 400;
}

.auth-form .cta-button {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-form .cta-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.auth-form .cta-button:active:not(:disabled) {
    transform: translateY(0);
}

.auth-form .cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.auth-note-icon {
    color: var(--success);
    font-weight: 600;
    font-size: 0.875rem;
}

.api-key-display {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #10b981;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(16, 185, 129, 0.1);
}

.api-key-display label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-key-display label::before {
    content: "🔑";
    font-size: 1rem;
}

.api-key-display code {
    display: block;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    word-break: break-all;
    border: 1px solid #d1fae5;
    color: var(--text);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.pilot-interest-section {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-in;
}

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

.pilot-interest-box {
    padding: 1.75rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.1), 0 2px 4px -1px rgba(245, 158, 11, 0.06);
}

.pilot-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pilot-icon {
    font-size: 1.5rem;
    margin-top: 0.125rem;
}

.pilot-header > div {
    flex: 1;
}

.pilot-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.375rem 0;
}

.pilot-subtitle {
    font-size: 0.875rem;
    color: #92400e;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.pilot-description {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pilot-benefits {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.pilot-benefits li {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.pilot-benefits li strong {
    color: #92400e;
    font-weight: 600;
}

.pilot-commitment {
    font-size: 0.875rem;
    color: #92400e;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
    border-left: 3px solid #f59e0b;
}

.pilot-button {
    width: 100%;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.pilot-button:hover:not(:disabled) {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.3);
}

.pilot-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pilot-skip {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.pilot-skip:hover {
    color: var(--text);
}

.pilot-success {
    text-align: center;
    padding: 1.5rem;
}

.pilot-success .pilot-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.pilot-success .pilot-title {
    margin-bottom: 0.75rem;
}

.pilot-success .pilot-description {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.access-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
}

.email-input:focus {
    border-color: var(--primary);
}

.cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.cta-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cta-button:active:not(:disabled) {
    transform: translateY(0);
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid var(--success);
}

.message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid var(--danger);
}

.features-container {
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.features-scroll {
    display: flex;
    justify-content: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    gap: 2rem;
    flex-shrink: 0;
    width: 1400px;
    box-sizing: border-box;
    padding: 0 1rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    box-sizing: border-box;
    opacity: 0.85;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.stats-section {
    margin: 2rem 0 0.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #000000;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

@media (max-width: 640px) {
    .stats-container {
        gap: 2rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .title {
        white-space: normal;
        font-size: 2.5rem;
    }
    
    
    .features {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        max-width: 800px;
    }
}

@media (max-width: 640px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-links {
        font-size: 0.8125rem;
    }
    
    .title {
        font-size: 2rem;
        white-space: normal;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .form-group {
        flex-direction: column;
    }

    .email-input,
    .cta-button {
        width: 100%;
    }

    .features {
        grid-template-columns: 1fr;
        min-width: 300px;
    }
    
}


