:root {
    --background-color: #121212;
    --primary-text-color: #F0F0F0;
    --secondary-text-color: #A0A0A0;
    --card-background: rgba(26, 29, 36, 0.65);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-start: #9C27B0;
    --gradient-end: #673AB7;
    --accent-purple: #9C27B0;
    --accent-teal: #008080;
}

/* Fix for main content visibility inherited from style.css */
#main-content {
    opacity: 1 !important;
}

/* --- Globalne Animacje --- */
@keyframes moveBackground1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(150px, -100px) scale(1.2);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes moveBackground2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-100px, 150px) scale(1.3);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--background-color);
    color: var(--primary-text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Global Responsive Image Rule */
img {
    max-width: 100%;
    height: auto;
}

/* Global Text Overflow Handling */
p, li {
    word-break: break-word; /* Prevents overflow for long unbroken words */
}

/* Skip to Content Link (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-purple);
    color: #fff;
    padding: 1rem 2rem;
    z-index: 10000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 10px 10px;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-background);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 990;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(156, 39, 176, 0.2);
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.3);
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--card-background);
    color: var(--primary-text-color);
    text-align: center;
    border-radius: 50px;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1rem;
    border: 1px solid var(--accent-purple);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    backdrop-filter: blur(10px);
}

#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* --- FAQ Section --- */
#faq {
    padding-top: 100px;
    padding-bottom: 140px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: rgba(156, 39, 176, 0.3);
    transform: translateY(-5px);
}

.faq-item details {
    cursor: pointer;
    user-select: none;
}

.faq-item summary {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-text-color);
    padding: 0.5rem 0;
    list-style: none; /* Hide default arrow */
    position: relative;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent-purple);
    transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-item p {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--secondary-text-color);
    line-height: 1.8;
}


body::before,
body::after {
    content: '';
    position: fixed;
    width: 50vmax;
    height: 50vmax;
    border-radius: 50%;
    z-index: -1;
    filter: blur(150px);
    will-change: transform;
}

body::before {
    top: -25vmax;
    left: -25vmax;
    background: radial-gradient(circle, var(--accent-purple), transparent 60%);
    animation: moveBackground1 25s ease-in-out infinite;
}

body::after {
    bottom: -25vmax;
    right: -25vmax;
    background: radial-gradient(circle, var(--accent-teal), transparent 60%);
    animation: moveBackground2 30s ease-in-out infinite;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    text-wrap: balance;
}

/* --- Sekcja Hero --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    margin-bottom: 2.5rem;
    font-family: var(--font-main);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 6px 25px rgba(156, 39, 176, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 40px rgba(156, 39, 176, 0.6);
    filter: brightness(1.15);
}

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

.btn-secondary:hover {
    background-color: var(--border-color);
    color: white;
    transform: translateY(-5px);
}


.hero-image {
    flex-shrink: 0;
    animation: float 6s ease-in-out infinite;
    width: 100%;
    max-width: 500px;
    padding: 40px; /* Margines bezpieczeństwa dla cienia drop-shadow */
    will-change: transform; /* Podpowiedź dla przeglądarki, żeby nie ucinała warstwy */
}

.hero-image img {
    width: 100%;
    height: auto; /* Zachowujemy proporcje */
    filter: drop-shadow(0 0 35px rgba(156, 39, 176, 0.4));
}

/* --- Sekcje Ogólne --- */
section {
    padding: 140px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 5rem;
    background: linear-gradient(90deg, var(--primary-text-color), var(--secondary-text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Sekcja Cechy --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle at center, rgba(156, 39, 176, 0.2), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 64px;
    height: 64px;
    stroke: var(--primary-text-color);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 15px var(--accent-purple));
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-text-color);
}

.feature-card p {
    color: var(--secondary-text-color);
    font-family: var(--font-main);
}

/* --- Sekcja Prywatność --- */

#privacy {
    padding-top: 140px;
    padding-bottom: 140px;
}

.privacy-section {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.privacy-text {
    flex: 1;
}

.privacy-image {
    flex: 1;
    text-align: center;
}

.privacy-image svg {
    width: 100%;
    max-width: 350px;
    filter: drop-shadow(0 0 30px var(--accent-teal));
    transition: transform 0.5s ease;
}

.privacy-image:hover svg {
    transform: rotateY(15deg) scale(1.05);
}

/* --- Sekcja CTA --- */
.cta-section {
    padding-top: 0;
    padding-bottom: 140px;
    text-align: center;
}

.cta-box {
    background: var(--card-background);
    padding: 4rem 2rem;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.cta-box:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -1px;
    border-radius: inherit;
    background: linear-gradient(160deg, var(--gradient-start), var(--gradient-end));
    opacity: 0.1;
}

.cta-box h2 {
    color: var(--primary-text-color);
    margin-bottom: 1.5rem;
}

.cta-box p {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    color: var(--secondary-text-color);
    font-family: var(--font-main);
}

.store-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.store-badge img {
    height: 60px;
    width: auto;
    display: block;
}

/* --- Stopka --- */
footer {
    padding: 4rem 2rem 3rem; /* Adjusted padding */
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: #101010;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--secondary-text-color);
    text-decoration: none;
    /* margin: 0 1rem; Removed in favor of gap */
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-text-color);
}

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

/* --- Animacje przy przewijaniu (ulepszone) --- */
.soma-hidden {
    opacity: 0 !important;
    visibility: hidden;
    filter: blur(5px);
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.8s;
}

.visible {
    opacity: 1 !important;
    visibility: visible;
    filter: blur(0);
    transform: translateY(0) scale(1);
}



/* Ensure Nav matches index.html (Outfit) */
.glass-nav, .nav-menu, .nav-logo {
    font-family: 'Outfit', sans-serif !important;
}

