:root {
    --bg-dark: #070707;
    --bg-light: #121212;
    --primary: #FF5E00; /* Warm fiery orange based on screenshot */
    --primary-hover: #ff7f33;
    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 7, 7, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Odniesienie do obrazu rodziny w folderze */
    background: url('assets/images/rodzina.jpeg') no-repeat center center / cover;
    z-index: -2;
    transform: scale(1.05); /* Slight scale to allow panning animation if needed */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.1) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    font-size: 5.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--primary);
    font-weight: 600;
}

.hero-content p {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 3rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 94, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 94, 0, 0.5);
}

.btn-block {
    display: block;
    width: 100%;
    background: rgba(255,255,255,0.03);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-block:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Features */
.features {
    padding: 7rem 5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    background: var(--bg-dark);
}

.feature-item {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 94, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: rgba(255, 94, 0, 0.05);
    border: 1px solid rgba(255, 94, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: transform 0.4s ease;
}

.feature-item:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 94, 0, 0.1);
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Manifesto */
.manifesto {
    padding: 8rem 5%;
    position: relative;
    display: flex;
    justify-content: center;
}

.manifesto::before {
    content: '';
    position: absolute;
    inset: 0;
    /* We can use another image from the directory, or a solid gradient */
    background: url('assets/images/tło.jpeg') no-repeat center center / cover;
    opacity: 0.2;
    z-index: -1;
}

.glass-panel {
    position: relative;
    max-width: 900px;
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(25px);
    padding: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.manifesto h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #fff;
    letter-spacing: 1px;
}

.manifesto p {
    font-size: 1.15rem;
    margin-bottom: 1.8rem;
    color: #d4d4d4;
    font-weight: 300;
}

.manifesto .highlight {
    color: #fff;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 3rem 0;
    padding: 2rem;
    border-left: 4px solid var(--primary);
    border-right: 4px solid var(--primary);
    background: rgba(255, 94, 0, 0.03);
}

/* Products */
.products {
    padding: 10rem 5%;
    text-align: center;
    background: var(--bg-light);
}

.products h2 {
    font-size: 3rem;
    margin-bottom: 5rem;
    font-weight: 300;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-card:hover::after {
    transform: scaleX(1);
}

.badge {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: rgba(255, 94, 0, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 1px;
}

.img-placeholder {
    width: 100%;
    height: 280px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
    background-color: var(--glass-bg);
    border-radius: 12px;
}

.product-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.stars {
    color: #FFB800;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stars .rating {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.product-card .desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    min-height: 70px;
    line-height: 1.5;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

footer {
    text-align: center;
    padding: 4rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Micro-animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal / Pop-up Form API */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    position: relative;
    padding: 3.5rem;
    max-width: 500px;
    width: 90%;
    transform: translateY(-50px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-content h3.highlight {
    font-size: 1rem;
    color: var(--primary);
    margin: 0 0 1rem 0;
    padding: 0;
    border: none;
    background: none;
    text-align: center;
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    margin-bottom: 1rem;
    color: #fff;
    text-align: center;
}

.modal-content p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    text-align: center;
}

#waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#waitlist-form input {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

#waitlist-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.2);
}

.hidden {
    display: none !important;
}

#form-success {
    text-align: center;
    color: #4ade80;
    padding: 2rem 0;
}

#form-success h3 {
    margin-bottom: 0.5rem;
    color: #4ade80;
}

/* Responsive */
@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .features {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 4rem;
    }
    .glass-panel {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}
