/* Premium Design - OneClick Business CMS */
/* Studio F33 - Ekskluzywny styl */

:root {
    /* Layout */
    --header-height: 80px;
    --container-padding-mobile: 16px;
    --container-padding-tablet: 24px;
    --container-padding-desktop: 40px;
    --section-spacing-mobile: 60px;
    --section-spacing-desktop: 140px;
    
    /* Colors */
    --neon-blue: #00d4ff;
    --neon-cyan: #00fff5;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #0f0f0f;
    --border: #1a1a1a;
    --border-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    /* Typography */
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

/* Viewport height fix across browsers */
body {
    min-height: 100vh;
    min-height: 100svh; /* modern viewport unit in mobile browsers */
}

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

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, a, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Prevent any element from causing horizontal scroll */
*:not(html):not(body) {
    max-width: 100%;
}

/* Wyjątki dla elementów fixed/sticky */
header,
.mobile-menu-toggle,
svg {
    max-width: none;
}

.container,
.container > *,
section,
section > * {
    box-sizing: border-box;
}

:root {
    --neon-blue: #00d4ff;
    --neon-cyan: #00fff5;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #0f0f0f;
    --border: #1a1a1a;
    --border-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-width: 320px;
    max-width: 100vw;
    position: relative;
    /* Safe baseline for viewport height */
    min-height: 100vh;
}

/* Use modern viewport unit where supported */
@supports (height: 100svh) {
  body { min-height: 100svh; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Uniwersalna klasa dla wszystkich sekcji */
section {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Header - Minimalistyczny */
header {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.3s ease;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

header nav .logo {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    order: 1;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--neon-blue);
    text-transform: none;
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.nav-links {
    display: flex;
    gap: 48px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Hero - Elegancki */
.hero {
    background: var(--darker-bg);
    position: relative;
    padding: 180px 0 140px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    filter: blur(100px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue) 50%, transparent);
    box-shadow: 0 0 20px var(--neon-blue);
}

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

/* Cena – dodatkowe formatowanie części okresowej */
.price-period {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Utility spacing helpers to replace inline styles */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-12 { margin-bottom: 12px; }

/* Utility font-size helper */
.fs-9 { font-size: 0.9rem; }

/* Accent heading to replace inline h3 styles */
.accent-heading {
    color: var(--neon-blue);
    margin-top: 24px;
    margin-bottom: 12px;
}

/* PDF box container used in install modals */
.pdf-box {
    padding: 16px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    text-align: center;
}

/* Accent link */
.link-accent {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
}

/* Noscript banner styling */
.noscript-banner {
    background: #fffbeb;
    color: #664d03;
    padding: 12px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw + 1rem, 5.5rem);
    font-weight: 300;
    margin-bottom: 32px;
    line-height: 1.1;
    letter-spacing: -3px;
    color: var(--text-primary);
}

.hero h1 strong {
    font-weight: 600;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 56px;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

/* Buttons - Premium */
.btn {
    padding: 18px 56px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    z-index: 2; /* Ensure text stays above ::before elements */
}

.btn-primary {
    background: var(--neon-blue);
    color: var(--dark-bg);
    border: 1px solid var(--neon-blue);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    color: var(--dark-bg);
}

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

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

/* Sections */
section {
    padding: 140px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 50%, transparent);
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw + 0.5rem, 3.5rem);
    font-weight: 300;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 96px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Feature Cards - Ekskluzywne */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-card {
    background: var(--card-bg);
    padding: 56px;
    border-radius: 2px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    padding: 1px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: -0.5px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    font-weight: 300;
}

/* How It Works */
.how-it-works {
    background: var(--darker-bg);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 80px;
    margin-top: 96px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.step {
    text-align: center;
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.step-number {
    width: 100px;
    height: 100px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--neon-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 200;
    margin: 0 auto 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -2px;
}

.step:hover .step-number {
    border-color: var(--neon-blue);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
}

.step h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.step p {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing {
    background: var(--dark-bg);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 32px;
    margin-top: 96px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pricing-card {
    background: var(--card-bg);
    padding: 64px 48px;
    border-radius: 2px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pricing-card.featured {
    border-color: var(--neon-blue);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
}

.pricing-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.price {
    font-size: 4rem;
    font-weight: 300;
    margin: 32px 0;
    letter-spacing: -2px;
}

.pricing-features {
    list-style: none;
    margin: 40px 0;
    text-align: left;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.pricing-features li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 0.95rem;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
}

.pricing-card .btn {
    margin-top: 32px;
    max-width: 100%;
}

/* CTA Section */
.cta-section {
    background: var(--darker-bg);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    filter: blur(100px);
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 48px;
    color: var(--text-secondary);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 64px;
    margin-bottom: 64px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.footer-section h3 {
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--neon-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--neon-blue);
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--neon-blue);
    font-size: 1.5rem;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

#menuIcon {
    display: block;
    transition: transform 0.3s ease;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    color: #333;
    background: none;
    border: none;
    line-height: 1;
}

.mobile-menu-toggle:active #menuIcon {
    transform: rotate(90deg);
}

/* =============================================
   MEDIA QUERIES FOR ACCESSIBILITY & SYSTEM
   ============================================= */

/* Touch devices optimization */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .feature-card:active,
    .pricing-card:active {
        transform: translateY(-4px);
    }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsywność */

/* =====================================
   MOBILE FIRST APPROACH - BREAKPOINTS:
   Mobile:      320px - 767px
   Tablet:      768px - 1023px  
   Desktop:     1024px - 1199px
   Large:       1200px+
   ===================================== */

/* Base Mobile Styles */
.container {
    width: 100%;
    padding: 0 var(--container-padding-mobile);
    margin: 0 auto;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--container-padding-tablet);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--container-padding-desktop);
    }
}

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

/* Tablet/Laptop (1023px and below) */
@media (max-width: 1023px) {
    .container { 
        padding: 0 30px; 
        max-width: 100%;
    }
    
    section {
        padding: 100px 0;
    }
    
    .hero h1 { font-size: clamp(3.5rem, 5vw, 4.5rem); }
    .hero p { font-size: 1.15rem; }
    
    .features-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 24px;
    }
    
    .pricing-cards { 
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .steps { 
        gap: 60px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card { 
        padding: 48px 40px;
        width: 100%;
    }
    
    .pricing-card { 
        padding: 56px 40px;
        width: 100%;
    }
}

/* Tablet Portrait (767px and below) */
@media (max-width: 767px) {
    /* Header */
    nav { 
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle { 
        display: flex;
        order: 2;
    }
    
    .logo {
        order: 1;
    }
    
    header nav .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        height: auto;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }

    header nav .nav-links.active {
        max-height: calc(100vh - var(--header-height));
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        padding: 20px 0;
    }

    header nav .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    header nav .nav-links li:last-child {
        border-bottom: none;
    }

    header nav .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        width: 100%;
        color: var(--text-primary);
        font-size: 0.95rem;
        letter-spacing: 1px;
        transition: background-color 0.3s ease;
    }

    header nav .nav-links a:hover,
    header nav .nav-links a:focus {
        background-color: rgba(0, 212, 255, 0.1);
        color: var(--neon-blue);
    }
    
    .nav-links.active {
        max-height: 400px;
        padding: 20px 0;
    }
    
    .nav-links li {
        padding: 0;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: flex;
        align-items: center;
        padding: 16px 40px;
        width: 100%;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links a:active {
        background: rgba(0, 212, 255, 0.1);
    }
    
    /* Hero */
    .hero { 
        padding: 140px 0 100px;
    }
    .hero h1 { 
        font-size: clamp(2.5rem, 7vw, 3.5rem); 
        line-height: 1.2; 
        letter-spacing: -2px;
        margin-bottom: 24px;
    }
    .hero p { 
        font-size: 1.1rem; 
        margin-bottom: 40px;
        max-width: 100%;
    }
    
    /* Sections - Wszystkie takie same */
    section { 
        padding: 80px 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 24px;
        width: 100%;
        max-width: 100%;
    }
    
    .section-title { 
        font-size: clamp(2.2rem, 5vw, 2.8rem);
        max-width: 100%;
    }
    .section-subtitle { 
        font-size: 1.05rem; 
        margin-bottom: 64px;
        max-width: 100%;
    }
    
    /* Grids - Wszystko w 1 kolumnie */
    .features-grid { 
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100%;
    }
    .steps { 
        grid-template-columns: 1fr !important;
        gap: 56px;
        margin-top: 64px;
        width: 100%;
    }
    .pricing-cards { 
        grid-template-columns: 1fr !important;
        gap: 24px;
        margin-top: 64px;
        width: 100%;
    }
    
    /* Cards */
    .feature-card { 
        padding: 40px 32px;
        width: 100%;
        max-width: 100%;
    }
    .pricing-card { 
        padding: 48px 36px;
        width: 100%;
        max-width: 100%;
    }

    /* Dodatkowe poprawki spójności dla sekcji cennik na mobile */
    .pricing {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .pricing-card {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pricing-features {
        margin: 24px 0;
    }
    .step {
        width: 100%;
        max-width: 100%;
    }
    
    /* Buttons */
    .cta-buttons { 
        flex-direction: column; 
        gap: 16px;
        width: 100%;
    }
    .btn { 
        width: 100%; 
        text-align: center;
        padding: 16px 32px;
        box-sizing: border-box;
        display: block;
    }
    
    /* Footer */
    .footer-content { 
        grid-template-columns: 1fr; 
        gap: 48px;
    }
    footer { padding: 60px 0 32px; }
}

/* Mobile Large (640px) */
@media (max-width: 640px) {
    .container { 
        padding: 0 20px;
        width: 100%;
    }
    
    .hero { 
        padding: 100px 0 70px;
        width: 100%;
    }
    .hero h1 { 
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 20px;
        max-width: 100%;
        word-break: break-word;
    }
    .hero p { 
        font-size: 1.05rem;
        max-width: 100%;
    }
    
    section { 
        padding: 70px 0;
        width: 100%;
    }
    
    .section-title { 
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        max-width: 100%;
        word-break: break-word;
    }
    .section-subtitle { 
        font-size: 1rem;
        margin-bottom: 48px;
        max-width: 100%;
    }
    
    .feature-card, .pricing-card { 
        padding: 32px 24px;
        width: 100%;
        max-width: 100%;
    }
    
    .step-number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 32px;
    }
    
    .step h3 { 
        font-size: 1.4rem;
        max-width: 100%;
    }
    .step p { 
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .price { 
        font-size: 3rem; 
        margin: 24px 0;
    }
    
    .cta-section h2 { 
        font-size: clamp(2rem, 6vw, 2.5rem);
        max-width: 100%;
    }
    .cta-section p { 
        font-size: 1.1rem;
        max-width: 100%;
    }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
    .container { 
        padding: 0 18px;
        width: 100%;
    }
    
    header { 
        padding: 16px 0;
        width: 100%;
    }
    .logo { 
        font-size: 1.1rem; 
        letter-spacing: 0.5px;
        max-width: 70%;
    }
    
    nav {
        padding: 0;
        width: 100%;
    }
    
    .hero { 
        padding: 90px 0 60px;
        width: 100%;
    }
    .hero h1 { 
        font-size: clamp(1.75rem, 9vw, 2.2rem);
        letter-spacing: -1.5px;
    }
    .hero p { 
        font-size: 1rem; 
        line-height: 1.7;
        margin-bottom: 32px;
    }
    
    section { 
        padding: 60px 0;
        width: 100%;
    }
    .section-title { 
        font-size: clamp(1.6rem, 7vw, 2rem);
        margin-bottom: 16px;
        max-width: 100%;
        padding: 0 10px;
    }
    .section-subtitle { 
        font-size: 0.95rem;
        margin-bottom: 40px;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .features-grid, .steps, .pricing-cards {
        gap: 16px;
        width: 100%;
    }
    
    .feature-card, .pricing-card { 
        padding: 28px 20px;
        width: 100%;
        max-width: 100%;
    }

    /* Mniejsze marginesy w cenniku na bardzo małych ekranach */
    .pricing {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .pricing-card { padding: 20px 14px; }
    
    .feature-card h3 { 
        font-size: 1.3rem;
        max-width: 100%;
    }
    .feature-card p { 
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .btn { 
        padding: 14px 32px;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .pricing-card h3 { 
        font-size: 1rem;
        max-width: 100%;
    }
    .price { font-size: 2.5rem; }
    .pricing-features li { 
        padding: 12px 0; 
        font-size: 0.9rem;
    }
    
    .footer-section h3 { font-size: 1rem; }
    .footer-section a { font-size: 0.9rem; }
    footer { padding: 48px 0 24px; }
}

/* Prefers Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #0a0a0a;
        --darker-bg: #050505;
        --card-bg: #0f0f0f;
        --border: #1a1a1a;
        --border-hover: #2a2a2a;
        --text-primary: #ffffff;
        --text-secondary: #a0a0a0;
        --text-muted: #666666;
    }
}

/* Prefers Reduced Motion - removed duplicate, keeping the first comprehensive one */

/* Mobile Extra Small (375px) */
@media (max-width: 375px) {
    .container { padding: 0 16px; }
    
    .hero { padding: 80px 0 50px; }
    .hero h1 { 
        font-size: 1.6rem;
        letter-spacing: -1px;
        margin-bottom: 20px;
    }
    .hero p { 
        font-size: 0.95rem;
        margin-bottom: 28px;
    }
    
    .section-title { 
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    .section-subtitle { 
        font-size: 0.9rem;
        margin-bottom: 32px;
    }
    
    section { padding: 50px 0; }
    
    .feature-card, .pricing-card { 
        padding: 24px 16px; 
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 0.88rem;
        line-height: 1.6;
    }
    
    .btn { 
        padding: 12px 20px;
        font-size: 0.8rem;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 24px;
    }
    
    .step h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .step p {
        font-size: 0.88rem;
    }
    
    .pricing-card h3 {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    
    .price {
        font-size: 2.2rem;
        margin: 20px 0;
    }
    
    .pricing-features {
        margin: 28px 0;
    }
    
    .pricing-features li {
        padding: 10px 0;
        font-size: 0.85rem;
    }
}

/* Landscape Mobile Fix */
@media (max-height: 600px) and (orientation: landscape) {
    .hero { padding: 80px 0 60px; }
    section { 
    padding: var(--section-spacing-mobile) 0;
    scroll-margin-top: var(--header-height);
}
}
