/* ==========================================================================
   Videocraft.io Design System & Core Styles
   ========================================================================== */

:root {
    /* Colors (from Brand Guide) */
    --bg-void: #0A0A0A;
    --surface-dark: #141414;
    --surface-elevated: #1E1E1E;
    --white: #FFFFFF;
    --ash: #A0A0A0;
    --separator: rgba(255, 255, 255, 0.08);

    --craft-cyan: #49D8F5;
    --royal-blue: #1872F2;
    --deep-navy: #0A2FD4;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #49D8F5 0%, #1872F2 50%, #0A2FD4 100%);
    --gradient-brand-h: linear-gradient(90deg, #49D8F5 0%, #1872F2 55%, #0A2FD4 100%);
    --gradient-brand-subtle: linear-gradient(135deg, rgba(73,216,245,0.08) 0%, rgba(24,114,242,0.08) 100%);

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;
    
    /* Animation Easing */
    --ease-out-quart: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 300ms var(--ease-out-quart);
    --transition-slow: 600ms var(--ease-out-quart);
}

/* Base Reset & Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-void);
    color: var(--white);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Utilities */
.display-xl { font-size: clamp(64px, 8vw, 96px); font-weight: 900; line-height: 1.0; letter-spacing: -0.04em; }
.display-lg { font-size: clamp(48px, 6vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.h1 { font-size: clamp(36px, 5vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.h2 { font-size: clamp(28px, 4vw, 32px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.h3 { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.body-lg { font-size: 20px; font-weight: 400; line-height: 1.6; color: var(--ash); }
.body { font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--ash); }
.caption { font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--ash); text-transform: uppercase; letter-spacing: 0.1em; }

.text-gradient {
    background: var(--gradient-brand-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center { text-align: center; }
.text-ash { color: var(--ash); }
.text-craft-cyan { color: var(--craft-cyan); }

/* Spacing Utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-5xl { margin-top: var(--space-5xl); }
.w-100 { width: 100%; }

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

.section-padding {
    padding: 120px 0;
}

.grid {
    display: grid;
    gap: var(--space-xl);
}

/* UI Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 18px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(24, 114, 242, 0.2);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(73, 216, 245, 0.4);
}

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

.btn-secondary:hover {
    background: var(--surface-elevated);
    border-color: rgba(255,255,255,0.2);
    transform: scale(1.02);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    padding: 0;
    font-weight: 500;
}

.btn-ghost:hover {
    color: var(--royal-blue);
}

.btn-ghost i {
    transition: transform var(--transition-fast);
}

.btn-ghost:hover i {
    transform: translateX(4px);
}

/* Cards */
.card {
    background: var(--surface-dark);
    border: 1px solid var(--separator);
    border-radius: 16px;
    padding: var(--space-2xl);
    transition: all var(--transition-fast);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--surface-elevated);
    border: 1px solid var(--separator);
    font-size: 14px;
    font-weight: 500;
    color: var(--ash);
    margin-bottom: var(--space-xl);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--white);
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark.small {
    width: 24px;
    height: 24px;
}

.play-icon {
    font-size: 14px;
    color: var(--white);
    margin-left: 2px; /* optical alignment */
}

.play-icon.small-icon {
    font-size: 10px;
    margin-left: 1px;
}

.wordmark {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wordmark .io {
    color: var(--craft-cyan);
}


/* ==========================================================================
   Page Sections
   ========================================================================== */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-fast);
    padding: var(--space-md) 0;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--separator);
    padding: var(--space-sm) 0;
}

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

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    color: var(--ash);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-void);
    z-index: 99;
    padding: 80px var(--space-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    text-align: center;
}

.mobile-link {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
}

.mobile-cta {
    margin-top: var(--space-xl);
    width: 100%;
    max-width: 300px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px; /* space for nav */
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(73, 216, 245, 0.1) 0%, rgba(10, 10, 10, 0) 70%);
    z-index: -1;
    filter: blur(100px);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-2xl);
}

/* Hero Abstract Visual Mockup */
.hero-visual {
    margin-top: 60px;
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.glass-panel {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--separator);
    border-radius: 16px;
    padding: var(--space-2xl);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transform: rotateX(5deg) scale(0.95);
    transition: transform var(--transition-slow);
}

.hero:hover .glass-panel {
    transform: rotateX(0deg) scale(1);
}

.timeline-mock .track {
    height: 24px;
    background: var(--surface-dark);
    border-radius: 4px;
    margin-bottom: var(--space-sm);
    position: relative;
    overflow: hidden;
    display: flex;
}

.timeline-mock .clip {
    height: 100%;
    border-radius: 4px;
}

.gradient-clip { background: var(--gradient-brand-h); }
.gray-clip { background: var(--surface-elevated); margin-left: 8px; }
.blue-clip { background: var(--royal-blue); }

/* Trusted / Social Proof */
.trusted {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--separator);
    border-bottom: 1px solid var(--separator);
}

.logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-lg);
    opacity: 0.5;
    font-size: 32px;
}

