/* ============================================================
   MaxiaPulse — home page
   ------------------------------------------------------------
   Only index.html loads this. The old page ran eleven sections
   before it said what the product was; this one says it in the
   first screen and then earns the scroll three times.

   Depends on the tokens in maxiapulse.css, which loads first.
   ============================================================ */

/* Neutralise the old marketing chrome that used to wrap the page. */
.mp-home .header,
.mp-home .hero,
.mp-home .stats,
.mp-home .problem-solution,
.mp-home .features,
.mp-home .use-cases,
.mp-home .testimonials,
.mp-home .pricing,
.mp-home .cta { display: none !important; }

.mp-home { background: var(--mp-void); }

/* --- shared rhythm ----------------------------------------- */

.mp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 4vw; }

.mp-kicker {
    font-family: var(--mp-mono);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .68rem;
    color: var(--mp-magenta-text);
}

/* One display face, three sizes. Tight, heavy, sentence case —
   the reference shouts with size, not with capitals. */
.mp-display {
    font-weight: 800;
    letter-spacing: -.032em;
    line-height: 1.0;
    color: var(--mp-bone);
}
.mp-display .sig { color: var(--mp-signal-text); display: block; }
.mp-display .rust {
    display: block;
    color: #e43ffb;   /* fallback */
    background: linear-gradient(135deg, #7427c8 0%, #8f3cfa 45%, #e43ffb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- the ribbon -------------------------------------------- */

.mp-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    flex-wrap: wrap;
    min-height: 38px;
    padding: .55rem 4vw;
    background: #201b2b;
    border-bottom: 1px solid #352e47;
    font-size: .76rem;
    color: var(--mp-bone);
    text-align: center;
}
.mp-ribbon .lead { color: var(--mp-paper); }
.mp-ribbon a {
    color: var(--mp-signal-text);
    text-decoration: none;
    padding-left: 1.6rem;
    border-left: 1px solid rgba(255,255,255,.25);
}
.mp-ribbon a:hover { color: #cdb2ff; text-decoration: underline; }
@media (max-width: 640px) {
    .mp-ribbon { gap: .5rem; font-size: .72rem; padding: .5rem 4vw; }
    .mp-ribbon a { padding-left: 0; border-left: 0; }
    /* Three stacked rows of ribbon pushed the headline off the first screen.
       The label is the least useful of the three, so it goes first. */
    .mp-ribbon .lead { display: none; }
}

/* --- nav ---------------------------------------------------- */

.mp-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 78px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 0 4vw;
    background: rgba(10, 9, 16, .78);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--mp-line);
}
.mp-nav-links { display: flex; align-items: center; gap: 2.1rem; justify-self: center; }
.mp-nav-links > a, .mp-drop-btn {
    color: var(--mp-paper);
    text-decoration: none;
    font-size: .88rem;
    font-family: inherit;
    background: none;
    border: 0;
    padding: .4rem 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.mp-nav-links > a:hover, .mp-drop-btn:hover, .mp-drop.open .mp-drop-btn { color: var(--mp-signal-text); }
.mp-nav-links > a.mp-only-mobile { display: none; }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.mp-drop.open .chev { transform: translateY(1px) rotate(225deg); }
.mp-drop { position: relative; }
.mp-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s;
    background: rgba(23, 20, 31, .96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--mp-line-strong);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    padding: .5rem;
}
.mp-drop.open .mp-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition: opacity .14s ease, transform .14s ease; }
.mp-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mp-menu ul { list-style: none; margin: 0; padding: 0; }
.mp-menu a, .mp-menu-cats button {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .6rem .8rem;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--mp-bone);
    font: inherit;
    font-size: .88rem;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.mp-menu a:hover, .mp-menu-cats button:hover, .mp-menu-cats button.on { background: rgba(255, 255, 255, .06); color: #fff; }
.mp-menu a.more { color: var(--mp-paper); }
.mp-menu-simple { min-width: 280px; }
.mp-menu-features { display: grid; grid-template-columns: 220px 300px; gap: .5rem; }
.mp-menu-cats { border-right: 1px solid var(--mp-line); padding-right: .5rem; }
.mp-menu-cats svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; flex: none; }
.mp-menu-cats .arrow { margin-left: auto; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .5; }
.mp-menu-subs ul { display: none; }
.mp-menu-subs ul.on { display: block; }
.mp-nav-right { display: flex; align-items: center; gap: 1.1rem; justify-self: end; }
.mp-textlink {
    border: 0;
    background: none;
    color: var(--mp-paper);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}
