/* Import czcionek z Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Space+Grotesk:wght@500;700&display=swap');

/* Podstawowe style bazowe */
:root {
    --bg-dark: #121212;
    --text-light: #F0F0F0;
    --accent-orange: #FF8C00;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Ensure touch targets are at least 44x44px */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
}

h1,
h2,
h3,
h4,
.font-heading,
.font-display {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

/* Glass navigation effect */
.glass-nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(18, 18, 18, 0.8);
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
}

/* Customowy scrollbar w klimacie Dark Mode */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* Klasa pomocnicza dla pomarańczowych akcentów */
.text-accent {
    color: var(--accent-orange);
}

.bg-accent {
    background-color: var(--accent-orange);
}

/* Enterprise Navigation Styles */
.enterprise-nav {
    background-color: #121212;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 50;
}

/* Mega Dropdown - Full width panel like Rigby */
.mega-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.mega-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-dropdown.hidden {
    display: none;
}

.mega-dropdown.active.hidden {
    display: block;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Better spacing on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Ensure cards stack properly */
    .grid {
        gap: 1.5rem;
    }
    
    /* Improve button readability on mobile */
    button {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Touch target size */
    }
    
    /* Better text sizing for mobile */
    h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.1;
    }
    
    h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.2;
    }
    
    h3 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.3;
    }
    
    /* Reduce padding on mobile for better space usage */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Optimize card padding on mobile */
    .bg-\[#1a1a1a\] {
        padding: 1.5rem;
    }
    
    /* Better mobile navigation */
    .enterprise-nav nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Ensure hero is scannable on mobile */
    .max-w-5xl {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Ensure fonts load with fallbacks */
.font-display,
.font-heading {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
}

.font-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
}

/* DNA Pillar Styles */
.dna-pillar {
    transition: all 0.3s ease;
}

.dna-pillar:hover {
    transform: translateY(-4px);
}

/* Mobile DNA Pillar optimizations */
@media (max-width: 768px) {
    .dna-pillar {
        padding: 1.5rem;
    }
    
    .dna-pillar:hover {
        transform: none;
    }
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    outline: none;
}

.faq-question:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-answer:not(.hidden) {
    opacity: 1;
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* Mobile FAQ optimizations */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 1rem;
    }
    
    .faq-item {
        margin-bottom: 0.75rem;
    }
}

/* ============================================
   BRUTALIST-ELEGANT STYLE ENHANCEMENTS
   ============================================ */

/* Sharper typography for headlines */
h1, h2, h3, h4, .font-display {
    letter-spacing: -0.03em;
    font-feature-settings: "ss01", "ss02";
}

/* Premium spacing utilities */
.section-spacing {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* High-contrast focus states */
*:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 4px;
}

/* Premium button hover state */
button, .btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brutalist grid lines */
.grid-brutalist {
    gap: 1px;
    background-color: #333;
}

.grid-brutalist > * {
    background-color: var(--bg-dark);
}

/* Premium link underlines */
a.premium-link {
    position: relative;
    text-decoration: none;
}

a.premium-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

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

/* ============================================
   PREMIUM MOBILE APP EXPERIENCE
   ============================================ */

@media (max-width: 768px) {
    /* Premium app-like feel */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Larger touch targets with visual feedback */
    button, a, .clickable {
        -webkit-tap-highlight-color: rgba(255, 140, 0, 0.1);
    }
    
    /* Premium mobile typography */
    h1 {
        font-size: clamp(2.25rem, 10vw, 4rem);
        line-height: 1.05;
        letter-spacing: -0.04em;
    }
    
    h2 {
        font-size: clamp(1.875rem, 7vw, 3rem);
        line-height: 1.1;
        letter-spacing: -0.03em;
    }
    
    /* Better mobile section spacing */
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Card polish on mobile */
    .mobile-card {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    
    /* Safe area support for modern phones */
    .enterprise-nav {
        padding-top: env(safe-area-inset-top);
    }
    
    footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Grid refinements for mobile */
    .grid {
        gap: 0;
    }
    
    .grid > * {
        border-bottom: 1px solid #333;
    }
    
    .grid > *:last-child {
        border-bottom: none;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    h2 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Large desktop enhancements */
@media (min-width: 1280px) {
    h1 {
        font-size: 5rem;
        line-height: 1;
    }
    
    h2 {
        font-size: 3.5rem;
    }
    
    section {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    h1 {
        font-size: 6rem;
    }
}

/* ============================================ */
/* HERO SWIPER SLIDER STYLES */
/* ============================================ */

.hero-slider-section {
    background-color: #121212;
    position: relative;
}

.hero-swiper {
    width: 100%;
    height: auto;
}

.hero-swiper .swiper-slide {
    opacity: 0 !important;
    transition: opacity 0.8s ease;
}

.hero-swiper .swiper-slide-active {
    opacity: 1 !important;
}

/* Swiper Pagination - Minimalist Dots */
.hero-swiper .swiper-pagination {
    bottom: 30px !important;
    left: 0;
    right: 0;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 1;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet:hover {
    background: rgba(255, 140, 0, 0.3);
    border-color: rgba(255, 140, 0, 0.5);
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #FF8C00;
    border-color: #FF8C00;
    transform: scale(1.2);
}

/* Swiper Navigation Arrows - Subtle */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #CCCCCC;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: #FF8C00;
    color: #FF8C00;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

.hero-swiper .swiper-button-prev {
    left: 20px;
}

.hero-swiper .swiper-button-next {
    right: 20px;
}

/* Hide navigation arrows on mobile */
@media (max-width: 768px) {
    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        display: none;
    }
    
    .hero-swiper .swiper-pagination {
        bottom: 20px !important;
    }
    
    .hero-swiper .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        width: 44px;
        height: 44px;
    }
    
    .hero-swiper .swiper-button-prev::after,
    .hero-swiper .swiper-button-next::after {
        font-size: 16px;
    }
}

/* Large desktop - more prominent arrows */
@media (min-width: 1280px) {
    .hero-swiper .swiper-button-prev {
        left: 40px;
    }
    
    .hero-swiper .swiper-button-next {
        right: 40px;
    }
    
    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        width: 56px;
        height: 56px;
    }
    
    .hero-swiper .swiper-button-prev::after,
    .hero-swiper .swiper-button-next::after {
        font-size: 20px;
    }
}