/* =====================================================
   LANDING PAGE
===================================================== */

.hero-section {
    padding: 90px 0 110px;
    background: #f8fafc;
    overflow: hidden;
}

.hero-container {
    width: min(1200px, 92%);
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 80px;
}

.hero-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #6366f1;
}

.hero-content h1 {
    margin: 18px 0;

    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-content h1 span {
    color: #6366f1;
}

.hero-content p {
    max-width: 600px;

    font-size: 18px;
    line-height: 1.7;

    color: #64748b;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 25px;

    border-radius: 8px;

    font-weight: 600;

    transition: 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: #6366f1;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid #d1d5db;
    background: #ffffff;
}

.btn-secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
}


/* =====================================================
   HERO CV
===================================================== */

.hero-preview {
    display: flex;
    justify-content: center;
}

.hero-cv-card {
    width: 390px;
    min-height: 500px;

    padding: 35px;

    background: #ffffff;

    border-radius: 5px;

    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.15);

    transform: rotate(2deg);
}

.cv-preview-top {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 30px;
}

.cv-avatar {
    width: 60px;
    height: 60px;

    border-radius: 50%;

    background: #e2e8f0;
}

.cv-name {
    font-size: 20px;
    font-weight: 700;
}

.cv-job {
    margin-top: 5px;

    font-size: 12px;
    color: #64748b;
}

.cv-preview-line {
    height: 7px;
    width: 100%;

    margin: 9px 0;

    border-radius: 5px;

    background: #e2e8f0;
}

.cv-preview-line.large {
    width: 70%;
}

.cv-preview-line.short {
    width: 55%;
}

.cv-preview-section {
    margin-top: 30px;
}

.cv-preview-heading {
    margin-bottom: 10px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
}


/* =====================================================
   SECTION
===================================================== */

.features-section,
.templates-section {
    padding: 100px 0;
}

.section-container {
    width: min(1200px, 92%);
    margin: auto;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-heading > span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;

    color: #6366f1;
}

.section-heading h2 {
    margin: 15px 0;

    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.section-heading p {
    color: #64748b;
    line-height: 1.7;
}


/* =====================================================
   STEPS
===================================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.step-card {
    padding: 35px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #ffffff;
}

.step-number {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 50%;

    background: #eef2ff;
    color: #4f46e5;

    font-weight: 700;
}

.step-card h3 {
    line-height: 1.4;
}

.step-card p {
    color: #64748b;
    line-height: 1.7;
}


/* =====================================================
   TEMPLATE SLIDER
===================================================== */

.templates-section {
    background: #f8fafc;
}

.template-slider {
    position: relative;

    display: flex;
    align-items: center;
    gap: 15px;
}

.template-track {
    width: 100%;

    display: flex;
    gap: 25px;

    overflow-x: auto;
    scroll-behavior: smooth;

    scrollbar-width: none;
}

.template-track::-webkit-scrollbar {
    display: none;
}

.template-card {
    flex: 0 0 260px;
    min-width: 0;
    text-align: left;
}

.template-preview-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 1131;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce2e8;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

.template-preview-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 1131px;
    border: 0;
    background: #fff;
    transform: scale(var(--template-preview-scale, .325));
    transform-origin: top left;
    pointer-events: none;
}

.template-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 2px 0;
}

.template-card h3 {
    margin: 0;
    color: #182230;
    font-size: 16px;
}

.template-use-link {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid #365c67;
    border-radius: 5px;
    color: #365c67;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.template-use-link:hover {
    background: #365c67;
    color: #fff;
}

.slider-button {
    flex-shrink: 0;

    width: 45px;
    height: 45px;

    border: 1px solid #e5e7eb;
    border-radius: 50%;

    background: #ffffff;

    cursor: pointer;

    font-size: 18px;
}

@media (max-width: 520px) {
    .template-card { flex-basis: min(260px, 76vw); }
    .template-card-info { align-items: flex-start; flex-direction: column; }
}


/* =====================================================
   CTA
===================================================== */

.cta-section {
    padding: 100px 0;
}

.cta-container {
    width: min(900px, 92%);
    margin: auto;

    padding: 70px 30px;

    border-radius: 15px;

    background: #f1f5f9;

    text-align: center;
}

.cta-container h2 {
    margin: 0;

    font-size: 40px;
}

.cta-container p {
    margin: 15px 0 30px;

    color: #64748b;
}


/* =====================================================
   COOKIE
===================================================== */

.cookie-banner {
    position: fixed;

    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 20px 25px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, 0.15);
}

.cookie-banner p {
    margin: 6px 0 0;

    font-size: 13px;
    color: #64748b;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    min-height: 40px;

    padding: 0 18px;

    border: 1px solid #d1d5db;
    border-radius: 7px;

    background: #ffffff;

    cursor: pointer;
}

.cookie-btn.primary {
    color: #ffffff;
    background: #6366f1;
    border-color: #6366f1;
}

.cookie-modal {
    position: fixed;

    inset: 0;

    z-index: 1100;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.55);
}

.cookie-modal.active {
    display: flex;
}

.cookie-modal-box {
    position: relative;

    width: min(550px, 100%);

    padding: 35px;

    border-radius: 15px;

    background: #ffffff;
}

.cookie-close {
    position: absolute;

    top: 15px;
    right: 15px;

    border: 0;
    background: none;

    font-size: 25px;

    cursor: pointer;
}

.cookie-option {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    border-bottom: 1px solid #eeeeee;
}

.cookie-option p {
    margin: 5px 0 0;

    font-size: 13px;
    color: #64748b;
}

.cookie-option > span {
    white-space: nowrap;

    font-size: 12px;
    color: #64748b;
}

.cookie-modal-actions {
    margin-top: 25px;

    display: flex;
    justify-content: flex-end;
}


/* =====================================================
   SWITCH
===================================================== */

.switch input {
    display: none;
}

.switch span {
    position: relative;

    display: block;

    width: 45px;
    height: 24px;

    border-radius: 20px;

    background: #cbd5e1;

    cursor: pointer;
}

.switch span::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #ffffff;

    transition: 0.2s;
}

.switch input:checked + span {
    background: #6366f1;
}

.switch input:checked + span::after {
    transform: translateX(21px);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-preview {
        margin-top: 20px;
    }
}


@media (max-width: 600px) {

    .hero-section {
        padding: 60px 0;
    }

    .hero-content h1 {
        letter-spacing: -1px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-cv-card {
        width: 320px;
        min-height: 420px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        justify-content: flex-end;
    }

    .cookie-modal-box {
        padding: 25px;
    }
}