/* FlowCentral - Modern Enterprise Design */

:root {
    /* Colors */
    --primary-600: #4f46e5;
    --primary-700: #3730a3;
    --primary-800: #312e81;
    --primary-900: #1e1b4b;
    
    --secondary-400: #a78bfa;
    --secondary-500: #8b5cf6;
    --secondary-600: #7c3aed;
    
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    --surface: #0f0f23;
    --surface-light: #181835;
    --surface-lighter: #242447;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgb(79 70 229 / 0.3);
}

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-lighter);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 600;
    font-size: 1.25rem;
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--primary-600);
}

.brand-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface-lighter);
    color: var(--text-primary);
    border: 1px solid var(--neutral-600);
}

.btn-secondary:hover {
    background: var(--neutral-700);
    border-color: var(--neutral-500);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: var(--space-20);
    background: radial-gradient(ellipse at top, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-content {
    max-width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-preview {
    background: var(--surface-lighter);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 100%;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--neutral-800);
    border-bottom: 1px solid var(--neutral-700);
}

.code-title {
    color: var(--secondary-400);
    font-family: var(--font-mono);
    font-weight: 500;
}

.code-dots {
    display: flex;
    gap: var(--space-2);
}

.code-dots span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--neutral-600);
}

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #10b981; }

.code-content {
    padding: var(--space-6);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
    overflow-x: auto;
}

/* Features Section */
.features {
    padding: var(--space-20) 0;
    background: var(--surface-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-16);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary-600);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    color: white;
    font-size: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Use Cases Section */
.use-cases {
    padding: var(--space-20) 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.use-case {
    background: var(--surface-light);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all 0.2s;
}

.use-case:hover {
    border-color: var(--primary-600);
    transform: translateY(-2px);
}

.use-case h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.use-case p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--surface-light);
    border-top: 1px solid var(--neutral-700);
    padding: var(--space-12) 0 var(--space-6);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 600;
    font-size: 1.125rem;
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-600);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--neutral-700);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--space-4);
    }
    
    .nav-links {
        gap: var(--space-4);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .code-preview {
        margin: 0 -1rem;
    }
}

/* Animation and interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    animation-delay: 0.1s;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.hero-actions {
    animation-delay: 0.3s;
}

/* Setup/Signup Forms (age verification, account creation, username picker) */
.setup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: var(--space-6);
}

.setup-card {
    background: var(--surface-light);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.setup-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.setup-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.setup-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.setup-text-muted {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-6);
}

.setup-highlight {
    color: var(--secondary-400);
    font-weight: 500;
}

.setup-input-group {
    margin-bottom: var(--space-4);
}

.setup-input {
    width: 100%;
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--neutral-600);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.setup-input:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.setup-input::placeholder {
    color: var(--text-muted);
}

.setup-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-top: var(--space-8);
}

.setup-actions .btn {
    min-width: 140px;
}

/* Popup styles */
.popup-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--surface);
    padding: var(--space-10);
    border: 1px solid var(--primary-600);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
}

.popup-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: var(--space-6);
    color: var(--text-primary);
}

.popup-label {
    text-align: center;
    font-size: 0.875rem;
    padding-bottom: var(--space-2);
    color: var(--text-secondary);
}

.popup-input {
    width: 100%;
    padding: var(--space-4);
    font-size: 1rem;
    font-family: var(--font-sans);
    background: var(--surface-light);
    color: var(--text-primary);
    border: 1px solid var(--primary-600);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
}

.popup-input:focus {
    outline: none;
    border-color: var(--secondary-500);
    box-shadow: var(--shadow-glow);
}

.popup-input::placeholder {
    color: var(--text-muted);
}

.popup-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--space-5);
    width: 100%;
    padding-top: var(--space-4);
}

.popup-btn {
    text-align: center;
    padding: var(--space-4) var(--space-6);
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--primary-600);
    border-radius: var(--radius-md);
    background: rgba(79, 70, 229, 0.1);
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all 0.2s;
    user-select: none;
}

.popup-btn:hover {
    border-color: var(--secondary-500);
    background: rgba(79, 70, 229, 0.2);
    box-shadow: var(--shadow-glow);
}

.popup-list {
    width: 100%;
    border: 1px solid var(--primary-600);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-8);
}

.popup-list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--neutral-700);
    color: var(--text-secondary);
}

.popup-list-item:last-child {
    border-bottom: none;
}