@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0c0c0e;
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --accent-color: #22d3ee;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(12, 12, 14, 0) 70%);
    z-index: -1;
    filter: blur(50px);
}

.blob-1 { top: -200px; right: -100px; }
.blob-2 { bottom: -200px; left: -100px; }

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 5% 80px 5%; /* Top/Bottom padding for spacing */
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neon-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* Features Section */
.features {
    padding: 100px 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.feature-card p {
    color: var(--text-dim);
}

/* AI Demo UI Mimic */
.demo-window {
    width: 90%;
    max-width: 800px;
    background: #1a1a1c;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 4rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.input-mock {
    background: #000;
    padding: 1rem;
    border-radius: 8px;
    color: var(--primary-color);
    font-family: monospace;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}

footer {
    padding: 4rem 10%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

.input-field {
    width: 100%;
    max-width: 500px;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: white;
    margin-bottom: 1.5rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.cta-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Option Select UI */
.options-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.option-item input {
    accent-color: var(--primary-color);
}

.option-item:hover {
    color: var(--text-main);
}

.duration-info {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: -10px;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Timer UI */
.timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.timer-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#timer-display {
    font-family: 'monospace';
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

/* Video Player & Editor Workspace */
.workspace {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

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

.video-container {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9/16;
    max-width: 320px;
    margin: 0 auto;
    border: 4px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

#video-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.editor-panel {
    text-align: left;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.editor-label {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#edit-script-area {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    height: 300px;
    resize: none;
    margin-bottom: 1.5rem;
    outline: none;
}

#edit-script-area:focus {
    border-color: var(--primary-color);
}

.action-btns {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
}

.download-link {
    text-decoration: none;
}

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

.animate {
    animation: fadeIn 0.8s ease forwards;
}

.hidden {
    display: none !important;
}

/* Loading Animation */
@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

.progress-active {
    animation: progressFill 3s ease-in-out forwards;
}
