/* ============================================
   ZimCVs — Landing Page Styles
   ============================================ */

/* ---------- Landing Page Base ---------- */
.landing {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-ui);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------- Landing Nav ---------- */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.landing-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.landing-nav__logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.landing-nav__logo-icon svg {
    width: 18px;
    height: 18px;
}

.landing-nav__accent {
    color: var(--accent-light);
}

.landing-nav__links {
    display: flex;
    gap: 32px;
}

.landing-nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 200ms;
}

.landing-nav__link:hover {
    color: var(--text-primary);
}

.btn--landing-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.88rem;
    border-radius: 10px;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 32px 60px;
    gap: 60px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.hero__gradient-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 70%);
    top: -200px;
    right: -100px;
    animation: orbFloat1 12s ease-in-out infinite;
}

.hero__gradient-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: orbFloat2 15s ease-in-out infinite;
}

.hero__gradient-orb--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-30px, 40px) scale(1.05);
    }

    66% {
        transform: translate(20px, -30px) scale(0.95);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -20px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.92);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.hero__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__content {
    max-width: 580px;
    position: relative;
    z-index: 2;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 100px;
    color: var(--accent-light);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 28px;
    animation: fadeInUp 600ms ease-out;
}

.hero__badge svg {
    width: 14px;
    height: 14px;
}

.hero__title {
    font-family: 'Outfit', var(--font-ui);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    animation: fadeInUp 600ms ease-out 100ms both;
}

.hero__title-gradient {
    background: linear-gradient(135deg, #A78BFA, #7C3AED, #C4B5FD, #A78BFA);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
    animation: fadeInUp 600ms ease-out 200ms both;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 600ms ease-out 300ms both;
}

.btn--hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 200ms;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

.btn--hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn--hero svg {
    width: 18px;
    height: 18px;
}

.btn--hero.btn--lg {
    padding: 18px 36px;
    font-size: 1.1rem;
    border-radius: 16px;
}

.btn--hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 200ms;
    text-decoration: none;
}

.btn--hero-outline:hover {
    border-color: var(--text-tertiary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.btn--hero-outline svg {
    width: 18px;
    height: 18px;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 600ms ease-out 400ms both;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__stat-number {
    font-family: 'Outfit', var(--font-ui);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero__stat-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.hero__stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

/* Hero Preview (Mock CV) */
.hero__preview {
    position: relative;
    z-index: 2;
    animation: fadeInUp 800ms ease-out 300ms both;
}

.hero__preview-card--main {
    width: 380px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
    transition: transform 400ms;
}

.hero__preview-card--main:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.hero__mock-cv {
    display: flex;
    gap: 16px;
}

.hero__mock-sidebar {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 12px;
    border-right: 2px solid #7C3AED;
}

.hero__mock-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    margin-bottom: 4px;
}

.hero__mock-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero__mock-line {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}

.hero__mock-line--light {
    height: 5px;
    background: #f1f5f9;
}

.hero__mock-line--title {
    height: 10px;
    background: #1e293b;
}

.hero__mock-line--subtitle {
    height: 7px;
    background: #7C3AED;
    opacity: 0.6;
}

.hero__mock-line--heading {
    height: 7px;
    background: #7C3AED;
    margin-top: 4px;
}

.hero__mock-spacer {
    height: 8px;
}

/* Floating badges */
.hero__preview-card--float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero__float-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__float-icon svg {
    width: 16px;
    height: 16px;
}

.hero__preview-card--float-1 {
    top: -20px;
    right: -40px;
    animation: floatBadge 3s ease-in-out infinite;
}

.hero__preview-card--float-1 .hero__float-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
}

.hero__preview-card--float-2 {
    bottom: 30px;
    left: -50px;
    animation: floatBadge 3s ease-in-out 1.5s infinite;
}

.hero__preview-card--float-2 .hero__float-icon {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-light);
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Features Section ---------- */
.features {
    padding: 100px 32px;
    background: linear-gradient(180deg, var(--bg-primary), rgba(17, 24, 39, 1));
}

.features__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.features__header {
    text-align: center;
    margin-bottom: 56px;
}

.features__overline {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.features__title {
    font-family: 'Outfit', var(--font-ui);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.features__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 28px;
    transition: all 300ms;
}

.feature-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(124, 58, 237, 0.1);
}

.feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.feature-card__icon svg {
    width: 22px;
    height: 22px;
}

.feature-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card__desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------- Templates Showcase ---------- */
.templates-showcase {
    padding: 100px 32px;
    background: var(--bg-primary);
}

.templates-showcase__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.templates-showcase__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.showcase-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 300ms;
    position: relative;
}

.showcase-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.showcase-card__preview {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    aspect-ratio: 3/4;
    display: flex;
    align-items: flex-start;
}

.showcase-mini {
    width: 100%;
    display: flex;
    gap: 12px;
}

.showcase-mini--classic,
.showcase-mini--elegant,
.showcase-mini--ats {
    flex-direction: column;
    gap: 8px;
}

.showcase-mini__sidebar {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 10px;
    border-right: 2px solid #7C3AED;
}

.showcase-mini__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    margin-bottom: 4px;
}

