﻿:root {
    /* Colors */
    --color-bg-primary: #050816;
    --color-bg-secondary: #0b1020;
    --color-bg-card: #151b2e;
    --color-text-primary: #ffffff;
    --color-text-secondary: #94a3b8;
    --color-accent-purple: #4f46e5;
    --color-accent-sky: #38bdf8;
    --color-accent-mint: #2dd4bf;
    --color-accent-lime: #84cc16;
    --color-border: #1e293b;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

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

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-purple), #6366f1);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-text {
    background: transparent;
    color: var(--color-text-secondary);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.btn-outline:hover {
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
}

.card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.text-gradient {
    background: linear-gradient(to right, var(--color-accent-sky), var(--color-accent-mint));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-purple {
    background: rgba(79, 70, 229, 0.1);
    color: var(--color-accent-purple);
}

.badge-sky {
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-accent-sky);
}

.badge-mint {
    background: rgba(45, 212, 191, 0.1);
    color: var(--color-accent-mint);
}

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 8, 22, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-sky));
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

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

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

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    margin-top: 4rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Helper Classes */
.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

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

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

/* Workflow Tab Navigation */
.workflow-tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0;
}

.workflow-tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.workflow-tab-btn:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.workflow-tab-btn.active {
    background: var(--color-accent-sky);
    color: white;
}

.workflow-tab-content {
    display: block;
}

.s3-url {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Start hidden */
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Hero Section */
/* Hero Section (Video at Top Layout) */
.hero-video-container {
    width: 100%;
    height: 60vh;
    /* Occupy top 60% of viewport */
    position: relative;
    overflow: hidden;
    margin-top: 74px;
    /* Offset for fixed navbar */
    border-bottom: 1px solid var(--color-border);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 22, 0.3);
    /* Lighter overlay since it's not a background for text */
    z-index: 1;
}

.hero-text-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--color-bg-primary), var(--color-bg-secondary));
    position: relative;
    z-index: 2;
}

/* Auth Page Styling (Signup/Login) */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 1rem 2rem;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.05), transparent 70%);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 22, 0.7);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Enhanced Hero Styling */
.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Typing Effect */
.typing-container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--color-accent-sky);
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    max-width: 100%;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--color-accent-sky)
    }
}

/* Pulse Effect */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Floating Cloud Elements */
.cloud-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

/* Features Section */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1), 0 0 20px rgba(56, 189, 248, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15), transparent 50%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s ease;
    /* /* /* /* /* /* pointer-events: none; (FIXED) */ (FIXED) */ (FIXED) */ (FIXED) */ (FIXED) */ (FIXED) */
}

.feature-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--color-accent-sky);
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--color-accent-sky), var(--color-accent-purple));
    border-color: transparent;
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 15px -3px rgba(56, 189, 248, 0.3);
}

/* Stats Section */
.stats-section {
    position: relative;
    background: linear-gradient(to bottom, var(--color-bg-secondary), var(--color-bg-primary));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--color-accent-sky);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section Spacing */
.section-padding {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* New Radius Variable */
:root {
    --radius-xl: 1rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.comparison-table td {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .highlight-col {
    background: rgba(56, 189, 248, 0.05);
    font-weight: 600;
    color: var(--color-text-primary);
}

.comparison-table .highlight-header {
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-accent-sky);
}

.check-icon {
    color: var(--color-accent-mint);
    width: 20px;
    height: 20px;
}

.cross-icon {
    color: #f87171;
    width: 20px;
    height: 20px;
}

/* Process Steps (Workflow) */
.process-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 3rem 0;
    padding: 0 2rem;
}

.process-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
    transform: translateY(-50%);
}

.process-step {
    position: relative;
    z-index: 1;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.process-step:hover {
    transform: scale(1.1);
    border-color: var(--color-accent-sky);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.process-icon {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.process-step:hover .process-icon {
    color: var(--color-accent-sky);
}

.process-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.process-step:hover .process-label {
    color: var(--color-text-primary);
}

/* Responsive adjustments for process steps */
@media (max-width: 768px) {
    .process-container {
        flex-direction: column;
        gap: 2rem;
    }

    .process-container::before {
        width: 2px;
        height: 100%;
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .process-label {
        position: static;
        transform: none;
        margin-top: 0.5rem;
    }
}
/* 워크플로우 탭 버튼 클릭 가능하도록 수정 */
.workflow-tab-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
    transition: all 0.2s ease;
}

.workflow-tab-btn:hover {
    background-color: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.workflow-tab-btn.active {
    background-color: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    color: #3b82f6 !important;
}
