/* =================================================================
   VIFYO DARK THEME - PREMIUM KURUMSAL TASARIM
   Elite B2B Software Design System
   ================================================================= */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* DESIGN TOKENS */
:root {
    /* Base Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-elevated: #1a1a24;
    --bg-elevated-hover: #20202e;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    
    /* Border & Divider */
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --divider: rgba(255, 255, 255, 0.06);
    
    /* Accent */
    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
    --accent-subtle: rgba(59, 130, 246, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 24px 0 rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px 0 rgba(0, 0, 0, 0.6);
    
    /* Glow */
    --glow-subtle: 0 0 20px rgba(59, 130, 246, 0.1);
    --glow-medium: 0 0 40px rgba(59, 130, 246, 0.15);
    
    /* Spacing */
    --container-max: 1240px;
    --section-padding: 100px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.dark-theme {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CONTAINER */
.container-dark {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* =================================================================
   HEADER
   ================================================================= */

.header-dark {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-dark.scrolled .header-backdrop {
    opacity: 1;
}

.header-inner-dark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-dark {
    display: flex;
    align-items: center;
    z-index: 10;
}

.logo-image-dark {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}

.logo-dark:hover .logo-image-dark {
    opacity: 0.8;
}

.nav-dark {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link-dark {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

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

.nav-link-dark::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav-link-dark:hover::after {
    transform: scaleX(1);
}

.btn-header-dark {
    margin-left: 16px;
}

.mobile-menu-toggle-dark {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.mobile-menu-toggle-dark span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.mobile-menu-dark {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    padding: 24px;
    overflow-y: auto;
}

.mobile-menu-dark.active {
    display: block;
}

.mobile-nav-dark {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link-dark {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-cta-dark {
    margin-top: 16px;
}

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

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary-dark {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--glow-subtle);
}

.btn-primary-dark:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--glow-medium);
}

.btn-secondary-dark {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

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

.btn-large-dark {
    padding: 16px 32px;
    font-size: 16px;
}

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

.hero-dark {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.8) 0%,
        rgba(10, 10, 15, 0.95) 50%,
        var(--bg-primary) 100%
    );
}

.hero-grid-dark {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 48% 52%;
    gap: 64px;
    align-items: center;
}

.hero-heading-dark {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-description-dark {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-actions-dark {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-badge-dark {
    font-size: 14px;
    color: var(--text-muted);
}

/* HERO SLIDER */
.hero-slider-dark {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-xl);
}

.slider-container-dark {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
}

.slider-image-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slider-image-dark.active {
    opacity: 1;
}

.slider-dots-dark {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot-dark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot-dark.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* =================================================================
   SERVICES
   ================================================================= */

.services-dark {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.section-header-dark {
    text-align: center;
    margin-bottom: 64px;
}

.section-title-dark {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle-dark {
    font-size: 18px;
    color: var(--text-muted);
}

.services-grid-dark {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card-dark {
    padding: 32px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card-dark:hover {
    transform: translateY(-4px);
    background: var(--bg-elevated-hover);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg), var(--glow-subtle);
}

.service-icon-dark {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 12px;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.service-title-dark {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-description-dark {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
}

.service-link-dark {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.service-link-dark:hover {
    color: var(--accent-hover);
}

/* =================================================================
   DEMO PREVIEW
   ================================================================= */

.demo-preview-dark {
    padding: var(--section-padding) 0;
}

.demo-grid-dark {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 64px;
    align-items: center;
}

.demo-title-dark {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.demo-description-dark {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.demo-note-dark {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--accent-subtle);
    border-left: 3px solid var(--accent-primary);
    border-radius: 8px;
    margin-bottom: 32px;
}

.demo-note-dark svg {
    flex-shrink: 0;
    color: var(--accent-primary);
    margin-top: 2px;
}

.demo-note-dark span {
    font-size: 14px;
    color: var(--text-secondary);
}

.demo-image-wrapper-dark {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-xl);
}

.demo-image-dark {
    width: 100%;
    display: block;
}

/* =================================================================
   METRICS
   ================================================================= */

.metrics-dark {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.metrics-grid-dark {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.metric-card-dark {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    transition: all 0.3s;
}

.metric-card-dark:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-subtle);
}

.metric-value-dark {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
    text-shadow: var(--glow-subtle);
}

.metric-label-dark {
    font-size: 15px;
    color: var(--text-secondary);
}

/* =================================================================
   CASE STUDY
   ================================================================= */

.case-study-dark {
    padding: var(--section-padding) 0;
}

.case-grid-dark {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 64px;
    align-items: center;
}

.case-image-dark {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-xl);
}

.case-tags-dark {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.case-tag-dark {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-subtle);
    border-radius: 6px;
}

.case-title-dark {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.case-section-dark {
    margin-bottom: 24px;
}

.case-label-dark {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.case-text-dark {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* =================================================================
   PROCESS
   ================================================================= */

.process-dark {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.process-grid-dark {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-step-dark {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    transition: all 0.3s;
}

.process-step-dark:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-subtle);
}

.process-number-dark {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    background: var(--accent-subtle);
    border-radius: 50%;
}

.process-title-dark {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.process-description-dark {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* =================================================================
   FINAL CTA
   ================================================================= */

.final-cta-dark {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.cta-background-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    opacity: 0.15;
}

.cta-content-dark {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title-dark {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-description-dark {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-actions-dark {
    display: flex;
    gap: 16px;
    justify-content: center;
}

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

.footer-dark {
    padding: 80px 0 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid-dark {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo-dark {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-tagline-dark {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-title-dark {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-dark {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-dark {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom-dark {
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-copyright-dark {
    font-size: 14px;
    color: var(--text-subtle);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 1024px) {
    .hero-grid-dark {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .services-grid-dark {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-grid-dark,
    .case-grid-dark {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .metrics-grid-dark {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid-dark {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid-dark {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }
    
    .nav-dark,
    .btn-header-dark {
        display: none;
    }
    
    .mobile-menu-toggle-dark {
        display: flex;
    }
    
    .hero-dark {
        padding: 120px 0 64px;
    }
    
    .hero-heading-dark {
        font-size: 36px;
    }
    
    .hero-description-dark {
        font-size: 16px;
    }
    
    .hero-actions-dark {
        flex-direction: column;
    }
    
    .hero-actions-dark .btn-dark {
        width: 100%;
    }
    
    .section-title-dark {
        font-size: 28px;
    }
    
    .section-subtitle-dark {
        font-size: 16px;
    }
    
    .services-grid-dark,
    .metrics-grid-dark,
    .process-grid-dark {
        grid-template-columns: 1fr;
    }
    
    .demo-title-dark,
    .case-title-dark {
        font-size: 24px;
    }
    
    .cta-title-dark {
        font-size: 28px;
    }
    
    .cta-actions-dark {
        flex-direction: column;
    }
    
    .cta-actions-dark .btn-dark {
        width: 100%;
    }
    
    .footer-grid-dark {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