.showcase-mini__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.showcase-mini__line {
    height: 5px;
    border-radius: 3px;
    background: #e2e8f0;
}

.showcase-mini__line--title {
    height: 8px;
    background: #1e293b;
}

.showcase-mini__line--center {
    align-self: center;
}

.showcase-mini__divider {
    height: 1px;
    background: #cbd5e1;
    margin: 4px 0;
}

.showcase-mini__topbar {
    height: 8px;
    background: #7C3AED;
    border-radius: 4px;
    margin-bottom: 8px;
}

.showcase-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.showcase-card__desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.showcase-card__tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.showcase-card__tag--ats {
    background: linear-gradient(135deg, #059669, #047857);
}

/* ---------- How It Works ---------- */
.how-it-works {
    padding: 100px 32px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 1), var(--bg-primary));
}

.how-it-works__inner {
    max-width: 700px;
    margin: 0 auto;
}

.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.step__number {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', var(--font-ui);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step__content {
    padding-top: 4px;
}

.step__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.step__desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step__connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, var(--accent-glow), transparent);
    margin-left: 23px;
}

/* ---------- Final CTA ---------- */
.final-cta {
    padding: 100px 32px;
    text-align: center;
    position: relative;
}

.final-cta__inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.final-cta__bg-glow {
    position: absolute;
    width: 600px;
    height: 400px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.final-cta__title {
    font-family: 'Outfit', var(--font-ui);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.final-cta__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.landing-footer {
    padding: 48px 32px;
    border-top: 1px solid var(--border-color);
}

.landing-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.landing-footer__tagline {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 6px;
}

.landing-footer__links {
    display: flex;
    gap: 24px;
}

.landing-footer__links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 200ms;
}

.landing-footer__links a:hover {
    color: var(--text-primary);
}

.landing-footer__copy {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ---------- Save Indicator ---------- */
.topbar__save-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    transition: all 300ms;
}

.topbar__save-indicator svg {
    width: 14px;
    height: 14px;
}

.topbar__save-indicator--saving {
    color: var(--warning);
}

.topbar__save-indicator--saved {
    color: var(--success);
}

/* ---------- Responsive: Tablet (≤900px) ---------- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 24px 48px;
        gap: 40px;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero__preview {
        display: none;
    }

    .landing-nav__links {
        display: none;
    }

    .templates-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .features {
        padding: 72px 20px;
    }

    .templates-showcase {
        padding: 72px 20px;
    }

    .final-cta {
        padding: 72px 20px;
    }

    .landing-footer {
        padding: 36px 20px;
    }
}

/* ================================================
   Responsive: Mobile (≤600px) — Designed for Touch
   ================================================ */
@media (max-width: 600px) {

    /* ── Nav: slim, app-like ── */
    .landing-nav {
        border-bottom: 1px solid rgba(124, 58, 237, 0.12);
    }

    .landing-nav__inner {
        padding: 0 16px;
        height: 52px;
    }

    .landing-nav__logo {
        font-size: 1.15rem;
        gap: 8px;
    }

    .landing-nav__logo-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .landing-nav__logo-icon svg {
        width: 15px;
        height: 15px;
    }

    /* Nav CTA: compact pill */
    .btn--landing-cta {
        padding: 8px 16px;
        font-size: 0.82rem;
        border-radius: 20px;
    }

    /* ── Hero: fill viewport, breathing room ── */
    .hero {
        padding: 72px 20px 40px;
        min-height: 100svh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero__badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        gap: 6px;
        margin-bottom: 24px;
        border-radius: 20px;
    }

    .hero__badge svg {
        width: 13px;
        height: 13px;
    }

    .hero__title {
        font-size: 2.1rem;
        margin-bottom: 16px;
        line-height: 1.12;
        letter-spacing: -0.03em;
    }

    .hero__subtitle {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 28px;
        color: var(--text-secondary);
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hero buttons: full-width, chunky touch targets */
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 36px;
        padding: 0 8px;
    }

    .btn--hero {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 0.95rem;
        border-radius: 14px;
        min-height: 52px;
        gap: 10px;
    }

    .btn--hero svg {
        width: 18px;
        height: 18px;
    }

    .btn--hero.btn--lg {
        padding: 16px 24px;
        font-size: 0.95rem;
        border-radius: 14px;
    }

    .btn--hero-outline {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
        border-radius: 14px;
        min-height: 48px;
    }

    /* Stats: 3-up row */
    .hero__stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 4px;
    }

    .hero__stat {
        background: rgba(30, 41, 59, 0.5);
        border: 1px solid rgba(148, 163, 184, 0.1);
        border-radius: 12px;
        padding: 14px 12px;
        text-align: center;
        gap: 4px;
    }

    .hero__stat-number {
        font-size: 1.3rem;
    }

    .hero__stat-label {
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    .hero__stat-divider {
        display: none;
    }

    /* ── Background orbs: smaller on mobile ── */
    .hero__gradient-orb--1 {
        width: 300px;
        height: 300px;
    }

    .hero__gradient-orb--2 {
        width: 250px;
        height: 250px;
    }

    .hero__gradient-orb--3 {
        width: 200px;
        height: 200px;
    }

    /* ── Features: horizontal card layout ── */
    .features {
        padding: 56px 16px;
    }

    .features__header {
        margin-bottom: 28px;
    }

    .features__overline {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
        margin-bottom: 8px;
    }

    .features__title {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .features__subtitle {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Feature cards: horizontal row layout (icon left, text right) */
    .feature-card {
        padding: 16px 18px;
        border-radius: 14px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
    }

    .feature-card:hover {
        transform: none;
    }

    .feature-card__icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
        margin-bottom: 0;
    }

    .feature-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-card__title {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .feature-card__desc {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    /* ── Templates: horizontal scroll carousel ── */
    .templates-showcase {
        padding: 56px 0;
    }

    .templates-showcase__inner {
        padding: 0;
    }

    .templates-showcase__inner>.features__header {
        padding: 0 16px;
    }

    .templates-showcase__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        padding: 0 16px 16px;
        scrollbar-width: none;
    }

    .templates-showcase__grid::-webkit-scrollbar {
        display: none;
    }

    .showcase-card {
        min-width: 200px;
        max-width: 200px;
        scroll-snap-align: start;
        flex-shrink: 0;
        padding: 14px;
        border-radius: 14px;
    }

    .showcase-card:hover {
        transform: none;
    }

    .showcase-card__preview {
        padding: 14px;
        margin-bottom: 10px;
        border-radius: 8px;
        aspect-ratio: 3/4;
    }

    .showcase-card__name {
        font-size: 0.88rem;
    }

    .showcase-card__desc {
        font-size: 0.72rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .showcase-card__tag {
        font-size: 0.6rem;
        padding: 3px 8px;
        top: 8px;
        right: 8px;
        border-radius: 4px;
    }


    /* ── Final CTA: glow border treatment ── */
    .final-cta {
        padding: 48px 16px 56px;
    }

    .final-cta__inner {
        background: rgba(30, 41, 59, 0.35);
        border: 1px solid rgba(124, 58, 237, 0.2);
        border-radius: 20px;
        padding: 36px 20px;
    }

    .final-cta__bg-glow {
        width: 300px;
        height: 200px;
        filter: blur(40px);
    }

    .final-cta__title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .final-cta__subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    /* ── Footer: compact, clean ── */
    .landing-footer {
        padding: 24px 16px 32px;
    }

    .landing-footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .landing-footer__links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .landing-footer__links a {
        font-size: 0.82rem;
    }

    .landing-footer__tagline {
        font-size: 0.78rem;
    }

    .landing-footer__copy {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .landing-footer__copy strong {
        color: var(--accent-light);
    }
}

/* ---------- Responsive: Small Phones (≤380px) ---------- */
@media (max-width: 380px) {
    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 0.88rem;
    }

    .hero__badge {
        font-size: 0.68rem;
        padding: 5px 12px;
    }

    .btn--hero {
        padding: 14px 18px;
        font-size: 0.9rem;
    }

    .hero__stat {
        padding: 12px 10px;
    }

    .hero__stat-number {
        font-size: 1.1rem;
    }

    .showcase-card {
        min-width: 170px;
        max-width: 170px;
    }

    .feature-card {
        padding: 14px;
        gap: 12px;
    }

    .feature-card__icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
}

/* ---------- Smooth scrolling for anchor links ---------- */
.landing {
    scroll-behavior: smooth;
}

/* ---------- Performance: reduce GPU load on mobile ---------- */
@media (max-width: 600px) {
    .hero__gradient-orb {
        filter: blur(60px);
        opacity: 0.3;
    }

    .landing-nav {
        backdrop-filter: blur(12px) saturate(150%);
        -webkit-backdrop-filter: blur(12px) saturate(150%);
    }

    .hero__preview-card--float {
        backdrop-filter: blur(8px);
    }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .landing {
        scroll-behavior: auto;
    }
}