.features-page {
    overflow: hidden;
    background: #ffffff;
    color: #0a1029;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================
   HERO
========================= */

.features-hero {
    position: relative;
    padding: 88px 0 78px;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 0%, rgba(99, 91, 255, .16), transparent 34%),
        radial-gradient(circle at 12% 18%, rgba(99, 91, 255, .10), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6f4ff 100%);
    border-bottom: 1px solid rgba(10, 16, 41, .08);
}

.features-bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .55;
    background-image:
        linear-gradient(rgba(99, 91, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 91, 255, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, black, transparent 72%);
}

.features-hero::before {
    content: "";
    position: absolute;
    width: 760px;
    height: 760px;
    right: -260px;
    top: -320px;
    border-radius: 50%;
    border: 1px solid rgba(99, 91, 255, .12);
    box-shadow:
        inset 0 0 0 42px rgba(99, 91, 255, .025),
        inset 0 0 0 86px rgba(99, 91, 255, .025),
        inset 0 0 0 132px rgba(99, 91, 255, .025);
    pointer-events: none;
}

.features-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 72px;
}

.features-hero-content {
    max-width: 620px;
}

.features-kicker,
.section-heading span,
.features-dark-content > span,
.features-cta-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 11px;
    font-weight: 900;
    border-radius: 0;
}

.features-kicker {
    margin: 0 0 18px;
    padding: 8px 12px;
    color: #635bff;
    background: rgba(99, 91, 255, .08);
    border: 1px solid rgba(99, 91, 255, .22);
}

.features-hero h1 {
    margin: 0;
    max-width: none;
    color: #0a1029;
    font-size: clamp(34px, 3.5vw, 50px);
    line-height: 1.18;
    letter-spacing: -0.038em;
    font-weight: 850;
    overflow: visible;
    padding-bottom: 10px;
}

.features-hero h1 span {
    display: inline;
    font-weight: 850;
    line-height: inherit;
    background: linear-gradient(135deg, #635bff 0%, #7c3aed 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-hero-content > p:not(.features-kicker) {
    max-width: 580px;
    margin: 18px 0 0;
    color: #596176;
    font-size: 16px;
    line-height: 1.72;
    font-weight: 520;
}

.features-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary-light,
.btn-white,
.btn-outline-white {
    height: 54px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        background .18s ease,
        color .18s ease;
}

.btn-primary {
    color: #ffffff;
    background: #635bff;
    box-shadow: 0 18px 38px rgba(99, 91, 255, .30);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 55px rgba(99, 91, 255, .38);
}

.btn-secondary-light {
    color: #0a1029;
    background: rgba(255, 255, 255, .82);
    border-color: rgba(10, 16, 41, .14);
    box-shadow: 0 12px 34px rgba(10, 16, 41, .06);
}

.btn-secondary-light:hover {
    color: #635bff;
    border-color: rgba(99, 91, 255, .35);
    transform: translateY(-2px);
}

.features-trust-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
    color: #596176;
    font-size: 13px;
    font-weight: 750;
}

.features-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.features-trust-row svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #635bff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================
   DASHBOARD IMAGE
========================= */

.features-dashboard-preview {
    position: relative;
}


.dashboard-image-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(99, 91, 255, .12);
    border-radius: 0;
    box-shadow:
        0 38px 90px rgba(10, 16, 41, .16),
        0 12px 28px rgba(99, 91, 255, .08);
    transform:
        perspective(1400px)
        rotateY(-4deg)
        rotateX(1deg)
        scale(1.04);
    transform-origin: center;
}


.dashboard-real-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
    background: #ffffff;
}

.dashboard-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(10,16,41,.06)),
        radial-gradient(circle at top left, rgba(99,91,255,.10), transparent 32%);
}

.preview-floating-card {
    position: absolute;
    left: -36px;
    bottom: 58px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 19px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(10, 16, 41, .08);
    border-radius: 0;
    box-shadow: 0 22px 50px rgba(10, 16, 41, .15);
    backdrop-filter: blur(18px);
}

.preview-floating-card svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #635bff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.preview-floating-card strong {
    display: block;
    color: #0a1029;
    font-size: 14px;
    font-weight: 900;
}

.preview-floating-card span {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
    font-weight: 750;
}

/* =========================
   COMMON SECTIONS
========================= */

