.home-page {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 10%, rgba(99, 102, 241, .16), transparent 34%),
        radial-gradient(circle at 85% 18%, rgba(14, 165, 233, .13), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 45%, #f6f8ff 100%);
    color: #0f172a;
}

/* =========================================================
   HERO V2
========================================================= */

.hero-v2 {
    position: relative;
    min-height: 100vh;
    padding: 150px 60px 90px;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: .28;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 86%);
    z-index: -2;
}

.hero-mesh {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: .7;
    z-index: -3;
    animation: meshFloat 9s ease-in-out infinite;
}

.mesh-one {
    width: 520px;
    height: 520px;
    top: -160px;
    left: -140px;
    background: rgba(99, 102, 241, .28);
}

.mesh-two {
    width: 540px;
    height: 540px;
    right: -160px;
    top: 80px;
    background: rgba(14, 165, 233, .18);
    animation-delay: -3s;
}

.mesh-three {
    width: 420px;
    height: 420px;
    left: 45%;
    bottom: -160px;
    background: rgba(139, 92, 246, .16);
    animation-delay: -6s;
}

.hero-v2-grid {
    width: min(1500px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 80px;
    align-items: center;
}

.hero-v2-content {
    position: relative;
    z-index: 5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 999px;
    margin-bottom: 30px;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 800;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 18px 45px rgba(15,23,42,.06);
    backdrop-filter: blur(18px);
}

.badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #4f46e5;
    box-shadow: 0 0 0 7px rgba(79,70,229,.12);
}

.hero-v2 h1 {
    max-width: 820px;
    margin-bottom: 30px;
    font-size: clamp(54px, 7.5vw, 108px);
    line-height: .9;
    letter-spacing: -5px;
    color: #07111f;
}

.hero-v2 h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    max-width: 720px;
    margin-bottom: 42px;
    color: #64748b;
    font-size: 21px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    min-height: 62px;
    padding: 0 34px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    transition: .28s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    box-shadow: 0 22px 55px rgba(79,70,229,.25);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 28px 70px rgba(79,70,229,.34);
}

.btn-secondary {
    color: #0f172a;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 45px rgba(15,23,42,.05);
    backdrop-filter: blur(18px);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    border-color: rgba(79,70,229,.22);
}

.hero-trust-row {
    margin-top: 38px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.trust-avatars {
    display: flex;
    align-items: center;
}

.trust-avatars span {
    width: 46px;
    height: 46px;
    margin-left: -10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 900;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.09);
}

.trust-avatars span:first-child {
    margin-left: 0;
}

.hero-trust-row strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.hero-trust-row p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* =========================================================
   PRODUCT PREVIEW
========================================================= */

.hero-product-preview {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(79,70,229,.22), rgba(14,165,233,.14));
    filter: blur(45px);
}

.builder-window {
    position: relative;
    width: min(720px, 100%);
    min-height: 520px;
    border-radius: 36px;
    overflow: hidden;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow:
        0 50px 120px rgba(15,23,42,.13),
        inset 0 1px 0 rgba(255,255,255,.8);
    backdrop-filter: blur(26px);
    animation: floatCard 5.5s ease-in-out infinite;
}

.window-top {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(15,23,42,.07);
    background: rgba(255,255,255,.58);
}

.window-top span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #cbd5e1;
}

.window-top span:first-child {
    background: #fb7185;
}

.window-top span:nth-child(2) {
    background: #fbbf24;
}

.window-top span:nth-child(3) {
    background: #34d399;
}

.builder-layout {
    display: grid;
    grid-template-columns: 72px 1fr 250px;
    gap: 18px;
    padding: 22px;
}

.builder-sidebar,
.builder-editor,
.cv-preview-card {
    border-radius: 26px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(15,23,42,.06);
}

.builder-sidebar {
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-pill {
    width: 100%;
    height: 44px;
    border-radius: 16px;
    background: #eef2ff;
}

.sidebar-pill.active {
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    box-shadow: 0 12px 25px rgba(79,70,229,.24);
}

.builder-editor {
    padding: 24px;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.editor-header div span,
.editor-fields span,
.score-box span,
.cv-preview-section span,
.cv-preview-head span,
.live-panel span,
.mini-cv span {
    display: block;
    border-radius: 999px;
    background: #e2e8f0;
}

.editor-header div span:first-child {
    width: 150px;
    height: 13px;
    margin-bottom: 12px;
}

.editor-header div span:last-child {
    width: 90px;
    height: 10px;
}

.editor-header strong {
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #4f46e5;
    font-size: 12px;
    background: #eef2ff;
}

.editor-fields {
    display: grid;
    gap: 14px;
}

.editor-fields span {
    height: 46px;
    background: #f1f5f9;
}

.score-box {
    margin-top: 24px;
    padding: 18px;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(79,70,229,.1), rgba(14,165,233,.08));
    border: 1px solid rgba(79,70,229,.12);
}

.score-box strong {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
}

.score-box span {
    width: 120px;
    height: 8px;
}

.score-box b {
    font-size: 34px;
    color: #4f46e5;
}

.cv-preview-card {
    padding: 22px;
    background: rgba(255,255,255,.92);
}

.cv-preview-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.cv-photo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #c7d2fe, #e9d5ff);
}

