:root {
    --primary: #0A0F2C;
    /* Deep Navy */
    --secondary: #F7F8FC;
    /* Ultra Light Gray-Blue */
    --text-main: #0A0F2C;
    --text-muted: #64748B;
    /* Slate Gray */
    --white: #FFFFFF;
    --accent: #0A0F2C;
    /* Staying extremely monochrome/navy for premium feel */
    --border-radius: 32px;
    --pill-radius: 100px;
    --section-padding: 120px;
    --container-width: 1140px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4 {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Scale */
h1 {
    font-size: clamp(1.75rem, 8vw, 4rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h2 {
    font-size: clamp(1.35rem, 6vw, 3rem);
}

h3 {
    font-size: 1.75rem;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    border-radius: var(--pill-radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(10, 15, 44, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid #E2E8F0;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--secondary);
    border-color: var(--primary);
}

/* Navbar */
.navbar {
    padding: 32px 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    padding-top: 200px;
    padding-bottom: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

/* New Split Hero (Full Bleed) */
.hero-split {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 180px 80px 100px;
    position: relative;
    z-index: 2;
}

/* Full‑bleed hero visual */
.hero-split-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-split-visual img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reduce navbar padding on larger screens for a slimmer header */
@media (min-width: 769px) {
    .navbar {
        padding: 16px 0;
    }
}

/* Mobile tweaks for option pills (category selectors) */
@media (max-width: 768px) {
    .option-pill {
        font-size: 0.9rem;
        padding: 16px 20px;
    }
}

@media (max-width: 968px) {
    .hero-split {
        flex-direction: column;
        min-height: auto;
    }

    .hero-split-content {
        padding: 120px 20px 60px;
        text-align: center;
    }

    .hero-split-visual {
        min-height: 300px;
        order: -1;
    }
}

.hero h1 {
    margin-bottom: 24px;
    max-width: 18ch;
}

.hero p {
    margin-bottom: 40px;
    max-width: 50ch;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    border-radius: var(--border-radius);
    /* No shadows for ultra minimalism or very soft ones */
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.08));
}

/* Sections General */
section {
    padding: var(--section-padding) 0;
}

.section-bg {
    background-color: var(--secondary);
    border-radius: 60px;
    /* Massive round sections */
    margin: 0 20px;
    position: relative;
    overflow: hidden;
}

.section-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background-image: url('assets/images/coins-hero.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.section-header {
    margin-bottom: 80px;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comp-header-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 40px;
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.comp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.positive-text {
    color: #166534;
}

.pillar-card.spotlight {
    background: #F1F5F9;
    border-color: var(--primary);
}

.full-width-card {
    grid-column: 1 / -1;
}

@media (max-width: 968px) {
    .comp-header-row {
        display: none;
    }

    .comp-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .comp-card.positive {
        margin-bottom: 24px;
    }
}

/* Pillar Card */
.pillar-card {
    padding: 48px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid #F1F5F9;
    height: 100%;
}

.pillar-icon {
    width: 64px;
    height: 64px;
    background: var(--secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 32px;
}

/* Form Styling */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 64px;
    border-radius: 48px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
}

.option-pill {
    width: 100%;
    padding: 24px 32px;
    border-radius: var(--pill-radius);
    background: var(--secondary);
    border: 1px solid transparent;
    text-align: left;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
}

.option-pill:hover {
    background: var(--white);
    border-color: var(--primary);
}

.progress-container {
    margin-top: 48px;
    text-align: center;
}

.progress-bar {
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 20%;
    transition: width 0.4s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {

    /* Reduce navbar height */
    .navbar {
        padding: 8px 0;
    }

    .nav-content a.btn {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    /* Reduce heading sizes for small mobile */
    .hero-split-content h1 {
        font-size: 1.5rem;
        letter-spacing: -0.02em;
    }

    .hero-split-content p {
        font-size: 0.875rem;
    }

    /* Ensure hero image covers full area */
    .hero-split-visual img {
        object-fit: cover;
        background-color: var(--primary);
    }

    /* Adjust button text size in split sides */
    .split-side .btn {
        font-size: 0.7rem;
        padding: 10px 20px;
    }

    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-bg {
        margin: 0;
        border-radius: 0;
    }

    .form-wrapper {
        padding: 32px 20px;
        border-radius: 24px;
    }

    /* Option Pill mobile fix */
    .option-pill {
        padding: 16px 20px;
        font-size: 0.875rem;
    }

    /* Hide hero visual (e.g. coins stack) on mobile */
    .hero-visual {
        display: none !important;
    }

    /* Convert Grids to Swipeable Sliders */
    .grid-3,
    .grid-2 {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 20px 0;
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .grid-3::-webkit-scrollbar,
    .grid-2::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .pillar-card,
    .comp-card {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
        min-width: 280px;
    }
}

/* Extra small screens fix for long words */
@media (max-width: 380px) {
    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    .hero-split-content h1 {
        font-size: 1.35rem !important;
    }
}

/* Restrukturyzacje & General Card fixes */
.comp-card {
    background-color: white;
    padding: 32px;
    border-radius: 32px;
    border: 1px solid #F1F5F9;
    position: relative;
}

.comp-card.danger {
    background-color: #FFF5F5;
}

.comp-card.danger h3 {
    color: #E53E3E;
}

.comp-card.positive {
    background-color: #F0FFF4;
}

/* Form selection highlight */
.option-pill.selected {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Consent checkbox */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    width: 100%;
}

.consent-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Form validation errors */
.option-pill.field-error {
    border: 2px solid #e53e3e !important;
    background: #fff5f5 !important;
}

.field-error-msg {
    display: block;
    width: 100%;
    color: #e53e3e;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: -10px;
    padding-left: 4px;
}

.badge {
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.status-tag {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    color: #D4AF37;
}