/* =========================================================
   RESUMECRAFT — PROFESSIONAL LANDING PAGE
   Mobile-first / clean / accessible
========================================================= */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-soft: #eef2ff;
    --text: #172033;
    --muted: #667085;
    --border: #e5e7eb;
    --surface: #ffffff;
    --surface-soft: #f7f8fc;
    --dark: #111827;
    --radius: 18px;
    --shadow: 0 16px 45px rgba(16, 24, 40, .08);
    --max: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(229,231,235,.9);
    backdrop-filter: blur(14px);
}

.nav-container {
    width: min(var(--max), calc(100% - 32px));
    min-height: 72px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.brand strong {
    color: var(--primary);
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 9px 12px;
    border-radius: 9px;
    color: #475467;
    font-size: 14px;
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-cta,
.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    transition: .2s ease;
}

.nav-cta:hover,
.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.mobile-nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

/* HERO */

.hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(79,70,229,.10), transparent 32%),
        linear-gradient(180deg, #fafbff 0%, #fff 100%);
    border-bottom: 1px solid #eef0f5;
}

.hero-container {
    width: min(var(--max), calc(100% - 32px));
    min-height: 650px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    gap: 65px;
    padding: 76px 0;
}

.hero-copy {
    max-width: 650px;
}

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 15px;
}

.hero h1 {
    max-width: 680px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -.045em;
    margin-bottom: 24px;
}

.hero-lead {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.secondary-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #d7dbe5;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.secondary-button:hover,
.outline-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 22px;
    margin-top: 24px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

/* HERO RESUME MOCKUP */

.hero-visual {
    position: relative;
    min-height: 470px;
    display: grid;
    place-items: center;
}

.resume-paper {
    width: min(100%, 390px);
    min-height: 480px;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    box-shadow: 0 30px 70px rgba(16,24,40,.16);
    transform: rotate(2deg);
}

.paper-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.fake-name {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .03em;
}

.fake-title,
.fake-contact {
    color: #667085;
    font-size: 8px;
    line-height: 1.5;
}

.fake-title {
    margin-top: 2px;
}

.paper-line {
    height: 2px;
    margin: 15px 0 18px;
    background: var(--primary);
}

.paper-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
}

.paper-heading {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
}

.space {
    margin-top: 22px;
}

.fake-lines {
    display: grid;
    gap: 5px;
}

.fake-lines i {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 3px;
    background: #e8ebf0;
}

.fake-lines i.medium {
    width: 75%;
}

.fake-lines i.short {
    width: 50%;
}

.fake-job {
    margin: 10px 0 6px;
    font-size: 9px;
    font-weight: 800;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.skill-pills b {
    padding: 4px 6px;
    border-radius: 4px;
    background: #f1f3f7;
    font-size: 7px;
    font-weight: 700;
}

.floating-note {
    position: absolute;
    z-index: 2;
    padding: 10px 13px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16,24,40,.10);
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.note-one {
    top: 13%;
    left: 0;
}

.note-two {
    right: 0;
    bottom: 15%;
}

/* GENERIC SECTIONS */

.section-container {
    width: min(var(--max), calc(100% - 32px));
    margin: auto;
}

.narrow {
    max-width: 850px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 40px;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -.03em;
    margin-bottom: 13px;
}

.section-heading p {
    color: var(--muted);
    font-size: 16px;
}

/* BENEFITS */

.benefits {
    padding: 95px 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.benefit-card {
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: .2s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 19px;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
}

.benefit-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.benefit-card p {
    color: var(--muted);
    font-size: 14px;
}

/* TEMPLATES */

.templates-section {
    padding: 95px 0;
    background: var(--surface-soft);
    border-top: 1px solid #eef0f4;
    border-bottom: 1px solid #eef0f4;
}

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

.template-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 25px rgba(16,24,40,.04);
}

.template-preview {
    height: 330px;
    position: relative;
    margin: 16px;
    padding: 27px;
    overflow: hidden;
    border: 1px solid #e2e5ea;
    background: #fff;
}

.mini-name {
    font-size: 15px;
    font-weight: 900;
}

.mini-role {
    color: #667085;
    font-size: 7px;
    font-weight: 700;
    margin-top: 3px;
}

.template-preview hr {
    border: 0;
    height: 2px;
    margin: 13px 0;
    background: #4f46e5;
}

.mini-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 15px;
    height: 70px;
}

.mini-layout span,
.ats-block {
    background: #edf0f4;
    border-radius: 3px;
}

.mini-lines {
    display: grid;
    gap: 7px;
    margin-top: 18px;
}

.mini-lines i {
    height: 5px;
    width: 100%;
    border-radius: 3px;
    background: #e6e9ee;
}

.mini-lines i:nth-child(2) { width: 88%; }
.mini-lines i:nth-child(3) { width: 72%; }
.mini-lines i:nth-child(4) { width: 91%; }

.modern-preview {
    display: grid;
    grid-template-columns: 30% 70%;
    padding: 0;
}

.modern-side {
    background: #172033;
}

.modern-content {
    padding: 27px;
}

