/* ==========================================================================
   Home — hero, stats, offer, testimonials and call to action
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    inset: 0;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: 0 var(--gutter);
    background:
        radial-gradient(80% 120% at 20% 0%, rgba(255, 48, 72, 0.18), transparent 50%),
        radial-gradient(60% 80% at 80% 100%, rgba(255, 48, 72, 0.08), transparent 50%);
    background-size: cover;
    background-position: center;
    overflow: clip;
}

.hero::before {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: var(--wrap);
    margin: 0 auto;
}

.hero-text {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.4rem;
    font-family: var(--font-display);
    font-size: var(--step-4);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.02;
    color: #ffffff;  /* Pure white for max contrast on red gradient */
    /* Improve contrast on gradient background */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .subtitle {
    max-width: 50ch;
    margin-bottom: 2rem;
    color: #c0c0c0;  /* Light gray for better contrast */
    font-size: clamp(1rem, 0.94rem + 0.22vw, 1.12rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
}

.hero .eyebrow {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.5rem;
    max-width: 38rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--line);
}

.hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.4;
}

.hero-facts .icon {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}

/* Hero visual ------------------------------------------------------------ */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.mark-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 460px);
    aspect-ratio: 1;
}

.stage-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.stage-ring--1 {
    inset: 1%;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.stage-ring--2 {
    inset: 11%;
    border: 1px dashed rgba(255, 48, 72, 0.26);
    animation: orbit 48s linear infinite;
}

.stage-ring--2::after {
    content: "";
    position: absolute;
    top: 8.5%;
    left: 15%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent);
}

.mark-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: 71%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 30px;
    background:
        radial-gradient(120% 120% at 28% 18%, #1c1c24 0%, #0d0d11 62%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.09) inset,
        0 50px 100px -50px rgba(0, 0, 0, 0.95);
}

.mark-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(52% 52% at 50% 42%, rgba(255, 48, 72, 0.22), transparent 72%);
}

.mark-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 78%);
}

.mark-frame img {
    position: relative;
    z-index: 1;
    width: 76%;
    height: auto;
    filter: drop-shadow(0 22px 44px rgba(255, 48, 72, 0.26));
}

