/* ============================================
   PhotoFlow Gallery Landing Page
   Luxury Editorial Aesthetic with Cinematic Motion
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Deep sophistication with luminous accents */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111114;
    --bg-tertiary: #18181c;
    --bg-elevated: #1f1f24;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-primary: #c084fc;
    --accent-secondary: #a855f7;
    --accent-glow: rgba(192, 132, 252, 0.4);

    --gradient-primary: linear-gradient(135deg, #c084fc 0%, #f472b6 50%, #fb923c 100%);
    --gradient-secondary: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(192, 132, 252, 0.15) 0%, transparent 70%);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;

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

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Sizes */
    --nav-height: 80px;
    --max-width: 1400px;
}

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

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

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

/* Custom Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 5px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: var(--gradient-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--accent-primary);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    padding: 0.6rem 1.25rem;
    background: var(--gradient-primary);
    color: var(--bg-primary) !important;
    border-radius: 100px;
    font-weight: 600;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Language Switcher */
.lang-switch {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.lang-switch--mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-md);
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.5s ease, color 0.2s ease;
}

.mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-menu.active .lang-switch--mobile {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.mobile-link:hover {
    color: var(--accent-primary);
}

.mobile-link--cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    color: var(--bg-primary) !important;
    border-radius: 100px;
    font-size: 1.25rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(192, 132, 252, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(244, 114, 182, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(129, 140, 248, 0.04) 0%, transparent 70%);
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.hero-grain {
    position: absolute;
    inset: 0;
    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");
    opacity: 0.03;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.4rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.title-line--accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
    border: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px var(--accent-glow);
}

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

.btn--secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.mockup-browser {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 30px 60px -30px rgba(0, 0, 0, 0.3);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-elevated);
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-bar {
    flex: 1;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.browser-content {
    padding: var(--space-md);
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.preview-image {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    animation: imageFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.3s);
}

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

.image-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s var(--ease-out-expo);
}

.preview-image:hover .image-placeholder {
    transform: scale(1.1);
}

.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: var(--gradient-glow);
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(60px);
    opacity: 0.5;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--space-3xl) var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

/* ============================================
   Features Section
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: var(--space-lg);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-light);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card--large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.feature-card--accent {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.1) 0%, rgba(244, 114, 182, 0.05) 100%);
    border-color: rgba(192, 132, 252, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 16px;
    margin-bottom: var(--space-md);
    color: var(--accent-primary);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-visual {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: var(--space-md);
}

.processing-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-radius: 12px;
    font-size: 0.9rem;
}

.step-icon {
    font-size: 2rem;
}

.step-size {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
}

.process-step--optimized .step-size {
    color: #22c55e;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--accent-primary);
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(5px); opacity: 0.5; }
}

/* ============================================
   Showcase Section
   ============================================ */
.showcase {
    position: relative;
    padding: var(--space-3xl) 0;
    margin: 0;
    max-width: none;
}

.showcase-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.showcase-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.showcase .section-header,
.showcase .showcase-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.showcase-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
}

.showcase-tabs {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.showcase-tab {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-tab svg {
    width: 20px;
    height: 20px;
}

.showcase-tab:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.showcase-tab.active {
    background: var(--bg-primary);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.showcase-display {
    padding: var(--space-lg);
    min-height: 400px;
}

.showcase-panel {
    display: none;
}

.showcase-panel.active {
    display: block;
    animation: fadeIn 0.5s var(--ease-out-expo);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Demo Grid */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.demo-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out-expo);
}

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

.demo-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        hsl(var(--hue), 70%, 60%) 0%,
        hsl(calc(var(--hue) + 30), 70%, 50%) 100%);
    transition: transform 0.5s var(--ease-out-expo);
}

.demo-item:hover .demo-inner {
    transform: scale(1.1);
}

/* Demo Masonry */
.demo-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    grid-auto-rows: 100px;
}

.demo-masonry .demo-item--tall {
    grid-row: span 2;
}

.demo-masonry .demo-item--wide {
    grid-column: span 2;
}

/* Demo Carousel */
.demo-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s var(--ease-out-expo);
}

.carousel-slide {
    min-width: 100%;
    aspect-ratio: 16/9;
}

.carousel-slide .demo-inner {
    border-radius: 12px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-btn--prev {
    left: var(--space-md);
}

.carousel-btn--next {
    right: var(--space-md);
}

/* ============================================
   Performance Section
   ============================================ */
.perf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.perf-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
}

.perf-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 30px 60px -20px var(--accent-glow);
}

