/* Reset & Base */
:root {
    --bg: #050505;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --card-bg: #171717;
    --border: #262626;
    --ease-elastic: cubic-bezier(0.5, 1.75, 0.75, 1.25);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.glow-1 {
    top: -20%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, #3b82f6, transparent 70%);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.highlight {
    color: var(--text-muted);
}

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

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.gradient-text {
    background: linear-gradient(to right, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 4rem;
    line-height: 1.6;
    max-width: 500px;
}

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

.pricing-container {
    max-width: 900px;
    margin: 0 auto;
}

.pricing-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.pricing-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Main Pricing Card */
.main-pricing-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(139, 92, 246, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.main-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
}

.price-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-number {
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
}

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

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

/* Included Grid */
.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.included-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.included-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.highlight-item {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.highlight-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.item-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.item-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.free-badge {
    font-size: 0.875rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Main CTA */
.main-cta {
    width: 100%;
    padding: 1.25rem 2rem;
    background: white;
    color: black;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.main-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* Premium Addon */
.premium-addon {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.premium-addon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.addon-badge {
    font-size: 0.875rem;
    font-weight: 600;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.addon-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.addon-amount {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.addon-currency {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.addon-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.addon-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #a78bfa;
}

.feature-text h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.addon-cta {
    width: 100%;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.addon-cta:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

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

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

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

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

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

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

.faq-item.active .faq-answer {
    max-height: 300px;
}

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

/* Morph Trigger */
.morph-trigger {
    position: relative;
    width: 300px;
    height: 64px;
    background: white;
    color: black;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 1;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.morph-trigger.hidden {
    opacity: 0;
}

.morph-trigger:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

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

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

.morph-trigger:hover .btn-icon {
    transform: translateX(4px);
}

/* Overlay (The Morphing Element) */
.morph-overlay {
    position: fixed;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 9999px; /* Start round */
    z-index: 9999;
    transform-origin: center center;
    transition: all 0.6s var(--ease-smooth);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.morph-overlay.expanded {
    border-radius: 24px; /* End rounded rect */
    background: #0a0a0a;
    border: 1px solid var(--border);
}

/* Wizard Content inside Overlay */
.wizard-wrapper {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

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

/* Wizard UI Elements */
.wizard-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.2s;
    z-index: 100; /* Boosted z-index */
}

.wizard-close:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

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

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

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

.wizard-step h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

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

.option-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.option-btn:hover {
    border-color: #444;
    background: #222;
}

.option-btn.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: #60a5fa;
}

/* Inputs */
input, textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #000;
}

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

.next-btn, .submit-btn, .widget-submit {
    background: white;
    color: black;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.prev-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
}

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

/* Progress */
.wizard-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.05);
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 33%;
    transition: width 0.3s ease;
}

/* Success */
.wizard-success, .widget-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.wizard-success.active, .widget-success.active {
    display: flex;
}

.success-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 1rem;
    animation: pop 0.5s cubic-bezier(0.5, 1.5, 0.5, 1.5);
}

@keyframes pop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Floating Widget */
.contact-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
}

.widget-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.widget-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.phone-icon {
    animation: phoneRing 2s infinite ease-in-out;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10%, 30% { transform: rotate(-10deg) scale(1.05); }
    20%, 40% { transform: rotate(10deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1); }
}

.widget-content {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background: #121212;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.widget-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.widget-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.widget-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.widget-close:hover {
    color: white;
}

.widget-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.widget-form .form-group label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.widget-submit {
    width: 100%;
    margin-top: 0.5rem;
    background: var(--primary);
    color: white;
}

.widget-submit:hover {
    background: #2563eb;
}

/* Form Messages */
.form-message-box {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
    padding: 0.5rem;
    border-radius: 4px;
}
.form-message-box.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Footer */
.minimal-footer {
    padding: 2rem;
    text-align: center;
    color: #444;
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}
.minimal-footer a {
    text-decoration: none;
    color: #444;
    transition: color 0.2s;
}
.minimal-footer a:hover { color: #888; }

/* Loader */
.loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.submit-btn[disabled] .loader, .widget-submit[disabled] .loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile */
@media (max-width: 768px) {
    .widget-content {
        position: fixed;
        right: 1rem;
        left: 1rem;
        width: auto;
        bottom: 90px;
    }
    .contact-widget {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .pricing-section {
        padding: 4rem 1.5rem;
    }
    
    .main-pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .premium-addon {
        padding: 2rem 1.5rem;
    }
    
    .included-grid,
    .addon-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .price-number {
        font-size: 4rem;
    }
}

/* "na zawsze" glowing subtitle effect */
.na-zawsze-glow .glyph {
    display: inline-block;
    will-change: opacity, filter, text-shadow, color;
    opacity: 0;
}

@keyframes tronFlicker {
    0% {
        opacity: 0;
        color: rgb(0, 234, 255);
        text-shadow:
            rgba(0, 234, 255, 0.9) 0 0 2px,
            rgba(0, 234, 255, 0.6) 0 0 8px,
            rgba(0, 234, 255, 0.45) 0 0 18px;
    }
    8%  { opacity: 1; }
    16% { opacity: 0.15; color: rgb(181, 246, 255); }
    28% { opacity: 1; }
    40% { opacity: 0.35; }
    55% { opacity: 1; }
    70% { opacity: 0.5; }
    85% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes warmGlow {
    0% {
        color: rgb(255, 209, 225);
        text-shadow:
            rgba(255, 120, 180, 0.6) 0 0 2px,
            rgba(255, 120, 180, 0.5) 0 0 8px,
            rgba(255, 120, 180, 0.4) 0 0 18px;
    }
    50% {
        color: rgb(255, 122, 24);
        text-shadow:
            rgba(255, 140, 120, 0.9) 0 0 3px,
            rgba(255, 120, 80, 0.7) 0 0 10px,
            rgba(255, 120, 80, 0.55) 0 0 24px;
    }
    100% {
        color: rgb(255, 61, 129);
        text-shadow:
            rgb(255, 90, 150) 0 0 4px,
            rgba(255, 120, 80, 0.9) 0 0 16px,
            rgba(255, 120, 80, 0.6) 0 0 36px;
    }
}

@keyframes burnOut {
    0% {
        opacity: 1;
        filter: none;
    }
    60% {
        opacity: 0.5;
        filter: blur(0.2px) brightness(0.9);
    }
    100% {
        opacity: 0;
        filter: blur(0.5px) brightness(0.7);
    }
}