/* ============================================
   HOME PAGE
   Namespace: .hm-*  (replaces hero.css and
   home-sections.css, which served the old home)
   ============================================ */

.hm-hero,
.hm-cta {
    --hm-space: #0f0c29;
    --hm-space-2: #242150;
    --hm-navy: #1e1f63;
}

:root {
    --hm-ink: #0f172a;
    --hm-muted: #5b6779;
    --hm-line: rgba(15, 23, 42, 0.08);
    --hm-purple: #7117f2;
    --hm-purple-dark: #5a0dc7;
    --hm-violet: #9747ff;
    --hm-gold: #ffc857;
    --hm-cloud: #f8fafc;
    --hm-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Shared section scaffolding ---------- */

.hm-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.hm-sec {
    padding: 6.5rem 0;
    background: #ffffff;
}

.hm-sec--cloud {
    background: var(--hm-cloud);
}

.hm-eyebrow {
    font-family: var(--hm-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hm-purple);
}

.hm-h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--hm-ink);
    margin: 0.9rem 0 1rem;
}

.hm-lead {
    color: var(--hm-muted);
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 40rem;
}

.hm-link {
    color: var(--hm-purple);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    transition: color 0.2s ease;
}

.hm-link:hover {
    color: var(--hm-purple-dark);
}

.hm-sec a:focus-visible,
.hm-news a:focus-visible,
.hm-news button:focus-visible {
    outline: 2px solid var(--hm-purple);
    outline-offset: 3px;
    border-radius: 4px;
}

.hm-hero a:focus-visible,
.hm-cta a:focus-visible {
    outline: 2px solid var(--hm-gold);
    outline-offset: 3px;
}

/* Buttons (own class: global .btn carries a ripple script) */

.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hm-btn--gold {
    background: var(--hm-gold);
    color: var(--hm-navy, #1e1f63);
}

.hm-btn--gold:hover {
    background: #ffd885;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 200, 87, 0.28);
}

.hm-btn--ghost {
    border-color: rgba(255, 255, 255, 0.38);
    color: #ffffff;
}

.hm-btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.07);
}

.hm-btn--purple {
    background: var(--hm-purple);
    color: #ffffff;
}

.hm-btn--purple:hover {
    background: var(--hm-purple-dark);
}

/* ---------- Circuit rain (brand mark, made ambient) ---------- */

.hm-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hm-rain span {
    position: absolute;
    top: -120px;
    width: 1px;
    height: calc(100% + 240px);
    background: repeating-linear-gradient(
        to bottom,
        currentColor 0 10px,
        transparent 10px 96px
    );
    color: rgba(151, 71, 255, 0.32);
    animation: hmRain var(--hm-rain-d, 13s) linear infinite;
}

.hm-rain span:nth-child(1)  { left: 6%;  --hm-rain-d: 15s; }
.hm-rain span:nth-child(2)  { left: 14%; --hm-rain-d: 11s; color: rgba(255, 255, 255, 0.16); }
.hm-rain span:nth-child(3)  { left: 23%; --hm-rain-d: 17s; }
.hm-rain span:nth-child(4)  { left: 34%; --hm-rain-d: 9s;  color: rgba(255, 200, 87, 0.30); }
.hm-rain span:nth-child(5)  { left: 45%; --hm-rain-d: 14s; color: rgba(255, 255, 255, 0.12); }
.hm-rain span:nth-child(6)  { left: 55%; --hm-rain-d: 10s; }
.hm-rain span:nth-child(7)  { left: 63%; --hm-rain-d: 16s; color: rgba(255, 255, 255, 0.18); }
.hm-rain span:nth-child(8)  { left: 71%; --hm-rain-d: 12s; }
.hm-rain span:nth-child(9)  { left: 79%; --hm-rain-d: 18s; color: rgba(255, 200, 87, 0.26); }
.hm-rain span:nth-child(10) { left: 86%; --hm-rain-d: 11s; color: rgba(255, 255, 255, 0.14); }
.hm-rain span:nth-child(11) { left: 92%; --hm-rain-d: 15s; }
.hm-rain span:nth-child(12) { left: 97%; --hm-rain-d: 13s; }