.features-section {
    padding: 72px 0;
    background: #ffffff;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading span {
    margin: 0 auto 12px;
    padding: 7px 11px;
    color: #635bff;
    background: rgba(99, 91, 255, .06);
    border: 1px solid rgba(99, 91, 255, .18);
}

.section-heading h2 {
    margin: 0;
    color: #0a1029;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 950;
}

.section-heading p {
    max-width: 650px;
    margin: 14px auto 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.65;
}

/* =========================
   CARDS
========================= */

.features-card-grid {
    display: grid;
    gap: 16px;
}

.features-card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.features-card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card {
    min-height: 230px;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, .92), rgba(255, 255, 255, 1));
    border: 1px solid rgba(10, 16, 41, .10);
    border-radius: 0;
    box-shadow: 0 14px 38px rgba(10, 16, 41, .045);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 91, 255, .18);
    box-shadow: 0 22px 55px rgba(10, 16, 41, .075);
    background:
        radial-gradient(circle at top left, rgba(99, 91, 255, .08), transparent 38%),
        #ffffff;
}

.feature-card-small {
    min-height: 238px;
    padding: 24px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 0;
    color: #635bff;
    background: rgba(99, 91, 255, .08);
    border: 1px solid rgba(99, 91, 255, .13);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    margin: 0 0 10px;
    color: #0a1029;
    font-size: 18px;
    line-height: 1.18;
    letter-spacing: -0.032em;
    font-weight: 900;
}

.feature-card p {
    margin: 0;
    color: #596176;
    font-size: 14px;
    line-height: 1.68;
    font-weight: 520;
}

/* =========================
   FAVORITES SECTION
========================= */

.features-dark-section {
    position: relative;
    padding: 82px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(99, 91, 255, .20), transparent 36%),
        radial-gradient(circle at 78% 40%, rgba(168, 85, 247, .14), transparent 34%),
        #06091f;
    color: #ffffff;
}

.features-dark-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .24;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 46px 46px;
}

.features-dark-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    align-items: center;
    gap: 70px;
}

.features-dark-content > span {
    margin: 0 0 18px;
    color: #a79fff;
}

.features-dark-content h2 {
    max-width: 640px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4.5vw, 52px);
    line-height: 1.03;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.features-dark-content p {
    max-width: 610px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 16px;
    line-height: 1.75;
}

.features-dark-content ul {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.features-dark-content li {
    position: relative;
    padding-left: 34px;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
    font-weight: 750;
}

.features-dark-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #635bff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
}

.favorite-panel {
    padding: 22px;
    border-radius: 0;
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .28);
    backdrop-filter: blur(22px);
}

.favorite-panel-head {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.favorite-cover {
    width: 52px;
    height: 52px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, .16);
}

.favorite-panel-head strong {
    display: block;
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.favorite-panel-head span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .50);
    font-size: 12px;
    font-weight: 750;
}

.favorite-panel-head small {
    color: rgba(255, 255, 255, .70);
    font-size: 13px;
    font-weight: 850;
}

.favorite-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.favorite-photo-grid article {
    position: relative;
    min-height: 118px;
    overflow: hidden;
    border-radius: 0;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
}

.favorite-photo-grid img {
    width: 100%;
    height: 118px;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .25s ease;
}

.favorite-photo-grid article:hover img {
    transform: scale(1.04);
}

.favorite-photo-grid span {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #635bff;
    box-shadow: 0 10px 22px rgba(99, 91, 255, .32);
}

.favorite-photo-grid svg {
    width: 15px;
    height: 15px;
    fill: #ffffff;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================
   WORKFLOW
========================= */

.features-workflow-section {
    padding: 72px 0 76px;
    background:
        radial-gradient(circle at top left, rgba(99, 91, 255, .08), transparent 32%),
        #f7f8ff;
    border-top: 1px solid rgba(10, 16, 41, .08);
    border-bottom: 1px solid rgba(10, 16, 41, .08);
}

.workflow-line-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.workflow-line-grid::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 70px;
    right: 70px;
    height: 1px;
    background: linear-gradient(90deg, rgba(99, 91, 255, .12), rgba(99, 91, 255, .28), rgba(99, 91, 255, .12));
}

.workflow-line-grid article {
    position: relative;
    z-index: 2;
}

.workflow-line-grid span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #ffffff;
    background: #635bff;
    box-shadow: 0 16px 34px rgba(99, 91, 255, .24);
    font-size: 13px;
    font-weight: 950;
}

