/* Reset & Base - Wrażenie Style */
:root {
    --bg: #0f111a; /* Brighter, deep twilight blue/gray instead of void black */
    --text: #ffffff;
    --text-muted: #cbd5e1; /* Lighter muted text */
    --primary: #f472b6; /* Lighter pink */
    --secondary: #a78bfa; /* Lighter violet */
    --accent: #22d3ee; /* Lighter cyan */
    --glass-bg: rgba(255, 255, 255, 0.07); /* Increased visibility */
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(244, 114, 182, 0.12), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(167, 139, 250, 0.12), transparent 30%);
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px); /* Softer blur */
    opacity: 0.5; /* Brighter */
    mix-blend-mode: screen;
    animation: float 15s infinite ease-in-out;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary), transparent 60%);
    animation-delay: 0s;
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--secondary), transparent 60%);
    animation-delay: -7s;
}

.glow-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent), transparent 60%);
    opacity: 0.3;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Navigation */
.navbar {
    padding: 2rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(to right, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.nav-logo::after {
    content: '.';
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

/* Hero */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(255,255,255,0.15);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 4rem;
    line-height: 1.6;
    max-width: 600px;
    font-weight: 400;
}

/* Extravagant Button */
.morph-trigger {
    position: relative;
    padding: 0 3.5rem;
    height: 80px; /* Slightly larger */
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 20px 40px -10px rgba(0,0,0,0.5);
    overflow: hidden;
}

.morph-trigger::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.morph-trigger:hover {
    transform: scale(1.03);
    border-color: rgba(255,255,255,0.5);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 80px rgba(244, 114, 182, 0.4);
}

.morph-trigger:hover::before {
    opacity: 0.15;
}

.morph-trigger.btn-hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Pricing Section */
.pricing-section {
    padding: 8rem 2rem;
    position: relative;
}

.main-pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 5rem 4rem; /* More padding */
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5);
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

.main-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.price-number {
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 800;
    line-height: 0.9;
    background: linear-gradient(135deg, #fff 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.06em;
    margin-bottom: 1rem;
    display: block;
}

.price-label {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 300;
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Wider columns */
    gap: 2rem;
    margin: 4rem 0;
}

.included-item {
    padding: 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.included-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
}

.item-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.item-content h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.highlight-item {
    background: rgba(244, 114, 182, 0.06);
    border-color: rgba(244, 114, 182, 0.2);
}

.main-cta {
    width: 100%;
    padding: 1.5rem;
    background: white;
    color: #0f111a;
    border: none;
    border-radius: 24px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-cta:hover {
    transform: scale(1.01) translateY(-2px);
    box-shadow: 0 10px 40px rgba(255,255,255,0.2);
}

/* Premium Addon */
.premium-addon {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(30, 32, 40, 0.7), rgba(20, 22, 28, 0.9));
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 30px;
    padding: 3.5rem;
    backdrop-filter: blur(12px);
}

.addon-amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Morph Overlay */
.morph-overlay {
    position: fixed;
    background: #13151f; /* Match brighter bg */
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 9999px;
    z-index: 9999;
    transform-origin: center center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.morph-overlay.expanded {
    border-radius: 32px;
    background: rgba(19, 21, 31, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Wizard Styling */
.wizard-wrapper {
    padding: 3rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s; /* Wait for expansion */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.morph-overlay.expanded .wizard-wrapper {
    opacity: 1;
}

.wizard-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.wizard-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.wizard-step {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: fadeSlideUp 0.5s ease forwards;
}

.wizard-step.active {
    display: flex;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-step h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wizard-step p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem;
    font-size: 1.1rem;
    border-radius: 16px;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.option-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}

.option-btn.selected {
    background: rgba(244, 114, 182, 0.15);
    border-color: var(--primary);
    color: white;
}

input, textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 1.1rem;
    padding: 1.25rem;
    border-radius: 12px;
    color: white;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.15);
}

/* Step Actions */
.step-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.next-btn, .submit-btn {
    background: white;
    color: black;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.next-btn:hover, .submit-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.prev-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.prev-btn:hover {
    color: white;
    border-color: white;
}

/* FAQ */
.faq-section {
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
    padding: 6rem 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    padding: 2rem 0;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px; /* Increased to prevent cutoff */
    padding-bottom: 2rem;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
    padding-right: 2rem;
}

/* Footer */
.minimal-footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #0a0b10; /* Darker foundation for footer */
    display: flex;
    justify-content: center;
    align-items: center;
}

.minimal-footer a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    opacity: 0.7;
}

.minimal-footer a:hover {
    color: white;
    border-bottom-color: var(--primary);
    opacity: 1;
}

/* Utils */
.hidden { display: none !important; }
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: black;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
    display: none;
}
.submit-btn[disabled] .loader { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .main-pricing-card { padding: 3rem 1.5rem; }
    .price-number { font-size: 4.5rem; }
    .morph-overlay.expanded {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
    }
    .wizard-wrapper { padding: 1.5rem; }
    .options-grid { grid-template-columns: 1fr; }
}