@keyframes hmRain {
    to {
        transform: translateY(96px);
    }
}

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

.hm-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #0f0c29 0%, #242150 48%, #1e1f63 100%);
    color: #ffffff;
    padding: calc(70px + 5rem) 0 5.5rem;
}

.hm-hero .hm-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.5rem;
    align-items: center;
}

.hm-hero-eyebrow {
    font-family: var(--hm-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.75rem;
    animation: hmUp 0.7s ease-out 0.05s forwards;
    opacity: 0;
}

.hm-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    animation: hmUp 0.7s ease-out 0.15s forwards;
    opacity: 0;
}

.hm-hero-title span {
    color: var(--hm-gold);
}

.hm-hero-sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    max-width: 33rem;
    margin-bottom: 2.5rem;
    animation: hmUp 0.7s ease-out 0.25s forwards;
    opacity: 0;
}

.hm-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: hmUp 0.7s ease-out 0.35s forwards;
    opacity: 0;
}

.hm-hero-proof {
    display: flex;
    gap: 0.7rem;
    row-gap: 0.55rem;
    flex-wrap: wrap;
    font-family: var(--hm-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    animation: hmUp 0.7s ease-out 0.45s forwards;
    opacity: 0;
}

.hm-hero-proof .sep {
    color: rgba(255, 255, 255, 0.25);
}

.hm-proof-label {
    flex-basis: 100%;
    color: rgba(255, 255, 255, 0.32);
}

/* Real platforms in browser frames */

.hm-stage {
    position: relative;
    animation: hmUp 0.9s ease-out 0.3s forwards;
    opacity: 0;
}

.hm-browser {
    display: block;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    background: #0b0a1e;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 70px rgba(113, 23, 242, 0.15);
    transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.3, 1), opacity 0.5s ease,
        box-shadow 0.5s ease;
}

.hm-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hm-browser-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.hm-browser-bar em {
    font-style: normal;
    font-family: var(--hm-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-browser img {
    display: block;
    width: 100%;
    height: auto;
}

.hm-browser--back {
    position: absolute;
    top: -2.25rem;
    right: -1.25rem;
    width: 78%;
    opacity: 0.9;
}

.hm-browser--front {
    position: relative;
    width: 88%;
    margin-top: 6rem;
    z-index: 1;
}

/* Hovering (or keyboard-focusing) the back frame brings it to the front */

.hm-browser--back:hover,
.hm-browser--back:focus-visible {
    opacity: 1;
    z-index: 2;
}

.hm-stage:has(.hm-browser--back:hover) .hm-browser--back,
.hm-stage:has(.hm-browser--back:focus-visible) .hm-browser--back {
    opacity: 1;
    z-index: 2;
    transform: translate(-4%, 2.75rem) scale(1.05);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8), 0 0 90px rgba(113, 23, 242, 0.25);
}

.hm-stage:has(.hm-browser--back:hover) .hm-browser--front,
.hm-stage:has(.hm-browser--back:focus-visible) .hm-browser--front {
    opacity: 0.35;
    transform: translateY(1rem) scale(0.97);
}

.hm-stage-caption {
    margin-top: 1.75rem;
    font-family: var(--hm-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

/* Phone frames (reused on the services page) */

.hm-phone {
    width: min(248px, 21vw);
    border-radius: 42px;
    padding: 10px;
    background: #080718;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.65), 0 0 70px rgba(113, 23, 242, 0.18);
}

.hm-phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 32px;
}

.hm-phone--back {
    transform: rotate(-5deg) translate(14px, 26px);
}

.hm-phone--front {
    transform: rotate(4deg) translate(-14px, -6px);
    z-index: 1;
}

@keyframes hmUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Services cards (home) ---------- */

.hm-svc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3.25rem;
}

.hm-svc2 {
    display: block;
    text-decoration: none;
    border: 1px solid var(--hm-line);
    border-radius: 22px;
    padding: 1.25rem 1.25rem 2rem;
    background: #ffffff;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.hm-svc2:hover {
    transform: translateY(-6px);
    border-color: rgba(113, 23, 242, 0.35);
    box-shadow: 0 26px 55px rgba(113, 23, 242, 0.13);
}

.hm-svc2-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(165deg, #0f0c29 0%, #242150 55%, #1e1f63 100%);
}

.hm-svc2-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(113, 23, 242, 0.4), transparent 65%);
    pointer-events: none;
}