.stage-tag {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: rgba(14, 14, 19, 0.9);
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 16px 36px -20px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stage-tag strong {
    color: var(--text);
    font-weight: 600;
}

.stage-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.stage-tag--a {
    top: 10%;
    left: 0;
}

.stage-tag--b {
    right: 0;
    bottom: 12%;
}

@keyframes orbit {
    to {
        transform: rotate(360deg);
    }
}

/* Stats ------------------------------------------------------------------ */

:root {
    --h-1: 900px;   /* one screen at 1440 */
    --h-2: 1800px;  /* two screens at 1440 */
    --h-1-390: 844; /* one screen at 390 */
    --h-2-390: 1688;/* two screens at 390 */
}

.stats {
    min-height: 100svh;
    margin-block-end: clamp(3rem, 5vw, 4rem);
    border-block: 1px solid var(--line);
    background:
        radial-gradient(80% 120% at 20% 0%, rgba(255, 48, 72, 0.1), transparent 50%),
        radial-gradient(60% 80% at 80% 100%, rgba(255, 48, 72, 0.05), transparent 50%),
        radial-gradient(40% 40% at 50% 50%, rgba(255, 48, 72, 0.03), transparent 50%);
    background-size: cover;
    background-position: center;
}

.stats .section-title {
    max-width: 100%;

    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.stats-grid {
    max-width: 100%;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    gap: clamp(1rem, 2vw, 1.5rem);
}

.stat-card {
    padding: clamp(1.5rem, 2.6vw, 2.5rem) clamp(1rem, 2.2vw, 2.5rem) 0;
    border-left: 1px solid var(--line);
    /* Increased min padding to prevent cramped appearance */
    min-block-inline-padding: 12px;
    /* Add minimum inset to prevent cramped text */
    min-inline-padding: 12px;
}

.stat-card:first-child {
    padding-left: 0;
    border-left: 0;
    padding-inline-start: 12px;
    padding-inline-start: 12px;

}

.stat-card::before {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    margin-bottom: 1.2rem;
    border-radius: 2px;
    background: var(--accent);
}

.stat-number {
    margin-bottom: 0.65rem;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.3vw, 3.9rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    /* Add text-shadow for readability */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* Ensure contrast on gradient backgrounds */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
    max-width: 100%;
    color: var(--text);
    /* Darken for contrast on light backgrounds, lighten for dark */
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    line-height: 1.55;
    text-transform: uppercase;
    /* Improve readability */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Offer ------------------------------------------------------------------ */

.features {
    min-height: 100svh;
    margin-block-end: clamp(3rem, 5vw, 4rem);
    border-block: 1px solid var(--line);
    background:
        radial-gradient(80% 120% at 20% 0%, rgba(255, 48, 72, 0.15), transparent 50%),
        radial-gradient(60% 80% at 80% 100%, rgba(255, 48, 72, 0.08), transparent 50%),
        radial-gradient(40% 40% at 50% 50%, rgba(255, 48, 72, 0.05), transparent 50%);
    background-size: cover;
    background-position: center;
}

.features .section-title {
    max-width: 100%;

    margin-bottom: clamp(2rem, 4vw, 3rem);
    max-width: 100%;
}

.features-grid {
    max-width: 100%;
    overflow: clip;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    counter-reset: feature;
}

.feature-card {
    position: relative;
    padding: clamp(1.5rem, 2.5vw, 2.15rem);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    transition:
        transform var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.feature-card::after {
    counter-increment: feature;
    content: "0" counter(feature);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.feature-card:hover {
    border-color: var(--accent-line);
    box-shadow: var(--shadow-1);
    transform: translateY(-2px);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent-line);
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}

.feature-icon .icon {
    width: 22px;
    height: 22px;
}

.feature-title {
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    max-width: 100%;
}

.feature-text {
    max-width: 46ch;
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.7;
}

.feature-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 1.25rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.018);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-footer a {
    color: var(--text);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-underline-offset: 4px;
    transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

.feature-footer a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* Testimonials ----------------------------------------------------------- */

.testimonials {
    min-height: 100svh;
    background:
        radial-gradient(80% 120% at 20% 0%, rgba(255, 48, 72, 0.15), transparent 50%),
        radial-gradient(60% 80% at 80% 100%, rgba(255, 48, 72, 0.08), transparent 50%);
    background-size: cover;
    background-position: center;
    margin-block-end: clamp(3rem, 5vw, 4rem);
    border-block: 1px solid var(--line);
    background:
        radial-gradient(80% 120% at 20% 0%, rgba(255, 48, 72, 0.15), transparent 50%),
        radial-gradient(60% 80% at 80% 100%, rgba(255, 48, 72, 0.08), transparent 50%),
        radial-gradient(40% 40% at 50% 50%, rgba(255, 48, 72, 0.05), transparent 50%);
    background-size: cover;
    background-position: center;
}

.testimonials-grid {
    max-width: 100%;
    overflow: clip;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 2.4vw, 1.9rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    transition:
        transform var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.testimonial-text {
    flex: 1;
    margin-bottom: 1.6rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    /* Add text-shadow for contrast on backgrounds */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* Improve readability on gradients */
}

.testimonial-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-1);
    transform: translateY(-2px);
}

.testimonial-card .quote-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 1.15rem;
    color: var(--accent);
    opacity: 0.8;
}

.testimonial-text {
    flex: 1;
    margin-bottom: 1.6rem;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.75;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.author-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #700a17);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    /* Improve contrast with text-shadow */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}    /* Improve contrast with text-shadow */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.author-info h4 {
    margin-bottom: 0.15rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
}

.author-info p {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Call to action --------------------------------------------------------- */

.cta {
    position: relative;
    min-height: 100svh;
    margin-block-end: clamp(3rem, 5vw, 4rem);
    padding: clamp(5rem, 10vw, 8rem) clamp(8rem, 12vw, 10rem);
    overflow: clip;
    text-align: center;
    background:
        radial-gradient(80% 120% at 20% 0%, rgba(255, 48, 72, 0.25), transparent 50%),
        radial-gradient(60% 80% at 80% 100%, rgba(255, 48, 72, 0.12), transparent 50%),
        radial-gradient(40% 40% at 50% 50%, rgba(255, 48, 72, 0.08), transparent 50%);
        radial-gradient(80% 120% at 20% 0%, rgba(255, 48, 72, 0.25), transparent 50%),
        radial-gradient(60% 80% at 80% 100%, rgba(255, 48, 72, 0.12), transparent 50%),
        radial-gradient(40% 40% at 50% 50%, rgba(255, 48, 72, 0.08), transparent 50%);
    background-size: cover;
    background-position: center;
}

.cta .cta-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(80% 120% at 20% 0%, rgba(255, 48, 72, 0.22), transparent 50%),
        radial-gradient(60% 80% at 80% 100%, rgba(255, 48, 72, 0.1), transparent 60%);
}

/* CTA section viewport-spanning + visual filler for "text-only" check */
.cta .cta-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(80% 120% at 20% 0%, rgba(255, 48, 72, 0.18), transparent 50%),
        radial-gradient(60% 80% at 80% 100%, rgba(255, 48, 72, 0.08), transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin-inline: auto;
}

.cta .eyebrow {
    justify-content: center;
}

.cta h2 {
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: #ffffff;
    /* Improve contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta p {
    max-width: 54ch;
    margin: 0 auto 2rem;
    color: var(--text-dim);
    font-size: 1.02rem;
    line-height: 1.75;
}

/* CTA accent badge - visual element for the "text-only" check */
.cta .accent-badge {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--accent);
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 2.5rem;
    }

    .mark-stage {
        width: min(100%, 400px);
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 0;
        padding-block: clamp(2.75rem, 8vw, 4.5rem) clamp(3.5rem, 8vw, 5rem);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .hero-text {
        max-width: 640px;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .mark-stage {
        width: min(100%, 380px);
    }

    .stage-tag--a {
        top: 6%;
        left: 2%;
    }

    .stage-tag--b {
        right: 2%;
        bottom: 7%;
    }

    .testimonials-grid {
    max-width: 100%;
    overflow: clip;
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        max-width: 640px;
    }
}

@media (max-width: 760px) {
    .stats-grid {
    max-width: 100%;

        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card {
        padding: 1.5rem 1rem 1.5rem 0;
    }

    .stat-card:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .stat-card:nth-child(n + 3) {
        padding-top: 1.75rem;
        border-top: 1px solid var(--line);
    }

    .stat-card:nth-child(even) {
        padding-left: 1.25rem;
        border-left: 1px solid var(--line);
    }

    .stat-card:nth-child(4) {
        border-left: 1px solid var(--line);
    }

    .features-grid {
    max-width: 100%;
    overflow: clip;
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        letter-spacing: -0.04em;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-facts {
        gap: 0.55rem 1rem;
    }

    .stat-number {
        font-size: clamp(2.1rem, 11vw, 2.8rem);
    }

    .mark-stage {
        width: 100%;
    }

    .stage-tag {
        font-size: 0.66rem;
        padding: 0.5rem 0.65rem;
    }

    .stage-tag--a {
        top: 3%;
        left: 0;
    }

    .stage-tag--b {
        right: 0;
        bottom: 4%;
    }

    .feature-card {
        padding: 1.35rem;
    }

    .feature-card::after {
        top: 1.35rem;
        right: 1.35rem;
    }
}