.mp-textlink:hover { color: var(--mp-bone); }
.mp-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .68rem 1.15rem;
    border: 1px solid var(--mp-signal);
    border-radius: 3px;
    background: var(--mp-signal);
    color: var(--mp-signal-ink);
    font-family: inherit;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease;
}
.mp-cta:hover { background: var(--mp-signal-hover); border-color: var(--mp-signal-hover); color: var(--mp-signal-ink); }
.mp-cta.ghost {
    background: transparent;
    color: var(--mp-bone);
    border-color: var(--mp-line-strong);
}
.mp-cta.ghost:hover { background: var(--mp-raised); border-color: var(--mp-bone); color: var(--mp-bone); }
/* The nav's Sign up: an outlined pill, like the reference. */
.mp-cta.pill { background: transparent; color: var(--mp-bone); border: 1.5px solid var(--mp-bone); border-radius: 999px; padding: .6rem 1.3rem; font-weight: 600; }
.mp-cta.pill:hover { background: var(--mp-bone); color: var(--mp-void); }
.mp-burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 8px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; justify-self: end; grid-column: 3; }
.mp-burger i { display: block; height: 2px; background: var(--mp-bone); border-radius: 2px; }
@media (max-width: 880px) {
    .mp-nav { grid-template-columns: 1fr auto auto; gap: .8rem; }
    .mp-burger { display: flex; grid-column: auto; order: 3; }
    .mp-nav-right { order: 2; }
    .mp-nav-links {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .6rem 4vw 1rem;
        background: rgba(10, 9, 16, .96);
        border-bottom: 1px solid var(--mp-line);
    }
    .mp-nav-links.open { display: flex; }
    .mp-nav-links > a, .mp-drop-btn { padding: .8rem 0; font-size: 1rem; border-bottom: 1px solid var(--mp-line); width: 100%; justify-content: space-between; }
    .mp-nav-links > a.mp-only-mobile { display: inline-flex; }
    .mp-drop { position: static; }
    .mp-menu { position: static; transform: none; opacity: 1; visibility: hidden; display: none; border: 0; box-shadow: none; background: transparent; padding: 0 0 .4rem; }
    .mp-drop.open .mp-menu { display: block; visibility: visible; transform: none; }
    .mp-menu-features { display: block; }
    .mp-menu-cats { display: none; }
    .mp-menu-subs ul { display: block; }
    .mp-menu-subs ul + ul { border-top: 1px solid var(--mp-line); }
    .mp-menu a { white-space: normal; padding: .6rem .4rem; color: var(--mp-paper); }
}
@media (max-width: 560px) {
    .mp-nav { height: auto; padding: .8rem 4vw; }
    .mp-nav-right { gap: .75rem; }
    .mp-textlink, .mp-cta { white-space: nowrap; }
    .mp-cta { padding: .6rem .8rem; font-size: .78rem; }
    .mp-cta.pill { padding: .5rem 1rem; }
    .mp-brand { font-size: 1.05rem; }
    .mp-brand .mp-mark { transform: scale(.78); transform-origin: left; }
    .mp-logo { height: 56px; }
    .mp-brand.compact .mp-logo { height: 30px; }
}

/* --- use cases ---------------------------------------------- */

.mp-usecases { padding: 5rem 0; border-top: 1px solid var(--mp-line); }
.mp-uc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.mp-uc { padding: 1.5rem 1.4rem; border: 1px solid var(--mp-line); border-radius: 12px; background: var(--mp-black); scroll-margin-top: 96px; }
.mp-uc:hover { border-color: var(--mp-line-strong); }
.mp-uc h3 { margin: 0 0 .6rem; font-size: 1.05rem; color: var(--mp-bone); }
.mp-uc p { margin: 0; color: var(--mp-paper); font-size: 1rem; line-height: 1.55; }
.mp-card { scroll-margin-top: 96px; }
[id] { scroll-margin-top: 90px; }

/* --- hero --------------------------------------------------- */

.mp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    border-bottom: 1px solid var(--mp-line);
}
.mp-hero-copy { padding: 5.5rem 4vw; align-self: center; max-width: 660px; }

.mp-hero h1 {
    /* 6.4vw keeps CONNECTION inside its half of the page at laptop widths; 8.5vw clipped it at 1280. */
    font-size: clamp(3.4rem, 6.4vw, 6.6rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .88;
    text-transform: uppercase;
    color: var(--mp-bone);
    margin: 0 0 1.6rem;
}
.mp-hero h1 .rust {
    display: block;
    color: #e43ffb;   /* fallback */
    background: linear-gradient(135deg, #7427c8 0%, #8f3cfa 45%, #e43ffb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* The one serif in the system. It carries the sentence that says
   what this is, so it should not look like the rest of the UI. */
.mp-hero-lede {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    line-height: 1.24;
    color: var(--mp-bone);
    margin: 0 0 1.1rem;
    max-width: 24ch;
}
.mp-hero-sub p { margin: 0 0 .7rem; }
.mp-hero-sub strong { color: var(--mp-bone); font-weight: 600; }
.mp-hero-sub {
    font-size: 1.03rem;
    line-height: 1.65;
    color: var(--mp-muted);
    max-width: 48ch;
    margin: 0 0 2.2rem;
}

.mp-hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.mp-hero-note {
    margin-top: .9rem;
    font-size: .95rem;
    color: var(--mp-paper);
}

.mp-hero-figure {
    position: relative;
    min-height: 420px;
    border-left: 1px solid var(--mp-line);
    overflow: hidden;
}
.mp-hero-figure img, .mp-hero-figure video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.92) contrast(1.02);
}
/* Reads the caption over the darker left edge of the photograph. */
.mp-hero-figure::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,9,16,.55) 0%, rgba(10,9,16,0) 45%);
}
.mp-hero-caption {
    position: absolute;
    left: 1.6rem;
    bottom: 1.6rem;
    right: 1.6rem;
    z-index: 2;
    padding: .85rem 1rem;
    background: rgba(10,9,16,.82);
    border: 1px solid var(--mp-line);
    border-radius: 3px;
    font-size: .78rem;
    color: var(--mp-paper);
    max-width: 24rem;
}
@media (max-width: 900px) {
    .mp-hero { grid-template-columns: 1fr; }
    .mp-hero-copy { padding: 3.5rem 4vw 2.5rem; }
    .mp-hero-figure { min-height: 300px; border-left: 0; border-top: 1px solid var(--mp-line); }
}