.perf-metric {
    margin-bottom: var(--space-md);
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.metric-unit {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.perf-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.perf-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Performance Comparison */
.perf-visual {
    max-width: 900px;
    margin: 0 auto;
}

.perf-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.comparison-side {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: var(--space-lg);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.comparison-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.comparison-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.comparison-badge--bad {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.comparison-badge--good {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

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

.bar-item {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    align-items: center;
    gap: var(--space-sm);
}

.bar-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bar-track {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: var(--width);
    background: #ef4444;
    border-radius: 4px;
    transition: width 1s var(--ease-out-expo);
}

.bar-fill--good {
    background: #22c55e;
}

.bar-value {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
}

.comparison-divider span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ============================================
   Security Section
   ============================================ */
.security {
    background: var(--bg-secondary);
    border-radius: 32px;
    margin: var(--space-2xl) auto;
    max-width: var(--max-width);
    width: calc(100% - var(--space-lg) * 2);
}

.security-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-3xl);
}

.security-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-radius: 24px;
    margin-bottom: var(--space-lg);
    color: #22c55e;
}

.security-icon svg {
    width: 48px;
    height: 48px;
}

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

.security-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

.security-features {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.sec-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.sec-feature svg {
    width: 20px;
    height: 20px;
    color: #22c55e;
}

/* ============================================
   Extensions Section
   ============================================ */
.extensions {
    position: relative;
    padding: var(--space-3xl) var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

.extensions-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.extensions-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.extensions-count {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s var(--ease-out-expo);
}

.count-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.count-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.count-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Plugins Section */
.plugins-section {
    margin-bottom: var(--space-2xl);
}

.plugins-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.plugins-section h3 svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.plugin-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: var(--space-lg);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.plugin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plugin-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-light);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.plugin-card:hover::before {
    opacity: 1;
}

.plugin-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.plugin-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 12px;
    flex-shrink: 0;
}

.plugin-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.plugin-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.plugin-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plugin-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modules Section */
.modules-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modules-section h3 svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.module-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.module-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.3s ease;
}

.category-header:hover {
    background: var(--bg-elevated);
}

.category-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
}

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

.category-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: var(--space-xs);
}

.category-count {
    padding: 0.3rem 0.75rem;
    background: var(--bg-elevated);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.category-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    padding: var(--space-lg);
}

.module-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s var(--ease-out-expo);
}

.module-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
    transform: translateX(4px);
}

.module-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 8px;
    flex-shrink: 0;
}

.module-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.module-info h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.module-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Extensions responsive */
@media (max-width: 768px) {
    .plugins-grid {
        grid-template-columns: 1fr;
    }

    .extensions-count {
        gap: var(--space-md);
    }

    .category-modules {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .category-count {
        align-self: flex-start;
    }
}

/* ============================================
   Download Section
   ============================================ */
.download {
    position: relative;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    max-width: var(--max-width);
    overflow: visible;
}

.download-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.download-orbs {
    position: absolute;
    inset: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 10s ease-in-out infinite;
}

.orb--1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: 0;
    left: 10%;
    animation-delay: 0s;
}

.orb--2 {
    width: 300px;
    height: 300px;
    background: #f472b6;
    bottom: 10%;
    right: 20%;
    animation-delay: -3s;
}

.orb--3 {
    width: 250px;
    height: 250px;
    background: #818cf8;
    top: 40%;
    right: 5%;
    animation-delay: -6s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.download-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

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

.pricing-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
    text-align: left;
    transition: all 0.4s var(--ease-out-expo);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-light);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.pricing-card--featured {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(192, 132, 252, 0.08) 0%, var(--bg-secondary) 30%);
}

.pricing-card--featured:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 30px 60px -20px var(--accent-glow);
}

.pricing-ribbon {
    position: absolute;
    top: 26px;
    right: -38px;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.3rem 2rem;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.pricing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-lg) 0;
}

.pricing-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 14px;
    color: var(--accent-primary);
}

.pricing-card--featured .pricing-icon {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.2) 0%, rgba(244, 114, 182, 0.1) 100%);
}

.pricing-icon svg {
    width: 26px;
    height: 26px;
}

.pricing-badge {
    padding: 0.35rem 0.9rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card--featured .pricing-badge {
    background: rgba(192, 132, 252, 0.15);
    border-color: rgba(192, 132, 252, 0.3);
    color: var(--accent-primary);
}

.pricing-body {
    padding: var(--space-lg);
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: var(--space-sm);
}

.pricing-amount .price-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.pricing-amount .price-currency {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pricing-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.pricing-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-features svg {
    width: 18px;
    height: 18px;
    color: #22c55e;
    flex-shrink: 0;
}

.pricing-features .highlight {
    color: var(--text-primary);
    font-weight: 500;
}

.pricing-footer {
    padding: 0 var(--space-lg) var(--space-lg);
}

.btn--pricing {
    width: 100%;
    justify-content: center;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    gap: var(--space-sm);
}

.btn--pricing:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.btn--pricing svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn--pricing:hover svg {
    transform: translateX(4px);
}

.btn--pricing-featured {
    width: 100%;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    gap: var(--space-sm);
}

.btn--pricing-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px var(--accent-glow);
}

.btn--pricing-featured svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn--pricing-featured:hover svg {
    transform: translateX(4px);
}

/* Pricing Guarantee */
.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 100px;
    max-width: 400px;
    margin: 0 auto var(--space-xl);
    font-size: 0.95rem;
    color: #22c55e;
    font-weight: 500;
}

.pricing-guarantee svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

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

.download-requirements h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.req-tags {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.req-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-lg);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-col h5 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Animations
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-animate="fade-left"] {
    transform: translateX(50px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

    .feature-card--large {
        grid-column: span 2;
    }

    .perf-comparison {
        grid-template-columns: 1fr;
    }

    .comparison-divider {
        padding: var(--space-md);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2.5rem;
        --space-2xl: 4rem;
        --space-3xl: 6rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .feature-card--large {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .perf-grid {
        grid-template-columns: 1fr;
    }

    .showcase-tabs {
        flex-wrap: wrap;
    }

    .showcase-tab span {
        display: none;
    }

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

    .security-features {
        flex-direction: column;
        align-items: center;
    }

    .card-footer {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .req-tags {
        flex-direction: column;
    }
}
