/**
 * DESIGN SYSTEM: ORGANIC NEURAL NETWORK
 * Inspired by: Biological Luxury, Deep Organic Tones, Futuristic Connectivity
 * Color Psychology: Natural sophistication, organic growth, neural precision
 * Aesthetic: Professional, Catchy, Luxurious - Avoiding flat design
 */

/* ========================================
   DESIGN TOKENS - ORGANIC NEURAL NETWORK
   ======================================== */

:root {
    /* Color Palette - Organic Luxury */
    --onn-bg-void: #131313;                    /* Espresso Black - Deep Void */
    --onn-bg-surface: #4F7348;                 /* Deep Basil - Card surfaces */
    --onn-bg-surface-light: rgba(79, 115, 72, 0.25);
    --onn-accent-primary: #8CA464;             /* Fresh Matcha - CTAs, Neural Nodes */
    --onn-accent-secondary: #7E8D77;           /* Dusty Olive - Lines, Borders */
    --onn-accent-hover: #C4CEB8;               /* Soft Sage - Hover states */
    --onn-text-heading: #E8E0E4;               /* Velvet Mist - Headings */
    --onn-text-body: rgba(232, 224, 228, 0.85);
    --onn-text-muted: rgba(232, 224, 228, 0.6);
    --onn-text-subtle: rgba(232, 224, 228, 0.4);
    --onn-border-primary: rgba(126, 141, 119, 0.3);
    --onn-border-bright: rgba(140, 164, 100, 0.6);

    /* Gradients - Avoiding Flat Design */
    --gradient-bg-primary: linear-gradient(180deg, #131313 0%, #1a1a1a 30%, #1f231e 60%, #2a3127 100%);
    --gradient-card: linear-gradient(135deg, rgba(79, 115, 72, 0.25) 0%, rgba(126, 141, 119, 0.15) 100%);
    --gradient-accent: linear-gradient(135deg, #8CA464 0%, #7E8D77 50%, #8CA464 100%);
    --gradient-text: linear-gradient(135deg, #E8E0E4 0%, #C4CEB8 100%);
    --gradient-neural: radial-gradient(circle, rgba(140, 164, 100, 0.2) 0%, transparent 70%);

    /* Glow Effects - Neural Network Nodes */
    --glow-primary: 0 0 30px rgba(140, 164, 100, 0.4),
                    0 0 60px rgba(140, 164, 100, 0.2),
                    0 0 90px rgba(140, 164, 100, 0.1);
    --glow-hover: 0 0 40px rgba(196, 206, 184, 0.5),
                  0 0 80px rgba(196, 206, 184, 0.25);
    --glow-subtle: 0 0 20px rgba(140, 164, 100, 0.3);

    /* Shadows - Depth & Luxury */
    --shadow-depth: 0 20px 60px rgba(0, 0, 0, 0.7),
                    0 5px 20px rgba(79, 115, 72, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.8);

    /* Typography - Poppins Modern Sans */
    --onn-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --onn-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing (8px base unit) */
    --onn-space-1: 8px;
    --onn-space-2: 16px;
    --onn-space-3: 24px;
    --onn-space-4: 32px;
    --onn-space-5: 40px;
    --onn-space-6: 48px;
    --onn-space-8: 64px;
    --onn-space-10: 80px;
    --onn-space-12: 96px;
    --onn-space-16: 128px;
    --onn-space-20: 130px;
    --onn-space-24: 192px;

    /* Motion - Organic & Natural */
    --onn-transition-fast: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --onn-transition-base: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --onn-transition-slow: 800ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius - Organic Curves */
    --onn-radius-sm: 8px;
    --onn-radius-md: 16px;
    --onn-radius-lg: 24px;
    --onn-radius-xl: 32px;

    /* Grid Pattern Variables */
    --grid-pattern-opacity: 0.3;
    --grid-pattern-size: 50px;
    --grid-pattern-color: rgba(140, 164, 100, 0.03);

    /* Blur Effects */
    --blur-heavy: 100px;
    --blur-medium: 80px;
    --blur-light: 60px;

    /* Icon Container */
    --icon-size-lg: 110px;
    --icon-bg-gradient: linear-gradient(135deg, rgba(140, 164, 100, 0.25), rgba(126, 141, 119, 0.2));

    /* Divider */
    --divider-height: 5px;
    --divider-width: 140px;

    /* Hero Specific */
    --hero-bg-gradient: linear-gradient(135deg, #1a1a1a 0%, #0f1f0f 50%, #131313 100%);
    --hero-overlay-gradient: radial-gradient(circle at 30% 50%, rgba(140, 164, 100, 0.08) 0%, transparent 50%),
                             radial-gradient(circle at 70% 50%, rgba(126, 141, 119, 0.06) 0%, transparent 50%);

    /* Use Cases Section */
    --use-cases-bg-gradient: linear-gradient(180deg, #0a0a0a 0%, #131313 50%, #1a1a1a 100%);
    --use-case-card-bg: rgba(26, 26, 38, 0.6);
    --use-case-card-border: rgba(140, 164, 100, 0.35);
    --use-case-card-border-hover: rgba(140, 164, 100, 0.6);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

.dark-tech-premium {
    background: var(--gradient-bg-primary);
    font-family: var(--onn-font-body);
    color: var(--onn-text-body);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY SCALE & PAIRING
   ======================================== */

/* H1 - Display Heading (Cormorant Garamond) */
.dark-tech-premium h1,
.dark-tech-premium .dark-h1 {
    font-family: var(--onn-font-heading);
    font-size: clamp(52px, 6vw, 84px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--onn-text-heading);
    margin-bottom: var(--onn-space-4);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* H2 - Section Heading (Cormorant Garamond) */
.dark-tech-premium h2,
.dark-tech-premium .dark-h2 {
    font-family: var(--onn-font-heading);
    font-size: clamp(38px, 4.5vw, 60px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--onn-text-heading);
    margin-bottom: var(--onn-space-3);
}

/* H3 - Subsection Heading (Cormorant Garamond) */
.dark-tech-premium h3,
.dark-tech-premium .dark-h3 {
    font-family: var(--onn-font-heading);
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.005em;
    color: var(--onn-text-heading);
    margin-bottom: var(--onn-space-2);
}

/* H4 - Card Heading (Cormorant Garamond) */
.dark-tech-premium h4,
.dark-tech-premium .dark-h4 {
    font-family: var(--onn-font-heading);
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0em;
    color: var(--onn-text-heading);
    margin-bottom: var(--onn-space-2);
}

/* H5 - Subtitle (Manrope for contrast) */
.dark-tech-premium h5,
.dark-tech-premium .dark-h5 {
    font-family: var(--onn-font-body);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--onn-text-body);
    margin-bottom: var(--onn-space-2);
}

/* Italic Emphasis in Headings */
.dark-tech-premium h1 em,
.dark-tech-premium h2 em,
.dark-tech-premium h3 em,
.dark-tech-premium h4 em {
    font-style: italic;
    color: var(--onn-accent-primary);
}

/* Body Text - Readable on Dark */
.dark-tech-premium p,
.dark-tech-premium .dark-body {
    font-family: var(--onn-font-body);
    font-size: clamp(15px, 1.5vw, 17px);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.01em;
    margin-bottom: var(--onn-space-3);
    color: var(--onn-text-body);
}

.dark-small {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--onn-text-muted);
}

.dark-caption {
    font-family: var(--onn-font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--onn-text-subtle);
}

/* Text Opacity Hierarchy */
.dark-text-100 { color: var(--onn-text-heading); opacity: 1; }
.dark-text-70 { color: var(--onn-text-body); opacity: 1; }
.dark-text-50 { color: var(--onn-text-muted); opacity: 1; }

/* ========================================
   GRID & LAYOUT
   ======================================== */

.dark-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--onn-space-5);
}

.dark-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--onn-space-3);
}

.dark-section {
    padding: var(--onn-space-16) 0;
    position: relative;
}

/* ========================================
   UI COMPONENTS - GLASSMORPHISM
   ======================================== */

/* Cards - Glassmorphism with Deep Basil */
.dark-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--onn-border-primary);
    border-radius: var(--onn-radius-lg);
    padding: var(--onn-space-4);
    box-shadow: var(--shadow-lg);
    transition: all var(--onn-transition-base);
    position: relative;
    overflow: hidden;
}

