/*
 * Academy VFX - Simple Dark Theme
 * Design System: Minimalist Dark with warm amber accent
 *
 * Based on the "atmospheric depth" philosophy:
 * - Layered slate tones create visual interest through darkness itself
 * - Warm amber (#F59E0B) provides contrast against cool dark tones
 * - Glass-effect cards with subtle backdrop blur
 * - Generous spacing creates premium, breathing room feel
 */

/* ============================================================================
   CSS CUSTOM PROPERTIES (Theme Tokens)
   ============================================================================ */

:root {
    /* Colors - Dark Slate + Amber */
    --color-background: #0A0A0F;
    --color-background-alt: #12121A;
    --color-foreground: #FAFAFA;
    --color-muted: #1A1A24;
    --color-muted-foreground: #C4C4CC;
    --color-accent: #F59E0B;
    --color-accent-foreground: #0A0A0F;
    --color-accent-muted: rgba(245, 158, 11, 0.15);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-card: rgba(26, 26, 36, 0.6);
    --color-card-solid: #1A1A24;
    --color-ring: #F59E0B;

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

    /* Typography */
    --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    --text-7xl: 6rem;

    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-24: 6rem;
    --spacing-32: 8rem;
    --spacing-40: 10rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);

    /* Ambient Glows (signature effect) */
    --glow-sm: 0 0 20px rgba(245, 158, 11, 0.15);
    --glow-md: 0 0 40px rgba(245, 158, 11, 0.2);
    --glow-lg: 0 0 60px rgba(245, 158, 11, 0.25);
    --glow-border: 0 0 0 1px rgba(245, 158, 11, 0.3), 0 0 20px rgba(245, 158, 11, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-base: 200ms ease-out;
    --transition-slow: 300ms ease-out;
    --video-crossfade: 2s;  /* Hero video crossfade duration */

    /* Container */
    --container-max: 72rem;
    --container-padding: 1.5rem;
}

@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: 3rem;
    }
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-foreground);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise texture overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--color-foreground);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

@media (min-width: 768px) {
    h1 {
        font-size: var(--text-6xl);
    }
    h2 {
        font-size: var(--text-5xl);
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: var(--text-7xl);
    }
}

p {
    margin-bottom: var(--spacing-4);
}

.text-muted {
    color: var(--color-muted-foreground);
}

.text-accent {
    color: var(--color-accent);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #FBBF24; /* Lighter amber */
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding-top: var(--spacing-24);
    padding-bottom: var(--spacing-24);
}

@media (min-width: 768px) {
    .section {
        padding-top: var(--spacing-32);
        padding-bottom: var(--spacing-32);
    }
}

@media (min-width: 1024px) {
    .section {
        padding-top: var(--spacing-40);
        padding-bottom: var(--spacing-40);
    }
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-background), 0 0 0 4px var(--color-accent);
}

.btn:active {
    transform: scale(0.98);
}

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

/* Primary Button - Amber */
.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-accent-foreground);
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Secondary Button - Outline */
.btn-secondary {
    background-color: transparent;
    color: var(--color-foreground);
    border: 1px solid var(--color-border-hover);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Ghost Button */
.btn-ghost {
    background-color: transparent;
    color: var(--color-foreground);
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--text-base);
}

/* ============================================================================
   CARDS (Glass Effect)
   ============================================================================ */

.card {
    background: var(--color-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
    transition: all var(--transition-slow);
}

.card:hover {
    border-color: var(--color-border-hover);
    background: rgba(26, 26, 36, 0.8);
}

.card-interactive:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Highlighted Card (featured) */
.card-featured {
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: var(--glow-border);
}

/* ============================================================================
   FORMS
   ============================================================================ */

.form-group {
    margin-bottom: var(--spacing-4);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-foreground);
}

.form-input {
    display: block;
    width: 100%;
    height: 2.75rem;
    padding: var(--spacing-2) var(--spacing-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-foreground);
    background: var(--color-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.form-input::placeholder {
    color: var(--color-muted-foreground);
}

.form-input:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1), 0 0 20px rgba(245, 158, 11, 0.1);
}