.modern-preview hr {
    background: #172033;
}

.ats-preview {
    font-family: Arial, sans-serif;
}

.ats-preview hr {
    background: #222;
}

.ats-block {
    height: 45px;
    background: #f0f1f3;
}

.template-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 5px 22px 23px;
}

.template-info h3 {
    font-size: 18px;
}

.template-info p {
    color: var(--muted);
    font-size: 12px;
}

.template-info a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.template-badge {
    position: absolute;
    z-index: 3;
    top: 27px;
    right: 27px;
    padding: 5px 8px;
    border-radius: 5px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.center-action {
    margin-top: 35px;
    text-align: center;
}

/* STEPS */

.steps-section {
    padding: 95px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.step {
    min-height: 190px;
    padding: 30px 26px;
    border-right: 1px solid var(--border);
}

.step:last-child {
    border-right: 0;
}

.step > span {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 22px;
}

.step h3 {
    font-size: 17px;
    margin-bottom: 7px;
}

.step p {
    color: var(--muted);
    font-size: 14px;
}

/* GUIDE */

.guide-section {
    padding: 95px 0;
    background: #111827;
    color: #fff;
}

.guide-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.guide-grid .eyebrow {
    color: #a5b4fc;
}

.guide-grid h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -.03em;
    margin-bottom: 17px;
}

.guide-grid > div > p {
    color: #b8c0ce;
}

.guide-list {
    display: grid;
    gap: 0;
}

.guide-list div {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #c7ceda;
    font-size: 14px;
}

.guide-list strong {
    color: #a5b4fc;
}

/* FAQ */

.faq-section {
    padding: 95px 0;
}

.faq-list {
    border-top: 1px solid var(--border);
}

.faq-list details {
    padding: 0;
    border-bottom: 1px solid var(--border);
}

.faq-list summary {
    padding: 21px 4px;
    cursor: pointer;
    list-style: none;
    font-weight: 750;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    float: right;
    color: var(--primary);
    font-size: 20px;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    padding: 0 35px 22px 4px;
    color: var(--muted);
    font-size: 14px;
}

/* CTA */

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

.cta-card {
    padding: 65px 30px;
    text-align: center;
    border-radius: 24px;
    background: var(--primary-soft);
    border: 1px solid #dfe3ff;
}

.cta-card h2 {
    max-width: 680px;
    margin: auto;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -.03em;
}

.cta-card p {
    max-width: 600px;
    margin: 15px auto 25px;
    color: var(--muted);
}

/* FOOTER */

.site-footer {
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-container {
    width: min(var(--max), calc(100% - 32px));
    margin: auto;
    padding: 60px 0 45px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 45px;
}

.footer-brand p {
    max-width: 330px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 13px;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-column h3 {
    margin-bottom: 5px;
    font-size: 13px;
}

.footer-column a {
    width: fit-content;
    color: var(--muted);
    font-size: 13px;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: #98a2b3;
    font-size: 12px;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .2s ease;
    box-shadow: 0 10px 25px rgba(79,70,229,.25);
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* TABLET */

@media (max-width: 980px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-copy {
        margin: auto;
    }

    .hero-actions,
    .trust-row {
        justify-content: center;
    }

    .hero-visual {
        max-width: 520px;
        width: 100%;
        margin: auto;
    }

    .benefit-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-card:last-child {
        grid-column: 1 / -1;
        max-width: 430px;
        width: 100%;
        margin: auto;
    }

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

    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* MOBILE */

@media (max-width: 720px) {
    .nav-container {
        min-height: 64px;
    }

    .brand {
        font-size: 14px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        padding: 10px 16px 15px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 14px 30px rgba(16,24,40,.08);
    }

    .site-nav.open {
        display: grid;
    }

    .site-nav a {
        padding: 13px 12px;
    }

    .hero-container {
        width: min(100% - 24px, var(--max));
        padding: 55px 0 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(36px, 11vw, 50px);
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-visual {
        min-height: 400px;
    }

    .resume-paper {
        width: 85%;
        min-height: 390px;
        padding: 23px;
    }

    .note-one {
        left: 0;
        top: 8%;
    }

    .note-two {
        right: 0;
        bottom: 9%;
    }

    .section-container {
        width: min(100% - 24px, var(--max));
    }

    .benefits,
    .templates-section,
    .steps-section,
    .guide-section,
    .faq-section {
        padding: 65px 0;
    }

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

    .template-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .step {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .step:last-child {
        border-bottom: 0;
    }

    .guide-grid {
        gap: 35px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 45px 0 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .cta-section {
        padding-bottom: 65px;
    }

    .cta-card {
        padding: 45px 20px;
    }
}

@media (max-width: 420px) {
    .brand span:last-child {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-visual {
        min-height: 340px;
    }

    .resume-paper {
        width: 80%;
        min-height: 330px;
        padding: 18px;
    }

    .fake-name {
        font-size: 15px;
    }

    .floating-note {
        font-size: 10px;
        padding: 8px 9px;
    }

    .template-preview {
        height: 280px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