.dark-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--onn-accent-hover), transparent);
    opacity: 0;
    transition: opacity var(--onn-transition-base);
}

.dark-card:hover {
    border-color: var(--onn-border-bright);
    box-shadow: var(--shadow-xl), var(--glow-primary);
    transform: translateY(-6px);
}

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

/* ========================================
   BUTTONS - PRIMARY & SECONDARY
   ======================================== */

.dark-btn {
    font-family: var(--onn-font-body);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: var(--onn-space-2) var(--onn-space-5);
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--onn-transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--onn-space-1);
    position: relative;
    overflow: hidden;
}

/* Primary Button - Fresh Matcha Gradient */
.dark-btn-primary {
    background: var(--gradient-accent);
    color: #131313;
    font-weight: 700;
    box-shadow: var(--glow-subtle), var(--shadow-md);
}

.dark-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--onn-transition-slow);
}

.dark-btn-primary:hover::before {
    left: 100%;
}

.dark-btn-primary:hover {
    background: linear-gradient(135deg, #9DB575 0%, #8CA464 50%, #9DB575 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-hover), var(--shadow-xl);
}

.dark-btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Secondary Button - Ghost with Organic Border */
.dark-btn-secondary {
    background: transparent;
    color: var(--onn-accent-primary);
    border: 2px solid var(--onn-accent-primary);
    box-shadow: none;
}

.dark-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--onn-transition-base);
    z-index: -1;
}

