* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #020617 0, #020617 45%, #020617 100%);
    color: #e5e7eb;
    line-height: 1.5;
}

/* ========= BUTTONS ========= */

.btn-primary {
    display: inline-block;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #8b5cf6, #f97316);
    cursor: pointer;
    color: white;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(8, 47, 73, 0.75);
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
    font-size: 0.95rem;
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(8, 47, 73, 0.9);
}

.btn-secondary {
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.9);
}

/* ========= HEADER (used on builder.html) ========= */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8vw;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, #38bdf8, #8b5cf6, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0.85;
}

.nav-links a:hover {
    opacity: 1;
}

/* ========= LANDING PAGE (index.html) ========= */

.landing-hero {
    padding: 4rem 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-hero-inner {
    max-width: 720px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.96));
    border-radius: 1.8rem;
    padding: 2.2rem 2rem 2.6rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.78rem;
    color: #a5b4fc;
    margin-bottom: 1rem;
    background: rgba(15, 23, 42, 0.95);
}

.hero-heading {
    font-size: clamp(2.1rem, 4vw, 2.7rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #e5e7eb, #f97316);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtext {
    font-size: 1.05rem;
    color: #cbd5f5;
    margin-bottom: 1.4rem;
}

.price-box {
    background: #020617;
    border-radius: 1.4rem;
    padding: 1.4rem 1.2rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    margin: 0 auto;
    max-width: 360px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.price-tag {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.price-tag small {
    font-size: 0.95rem;
    font-weight: 500;
    color: #9ca3af;
}

.hero-guarantee {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Info section under hero */

.info-section {
    padding: 2.2rem 1.5rem 1.5rem;
}

.info-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.info-inner h2 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.info-lead {
    font-size: 0.98rem;
    color: #cbd5f5;
    margin-bottom: 0.6rem;
}

.info-bullets {
    list-style: none;
    display: inline-block;
    text-align: left;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.info-bullets li {
    margin-bottom: 0.25rem;
}

.info-tagline {
    font-size: 0.9rem;
    color: #d1d5db;
}

/* How it works steps */

.steps {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    background: #020617;
    border-radius: 1.2rem;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid rgba(55, 65, 81, 0.95);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
    text-align: left;
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #8b5cf6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.step h3 {
    font-size: 0.98rem;
    margin-bottom: 0.15rem;
}

.step p {
    font-size: 0.86rem;
    color: #cbd5f5;
}

/* Features & testimonials */

.features {
    padding: 2.2rem 1.5rem 1.8rem;
    text-align: center;
}

.features h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.features ul {
    list-style: none;
    max-width: 520px;
    margin: 0.5rem auto 0;
    text-align: left;
    font-size: 0.98rem;
    color: #cbd5f5;
}

.features li {
    margin-bottom: 0.4rem;
}

.testimonials {
    padding: 1.2rem 1.5rem 2.4rem;
    text-align: center;
}

.testimonials h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.testimonial-box {
    background: #020617;
    border-radius: 1.1rem;
    padding: 0.9rem 1rem;
    max-width: 480px;
    margin: 0 auto 0.9rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
    font-size: 0.92rem;
    color: #e5e7eb;
}

.footer {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ========= BUILDER PAGE (builder.html) ========= */

.pricing-section {
    padding: 2.4rem 8vw 0.4rem;
}

.pricing-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.pricing-card {
    max-width: 380px;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.97));
    border-radius: 1.5rem;
    padding: 1.6rem 1.4rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
}

.price {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 0.9rem;
    color: #9ca3af;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 0.8rem;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.pricing-card ul li {
    margin-bottom: 0.3rem;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #cbd5f5;
    margin-bottom: 0.7rem;
}

.secure-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 7px rgba(34, 197, 94, 0.8);
}

.small-note {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.45rem;
}

.builder-section {
    padding: 2rem 8vw 2.5rem;
}

.builder-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.builder-note {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1.1rem;
}

.builder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

/* Form side */

.resume-form {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 1.25rem;
    padding: 1.5rem 1.4rem;
    border: 1px solid rgba(55, 65, 81, 0.95);
    max-height: 80vh;
    overflow-y: auto;
}

.resume-form h3 {
    margin: 1rem 0 0.4rem;
    font-size: 1rem;
}

.resume-form h3:first-of-type {
    margin-top: 0;
}

.resume-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.resume-form input,
.resume-form textarea {
    width: 100%;
    background: #020617;
    border-radius: 0.6rem;
    border: 1px solid rgba(55, 65, 81, 0.95);
    padding: 0.45rem 0.6rem;
    margin-top: 0.18rem;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.resume-form input:focus,
.resume-form textarea:focus {
    outline: none;
    border-color: #38bdf8;
}

.form-footer {
    margin-top: 1.2rem;
}

/* Preview side */

.resume-preview {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.98));
    border-radius: 1.25rem;
    border: 1px solid rgba(55, 65, 81, 0.95);
    padding: 1.2rem;
    max-height: 80vh;
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
}

/* Watermark until paid */
.resume-preview::after {
    content: "PREVIEW ONLY • PAY TO DOWNLOAD";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: rgba(239, 68, 68, 0.85);
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 1rem;
    transform: rotate(-18deg);
    pointer-events: none;
}

/* Remove watermark after payment */
.resume-preview.paid::after {
    content: none;
}

.resume-inner {
    background: white;
    color: #111827;
    border-radius: 0.5rem;
    padding: 1.4rem 1.6rem;
    font-size: 0.9rem;
}

/* Payment overlay */

.payment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.payment-overlay.hidden {
    display: none;
}

.payment-overlay-box {
    background: #020617;
    padding: 1.8rem 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    text-align: center;
    max-width: 320px;
}

.spinner {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.4);
    border-top-color: #38bdf8;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer (builder) */

.site-footer {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 900px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .builder-grid {
        grid-template-columns: 1fr;
    }

    .pricing-section,
    .builder-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .landing-hero-inner {
        padding: 1.8rem 1.4rem 2rem;
    }
}

/* ========= PRINT: only print the resume ========= */

@media print {
    body {
        background: white;
        margin: 0;
    }

    .site-header,
    .pricing-section,
    .builder-note,
    .resume-form,
    .payment-overlay,
    .landing-hero,
    .info-section,
    .features,
    .testimonials,
    .footer {
        display: none !important;
    }

    .builder-section { padding: 0; }

    .resume-preview {
        border: none;
        padding: 0;
        max-height: none;
        box-shadow: none;
    }

    .resume-inner {
        border-radius: 0;
        box-shadow: none;
        font-size: 0.95rem;
    }
}