/* Mini browser: full screenshot, never cropped */

.hm-svc2-browser {
    position: relative;
    z-index: 1;
    display: block;
    width: min(320px, 82%);
    background: #0b0a1e;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
    transform: rotate(-2deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-svc2:hover .hm-svc2-browser {
    transform: rotate(0deg) scale(1.03);
}

.hm-svc2-chrome {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hm-svc2-chrome span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.hm-svc2-chrome em {
    font-style: normal;
    font-family: var(--hm-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-left: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-svc2-browser img {
    display: block;
    width: 100%;
    height: auto;
}

/* Mini phone: full screen, never cropped */

.hm-svc2-phone {
    position: relative;
    z-index: 1;
    display: block;
    width: 88px;
    padding: 5px;
    background: #080718;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
    transform: rotate(3deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-svc2:hover .hm-svc2-phone {
    transform: rotate(0deg) scale(1.05);
}

.hm-svc2-phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 13px;
}

/* Console and roadmap windows */

.hm-svc2-term {
    position: relative;
    z-index: 1;
    display: block;
    width: min(340px, 88%);
    background: #0b0a1e;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
    transform: rotate(-2deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-svc2:hover .hm-svc2-term {
    transform: rotate(0deg) scale(1.03);
}

.hm-svc2-term-body {
    display: block;
    padding: 14px 16px 16px;
}

.hm-term-line {
    display: block;
    font-family: var(--hm-mono);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    line-height: 2;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-term-line--dim {
    color: rgba(255, 255, 255, 0.5);
}

.hm-term-line--gold {
    color: var(--hm-gold);
}

.hm-term-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    margin-top: 6px;
    background: var(--hm-gold);
    animation: hmBlink 1.1s steps(1) infinite;
}

@keyframes hmBlink {
    50% {
        opacity: 0;
    }
}

.hm-svc2-road {
    display: block;
    padding: 16px;
}

.hm-road-row {
    display: grid;
    grid-template-columns: 106px 1fr 96px;
    gap: 9px;
    align-items: center;
    padding: 8px 0;
}

.hm-road-label,
.hm-road-status {
    font-family: var(--hm-mono);
    font-size: 0.6rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-road-status {
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
}

.hm-road-track {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.hm-road-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.hm-road-fill--a {
    width: 100%;
    background: var(--hm-gold);
}

.hm-road-fill--b {
    width: 58%;
    background: linear-gradient(90deg, var(--hm-purple), var(--hm-violet));
}

.hm-road-fill--c {
    width: 16%;
    background: rgba(255, 255, 255, 0.45);
}

/* Bars grow in when the card reveals (no-JS users see full bars) */

body.loaded .hm-svc2 .hm-road-fill {
    width: 0;
    transition: width 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) 0.35s;
}

body.loaded .hm-svc2.visible .hm-road-fill--a {
    width: 100%;
}

body.loaded .hm-svc2.visible .hm-road-fill--b {
    width: 58%;
}

body.loaded .hm-svc2.visible .hm-road-fill--c {
    width: 16%;
}

.hm-svc2-label {
    display: block;
    font-family: var(--hm-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hm-purple);
    margin: 1.5rem 0.35rem 0;
}

.hm-svc2 h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hm-ink);
    margin: 0.55rem 0.35rem 0;
    transition: color 0.25s ease;
}

.hm-svc2:hover h3 {
    color: var(--hm-purple);
}

.hm-svc2 p {
    color: var(--hm-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0.55rem 0.35rem 0;
}

/* ---------- Services rows (used by the about page habits list) ---------- */

.hm-svc-list {
    margin-top: 3.25rem;
    border-top: 1px solid var(--hm-line);
}

.hm-svc {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 2.5rem;
    align-items: baseline;
    padding: 2.4rem 0.75rem;
    border-bottom: 1px solid var(--hm-line);
    text-decoration: none;
    transition: background 0.25s ease;
}

.hm-svc:hover {
    background: var(--hm-cloud);
}

.hm-svc-label {
    font-family: var(--hm-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hm-muted);
}

.hm-svc h3 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hm-ink);
    transition: color 0.25s ease;
}

.hm-svc:hover h3 {
    color: var(--hm-purple);
}

.hm-svc p {
    margin-top: 0.5rem;
    color: var(--hm-muted);
    line-height: 1.6;
    max-width: 42rem;
}

.hm-sec-foot {
    margin-top: 2.5rem;
}

/* ---------- Product grid ---------- */

.hm-prod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.75rem 2rem;
    margin-top: 3.25rem;
}

.hm-prod {
    text-decoration: none;
}

/* Dark stage per product: every screen fully visible, never cropped */

.hm-prod-shot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(165deg, #0f0c29 0%, #242150 55%, #1e1f63 100%);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.hm-prod:hover .hm-prod-shot {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(113, 23, 242, 0.2);
}

.hm-prod-glow {
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(113, 23, 242, 0.42), transparent 68%);
    transition: opacity 0.35s ease;
    opacity: 0.85;
}

.hm-prod:hover .hm-prod-glow {
    opacity: 1;
}

.hm-prod-phone {
    position: relative;
    z-index: 1;
    display: block;
    width: min(42%, 158px);
    padding: 6px;
    background: #080718;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 26px;
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.55);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-prod-phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.hm-prod:hover .hm-prod-phone {
    transform: translateY(-8px);
}

/* Chefless: two full phones, globe behind the recipe screen */

.hm-prod-shot--duo .hm-prod-phone {
    width: min(40%, 148px);
}

.hm-prod-phone--back {
    transform: rotate(-7deg) translateX(36%);
    opacity: 0.92;
}

.hm-prod-phone--front {
    transform: rotate(4deg) translateX(-32%);
    z-index: 2;
}

.hm-prod:hover .hm-prod-phone--back {
    transform: rotate(-9deg) translateX(40%) translateY(-6px);
}

.hm-prod:hover .hm-prod-phone--front {
    transform: rotate(2deg) translateX(-34%) translateY(-8px);
}

/* Web screens sit in a full browser frame */

.hm-prod-frame {
    position: relative;
    z-index: 1;
    display: block;
    width: 88%;
    background: #0b0a1e;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.55);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-prod-frame-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hm-prod-frame-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.hm-prod-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.hm-prod:hover .hm-prod-frame {
    transform: translateY(-8px);
}

/* Products without public screens get a typographic stage */

.hm-prod-shot--type {
    flex-direction: column;
    gap: 1.4rem;
}

.hm-prod-word {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 2.6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-align: center;
}

.hm-prod-word em {
    display: block;
    font-style: normal;
    font-family: var(--hm-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hm-gold);
    margin-bottom: 0.6rem;
}

.hm-prod-chips {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.5rem;
}

.hm-prod-chips span {
    font-family: var(--hm-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.hm-prod:hover .hm-prod-chips span {
    border-color: rgba(255, 200, 87, 0.6);
    color: #ffffff;
}

.hm-prod h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--hm-ink);
    margin-top: 1.1rem;
}

.hm-prod-meta {
    font-family: var(--hm-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hm-muted);
    margin-top: 0.35rem;
}

.hm-prod p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--hm-muted);
    margin-top: 0.5rem;
}

/* ---------- Client work ---------- */

.hm-case-list {
    margin-top: 2rem;
}

.hm-case {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    gap: 3.5rem;
    align-items: center;
    padding: 3.25rem 0;
    border-bottom: 1px solid var(--hm-line);
}

.hm-case:last-child {
    border-bottom: none;
    padding-bottom: 1rem;
}

.hm-case--flip .hm-case-img {
    order: 2;
}

.hm-case-img {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--hm-line);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.hm-case-img img {
    display: block;
    width: 100%;
    height: auto;
}

.hm-case-meta {
    font-family: var(--hm-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hm-muted);
    margin-bottom: 1rem;
}

.hm-case h3 {
    font-size: clamp(1.45rem, 2.4vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--hm-ink);
    margin-bottom: 0.9rem;
}

.hm-case p {
    color: var(--hm-muted);
    line-height: 1.65;
    margin-bottom: 1.4rem;
    max-width: 30rem;
}

/* ---------- Quotes (dark stage) ---------- */

.hm-sec--quotes {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #0f0c29 0%, #242150 55%, #1e1f63 100%);
}

.hm-sec--quotes .hm-rain {
    opacity: 0.45;
}

.hm-sec--quotes .hm-wrap {
    position: relative;
    z-index: 1;
}

.hm-sec--quotes .hm-eyebrow {
    color: var(--hm-gold);
}

.hm-sec--quotes .hm-h2 {
    color: #ffffff;
}

.hm-quote-main {
    font-size: clamp(1.45rem, 2.7vw, 2.05rem);
    font-weight: 500;
    line-height: 1.52;
    letter-spacing: -0.015em;
    color: #ffffff;
    max-width: 56rem;
    margin-top: 2.75rem;
}

.hm-quote-attr {
    font-family: var(--hm-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hm-gold);
    margin-top: 1.75rem;
}

.hm-quote-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.hm-quote-small {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 3px solid var(--hm-gold);
    border-radius: 16px;
    padding: 1.9rem 2rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hm-quote-small:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-4px);
}

.hm-quote-small p {
    color: rgba(255, 255, 255, 0.93);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hm-quote-small .hm-quote-attr {
    font-size: 0.66rem;
    margin-top: 1.4rem;
}

/* ---------- CTA ---------- */

.hm-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #0f0c29 0%, #242150 52%, #1e1f63 100%);
    color: #ffffff;
    padding: 7rem 0;
}

.hm-cta .hm-rain {
    opacity: 0.55;
}

.hm-cta .hm-wrap {
    position: relative;
    z-index: 1;
    max-width: 760px;
    text-align: center;
}

.hm-cta .hm-eyebrow {
    color: rgba(255, 255, 255, 0.5);
}

.hm-cta h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0.9rem 0 1.1rem;
    text-wrap: balance;
}