.line-lg {
    width: 118px;
    height: 12px;
    margin-bottom: 10px;
}

.line-sm {
    width: 82px;
    height: 9px;
}

.cv-preview-section {
    margin-bottom: 24px;
}

.cv-preview-section strong {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
}

.cv-preview-section span {
    height: 8px;
    margin-bottom: 10px;
    background: #edf2f7;
}

.cv-skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.cv-skill-grid span {
    height: 44px;
    border-radius: 16px;
    background: #f1f5f9;
}

.floating-card {
    position: absolute;
    z-index: 10;
    min-width: 190px;
    padding: 16px 18px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: 0 24px 60px rgba(15,23,42,.1);
    backdrop-filter: blur(20px);
    animation: floatChip 6s ease-in-out infinite;
}

.floating-card i {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    background: #eef2ff;
}

.floating-card strong {
    display: block;
    font-size: 14px;
}

.floating-card span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.ats-card {
    top: 70px;
    left: -40px;
}

.pdf-card {
    right: -30px;
    top: 230px;
    animation-delay: -2s;
}

.lang-card {
    left: 30px;
    bottom: 95px;
    animation-delay: -4s;
}

/* =========================================================
   FEATURES
========================================================= */

.feature-strip-v2 {
    width: min(1450px, calc(100% - 40px));
    margin: -30px auto 110px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    position: relative;
    z-index: 8;
}

.feature-strip-v2 article {
    padding: 30px;
    border-radius: 30px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 24px 70px rgba(15,23,42,.06);
    backdrop-filter: blur(20px);
    transition: .3s ease;
}

.feature-strip-v2 article:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 90px rgba(15,23,42,.1);
}

.feature-strip-v2 article > span {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 24px;
    background: #eef2ff;
}

.feature-strip-v2 strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-strip-v2 p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

/* =========================================================
   SHARED SECTIONS
========================================================= */

.stats-section,
.templates-section,
.how-section,
.live-section,
.final-cta {
    width: min(1450px, calc(100% - 40px));
    margin: 0 auto 120px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading > span,
.live-content > span,
.final-cta-inner > span {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 900;
    background: #eef2ff;
}

.section-heading h2,
.live-content h2,
.final-cta h2 {
    margin-bottom: 18px;
    color: #07111f;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1;
    letter-spacing: -2.8px;
}

.section-heading p,
.live-content p,
.final-cta p {
    color: #64748b;
    font-size: 18px;
    line-height: 1.8;
}

/* =========================================================
   STATS
========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stats-grid article {
    padding: 36px;
    border-radius: 32px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 24px 70px rgba(15,23,42,.055);
}

.stats-grid strong {
    display: block;
    margin-bottom: 10px;
    color: #4f46e5;
    font-size: 44px;
    letter-spacing: -2px;
}

.stats-grid span {
    color: #64748b;
    font-weight: 700;
}

/* =========================================================
   TEMPLATES
========================================================= */

.templates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.template-card {
    position: relative;
    padding: 18px;
    border-radius: 34px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 28px 80px rgba(15,23,42,.07);
    transition: .32s ease;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 36px 100px rgba(15,23,42,.12);
}

.premium-label {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 3;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
}

.template-preview {
    height: 310px;
    padding: 30px;
    border-radius: 26px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.06);
}

.template-preview div {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    margin-bottom: 26px;
}

.template-preview span {
    display: block;
    height: 10px;
    border-radius: 999px;
    margin-bottom: 14px;
    background: rgba(15,23,42,.12);
}

.template-preview span:nth-child(2) {
    width: 80%;
}

.template-preview span:nth-child(3) {
    width: 58%;
}

.template-preview span:nth-child(4) {
    width: 92%;
}

.template-preview small {
    display: block;
    width: 100%;
    height: 110px;
    margin-top: 24px;
    border-radius: 22px;
    background: rgba(15,23,42,.06);
}

.template-preview.executive div {
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
}