/* Staggered animation delays */
.feature-card.visible:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card.visible:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-card.visible:nth-child(3) {
    transition-delay: 0.3s;
}

/* --- Responsywność --- */
@media (max-width: 992px) {
    .hero-section {
        padding-top: 140px;
    }

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

    .hero-text {
        max-width: 100%;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .privacy-section {
        flex-direction: column-reverse;
        gap: 3rem;
        text-align: center;
    }

    .section-title {
        text-align: center !important;
    }

    .privacy-text .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation & Layout Fixes */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -120vw; /* Ensure it's fully off-screen */
        width: 100%;
        height: 100vh;
        background: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 9998; /* High z-index */
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        visibility: hidden; /* Hide when closed to prevent interaction */
    }

    .nav-menu.active {
        right: 0;
        visibility: visible;
    }

    .nav-toggle {
        display: block;
        z-index: 9999; /* Higher than menu */
    }

    /* Safety: Ensure content is visible on mobile if animation fails */
    /* Apply to both .soma-hidden (SomaScope) and .reveal (FAQ/Index) */
    .soma-hidden, .reveal {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition: none !important;
    }
    
    /* Ensure main content container is visible */
    #main-content, .faq-content, .faq-wrapper {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Hide Skip Link on mobile as requested */
    .skip-to-content {
        display: none !important;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-buttons {
        gap: 1rem;
    }

    .store-badge img {
        height: 50px;
    }
}

/* --- 3D Carousel --- */
.carousel-container {
    perspective: 1000px;
    margin: 100px auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 650px;
    overflow: hidden;
}

.carousel {
    width: 225px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
    animation: rotateCarousel 20s infinite linear;
}

.carousel:hover {
    animation-play-state: paused;
}

.carousel-item {
    position: absolute;
    width: 225px;
    height: 400px;
    left: 0;
    top: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    background: var(--card-background);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes rotateCarousel {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

@media (max-width: 768px) {
    .carousel {
        width: 150px;
        height: 266px;
    }

    .carousel-item {
        width: 150px;
        height: 266px;
    }
}

/* Momentum Hover Interactive State */
.feature-card.interactive {
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    /* Transform transition is removed to allow JS control */
}

/* Language Switcher Button Styles (reusing base styles) */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-switcher button {
    background: none;
    border: none;
    color: var(--secondary-text-color);
    font-weight: 600;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1.5rem;
    line-height: 1;
}

.lang-switcher button:hover {
    color: var(--primary-text-color);
    transform: scale(1.1);
}

.lang-switcher button.active {
    color: var(--accent-purple);
    transform: scale(1.1);
}

/* --- Styles for Legal Pages (Policy & Delete) --- */

.page-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, var(--primary-text-color), var(--secondary-text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.policy-section {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(10px);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.policy-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    color: var(--primary-text-color);
}

.policy-section h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-text-color);
}

.policy-section p,
.policy-section li {
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
    font-family: var(--font-main);
}

.policy-section ul {
    padding-left: 20px;
}

.placeholder {
    background-color: rgba(156, 39, 176, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #f3e5f5;
}

.content-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2.5rem;
}

.content-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-card h2 svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-purple);
    flex-shrink: 0;
}

.content-card p {
    color: var(--secondary-text-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-main);
}

.content-card ul {
    list-style-type: none;
    padding-left: 0;
    color: var(--secondary-text-color);
}

.content-card li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 1rem;
}

.content-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

.note {
    background-color: rgba(103, 58, 183, 0.1);
    border-left: 4px solid var(--accent-purple);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.note strong {
    color: var(--primary-text-color);
}

/* Adjust main padding for legal pages to clear fixed nav */
body.legal-page main {
    padding-top: 160px;
    padding-bottom: 6rem;
}
 
 / *   - - -   L a r g e   S c r e e n s   ( 2 K ,   4 K ,   U l t r a w i d e )   - - -   * /  
 @ m e d i a   ( m i n - w i d t h :   1 9 2 1 p x )   {  
         / *   K a r u z e l a   -   s k a l o w a n i e   * /  
         . c a r o u s e l - c o n t a i n e r   {  
                 m a r g i n :   1 5 0 p x   a u t o ;  
                 m i n - h e i g h t :   8 0 0 p x ;   / *   W i � "!c e j   m i e j s c a   w   p i o n i e   * /  
         }  
  
         . c a r o u s e l   {  
                 w i d t h :   3 4 0 p x ;   / *   1 . 5 x   w i � "!k s z a   ( z   2 2 5 p x )   * /  
                 h e i g h t :   6 0 0 p x ;   / *   1 . 5 x   w y 9=s z a   ( z   4 0 0 p x )   * /  
         }  
  
         . c a r o u s e l - i t e m   {  
                 w i d t h :   3 4 0 p x ;  
                 h e i g h t :   6 0 0 p x ;  
         }  
  
         / *   S e k c j e   -   w i � "!k s z e   o d s t � "!p y   * /  
         . h e r o - s e c t i o n   {  
                 p a d d i n g - t o p :   2 5 0 p x ;  
                 m i n - h e i g h t :   9 0 v h ;  
         }  
  
         . s t o r e - b a d g e   i m g   {  
                 h e i g h t :   8 0 p x ;   / *   W i � "!k s z e   p r z y c i s k i   s k l e p Bw   * /  
         }  
          
         / *   C e c h y   -   w i � "!k s z e   k a f e l k i   * /  
         . f e a t u r e - c a r d   {  
                 p a d d i n g :   3 r e m ;  
         }  
          
         . f e a t u r e - i c o n   {  
                 f o n t - s i z e :   4 r e m ;   / *   W i � "!k s z e   i k o n y   * /  
         }  
 }  
 