.hm-cta p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 34rem;
    margin: 0 auto 2.25rem;
}

/* Extra specificity: the generic `.hm-cta p` margin reset must not win here */
.hm-cta p.hm-cta-contacts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 0.75rem;
    font-family: var(--hm-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 3.25rem auto 0;
}

.hm-cta-contacts a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.hm-cta-contacts a:hover {
    color: var(--hm-gold);
}

.hm-cta-contacts .sep {
    color: rgba(255, 255, 255, 0.25);
}

/* ---------- Newsletter band ---------- */

.hm-news {
    background: #ffffff;
    border-top: 1px solid var(--hm-line);
    padding: 3.75rem 0;
}

.hm-news .hm-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    align-items: center;
}

.hm-news h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hm-ink);
}

.hm-news-copy p {
    color: var(--hm-muted);
    margin-top: 0.4rem;
    font-size: 0.95rem;
}

.hm-news-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.hm-news-form input[type='email'] {
    width: min(320px, 100%);
    padding: 0.9rem 1.3rem;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 999px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--hm-ink);
}

.hm-news-form input[type='email']:focus {
    outline: none;
    border-color: var(--hm-purple);
    box-shadow: 0 0 0 3px rgba(113, 23, 242, 0.12);
}

.hm-news .newsletter-message {
    grid-column: 1 / -1;
    text-align: left;
    padding: 0;
    margin: 0;
}