textarea.form-input {
    height: auto;
    min-height: 6rem;
    resize: vertical;
}

select.form-input {
    cursor: pointer;
}

/* ============================================================================
   VIDEO CARD
   ============================================================================ */

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    transition: all var(--transition-slow);
}

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

.video-card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-card-thumbnail img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out, opacity 0.3s ease-out;
}

.video-card-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.3s ease-out;
}

.video-card:hover .video-card-thumbnail img,
.video-card:hover .video-card-thumbnail video {
    transform: scale(1.05);
}

/* Play button overlay */
.video-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: all var(--transition-slow);
}

.video-card:hover .video-card-play {
    opacity: 0;
    pointer-events: none;
}

.video-card-play-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    color: var(--color-accent-foreground);
    box-shadow: var(--glow-md);
    transition: all var(--transition-base);
}

.video-card:hover .video-card-play-icon {
    transform: scale(1.1);
    box-shadow: var(--glow-lg);
}

.video-card-content {
    padding: var(--spacing-4);
}

.video-card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-1);
}

.video-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

.video-card-title a:hover {
    color: var(--color-accent);
}

.video-card-description {
    font-size: var(--text-sm);
    color: var(--color-muted-foreground);
    margin-bottom: var(--spacing-3);
}

.video-card-price {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-accent);
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-foreground);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--color-accent);
}

.nav-links {
    display: none;
    gap: var(--spacing-6);
    margin-left: auto;  /* Push to right when nav-actions is absent */
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-muted-foreground);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-foreground);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

/* ============================================================================
   HERO BACKGROUND VIDEO
   ============================================================================ */

.hero-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.hero-video-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--video-crossfade) ease-in-out;
}

.hero-video-bg video.fade-out {
    opacity: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(10, 10, 15, 0.70) 0%,
        rgba(10, 10, 15, 0.50) 50%,
        rgba(10, 10, 15, 0.35) 100%
    );
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    position: relative;
    padding-top: var(--spacing-8);
    padding-bottom: var(--spacing-12);
    text-align: center;
}

@media (min-width: 768px) {
    .hero {
        padding-top: var(--spacing-12);
        padding-bottom: var(--spacing-16);
    }
}

@media (min-width: 1440px) {
    .hero {
        padding-top: var(--spacing-16);
        padding-bottom: var(--spacing-24);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-4);
    margin-bottom: var(--spacing-6);
    font-size: var(--text-sm);
    color: var(--color-accent);
    background: var(--color-accent-muted);
    border-radius: var(--radius-full);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero-badge::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-6);
}

.hero-subtitle {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-8);
    font-size: var(--text-lg);
    color: var(--color-muted-foreground);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-4);
}

/* ============================================================================
   PRODUCT GRID
   ============================================================================ */

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Features grid - 4 columns on large screens, 2x2 on medium */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
    padding-top: var(--spacing-16);
    padding-bottom: var(--spacing-8);
    border-top: 1px solid var(--color-border);
    background: var(--color-background-alt);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    max-width: 20rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-4);
}

.footer-description {
    font-size: var(--text-sm);
    color: var(--color-muted-foreground);
}

.footer-links {
    display: flex;
    gap: var(--spacing-12);
}

.footer-column h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-4);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-2);
}

.footer-column a {
    font-size: var(--text-sm);
    color: var(--color-muted-foreground);
}

.footer-column a:hover {
    color: var(--color-foreground);
}

.footer-bottom {
    margin-top: var(--spacing-12);
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-muted-foreground);
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.flex {
    display: flex;
}

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

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 { gap: var(--spacing-2); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }
.gap-8 { gap: var(--spacing-8); }

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

.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.mb-8 { margin-bottom: var(--spacing-8); }
.mb-12 { margin-bottom: var(--spacing-12); }

/* Ambient background orbs */
.ambient-orb {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.03;
}

.ambient-orb-1 {
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--color-accent);
}

.ambient-orb-2 {
    bottom: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: var(--color-accent);
}
