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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-dark: #0a0a0a;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 8rem;
    padding: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 3rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-badge {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.badge {
    background: var(--bg-white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Section */
.section {
    margin-bottom: 8rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1;
}

.card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card ul li {
    padding: 0.75rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.card ul li:last-child {
    border-bottom: none;
}

.card ul li:hover {
    color: var(--text-dark);
    padding-left: 0.5rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    gap: 1rem;
    color: var(--secondary-color);
}

/* Upload Section */
.upload-section {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.upload-container {
    max-width: 700px;
    margin: 0 auto;
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.03);
    transform: scale(1.01);
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.upload-area:hover .upload-icon {
    opacity: 1;
}

.upload-text {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.upload-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.upload-btn:active {
    transform: translateY(0);
}

.upload-progress {
    margin-top: 2rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Storage Info */
.storage-info {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.storage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.storage-bar {
    width: 100%;
    height: 14px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.storage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.storage-fill[style*="width: 80%"] {
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

.storage-fill[style*="width: 90%"] {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.storage-limits {
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
}

/* Files Container */
.files-container {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.empty-hint {
    font-size: 0.9375rem;
    margin-top: 0.75rem;
    opacity: 0.7;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.file-item:hover {
    background: var(--bg-light);
    transform: translateX(4px);
}

.file-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.file-info {
    flex: 1;
}

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

.file-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

.file-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

/* API Section */
.api-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 24px;
    padding: 4rem;
    border: 1px solid var(--border-color);
}

.api-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.api-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.api-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.api-card code {
    display: block;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    color: var(--primary-color);
    word-break: break-all;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 8rem;
}

.footer p {
    margin: 0.75rem 0;
    font-size: 0.9375rem;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        padding: 4rem 2rem;
    }
    
    .nav-container {
        padding: 0 2rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .nav-links {
        flex-direction: row;
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        padding: 3rem 1.5rem;
    }

    .hero {
        margin-bottom: 5rem;
    }

    .section {
        margin-bottom: 5rem;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem;
    }

    .upload-section {
        padding: 2.5rem 1.5rem;
    }

    .upload-area {
        padding: 3rem 1.5rem;
    }

    .api-section {
        padding: 2.5rem 1.5rem;
    }

    .api-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .files-container {
        padding: 1.5rem;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-icon {
        font-size: 3.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}