/* Section Shared */
.section-header {
    max-width: 600px;
    margin: 0 auto var(--space-5xl);
}

.section-header .body {
    margin-top: var(--space-md);
}

/* Services */
.cards-grid {
    grid-template-columns: repeat(2, 1fr);
}

.service-card .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--craft-cyan);
    margin-bottom: var(--space-lg);
}

.service-card .body {
    margin-top: var(--space-sm);
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: var(--space-lg);
}

.portfolio-item.wide {
    grid-column: 1 / -1;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--separator);
}

.portfolio-placeholder::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.2);
    transition: background var(--transition-fast);
}

.portfolio-placeholder:hover::after {
    background: rgba(0,0,0,0.4);
}

.portfolio-placeholder.blue-gradient { background: var(--gradient-brand); }
.portfolio-placeholder.dark-surface { background: var(--surface-elevated); }
.portfolio-placeholder.deep-navy { background: var(--deep-navy); }

.play-overlay {
    font-size: 48px;
    color: var(--white);
    z-index: 2;
    transition: transform var(--transition-fast);
}

.portfolio-placeholder:hover .play-overlay {
    transform: scale(1.1);
}

.portfolio-label {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    z-index: 2;
    font-weight: 600;
}

/* How it Works */
.process-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5xl);
    align-items: center;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.step {
    display: flex;
    gap: var(--space-lg);
}

.step-number {
    font-family: 'JetBrains Mono', monospace, sans-serif; /* fallback */
    font-size: 24px;
    color: var(--royal-blue);
    font-weight: 700;
}

.step-details .body {
    margin-top: var(--space-sm);
}

/* Testimonials */
.testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
}

.testimonial-card .stars {
    color: var(--craft-cyan);
    margin-bottom: var(--space-md);
    display: flex;
    gap: 4px;
}

.testimonial-card .quote {
    color: var(--white);
    font-weight: 500;
    margin-bottom: var(--space-xl);
}

.client-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.client-info .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.avatar.bg-gradient { background: var(--gradient-brand-h); }
.avatar.bg-blue { background: var(--royal-blue); }

.client-name {
    font-weight: 600;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--royal-blue);
    background: var(--surface-elevated);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-brand-h);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price {
    font-size: 48px;
    font-weight: 800;
    margin: var(--space-xl) 0;
    letter-spacing: -0.02em;
}

.price .currency {
    font-size: 24px;
    vertical-align: super;
}

.price .period {
    font-size: 16px;
    color: var(--ash);
    font-weight: 400;
}

.feature-list {
    list-style: none;
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--ash);
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--surface-dark);
    border: 1px solid var(--separator);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: var(--space-lg) var(--space-xl);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    color: var(--ash);
    transition: transform var(--transition-fast);
}

.faq-question.active i {
    transform: rotate(45deg);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fast);
}

.faq-answer p {
    padding: 0 var(--space-xl) var(--space-xl);
}

/* Footer */
.footer {
    padding-top: var(--space-5xl);
}

.footer-bottom {
    background: var(--surface-dark);
    border-top: 1px solid var(--separator);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links a {
    color: var(--ash);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUpAnim 800ms var(--ease-out-quart) forwards;
}

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms var(--ease-out-quart), transform 800ms var(--ease-out-quart);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .cards-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .process-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-bg-glow {
        width: 100vw;
        height: 100vw;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .portfolio-item {
        height: 250px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .logo, .client-info {
        justify-content: center;
    }
}
