/**
 * Kolo Ventures LP Platform - Design System
 */

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

/* CSS Variables */
:root {
    /* Colors */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F9FAFB;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --black: #0A0A0A;

    /* Status Colors */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
html, body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 48px; font-weight: 300; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

.mono {
    font-family: var(--font-mono);
}

.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg { font-size: 18px; }

.text-muted { color: var(--gray-500); }
.text-light { color: var(--gray-400); }

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Logo */
.logo {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--gray-900);
}

.logo-light {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gray-900);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--gray-900);
    color: var(--gray-900);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    padding: 14px 20px;
}

.btn-ghost:hover:not(:disabled) {
    color: var(--gray-900);
}

.btn .arrow {
    transition: transform var(--transition-base);
}

.btn:hover:not(:disabled) .arrow {
    transform: translateX(4px);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--gray-900);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input.error {
    border-color: var(--error);
}

.form-error {
    font-size: 12px;
    color: var(--error);
    margin-top: var(--space-1);
}

/* Option Cards */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

@media (max-width: 640px) {
    .option-grid {
        grid-template-columns: 1fr;
    }
}

.option-card {
    padding: 20px 24px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.option-card:hover {
    border-color: var(--gray-400);
}

.option-card.selected {
    border-color: var(--gray-900);
    background: var(--gray-50);
}

.option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    background: var(--gray-900);
    color: var(--white);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.option-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all var(--transition-fast);
    font-size: 10px;
}

.checkbox-item.checked .checkbox-box {
    background: var(--gray-900);
    border-color: var(--gray-900);
    color: var(--white);
}

.checkbox-label {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

/* Section Labels */
.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--gray-900);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-light {
    border-color: rgba(255,255,255,0.3);
    border-top-color: var(--white);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    padding: var(--space-4) var(--space-6);
    background: var(--gray-900);
    color: var(--white);
    font-size: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.warning { background: var(--warning); }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--white);
    padding: var(--space-8);
    max-width: 480px;
    width: 90%;
    animation: scaleIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Sidebar Toggle */
.sidebar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.sidebar-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--gray-900);
    transition: all 0.2s;
}
.sidebar-toggle:hover span {
    background: var(--gray-600);
}

/* Sidebar Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 90;
    animation: fadeIn 0.2s ease;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.sidebar.open {
    transform: translateX(0);
}
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}
.sidebar-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
}
.sidebar-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.15s;
}
.sidebar-close:hover {
    color: var(--gray-900);
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 15px;
    color: var(--gray-500);
    text-decoration: none;
    transition: all 0.15s;
}
.sidebar-nav a:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}
.sidebar-nav a.active {
    color: var(--gray-900);
    font-weight: 500;
    background: var(--gray-50);
}
.sidebar-nav a .nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-300);
    flex-shrink: 0;
}
.sidebar-nav a.active .nav-dot {
    background: var(--gray-900);
}

/* Locked Card */
.locked-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 48px;
    text-align: center;
    max-width: 480px;
    margin: 80px auto 0;
}
.locked-card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}
.locked-card-desc {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Utilities */
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
