/* —— Home landing (mockup-matched) —— */

body.home-page {
    background: #fff;
}

[data-theme="dark"] body.home-page {
    background: var(--bg-0);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-stage {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    height: 26rem;
    background: #ddedfa;
    overflow: visible;
}

[data-theme="dark"] .hero-stage { background: #0f1f33; }
[data-theme="dark"] .hero-title-dark { color: #eef4fb; }
[data-theme="dark"] .hero-title-brand { color: var(--brand); }
[data-theme="dark"] .hero-stage .hero-lead { color: #9aadc2; }

[data-theme="dark"] .hero-stage .hero-search-panel {
    background: #14283f;
    border-color: rgba(238, 244, 251, 0.08);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .glass-dropdown-trigger,
[data-theme="dark"] .hero-search-input {
    background: #1b3350;
    color: #eef4fb;
}

[data-theme="dark"] .hero-search-input::placeholder { color: #8397ad; }
[data-theme="dark"] .glass-dropdown-menu li:hover,
[data-theme="dark"] .glass-dropdown-menu li.is-selected { color: #8cc0f7; }
[data-theme="dark"] .filter-grid-icon { color: #5aa2f0; }

[data-theme="dark"] .hero-tags { color: #9aadc2; }
[data-theme="dark"] .hero-tags a {
    background: rgba(90, 162, 240, 0.14);
    color: #c9d4e1;
}
[data-theme="dark"] .hero-tags a:hover,
[data-theme="dark"] .hero-tags a:focus-visible,
[data-theme="dark"] .hero-tags a:active,
[data-theme="dark"] .hero-tags a.is-active {
    background: rgba(90, 162, 240, 0.26);
}

.hero-stage .hero-tags { margin-top: 0.75rem; }

.hero-stage .hero-search-panel {
    position: relative;
    z-index: 30;
    width: 100%;
    max-width: min(54rem, 100%);
    margin: 1.15rem 0 0;
}

.hero-stage .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    min-width: 0;
    position: relative;
    z-index: 12;
    padding-block: 2rem;
    padding-inline-start: max(1rem, calc((100vw - 1300px) / 2));
    padding-inline-end: 2rem;
}

.hero-stage .hero-title {
    display: block;
    margin: 0;
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    font-weight: normal;
    line-height: 1.35;
    letter-spacing: 0;
}

.hero-stage .hero-title,
.hero-stage .hero-title span {
    font-family: "Dastnevis", var(--font) !important;
}

.hero-stage .hero-title span {
    -webkit-text-stroke: 0.025em currentColor;
    paint-order: stroke fill;
}

.hero-title-dark { color: #112847; }
.hero-title-brand { color: var(--brand); }

.hero-stage .hero-lead {
    margin: 0;
    max-width: 32rem;
    color: #78859a;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    line-height: 1.9;
}

.hero-media {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    overflow: visible;
}

.hero-media-frame {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.hero-media img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
}

.signup-bubble {
    position: absolute;
    top: 2.75rem;
    right: -0.75rem;
    left: auto;
    z-index: 8;
    padding: 1.4rem 2rem 1.5rem;
    border-radius: 1.75rem 1.75rem 1.75rem 0.55rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 18px 40px rgba(17, 40, 71, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    animation: signup-float 5s ease-in-out infinite;
}

.signup-bubble::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(28, 99, 179, 0.55), rgba(21, 120, 227, 0) 45%, rgba(61, 143, 239, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.signup-body {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.signup-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.signup-text strong {
    color: #112847;
    font-size: 1.7rem;
    font-weight: 900;
}

.signup-count {
    display: inline-block;
    min-width: 2.6ch;
    color: var(--brand);
    font-feature-settings: "tnum";
    transform-origin: center bottom;
}

.signup-text small {
    color: #78859a;
    font-size: 1rem;
    font-weight: 500;
}

.signup-live {
    position: absolute;
    top: -0.9rem;
    left: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: #112847;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(17, 40, 71, 0.25);
}

.signup-live i {
    position: relative;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #34d399;
}

.signup-live i::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #34d399;
    animation: signup-ping 1.6s ease-out infinite;
}

.signup-plus {
    position: absolute;
    top: 0.4rem;
    left: -0.4rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #1578e3;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
}

.signup-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(17, 40, 71, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.signup-dot-lg { width: 0.85rem; height: 0.85rem; bottom: -1.05rem; left: 0.15rem; }
.signup-dot-sm { width: 0.45rem; height: 0.45rem; bottom: -1.7rem; left: -0.45rem; }

.signup-bubble.is-bump .signup-count { animation: signup-bump 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.signup-bubble.is-bump .signup-plus { animation: signup-plus 1.2s ease-out; }

@keyframes signup-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes signup-ping {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.6); opacity: 0; }
}

@keyframes signup-bump {
    0% { transform: translateY(0.35em) scale(0.85); opacity: 0.4; }
    60% { transform: translateY(-0.08em) scale(1.12); opacity: 1; }
    100% { transform: translateY(0) scale(1); }
}

@keyframes signup-plus {
    0% { opacity: 0; transform: translateY(0.4rem) scale(0.7); }
    25% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-1.4rem) scale(0.9); }
}

[data-theme="dark"] .signup-bubble,
[data-theme="dark"] .signup-dot {
    background: rgba(20, 40, 63, 0.85);
    border-color: rgba(238, 244, 251, 0.12);
}
[data-theme="dark"] .signup-text strong { color: #eef4fb; }
[data-theme="dark"] .signup-count { color: #5aa2f0; }
[data-theme="dark"] .signup-text small { color: #9aadc2; }
[data-theme="dark"] .signup-live { background: #1578e3; }

@media (max-width: 991.98px) {
    .hero-stage {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        padding-top: 0.85rem;
        overflow: visible;
    }

    .hero-media {
        order: -1;
        width: 100%;
        height: clamp(12.5rem, 48vw, 18rem);
        margin-top: 0.35rem;
        padding-inline: 0.85rem;
        justify-content: center;
        box-sizing: border-box;
    }

    .hero-media-frame {
        width: 100%;
        height: 100%;
        border-radius: 1.2rem;
        overflow: visible;
        background: transparent;
    }

    .hero-media img {
        object-fit: cover;
        object-position: center 20%;
        border-radius: 1.2rem;
    }

    .hero-stage .hero-copy {
        width: 100%;
        max-width: 100%;
        padding: 1.35rem 1rem 1.6rem;
        gap: 0.85rem;
        text-align: center;
        align-items: stretch;
        overflow: visible;
    }

    .hero-stage .hero-title {
        font-size: clamp(1.45rem, 6.2vw, 2.05rem);
        line-height: 1.45;
    }

    .hero-stage .hero-title span {
        display: inline;
    }

    .hero-stage .hero-lead {
        max-width: none;
        margin-inline: auto;
        font-size: 0.92rem;
        line-height: 1.8;
    }

    .hero-stage .hero-search-panel {
        width: 100%;
        max-width: 100%;
        margin: 1rem 0 0;
        padding: 0.7rem;
        border-radius: 1.25rem;
        overflow: visible;
    }

    .hero-search-row {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .hero-filter,
    .hero-search-field {
        width: 100%;
    }

    .glass-dropdown-trigger,
    .hero-search-input {
        min-height: 3.55rem;
        width: 100%;
        border-radius: 1rem;
        font-size: 1.05rem;
        padding-block: 0.85rem;
    }

    .glass-dropdown-trigger {
        justify-content: flex-start;
    }

    .hero-search-field {
        position: relative;
        display: block;
    }

    .hero-search-field .hero-search-input {
        padding-inline-end: 3.55rem;
    }

    .hero-search-field .btn-search-hero {
        position: absolute;
        inset-inline-end: 0.45rem;
        top: 50%;
        transform: translateY(-50%);
        width: 2.75rem;
        height: 2.75rem;
        min-height: 0;
        padding: 0;
        border-radius: 0.85rem;
        justify-content: center;
        gap: 0;
        box-shadow: 0 6px 14px rgba(28, 99, 179, 0.28);
    }

    .hero-search-field .btn-search-hero:hover {
        transform: translateY(-50%);
        filter: brightness(1.05);
    }

    .btn-search-hero-label {
        display: none;
    }

    .glass-dropdown-menu {
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
        max-height: min(18rem, 48vh);
    }

    .glass-dropdown-menu li {
        padding: 0.85rem 1rem;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .hero-stage .hero-copy {
        min-width: 0;
    }

    .hero-stage .hero-tags {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 0.35rem;
        padding-block: 0.15rem;
    }

    .hero-stage .hero-tags::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .hero-stage .hero-tags > span,
    .hero-stage .hero-tags a {
        flex: 0 0 auto;
    }

    .signup-bubble {
        top: 0.85rem;
        right: 0.75rem;
        left: auto;
        max-width: min(14.5rem, calc(100% - 1.5rem));
        padding: 0.85rem 1rem 0.95rem;
        border-radius: 1.15rem 1.15rem 1.15rem 0.45rem;
    }

    .signup-text strong { font-size: 1.15rem; }
    .signup-text small { font-size: 0.78rem; }
    .signup-live {
        top: -0.7rem;
        left: 0.7rem;
        font-size: 0.72rem;
        padding: 0.18rem 0.55rem;
    }
    .signup-dot-lg,
    .signup-dot-sm { display: none; }
}

@media (max-width: 767.98px) {
    .hero-stage {
        padding-top: 1.15rem;
    }

    .hero-media {
        height: clamp(11.5rem, 56vw, 15.5rem);
        margin-top: 0.65rem;
        padding-inline: 0.75rem;
    }

    .hero-media-frame {
        border-radius: 1.05rem;
    }

    .hero-media img {
        border-radius: 1.05rem;
    }

    .hero-stage .hero-copy {
        padding: 1.2rem 0.85rem 1.45rem;
        gap: 0.75rem;
    }

    .hero-stage .hero-title {
        font-size: clamp(1.35rem, 7vw, 1.75rem);
    }

    .hero-stage .hero-lead {
        font-size: 0.88rem;
    }

    .hero-stage .hero-search-panel {
        padding: 0.65rem;
    }

    .signup-bubble {
        top: 0.65rem;
        right: 0.55rem;
        left: auto;
        max-width: min(12.5rem, calc(100% - 1.1rem));
        padding: 0.7rem 0.85rem 0.8rem;
    }

    .signup-text strong { font-size: 1.05rem; }
    .signup-text small { font-size: 0.72rem; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce) {
    .signup-bubble,
    .signup-live i::after,
    .signup-bubble.is-bump .signup-count,
    .signup-bubble.is-bump .signup-plus { animation: none; }
}

.hero-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 60% 40% 55% 45%;
    filter: blur(2px);
    opacity: 0.55;
}

.blob-a {
    width: min(34rem, 55vw);
    height: min(34rem, 55vw);
    top: -8%;
    left: -6%;
    background: radial-gradient(circle at 40% 40%, rgba(228, 241, 255, 0.95), rgba(28, 99, 179, 0.12));
}

.blob-b {
    width: min(18rem, 35vw);
    height: min(18rem, 35vw);
    bottom: 8%;
    left: 28%;
    background: radial-gradient(circle at 50% 50%, rgba(61, 143, 239, 0.18), transparent 70%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    width: var(--shell-width);
    max-width: var(--shell-width);
    margin-inline: auto;
}

.hero-search-panel {
    position: relative;
    z-index: 20;
    margin: 0 0 1rem;
    padding: 0.45rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(17, 40, 71, 0.08);
    box-shadow: 0 14px 36px rgba(17, 40, 71, 0.08);
}

[data-theme="dark"] .hero-search-panel { background: var(--glass-strong); }

.hero-search-row {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
    gap: 0.35rem;
    align-items: stretch;
}

.hero-filter { min-width: 0; position: relative; z-index: 2; }
.hero-search-field {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}
.hero-search-field .hero-search-input { flex: 1 1 auto; }
.hero-search-field .btn-search-hero { flex: 0 0 auto; }
.glass-dropdown { position: relative; height: 100%; z-index: 6; }
.glass-dropdown.is-open { z-index: 60; }

.glass-dropdown-trigger {
    width: 100%;
    height: 100%;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 0;
    background: #f4f8fb;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}

.filter-grid-icon { color: var(--brand); flex-shrink: 0; margin-inline-end: 0.1rem; }
.glass-dropdown-label { flex: 1; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glass-dropdown-caret {
    opacity: 0.55;
    margin-inline-start: auto;
    margin-inline-end: 0.2rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.glass-dropdown.is-open .glass-dropdown-caret { transform: rotate(180deg); }

.glass-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: 0;
    min-width: 12rem;
    z-index: 70;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 40px rgba(17, 40, 71, 0.14);
    max-height: 16rem;
    overflow: auto;
    scrollbar-width: none;
}

[data-theme="dark"] .glass-dropdown-menu {
    background: #112033;
    border-color: rgba(238, 244, 251, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .glass-dropdown-menu li { color: #eef4fb; }
.glass-dropdown-menu::-webkit-scrollbar { display: none; width: 0; height: 0; }

.glass-dropdown-menu li {
    padding: 0.65rem 0.85rem;
    border-radius: 0.7rem;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.glass-dropdown-menu li:hover,
.glass-dropdown-menu li.is-selected {
    background: var(--icon-bg);
    color: var(--brand);
}

.hero-search-input {
    width: 100%;
    min-height: 3rem;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-radius: 999px;
    background: #f4f8fb;
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
    outline: none;
}

.hero-search-input::placeholder { color: var(--ink-muted); }

.btn-search-hero {
    min-height: 3rem;
    padding: 0.55rem 1.2rem;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(28, 99, 179, 0.28);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-search-hero:hover { transform: translateY(-1px); filter: brightness(1.05); }

@media (max-width: 991.98px) {
    .hero-search-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch;
        gap: 0.55rem;
    }

    .hero-filter,
    .hero-search-field {
        width: 100%;
        max-width: 100%;
    }

    .hero-filter { order: 1; }
    .hero-search-field {
        order: 2;
        position: relative;
        display: block;
    }

    .hero-search-field .hero-search-input {
        width: 100%;
        min-height: 3.55rem;
        padding-inline-end: 3.55rem;
        padding-block: 0.85rem;
        border-radius: 1rem;
        font-size: 1.05rem;
    }

    .hero-search-field .btn-search-hero {
        position: absolute;
        inset-inline-end: 0.45rem;
        top: 50%;
        transform: translateY(-50%);
        width: 2.75rem;
        height: 2.75rem;
        min-height: 0;
        padding: 0;
        border-radius: 0.85rem;
        justify-content: center;
        gap: 0;
        box-shadow: 0 6px 14px rgba(28, 99, 179, 0.28);
    }

    .hero-search-field .btn-search-hero:hover {
        transform: translateY(-50%);
        filter: brightness(1.05);
    }

    .btn-search-hero-label { display: none; }

    .glass-dropdown-trigger {
        min-height: 3.55rem;
        width: 100%;
        border-radius: 1rem;
        justify-content: flex-start;
        font-size: 1.05rem;
        padding-block: 0.85rem;
    }
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.7rem;
    font-size: 0.95rem;
    color: var(--ink-muted);
    max-width: 100%;
}

.hero-tags a {
    color: #3a4659;
    text-decoration: none;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: #d6e6f3;
    transition: background 0.2s ease;
}

.hero-tags a:hover,
.hero-tags a:focus-visible,
.hero-tags a:active,
.hero-tags a.is-active {
    background: #c6dcee;
}

.hero-visual {
    position: relative;
    min-width: 0;
    padding: 1rem 0.5rem 1.5rem;
}

.hero-visual-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.6rem;
    aspect-ratio: 1 / 1.05;
    background: var(--icon-bg);
    box-shadow: 0 24px 50px rgba(17, 40, 71, 0.12);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(17, 40, 71, 0.06);
    box-shadow: 0 14px 30px rgba(17, 40, 71, 0.12);
    z-index: 2;
    min-width: 11rem;
}

[data-theme="dark"] .float-card {
    background: var(--bg-1);
    border-color: var(--card-border);
}

.float-card-a {
    top: 12%;
    right: -0.35rem;
    animation: float-y 5.5s ease-in-out infinite;
}

.float-card-b {
    bottom: 18%;
    left: -0.5rem;
    animation: float-y 6.5s ease-in-out infinite;
    animation-delay: -2s;
}

.float-avatar {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-2));
    flex-shrink: 0;
}

.float-avatar.tone-b { background: linear-gradient(145deg, #1578e3, #3d8fef); }
.float-card strong { display: block; font-size: 0.82rem; color: var(--ink); }
.float-card span { font-size: 0.72rem; color: var(--ink-muted); }

.float-quote {
    position: absolute;
    bottom: 0.25rem;
    right: 8%;
    margin: 0;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 40, 71, 0.06);
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(17, 40, 71, 0.08);
    z-index: 2;
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
}

.section-title {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.section-meta,
.section-text {
    margin: 0.45rem 0 0;
    color: var(--ink-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 36rem;
}

.section-link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
    white-space: nowrap;
}

.section-link:hover { text-decoration: underline; }

.categories-section {
    position: relative;
    z-index: 1;
    padding: clamp(2rem, 5vw, 3.5rem) 1rem;
}

.categories-section .section-head,
.how-section .section-head,
.stories-section .section-head {
    justify-content: space-between;
    align-items: center;
    text-align: right;
    margin-bottom: 1.5rem;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-accent {
    position: relative;
    width: 0.3rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #1578e3, rgba(21, 120, 227, 0.15));
}

.section-accent::after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #1578e3;
    box-shadow: 0 0 0 4px rgba(21, 120, 227, 0.15);
    transform: translate(50%, -25%);
}

.categories-section .section-title,
.how-section .section-title,
.stories-section .section-title {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.5;
    color: #112847;
}

.categories-section .section-meta,
.how-section .section-meta,
.stories-section .section-meta {
    margin-top: 0.15rem;
    font-size: 0.82rem;
    color: #78859a;
}

.categories-section .section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: #e4f1ff;
    color: var(--brand);
    font-size: 0.82rem;
    transition: background 0.2s ease, gap 0.2s ease;
}

.categories-section .section-link:hover {
    text-decoration: none;
    background: #d6e6f3;
    gap: 0.55rem;
}

[data-theme="dark"] .categories-section .section-title,
[data-theme="dark"] .how-section .section-title,
[data-theme="dark"] .stories-section .section-title { color: #eef4fb; }
[data-theme="dark"] .categories-section .section-meta,
[data-theme="dark"] .how-section .section-meta,
[data-theme="dark"] .stories-section .section-meta { color: #9aadc2; }
[data-theme="dark"] .categories-section .section-link {
    background: rgba(90, 162, 240, 0.14);
    color: #8cc0f7;
}

.categories-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.85rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.25rem 0.6rem 1.1rem;
    border-radius: 1.25rem;
    text-decoration: none;
    color: var(--ink) !important;
    background: linear-gradient(165deg, rgba(223, 237, 250, 0.78), rgba(228, 241, 255, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 10px 28px rgba(28, 99, 179, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

[data-theme="dark"] .category-card {
    background: linear-gradient(165deg, rgba(28, 99, 179, 0.28), rgba(17, 40, 71, 0.45));
    border-color: rgba(140, 192, 247, 0.16);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--tone, #1578e3) 45%, #fff);
    background: linear-gradient(165deg, rgba(214, 230, 243, 0.9), rgba(223, 237, 250, 0.55));
    box-shadow: 0 16px 36px rgba(28, 99, 179, 0.16);
}

[data-theme="dark"] .category-card:hover {
    background: linear-gradient(165deg, rgba(28, 99, 179, 0.4), rgba(17, 40, 71, 0.5));
    border-color: color-mix(in srgb, var(--tone, #5aa2f0) 45%, transparent);
}

.category-icon {
    width: 3.4rem;
    height: 3.4rem;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--tone, #1578e3) 12%, transparent);
    color: var(--tone, #1578e3);
    transition: background 0.25s ease;
}

.category-card:hover .category-icon {
    background: color-mix(in srgb, var(--tone, #1578e3) 20%, transparent);
}

[data-theme="dark"] .category-icon {
    background: color-mix(in srgb, var(--tone, #1578e3) 22%, transparent);
}

.category-icon svg { width: 2rem; height: 2rem; stroke-width: 1.8; }

.category-card-more {
    position: relative;
    background: linear-gradient(165deg, rgba(223, 237, 250, 0.88), rgba(228, 241, 255, 0.5));
    animation: more-deck 3.2s ease-in-out infinite;
}

.category-card-more .category-icon { position: relative; }

.category-card-more .category-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--tone, #64748b) 40%, transparent);
    animation: more-ring 2.4s ease-out infinite;
    pointer-events: none;
}

.category-card-more .more-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--tone, #64748b);
    font-weight: 600;
}

.more-chevrons {
    display: inline-flex;
    align-items: center;
    gap: 0.05rem;
}

.more-chevrons i {
    width: 0.38rem;
    height: 0.38rem;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.2;
    animation: more-chevron 1.4s ease-in-out infinite;
}

.more-chevrons i:nth-child(2) { animation-delay: 0.2s; }
.more-chevrons i:nth-child(3) { animation-delay: 0.4s; }

.category-card-more:hover .more-chevrons i { animation-duration: 0.8s; }
.category-card-more:hover { animation-duration: 1.6s; }

@keyframes more-deck {
    0%, 100% {
        box-shadow:
            -7px 0 0 -3px #e9f1f9,
            -14px 0 0 -6px #dce8f4,
            0 10px 28px rgba(17, 40, 71, 0.05);
    }
    50% {
        box-shadow:
            -12px 0 0 -3px #e9f1f9,
            -24px 0 0 -6px #dce8f4,
            0 12px 30px rgba(17, 40, 71, 0.08);
    }
}

@keyframes more-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes more-chevron {
    0%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}

[data-theme="dark"] .category-card-more {
    background: linear-gradient(165deg, rgba(28, 99, 179, 0.28), rgba(17, 40, 71, 0.45));
    animation-name: more-deck-dark;
}

@keyframes more-deck-dark {
    0%, 100% {
        box-shadow:
            -7px 0 0 -3px rgba(90, 162, 240, 0.14),
            -14px 0 0 -6px rgba(90, 162, 240, 0.08);
    }
    50% {
        box-shadow:
            -12px 0 0 -3px rgba(90, 162, 240, 0.14),
            -24px 0 0 -6px rgba(90, 162, 240, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-card-more,
    .category-card-more .category-icon::after,
    .more-chevrons i { animation: none; }
    .more-chevrons i { opacity: 0.6; }
}
.category-card strong { font-size: 0.98rem; font-weight: 800; color: var(--ink); }
.category-card em { font-style: normal; font-size: 0.78rem; color: var(--ink-muted); }

/* —— 4. Featured carousel —— */
.featured-section {
    padding: clamp(2.5rem, 5vw, 4rem) 1rem;
}

.featured-section .section-head {
    justify-content: space-between;
    align-items: center;
    text-align: right;
    margin-bottom: 1.5rem;
}

.featured-section .section-title {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.5;
    color: #112847;
}

.featured-section .section-meta {
    margin-top: 0.15rem;
    font-size: 0.82rem;
    color: #78859a;
}

[data-theme="dark"] .featured-section .section-title { color: #eef4fb; }
[data-theme="dark"] .featured-section .section-meta { color: #9aadc2; }

.carousel-nav { display: flex; gap: 0.5rem; }

.carousel-nav .icon-btn {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.carousel-nav .icon-btn:hover {
    border-color: rgba(28, 99, 179, 0.4);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.featured-carousel { overflow: hidden; }

.featured-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.featured-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.carousel-card {
    flex: 0 0 min(230px, 72vw);
    scroll-snap-align: start;
    padding: 0.85rem 0.9rem 0.8rem;
    border-radius: 1.15rem;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(228, 241, 255, 0.55));
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 12px 28px rgba(28, 99, 179, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(28, 99, 179, 0.14);
}

[data-theme="dark"] .carousel-card {
    background: linear-gradient(160deg, rgba(28, 99, 179, 0.22), rgba(17, 40, 71, 0.55));
    border-color: rgba(140, 192, 247, 0.16);
}

.talent-card-hit {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
}

.talent-card-hit:hover { color: inherit; }

.talent-mini-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.talent-photo {
    width: 2.55rem;
    height: 2.55rem;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #1578e3, #3d8fef);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow:
        0 0 0 3px rgba(21, 120, 227, 0.16),
        0 8px 16px rgba(21, 120, 227, 0.22);
}

.talent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.talent-mini-id { min-width: 0; }

.featured-section .talent-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #112847;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-section .talent-role {
    margin: 0.15rem 0 0;
    font-size: 0.74rem;
    color: var(--brand);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-section .talent-headline {
    margin: 0;
    min-height: 0;
    font-size: 0.78rem;
    line-height: 1.65;
    color: #78859a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.talent-mini-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #78859a;
}

.talent-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.08rem;
    color: #f5b301;
}

.talent-stars svg {
    width: 0.82rem;
    height: 0.82rem;
    fill: currentColor;
}

.talent-stars svg:not(.is-on) {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    opacity: 0.45;
}

[data-theme="dark"] .featured-section .talent-name { color: #eef4fb; }
[data-theme="dark"] .featured-section .talent-role { color: #8cc0f7; }
[data-theme="dark"] .featured-section .talent-headline,
[data-theme="dark"] .talent-mini-foot { color: #9aadc2; }

.empty-state { padding: 2rem; text-align: center; color: var(--ink-muted); }

/* —— How it works —— */
.how-section {
    position: relative;
    padding: clamp(2rem, 5vw, 3.5rem) 1rem clamp(2.5rem, 5vw, 4rem);
}

.how-flow { position: relative; margin-top: 0.2rem; }

.how-wave {
    position: absolute;
    z-index: 0;
    top: 1.1rem;
    inset-inline: 8%;
    width: 84%;
    height: 6.5rem;
    color: rgba(28, 99, 179, 0.38);
    pointer-events: none;
}

.how-flow ol {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.how-flow li {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 0.4rem 0.5rem 0.6rem;
    text-align: center;
    border-radius: 1.4rem;
    cursor: default;
    transition: transform 0.28s ease, background 0.28s ease;
}

.how-flow li:nth-child(2) { transform: translateY(1.85rem); }
.how-flow li:nth-child(3) { transform: translateY(0.4rem); }
.how-flow li:hover { transform: translateY(-0.45rem); background: rgba(28, 99, 179, 0.045); }
.how-flow li:nth-child(2):hover { transform: translateY(1.25rem); background: rgba(106, 74, 223, 0.06); }
.how-flow li:nth-child(3):hover { transform: translateY(-0.15rem); background: rgba(14, 143, 134, 0.06); }

.how-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 4.1rem;
    height: 4.1rem;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
    transition: transform 0.28s ease;
}

.how-mark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28, 99, 179, 0.18), transparent 68%);
    transition: transform 0.28s ease;
}

.how-flow li:nth-child(2) .how-mark { color: #6a4adf; }
.how-flow li:nth-child(2) .how-mark::before { background: radial-gradient(circle, rgba(106, 74, 223, 0.18), transparent 68%); }
.how-flow li:nth-child(3) .how-mark { color: #0e8f86; }
.how-flow li:nth-child(3) .how-mark::before { background: radial-gradient(circle, rgba(14, 143, 134, 0.18), transparent 68%); }

.how-flow li:hover .how-mark { transform: scale(1.08); }
.how-flow li:hover .how-mark::before { transform: scale(1.18); }

.how-flow h3 {
    position: relative;
    margin: 0.2rem 0 0.55rem;
    padding-bottom: 0.45rem;
    font-size: 1.08rem;
    font-weight: 800;
    color: #112847;
}

.how-flow h3::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    width: 1.6rem;
    height: 2px;
    margin-inline: auto;
    border-radius: 99px;
    background: currentColor;
    opacity: 0.35;
    transition: width 0.28s ease, opacity 0.28s ease;
}

.how-flow li:nth-child(1) h3::after { background: var(--brand); }
.how-flow li:nth-child(2) h3::after { background: #6a4adf; }
.how-flow li:nth-child(3) h3::after { background: #0e8f86; }
.how-flow li:hover h3::after { width: 2.8rem; opacity: 0.9; }

.how-flow li p {
    margin: 0;
    max-width: 15rem;
    color: #5f6e82;
    font-size: 0.9rem;
    line-height: 1.9;
}

[data-theme="dark"] .how-flow h3 { color: #eef4fb; }
[data-theme="dark"] .how-flow li p { color: #9aadc2; }
[data-theme="dark"] .how-wave { color: rgba(140, 192, 247, 0.4); }
[data-theme="dark"] .how-mark { color: #8cc0f7; }
[data-theme="dark"] .how-flow li:nth-child(2) .how-mark { color: #c4b5fd; }
[data-theme="dark"] .how-flow li:nth-child(3) .how-mark { color: #5eead4; }
[data-theme="dark"] .how-flow li:hover { background: rgba(90, 162, 240, 0.08); }
[data-theme="dark"] .how-flow li:nth-child(2):hover { background: rgba(196, 181, 253, 0.1); }
[data-theme="dark"] .how-flow li:nth-child(3):hover { background: rgba(94, 234, 212, 0.1); }

@media (max-width: 767.98px) {
    .how-wave { display: none; }
    .how-flow { margin-top: 1.2rem; }
    .how-flow ol { grid-template-columns: 1fr; gap: 1.35rem; }
    .how-flow li,
    .how-flow li:nth-child(2),
    .how-flow li:nth-child(3) {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: 0.85rem;
        text-align: start;
        transform: none;
    }
    .how-mark {
        grid-row: 1 / span 2;
        width: 3.3rem;
        height: 3.3rem;
        font-size: 1.25rem;
    }
    .how-flow li:hover,
    .how-flow li:nth-child(2):hover,
    .how-flow li:nth-child(3):hover { transform: none; }
    .how-flow h3,
    .how-flow li p { grid-column: 2; max-width: none; }
    .how-flow h3 { margin: 0; }
}

/* —— 6. Why —— */
.why-section {
    padding: clamp(2.5rem, 5vw, 4rem) 1rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}

.why-card {
    padding: 1.4rem 1.25rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(28, 99, 179, 0.35);
}

.why-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    border-radius: 0.9rem;
    background: var(--icon-bg);
    border: 1px solid rgba(28, 99, 179, 0.12);
    color: var(--icon);
}

.why-icon svg { width: 1.25rem; height: 1.25rem; }

.why-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
}

.why-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--ink-muted);
}

/* —— 7. Stories: one-row drag carousel —— */
.stories-section {
    padding: clamp(2.75rem, 6vw, 4.5rem) 1rem;
}

.stories-carousel { overflow: hidden; padding-block: 0.5rem 0.75rem; }

.stories-track {
    --story-gap: 0.7rem;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: none;
    grid-auto-columns: calc((100% - 5 * var(--story-gap)) / 6);
    gap: var(--story-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.4rem 0.15rem 0.9rem;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-y;
}

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

.stories-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.stories-track.is-dragging,
.stories-track.is-dragging * { user-select: none; }

.story-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 11.5rem;
    padding: 0.95rem 0.8rem 0.8rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(23, 32, 51, 0.07);
    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.05);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover,
.story-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(28, 99, 179, 0.12);
}

.story-mark {
    position: relative;
    width: 2.1rem;
    height: 1.35rem;
    align-self: flex-start;
}

.story-mark::before,
.story-mark::after {
    content: "";
    position: absolute;
    top: 0.15rem;
    width: 0.72rem;
    height: 0.95rem;
    border: 2.5px solid var(--brand);
    border-inline-start: 0;
    border-bottom: 0;
    border-start-end-radius: 0.7rem;
    opacity: 0.55;
}

.story-mark::before { inset-inline-start: 0; }
.story-mark::after { inset-inline-start: 0.8rem; }

.story-quote {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.75;
    font-weight: 600;
    color: var(--ink);
}

.story-person {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(23, 32, 51, 0.08);
}

.story-id {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.story-person strong {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-role {
    font-size: 0.68rem;
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-social {
    display: flex;
    flex-shrink: 0;
    gap: 0.28rem;
}

.story-social a,
.story-social span {
    width: 1.25rem;
    height: 1.25rem;
    display: grid;
    place-items: center;
    border-radius: 0.35rem;
    color: #fff;
}

.story-social svg { width: 0.82rem; height: 0.82rem; }

.story-ig {
    background: radial-gradient(circle at 30% 115%, #feda75, #fa7e1e 36%, #d62976 64%, #4f5bd5);
}

.story-in { background: #0a66c2; }

.story-social a:hover { filter: brightness(1.08); }

[data-theme="dark"] .story-card {
    background: #14283f;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .story-person { border-top-color: rgba(255, 255, 255, 0.1); }

@media (max-width: 991.98px) {
    .stories-track { grid-auto-columns: calc((100% - 2 * var(--story-gap)) / 3); }
}

@media (max-width: 767.98px) {
    .stories-section { --story-gap: 0.75rem; }
    .stories-track { grid-auto-columns: 86%; }
    .story-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .story-card { transition: none; }
}

/* —— 8. CTA —— */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 3.4rem 1rem clamp(2.5rem, 5vw, 3.5rem);
}

.cta-panel {
    position: relative;
    display: grid;
    grid-template-columns: 25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem 1.75rem;
    overflow: visible;
    height: 14rem;
    padding: 1.4rem 1.5rem 1.5rem 2rem;
    border-radius: 1.75rem;
    border: 1px solid rgba(28, 99, 179, 0.18);
    background:
        radial-gradient(ellipse 55% 80% at 100% 0%, rgba(61, 143, 239, 0.35), transparent 55%),
        linear-gradient(145deg, #112847, #1c63b3);
    color: #fff;
    text-align: right;
    box-shadow: 0 24px 50px rgba(17, 40, 71, 0.18);
}

.cta-copy { text-align: center; }

.cta-video {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 0;
    margin: 0;
}

.cta-video::before {
    content: "";
    position: absolute;
    inset: 0.55rem -0.4rem -0.35rem 0.45rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-video-frame {
    position: absolute;
    inset-inline: 0;
    bottom: -1rem;
    z-index: 1;
    height: 14.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #07121f;
    border: 3px solid #fff;
    box-shadow: 0 22px 44px rgba(8, 24, 48, 0.32);
}

.cta-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #07121f;
}

.cta-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 3.6rem;
    height: 3.6rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(8, 24, 48, 0.28);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-video-play svg { width: 1.15rem; height: 1.15rem; margin-inline-start: 0.12rem; }
.cta-video.is-playing .cta-video-play svg { margin-inline-start: 0; }
.cta-video-play:hover { transform: scale(1.06); }
.cta-video.is-playing .cta-video-play { opacity: 0; }
.cta-video.is-playing:hover .cta-video-play,
.cta-video.is-playing .cta-video-play:focus-visible { opacity: 1; }

.cta-copy h2 {
    margin: 0 auto;
    max-width: 28rem;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    font-weight: 800;
    line-height: 1.55;
    color: #fff;
}

.cta-copy p {
    margin: 0.4rem auto 0;
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover { transform: translateY(-2px); }

.cta-btn-solid {
    background: #fff;
    color: var(--brand) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.cta-btn-line {
    background: transparent;
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.cta-btn-line:hover { background: rgba(255, 255, 255, 0.12); }

/* —— Responsive —— */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-visual { order: -1; }

    .categories-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .float-card { display: none; }
    .float-quote { display: none; }
}

@media (max-width: 991.98px) {
    .cta-section { padding-top: 1.4rem; }
    .cta-panel {
        grid-template-columns: 1fr;
        justify-items: stretch;
        text-align: center;
        height: auto;
        min-height: 0;
        padding: 1rem 1rem 1.25rem;
        overflow: hidden;
    }
    .cta-video {
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0 0 0.35rem;
    }
    .cta-video::before { display: none; }
    .cta-video-frame {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: none;
    }
    .cta-video-frame video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .cta-copy h2,
    .cta-copy p { margin-inline: auto; }
    .cta-copy h2 { white-space: normal; }
    .cta-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .hero-visual-frame { aspect-ratio: 16 / 11; }
    .why-grid { grid-template-columns: 1fr; }
    .categories-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .categories-row { grid-template-columns: 1fr 1fr; }
}

/* —— SEO copy (full text in DOM, clipped for display) —— */
.seo-section {
    position: relative;
    z-index: 1;
    padding: 0.5rem 1rem clamp(2.5rem, 5vw, 3.5rem);
}

.seo-copy { max-width: none; text-align: center; }

.seo-clip {
    position: relative;
    overflow: hidden;
    text-align: start;
}

.seo-copy.is-collapsed .seo-clip {
    max-height: calc(1.05rem * 2.15 * 5);
}

.seo-body p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 1.05rem;
    line-height: 2.15;
    text-align: justify;
    text-align-last: start;
}

.seo-body h2,
.seo-body h3,
.seo-body h4 {
    margin: 1.35rem 0 0.55rem;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.55;
    text-align: start;
}

.seo-body h2 { font-size: 1.2rem; }
.seo-body h3 { font-size: 1.08rem; }
.seo-body h4 { font-size: 1.02rem; }

.seo-body ul,
.seo-body ol {
    margin: 0.65rem 0 0;
    padding-inline-start: 1.35rem;
    color: var(--ink-muted);
    font-size: 1.05rem;
    line-height: 2.05;
    text-align: start;
}

.seo-body li + li { margin-top: 0.25rem; }

.seo-body a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.seo-body strong { color: var(--ink); font-weight: 800; }

.seo-body p + p,
.seo-body p + ul,
.seo-body p + ol,
.seo-body ul + p,
.seo-body ol + p { margin-top: 1rem; }

.seo-fade {
    display: none;
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 4.6rem;
    pointer-events: none;
    background: linear-gradient(to top, #fff 8%, rgba(255, 255, 255, 0.72) 42%, transparent);
}

.seo-copy.is-collapsed .seo-fade { display: block; }

.seo-more {
    display: inline-flex;
    align-items: center;
    margin-top: 0.85rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand);
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    font-weight: 800;
}

.seo-more:hover { text-decoration: underline; text-underline-offset: 0.2em; }

[data-theme="dark"] .seo-body p { color: #9aadc2; }
[data-theme="dark"] .seo-body h2,
[data-theme="dark"] .seo-body h3,
[data-theme="dark"] .seo-body h4,
[data-theme="dark"] .seo-body strong { color: var(--ink); }
[data-theme="dark"] .seo-body ul,
[data-theme="dark"] .seo-body ol { color: #9aadc2; }
[data-theme="dark"] .seo-fade {
    background: linear-gradient(to top, var(--bg-0) 8%, rgba(11, 21, 36, 0.72) 42%, transparent);
}