.hm-news .newsletter-message.success,
.hm-news .newsletter-message.error {
    margin-top: 0.75rem;
    padding: 0.5rem 0.9rem;
}

/* ---------- Scroll reveal ---------- */

body.loaded .hm-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.loaded .hm-reveal.visible {
    opacity: 1;
    transform: none;
}

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

@media (max-width: 1024px) {
    .hm-hero .hm-wrap {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }

    .hm-hero {
        padding: calc(70px + 3.5rem) 0 4.5rem;
    }

    .hm-browser--back {
        top: -1.5rem;
        right: -1.5rem;
        width: 72%;
    }

    .hm-browser--front {
        width: 90%;
        margin-top: 4.5rem;
    }

    .hm-svc {
        grid-template-columns: 110px 1fr;
    }

    .hm-prod-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hm-case,
    .hm-case--flip {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .hm-case--flip .hm-case-img {
        order: 0;
    }
}

@media (max-width: 768px) {
    .hm-sec {
        padding: 4.25rem 0;
    }

    .hm-hero-title {
        font-size: clamp(2.2rem, 8.6vw, 2.9rem);
    }

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

    .hm-svc {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 1.9rem 0.25rem;
    }

    .hm-svc h3 {
        font-size: 1.25rem;
    }

    .hm-svc-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }

    .hm-svc2-visual {
        height: 220px;
    }

    .hm-quote-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hm-news .hm-wrap {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hm-rain span:nth-child(n + 9) {
        display: none;
    }

    .hm-prod-grid {
        gap: 2.25rem 1.25rem;
        margin-top: 2.5rem;
    }

    .hm-prod-shot {
        height: 360px;
    }

    .hm-prod-phone {
        width: min(48%, 148px);
    }

    .hm-prod-shot--duo .hm-prod-phone {
        width: min(44%, 138px);
    }

    .hm-prod-frame {
        width: 92%;
    }
}

@media (max-width: 560px) {
    .hm-browser--back {
        display: none;
    }

    .hm-browser--front {
        width: 100%;
        margin-top: 0;
    }

    .hm-stage-caption {
        margin-top: 1.25rem;
    }

    .hm-hero-proof {
        flex-direction: column;
        gap: 0.55rem;
    }

    .hm-hero-proof .sep {
        display: none;
    }

    .hm-prod-grid {
        grid-template-columns: 1fr;
    }

    .hm-prod-shot {
        height: 400px;
    }

    .hm-news-form input[type='email'] {
        width: 100%;
    }

    .hm-news-form .hm-btn {
        width: 100%;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .hm-rain span {
        animation: none;
    }

    .hm-hero-eyebrow,
    .hm-hero-title,
    .hm-hero-sub,
    .hm-hero-actions,
    .hm-hero-proof,
    .hm-stage {
        animation: none;
        opacity: 1;
    }

    body.loaded .hm-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hm-btn,
    .hm-browser,
    .hm-prod-shot,
    .hm-prod-phone,
    .hm-prod-frame,
    .hm-prod-glow,
    .hm-prod-chips span,
    .hm-svc,
    .hm-svc h3,
    .hm-svc2,
    .hm-svc2 h3,
    .hm-svc2-browser,
    .hm-svc2-phone,
    .hm-svc2-term,
    .hm-quote-small {
        transition: none;
    }

    .hm-term-cursor {
        animation: none;
    }

    body.loaded .hm-svc2 .hm-road-fill {
        transition: none;
    }

    body.loaded .hm-svc2 .hm-road-fill--a {
        width: 100%;
    }

    body.loaded .hm-svc2 .hm-road-fill--b {
        width: 58%;
    }

    body.loaded .hm-svc2 .hm-road-fill--c {
        width: 16%;
    }
}