.workflow-line-grid h3 {
    margin: 0 0 10px;
    color: #0a1029;
    font-size: 17px;
    letter-spacing: -0.035em;
    font-weight: 950;
}

.workflow-line-grid p {
    margin: 0;
    color: #596176;
    font-size: 14px;
    line-height: 1.65;
}

/* =========================
   CTA
========================= */

.features-cta-section {
    padding: 72px 0 86px;
    background: #ffffff;
}

.features-cta-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 34px;
    padding: 46px 56px;
    border-radius: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .22), transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .14), transparent 26%),
        linear-gradient(135deg, #5f55ff 0%, #6d5dfc 48%, #7c3aed 100%);
    box-shadow: 0 30px 90px rgba(99, 91, 255, .28);
}

.features-cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.features-cta-card > * {
    position: relative;
    z-index: 2;
}

.features-cta-card span {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .78);
}

.features-cta-card h2 {
    max-width: 720px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.052em;
    font-weight: 950;
}

.features-cta-card p {
    max-width: 600px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
    line-height: 1.65;
}

.features-cta-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-white {
    color: #0a1029;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(10, 16, 41, .12);
}

.btn-outline-white {
    color: #ffffff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .30);
}

.btn-white:hover,
.btn-outline-white:hover {
    transform: translateY(-2px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1180px) {
    .features-hero-inner {
        gap: 48px;
    }

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

    .dashboard-image-frame {
        transform: none;
    }

    .preview-floating-card {
        left: 22px;
    }
}

@media (max-width: 980px) {
    .features-hero {
        padding: 72px 0;
    }

    .features-hero-inner,
    .features-dark-inner,
    .features-cta-card {
        grid-template-columns: 1fr;
    }

    .features-hero-content {
        max-width: 760px;
    }

    .features-dashboard-preview {
        min-height: auto;
    }

    .dashboard-image-frame,
    .dashboard-real-image {
        min-height: 360px;
        height: 360px;
    }

    .features-card-grid-3 {
        grid-template-columns: 1fr;
    }

    .workflow-line-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px 28px;
    }

    .workflow-line-grid::before {
        display: none;
    }

    .features-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .features-hero {
        padding: 54px 0 58px;
    }

    .features-hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    @media (max-width:760px) {
    .features-hero h1 {
          max-width: 100%;
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.22;
        letter-spacing: -0.035em;
        font-weight: 850;    }
}

    .features-hero-content > p:not(.features-kicker) {
        font-size: 16px;
        line-height: 1.68;
    }

    .features-hero-actions,
    .features-cta-actions {
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary-light,
    .btn-white,
    .btn-outline-white {
        width: 100%;
        height: 50px;
        padding: 0 18px;
    }

    .features-trust-row {
        gap: 12px;
        align-items: flex-start;
        flex-direction: column;
    }

    .features-dashboard-preview,
    .dashboard-image-frame,
    .dashboard-real-image,
    .preview-floating-card {
        display: none;
    }

    .features-section,
    .features-dark-section,
    .features-workflow-section {
        padding: 56px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2,
    .features-dark-content h2,
    .features-cta-card h2 {
        font-size: clamp(28px, 9vw, 40px);
    }

    .section-heading p,
    .features-dark-content p,
    .features-cta-card p {
        font-size: 15px;
    }

    .features-card-grid-4,
    .workflow-line-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .feature-card-small {
        min-height: auto;
        padding: 24px;
    }

    .favorite-panel {
        padding: 16px;
    }

    .favorite-panel-head {
        grid-template-columns: 46px 1fr;
    }

    .favorite-cover {
        width: 46px;
        height: 46px;
    }

    .favorite-panel-head small {
        grid-column: 2;
    }

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

    .favorite-photo-grid article,
    .favorite-photo-grid img {
        min-height: 104px;
        height: 104px;
    }

    .features-cta-section {
        padding: 54px 0 70px;
    }

    .features-cta-card {
        padding: 34px 22px;
    }
}

@media (max-width: 420px) {
    .features-kicker,
    .section-heading span,
    .features-dark-content > span,
    .features-cta-card span {
        font-size: 10px;
        letter-spacing: .10em;
    }

    .features-hero h1 {
        font-size: 36px;
    }

    .favorite-photo-grid article,
    .favorite-photo-grid img {
        min-height: 88px;
        height: 88px;
    }
}