.dark-btn-secondary:hover::before {
    opacity: 1;
}

.dark-btn-secondary:hover {
    border-color: var(--onn-accent-hover);
    color: var(--onn-accent-hover);
    box-shadow: var(--glow-subtle);
    transform: translateY(-2px);
}

/* Ghost Button */
.dark-btn-ghost {
    background: rgba(232, 224, 228, 0.03);
    color: var(--onn-text-body);
    border: 1px solid var(--onn-border-primary);
}

.dark-btn-ghost:hover {
    background: rgba(232, 224, 228, 0.08);
    border-color: var(--onn-border-bright);
}

/* ========================================
   NEURAL NETWORK NODES & ORGANIC VISUALS
   ======================================== */

/* Neural Node Container */
.neural-node {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-neural);
    border: 2px solid var(--onn-accent-secondary);
    box-shadow: var(--glow-primary);
    animation: neural-pulse 3s ease-in-out infinite;
}

.neural-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: var(--onn-accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--onn-accent-primary);
}

/* Neural Connection Lines - Organic */
.neural-line {
    stroke: var(--onn-accent-secondary);
    stroke-width: 2px;
    stroke-dasharray: 8, 4;
    opacity: 0.6;
    animation: neural-flow 2s linear infinite;
}

.neural-line-active {
    stroke: var(--onn-accent-primary);
    stroke-width: 3px;
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--onn-accent-primary));
}

/* ========================================
   ICON CONTAINERS
   ======================================== */

.dark-icon-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    border: 1px solid var(--onn-border-primary);
    border-radius: var(--onn-radius-md);
    margin-bottom: var(--onn-space-3);
    transition: all var(--onn-transition-base);
    position: relative;
}

.dark-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-neural);
    border-radius: var(--onn-radius-md);
    opacity: 0;
    transition: opacity var(--onn-transition-base);
}

.dark-icon-container:hover::before {
    opacity: 1;
}

.dark-icon-container:hover {
    border-color: var(--onn-border-bright);
    box-shadow: var(--glow-subtle);
    transform: scale(1.05);
}

.dark-icon {
    width: 32px;
    height: 32px;
    stroke-width: 2px;
    color: var(--onn-accent-primary);
    position: relative;
    z-index: 1;
}

/* ========================================
   BADGE & LABELS
   ======================================== */

.dark-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px var(--onn-space-2);
    background: rgba(140, 164, 100, 0.15);
    border: 1px solid var(--onn-border-primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--onn-accent-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ========================================
   FEATURE SECTIONS
   ======================================== */

.dark-hero {
    padding: var(--onn-space-20) 0;
    text-align: center;
    position: relative;
    background: var(--gradient-bg-primary);
}

/* Organic Glow Effect */
.dark-hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(140, 164, 100, 0.15), transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    animation: organic-float 20s ease-in-out infinite;
}

.dark-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--onn-space-4);
    margin-top: var(--onn-space-10);
    justify-content: center;
}