.template-preview.creative {
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.template-preview.creative div {
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.template-preview.elegant {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.template-preview.elegant span,
.template-preview.elegant small {
    background: rgba(255,255,255,.16);
}

.template-preview.elegant div {
    background: linear-gradient(135deg, #8b5cf6, #0ea5e9);
}

.template-preview.corporate div {
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
}

.template-info {
    padding: 22px 6px 4px;
}

.template-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 19px;
}

.template-info p {
    margin-bottom: 16px;
    color: #64748b;
    line-height: 1.7;
}

.template-info span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 900;
    background: #eef2ff;
}

/* =========================================================
   HOW
========================================================= */

.how-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.how-timeline article {
    position: relative;
    padding: 34px;
    border-radius: 34px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 26px 80px rgba(15,23,42,.06);
}

.how-timeline b {
    position: absolute;
    top: 28px;
    right: 30px;
    color: rgba(79,70,229,.14);
    font-size: 52px;
    line-height: 1;
}

.how-timeline i {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 24px;
    background: #eef2ff;
}

.how-timeline strong {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
}

.how-timeline p {
    margin: 0;
    color: #64748b;
    line-height: 1.8;
}

/* =========================================================
   LIVE SECTION
========================================================= */

.live-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: .9fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 56px;
    border-radius: 44px;
    background:
        radial-gradient(circle at 10% 10%, rgba(79,70,229,.16), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 34px 110px rgba(15,23,42,.08);
}

.live-content ul {
    margin: 30px 0;
    display: grid;
    gap: 16px;
    list-style: none;
}

.live-content li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    font-weight: 700;
}

.live-content li i {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    background: #eef2ff;
}

.live-preview {
    position: relative;
    min-height: 460px;
}

.live-panel {
    position: absolute;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 28px 80px rgba(15,23,42,.09);
    backdrop-filter: blur(22px);
}

.editor-panel {
    width: 58%;
    left: 0;
    top: 40px;
}

.result-panel {
    width: 55%;
    right: 0;
    bottom: 30px;
}

.live-panel strong {
    display: block;
    margin-bottom: 24px;
    font-size: 18px;
}

.live-panel span {
    height: 42px;
    margin-bottom: 14px;
    background: #eef2f7;
}

.live-progress {
    height: 12px;
    margin-top: 24px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.live-progress i {
    display: block;
    width: 78%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
}

.mini-cv div {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #c7d2fe, #e9d5ff);
}

.mini-cv span {
    height: 9px;
    margin-bottom: 12px;
    background: #e2e8f0;
}

/* =========================================================
   FINAL CTA
========================================================= */

.final-cta {
    position: relative;
    overflow: hidden;
    padding: 82px 40px;
    border-radius: 46px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 28%),
        linear-gradient(135deg, #312e81, #4f46e5, #8b5cf6);
    box-shadow: 0 38px 120px rgba(79,70,229,.28);
}

.cta-glow {
    position: absolute;
    width: 460px;
    height: 460px;
    right: -160px;
    top: -160px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    filter: blur(55px);
}

.final-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.final-cta-inner > span {
    color: #fff;
    background: rgba(255,255,255,.16);
}

.final-cta h2,
.final-cta p {
    color: #fff;
}

.final-cta p {
    opacity: .82;
}

.final-cta .hero-actions {
    justify-content: center;
    margin-top: 34px;
}

.final-cta .btn-secondary {
    background: rgba(255,255,255,.14);
    color: #fff;
    border-color: rgba(255,255,255,.22);
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes floatChip {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes meshFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(20px, -18px, 0) scale(1.05);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1280px) {
    .hero-v2-grid,
    .live-card {
        grid-template-columns: 1fr;
    }

    .hero-v2-content {
        text-align: center;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-trust-row {
        justify-content: center;
    }

    .feature-strip-v2,
    .stats-grid,
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-product-preview {
        min-height: 620px;
    }
}

@media (max-width: 900px) {
    .hero-v2 {
        padding: 135px 22px 70px;
    }

    .hero-v2 h1 {
        letter-spacing: -3px;
    }

    .builder-layout {
        grid-template-columns: 1fr;
    }

    .builder-sidebar {
        flex-direction: row;
    }

    .builder-sidebar,
    .builder-editor {
        display: none;
    }

    .cv-preview-card {
        min-height: 420px;
    }

    .floating-card {
        display: none;
    }

    .hero-product-preview {
        min-height: auto;
    }

    .builder-window {
        min-height: auto;
    }

    .feature-strip-v2,
    .stats-grid,
    .templates-grid,
    .how-timeline {
        grid-template-columns: 1fr;
    }

    .live-card {
        padding: 34px 22px;
        border-radius: 34px;
    }

    .live-preview {
        min-height: 430px;
    }

    .editor-panel,
    .result-panel {
        width: 88%;
    }
}

@media (max-width: 640px) {
    .hero-v2 {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-v2 h1 {
        font-size: clamp(44px, 14vw, 62px);
        letter-spacing: -2px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-actions {
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-height: 58px;
        padding: 0 22px;
    }

    .hero-trust-row {
        align-items: flex-start;
        text-align: left;
    }

    .feature-strip-v2,
    .stats-section,
    .templates-section,
    .how-section,
    .live-section,
    .final-cta {
        width: calc(100% - 28px);
        margin-bottom: 80px;
    }

    .section-heading h2,
    .live-content h2,
    .final-cta h2 {
        letter-spacing: -1.8px;
    }

    .stats-grid article,
    .how-timeline article {
        padding: 28px;
    }

    .template-preview {
        height: 280px;
    }

    .final-cta {
        padding: 58px 22px;
        border-radius: 34px;
    }
}