/* ============================================
   Cinespinner Website Styles
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --color-bg: #0a0a0f;
    --color-bg-elevated: #12121a;
    --color-bg-card: #1a1a24;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #ffffff;
    --color-text-muted: #8888a0;
    --color-text-subtle: #55556a;
    --color-primary: #6366f1;
    --color-primary-hover: #818cf8;
    --color-accent: #f472b6;
    --color-success: #34d399;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

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

.nav-cta {
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: var(--color-text) !important;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(99, 102, 241, 0.4);
}

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

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

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0.5;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    filter: blur(60px);
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #fff 0%, #a5a5b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--color-text-subtle);
}

.hero-visual {
    position: absolute;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.3;
    pointer-events: none;
}

.palette-showcase {
    position: relative;
    width: 100%;
    height: 100%;
}

.palette-ring {
    position: absolute;
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

.palette-ring-1 {
    inset: 0;
    background: conic-gradient(from 0deg, #6366f1, #8b5cf6, #d946ef, #f472b6, #fb7185, #f97316, #facc15, #4ade80, #2dd4bf, #22d3ee, #6366f1);
    opacity: 0.6;
}

.palette-ring-2 {
    inset: 80px;
    background: conic-gradient(from 180deg, #1e1b4b, #312e81, #4c1d95, #6b21a8, #86198f, #9d174d, #b91c1c, #c2410c, #a16207, #4d7c0f, #15803d, #0f766e, #0e7490, #1e40af, #1e1b4b);
    animation-direction: reverse;
    animation-duration: 25s;
}

.palette-ring-3 {
    inset: 160px;
    background: conic-gradient(from 90deg, #fef3c7, #fde68a, #fcd34d, #fbbf24, #f59e0b, #d97706, #b45309, #92400e, #78350f, #fef3c7);
    animation-duration: 20s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    background: var(--color-bg-elevated);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    justify-items: center;
}

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

.gallery-palette {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.2);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-palette {
    transform: scale(1.05);
}

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

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-palette {
        width: 150px;
        height: 150px;
    }
}

.gallery-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.gallery-title {
    font-family: var(--font-display);
    font-weight: 600;
}

.gallery-profile {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.gallery-note {
    text-align: center;
    margin-top: var(--space-2xl);
    font-size: 0.875rem;
    color: var(--color-text-subtle);
}

/* ============================================
   Profiles Section
   ============================================ */
.profiles {
    background: var(--color-bg-elevated);
}

.profiles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.profile-item {
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.profile-badge {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.profile-badge.badge-new {
    color: var(--color-success);
    background: rgba(52, 211, 153, 0.1);
}

.profile-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   Download Section
   ============================================ */
.download {
    padding: var(--space-4xl) 0;
}

.download-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    padding: var(--space-3xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.download-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.download-subtitle {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.price-container {
    margin-bottom: var(--space-xl);
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
}

.price-period {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.download-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.download-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--color-text-muted);
}

.download-features svg {
    color: var(--color-success);
    flex-shrink: 0;
}

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

.download-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-subtle);
}

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

.download-palette {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 50%;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.app-window {
    width: 100%;
    max-width: 350px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.app-titlebar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
}

.app-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.app-btn.red { background: #ff5f57; }
.app-btn.yellow { background: #febc2e; }
.app-btn.green { background: #28c840; }

.app-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.app-content {
    padding: var(--space-3xl);
    text-align: center;
}

.app-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.app-text {
    color: var(--color-text-subtle);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 600;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============================================
   Success Page Styles
   ============================================ */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.success-card {
    max-width: 500px;
    padding: var(--space-3xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.success-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.success-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .download-card {
        grid-template-columns: 1fr;
    }

    .download-visual {
        order: -1;
    }
}

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

    .hero {
        min-height: auto;
        padding: calc(var(--space-4xl) + 60px) 0 var(--space-3xl);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .features-grid,
    .profiles-list {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: var(--space-xl);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

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

.hero-content > * {
    animation: fadeInUp 0.6s ease backwards;
}

.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }
.hero-note { animation-delay: 0.5s; }