.dark-feature {
    padding: var(--onn-space-5);
    background: var(--gradient-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--onn-border-primary);
    border-radius: var(--onn-radius-lg);
    transition: all var(--onn-transition-base);
}

.dark-feature:hover {
    border-color: var(--onn-border-bright);
    box-shadow: var(--shadow-lg), var(--glow-subtle);
    transform: translateY(-8px);
}

/* ========================================
   DIVIDERS
   ======================================== */

.dark-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--onn-border-primary) 50%,
        transparent 100%
    );
    margin: var(--onn-space-8) 0;
}

/* ========================================
   ANIMATIONS - ORGANIC MOTION
   ======================================== */

@keyframes organic-float {
    0%, 100% {
        transform: translate(-50%, 0%) scale(1);
    }
    33% {
        transform: translate(-45%, -5%) scale(1.05);
    }
    66% {
        transform: translate(-55%, 5%) scale(0.95);
    }
}

@keyframes neural-pulse {
    0%, 100% {
        box-shadow: var(--glow-primary);
        transform: scale(1);
    }
    50% {
        box-shadow: var(--glow-hover);
        transform: scale(1.05);
    }
}

@keyframes neural-flow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 24;
    }
}

@keyframes dark-fade-in {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dark-animate-in {
    animation: dark-fade-in var(--onn-transition-slow);
}

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

/* Widescreen (>= 2400px) */
@media (min-width: 2400px) {
    .dark-container {
        max-width: 1800px;
    }

    .dark-hero::before {
        width: 1000px;
        height: 1000px;
    }
}

/* Desktop (1367px - 2399px) */
@media (min-width: 1367px) and (max-width: 2399px) {
    .dark-container {
        max-width: 1400px;
    }
}

/* Laptop (<= 1366px) */
@media (max-width: 1366px) {
    .dark-container {
        max-width: 1200px;
        padding: 0 var(--onn-space-4);
    }

    .dark-section {
        padding: var(--onn-space-16) 0;
    }
}

/* Tablet Landscape (<= 1200px) */
@media (max-width: 1200px) {
    .dark-container {
        padding: 0 var(--onn-space-4);
    }

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

    .dark-section {
        padding: var(--onn-space-12) 0;
    }
}

/* Tablet Portrait (<= 1024px) */
@media (max-width: 1024px) {
    .dark-container {
        padding: 0 var(--onn-space-3);
    }

    .dark-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .dark-hero::before {
        width: 600px;
        height: 600px;
    }
}

/* Mobile Landscape (<= 880px) */
@media (max-width: 880px) {
    .dark-feature-grid {
        grid-template-columns: 1fr;
    }

    .dark-section {
        padding: var(--onn-space-10) 0;
    }

    /* Disable parallax on mobile for performance */
    [data-parallax] {
        transform: none !important;
    }
}

/* Mobile Portrait (<= 767px) */
@media (max-width: 768px) {
    .dark-container {
        padding: 0 var(--onn-space-3);
    }

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

    .dark-section {
        padding: var(--onn-space-12) 0;
    }

    .dark-feature-grid {
        grid-template-columns: 1fr;
    }

    .dark-hero::before {
        width: 500px;
        height: 500px;
    }
}

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

.dark-text-center { text-align: center; }
.dark-text-left { text-align: left; }
.dark-text-right { text-align: right; }

.dark-organic { color: var(--onn-accent-primary); }
.dark-sage { color: var(--onn-accent-hover); }
.dark-velvet { color: var(--onn-text-heading); }

.dark-mt-2 { margin-top: var(--onn-space-2); }
.dark-mt-3 { margin-top: var(--onn-space-3); }
.dark-mt-4 { margin-top: var(--onn-space-4); }
.dark-mt-6 { margin-top: var(--onn-space-6); }
.dark-mt-8 { margin-top: var(--onn-space-8); }
.dark-mt-12 { margin-top: var(--onn-space-12); }
.dark-mt-16 { margin-top: var(--onn-space-16); }

.dark-mb-2 { margin-bottom: var(--onn-space-2); }
.dark-mb-3 { margin-bottom: var(--onn-space-3); }
.dark-mb-4 { margin-bottom: var(--onn-space-4); }
.dark-mb-6 { margin-bottom: var(--onn-space-6); }
.dark-mb-8 { margin-bottom: var(--onn-space-8); }
.dark-mb-12 { margin-bottom: var(--onn-space-12); }
.dark-mb-16 { margin-bottom: var(--onn-space-16); }
.dark-mb-20 { margin-bottom: var(--onn-space-20); }

/* Smooth Scroll */
.dark-tech-premium {
    scroll-behavior: smooth;
}

/* ========================================
   REMOVE TOP SPACE - AGGRESSIVE OVERRIDE
   ======================================== */

body.page-template-template-design-dark,
body.page-template-template-design-dark.et-db,
body.page-template-template-design-dark.et_divi_theme {
    margin: 0 !important;
    padding: 0 !important;
}

.page-template-template-design-dark #main-content,
.page-template-template-design-dark .et_builder_inner_content,
.page-template-template-design-dark #et-main-area,
body.page-template-template-design-dark #main-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}

.page-template-template-design-dark .container,
.page-template-template-design-dark .et_pb_section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page-template-template-design-dark .dark-hero,
.page-template-template-design-dark section.dark-hero,
body.page-template-template-design-dark .dark-hero[style] {
    padding-top: 100px !important;
    margin-top: 0 !important;
}

.page-template-template-design-dark .dark-tech-premium,
body.page-template-template-design-dark .dark-tech-premium {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page-template-template-design-dark #page-container,
body.page-template-template-design-dark #page-container {
    padding-top: 0 !important;
}

/* ========================================
   BACKGROUND VARIATIONS - 60-30-10 RULE
   ======================================== */

/* Deep Void (60% - Primary Background) */
.onn-bg-void {
    background-color: #131313 !important;
}

/* Surface Basil (30% - Cards & Panels) */
.onn-bg-surface {
    background: var(--gradient-card) !important;
}

/* Accent Matcha (10% - Highlights) */
.onn-bg-accent {
    background: var(--onn-accent-primary) !important;
}

/* Gradient Backgrounds */
.onn-gradient-depth {
    background: linear-gradient(180deg, #131313 0%, #1f231e 50%, #2a3127 100%) !important;
}

.onn-gradient-surface {
    background: linear-gradient(135deg, rgba(79, 115, 72, 0.3) 0%, rgba(126, 141, 119, 0.2) 100%) !important;
}

/* Section Alternating Pattern */
.dark-section:nth-child(odd) {
    background-color: #131313 !important;
}

.dark-section:nth-child(even) {
    background: linear-gradient(180deg, #131313 0%, #1a1a1a 100%) !important;
}

/* Feature variations for depth */
.dark-feature:nth-child(3n+1) {
    background: linear-gradient(135deg, rgba(79, 115, 72, 0.25) 0%, rgba(126, 141, 119, 0.15) 100%);
}

.dark-feature:nth-child(3n+2) {
    background: linear-gradient(135deg, rgba(79, 115, 72, 0.2) 0%, rgba(126, 141, 119, 0.12) 100%);
}

.dark-feature:nth-child(3n) {
    background: linear-gradient(135deg, rgba(79, 115, 72, 0.3) 0%, rgba(126, 141, 119, 0.18) 100%);
}

/* ========================================
   RESPONSIVE - HIDE SCROLL INDICATOR ON MOBILE/TABLET
   ======================================== */

/* Hide scroll indicator on tablet and mobile (below 1024px) */
@media (max-width: 1024px) {
    #scroll-indicator {
        display: none !important;
    }
}

/* ========================================
   RESPONSIVE - MOBILE HERO SECTION FIX
   ======================================== */

/* Tablet adjustments (768px - 1024px) */
@media (max-width: 1024px) {
    /* Hero section height and padding */
    .dark-hero {
        min-height: 100vh !important;
        padding: 100px 20px 120px !important;
    }

    /* Hero content grid - reduce gap */
    .dark-hero .hero-content > div[style*="grid-template-columns"] {
        gap: 150px !important;
    }

    /* Hero title - smaller size */
    .dark-hero .hero-title {
        font-size: 48px !important;
        line-height: 1.1 !important;
    }

    /* Hero subtitle - smaller size */
    .dark-hero .hero-subtitle {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}

/* Mobile adjustments (below 768px) */
@media (max-width: 768px) {
    /* Hero section - flex column for natural stacking */
    .dark-hero {
        min-height: 100vh !important;
        padding: 80px 20px 60px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Hero content wrapper - static positioning, stack children vertically */
    .dark-hero .hero-content {
        position: static !important;
        z-index: 1 !important;
        padding: 0 20px !important;
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Remove inline grid styles */
    .dark-hero .hero-content > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
    }

    /* Title section - show first */
    .dark-hero .hero-content > div > div:first-child {
        text-align: center !important;
        padding: 0 !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        order: -1 !important;
    }

    /* Subtitle section - show last */
    .dark-hero .hero-content > div > div:last-child {
        text-align: center !important;
        padding: 0 !important;
        width: 100% !important;
        margin-top: 0 !important;
        order: 1 !important;
    }

    /* 3D Canvas - insert between using JavaScript positioning
       In hero section, it will be positioned relatively between title/subtitle */
    #hero-3d-canvas {
        position: static !important;
        height: 280px !important;
        width: 100% !important;
        max-width: 350px !important;
        margin: 30px auto !important;
        z-index: 1 !important;
        display: block !important;
        order: 0 !important;
    }

    /* Hero title - mobile size */
    .dark-hero .hero-title {
        font-size: 36px !important;
        line-height: 1.2 !important;
        margin-bottom: 0 !important;
    }

    /* Hero subtitle - mobile size */
    .dark-hero .hero-subtitle {
        font-size: 13px !important;
        line-height: 1.6 !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }

    /* Hide ambient glow effects on mobile */
    .dark-hero > div[style*="radial-gradient"] {
        display: none !important;
    }
}

/* PTC styles moved to landingpage.php for clean architecture */

/* ========================================
   OFFRE PHARMACIE PATTERN - CONTAINERS
   ======================================== */

/* Product Tour Container */
.op-product-tour {
    height: 600px;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.op-product-tour::-webkit-scrollbar {
    width: 0;
    display: none;
}

.op-product-tour {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* PTC styles removed - see landingpage.php */

/* ========================================
   OFFRE PHARMACIE PATTERN - SIDEBAR
   ======================================== */

/* Base Sidebar Styles */
.op-sidebar {
    flex: 0 0 30%;
    width: 30%;
    max-width: 30%;
    padding: 40px 30px;
    background: rgba(79, 115, 72, 0.25);
    border-right: 1px solid rgba(140, 164, 100, 0.1);
    display: flex;
    flex-direction: column;
}

/* Step Info Section */
.op-step-info {
    margin-bottom: 20px;
}

.op-step-number {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #8CA464 0%, #7E8D77 100%);
    color: #131313;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    box-shadow: 0 0 20px rgba(140, 164, 100, 0.3);
}

.op-step-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--onn-text-heading);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.op-step-desc {
    font-size: 0.85rem;
    color: var(--onn-text-muted);
    line-height: 1.6;
    margin: 0;
    /* Line clamp for long descriptions */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Description span visibility toggle */
.op-step-desc .op-desc-assembled,
.op-step-desc .op-desc-separated,
.op-step-desc .op-desc-3d,
.op-step-desc .op-desc-video {
    display: none;
}

.op-step-desc .op-desc-assembled.active,
.op-step-desc .op-desc-separated.active,
.op-step-desc .op-desc-3d.active,
.op-step-desc .op-desc-video.active {
    display: inline;
}

/* Toggle Container */
.op-toggle-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
    padding-top: 30px;
}

/* Menu Items */
.op-menu-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(140, 164, 100, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.op-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(140, 164, 100, 0.25);
}

.op-menu-btn {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    font-family: var(--onn-font-body);
}

.op-menu-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8CA464;
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 15px rgba(140, 164, 100, 0.6);
}

.op-menu-content {
    flex: 1;
}

.op-menu-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--onn-text-heading);
    margin-bottom: 4px;
    position: relative;
}

/* Toggle label visibility */
.op-menu-item[data-mode="3d"] .op-label-3d,
.op-menu-item[data-mode="assembled"] .op-label-assembled {
    display: inline;
}

.op-menu-item[data-mode="3d"] .op-label-video,
.op-menu-item[data-mode="separated"] .op-label-separated,
.op-menu-item[data-mode="assembled"] .op-label-separated {
    display: none;
}

.op-menu-item[data-mode="separated"] .op-label-separated,
.op-menu-item:not([data-mode="3d"]):not([data-mode="assembled"]):not([data-mode="separated"]) .op-label-video {
    display: inline;
}

.op-menu-description {
    font-size: 0.875rem;
    color: var(--onn-text-muted);
    line-height: 1.5;
    /* Line clamp for long descriptions */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Toggle description visibility - same pattern */
.op-menu-item[data-mode="3d"] .op-desc-3d,
.op-menu-item[data-mode="assembled"] .op-desc-assembled {
    display: inline;
}

.op-menu-item[data-mode="3d"] .op-desc-video,
.op-menu-item[data-mode="separated"] .op-desc-separated,
.op-menu-item[data-mode="assembled"] .op-desc-separated {
    display: none;
}

.op-menu-item[data-mode="separated"] .op-desc-separated,
.op-menu-item:not([data-mode="3d"]):not([data-mode="assembled"]):not([data-mode="separated"]) .op-desc-video {
    display: inline;
}

/* Toggle Item - Separate Menu Item */
.op-toggle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-top: 8px;
}

.op-toggle-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(140, 164, 100, 0.1);
    border: 1px solid rgba(140, 164, 100, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.op-toggle-indicator:hover {
    background: rgba(140, 164, 100, 0.2);
    border-color: rgba(140, 164, 100, 0.4);
}

.op-toggle-icon {
    width: 16px;
    height: 16px;
    stroke: var(--onn-accent-primary);
}

.op-toggle-hint {
    font-size: 0.875rem;
    color: var(--onn-text-muted);
    white-space: nowrap;
    font-weight: 500;
}

/* Toggle hint visibility based on mode */
/* Step 1: assembled/separated */
.op-toggle-item[data-mode="assembled"] .op-hint-assembled {
    display: inline;
}

.op-toggle-item[data-mode="assembled"] .op-hint-separated {
    display: none;
}

.op-toggle-item[data-mode="separated"] .op-hint-assembled {
    display: none;
}

.op-toggle-item[data-mode="separated"] .op-hint-separated {
    display: inline;
}

/* Steps 2-6: 3d/video */
.op-toggle-item[data-mode="3d"] .op-hint-3d {
    display: inline;
}

.op-toggle-item[data-mode="3d"] .op-hint-video {
    display: none;
}

.op-toggle-item[data-mode="video"] .op-hint-3d {
    display: none;
}

.op-toggle-item[data-mode="video"] .op-hint-video {
    display: inline;
}

/* Make entire toggle item clickable */
.op-toggle-item {
    cursor: pointer;
    user-select: none;
}

.op-toggle-item:hover .op-toggle-indicator {
    background: rgba(140, 164, 100, 0.2);
    border-color: rgba(140, 164, 100, 0.4);
}


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

@media (max-width: 1200px) {
  /* PTC styles handled in landingpage.php */

  /* OP Pattern Responsive */
  .op-product-tour {
    height: 550px;
  }

  .op-sidebar {
    flex: 0 0 35%;
    width: 35%;
    max-width: 35%;
    padding: 30px 20px;
  }

  .op-step-container {
    min-height: 550px;
    height: 550px;
  }
}

@media (max-width: 992px) {
  /* OP Pattern Responsive - Tablet */
  .op-sidebar {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid rgba(140, 164, 100, 0.1);
  }

  .op-step-desc {
    display: none;
  }

  .op-showcase {
    flex-direction: column;
  }

  .op-step-container {
    height: auto;
    min-height: 500px;
    padding: 10px;
  }
}

/* PTC step indicator styles removed - see landingpage.php */

/* OP Pattern Responsive - Tablet */
@media (max-width: 1024px) {
  .op-sidebar {
    padding: 15px 20px;
  }

  .op-step-title {
    font-size: 1.3rem;
  }

  .op-step-container {
    min-height: 450px;
  }

  .op-showcase {
    border-radius: 16px;
  }
}

@media (max-width: 576px) {
  /* OP Pattern Responsive - Small Mobile */
  .op-sidebar {
    padding: 12px 15px;
  }

  .op-step-number {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .op-step-container {
    padding: 8px;
    min-height: 400px;
  }

  .op-showcase {
    border-radius: 12px;
  }
}

/* PTC accessibility and focus styles removed - see landingpage.php */