/* --- statement band ----------------------------------------- */

.mp-statement {
    padding: 6rem 0;
    background: var(--mp-black);
    border-bottom: 1px solid var(--mp-line);
}
.mp-statement .mp-wrap {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 3rem;
    align-items: start;
}
/* This one is a caption, not a label — it belongs in the reading face,
   sentence case, sitting quietly beside the statement it introduces. */
.mp-statement .mp-kicker {
    font-family: Georgia, "Times New Roman", serif;
    text-transform: none;
    letter-spacing: -.01em;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--mp-magenta-text);
    padding-top: .35rem;
}
.mp-statement h2 {
    font-size: clamp(1.9rem, 4.4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.032em;
    line-height: 1.04;
    color: var(--mp-bone);
    margin: 0 0 1.5rem;
}
.mp-statement h2 .sig { color: var(--mp-signal-text); display: block; }
.mp-statement p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--mp-muted);
    max-width: 58ch;
}
.mp-statement p b { color: var(--mp-bone); font-weight: 700; }
@media (max-width: 760px) {
    .mp-statement { padding: 3.5rem 0; }
    .mp-statement .mp-wrap { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* --- the three things it does ------------------------------- */

.mp-does { padding: 6rem 0; }
.mp-does-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 3rem;
}
.mp-does-head h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.032em;
    line-height: 1.04;
    color: var(--mp-bone);
    margin: 0;
    max-width: 16ch;
}
.mp-does-head p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--mp-muted);
    max-width: 42ch;
    margin: 0;
    justify-self: end;
}

.mp-does-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.mp-card {
    display: flex;
    flex-direction: column;
    background: var(--mp-surface);
    border: 1px solid var(--mp-line);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .15s ease;
}
.mp-card:hover { border-color: var(--mp-line-strong); }
.mp-card-shot {
    aspect-ratio: 16 / 10;
    background: var(--mp-black);
    border-bottom: 1px solid var(--mp-line);
    overflow: hidden;
}
.mp-card-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}
.mp-card-body { padding: 1.4rem 1.4rem 1.6rem; }
.mp-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--mp-bone);
    margin: 0 0 .5rem;
}
.mp-card p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--mp-muted);
    margin: 0;
}
@media (max-width: 980px) {
    .mp-does { padding: 3.5rem 0; }
    .mp-does-head { grid-template-columns: 1fr; gap: 1.2rem; align-items: start; }
    .mp-does-head p { justify-self: start; }
    .mp-does-grid { grid-template-columns: 1fr; }
}

/* --- client marks ------------------------------------------- */

.mp-home .mp-clients {
    display: block !important;
    padding: 0 0 5.5rem;
}

/* --- closing band ------------------------------------------- */

.mp-close {
    padding: 5.5rem 0;
    background: var(--mp-raised);
    border-top: 1px solid var(--mp-signal);
    border-bottom: 1px solid var(--mp-signal);
}
.mp-close .mp-wrap {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}
.mp-close h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.032em;
    line-height: 1.04;
    color: var(--mp-bone);
    margin: 0;
    max-width: 15ch;
}
.mp-close p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--mp-paper);
    margin: 0 0 1.4rem;
    max-width: 40ch;
}
.mp-close .mp-cta {
    background: var(--mp-bone);
    border-color: var(--mp-bone);
    color: var(--mp-void);
}
.mp-close .mp-cta:hover { background: #fff; border-color: #fff; }
@media (max-width: 820px) {
    .mp-close { padding: 3.5rem 0; }
    .mp-close .mp-wrap { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* --- footer -------------------------------------------------- */

.mp-home .footer { display: none !important; }
.mp-footer {
    padding: 2.2rem 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--mp-black);
    border-top: 1px solid var(--mp-line);
    font-size: .78rem;
    color: var(--mp-faint);
}
.mp-footer nav { display: flex; gap: 1.4rem; align-items: center; }
.mp-footer a { color: var(--mp-muted); text-decoration: none; }
.mp-footer a:hover { color: var(--mp-bone); }
