/* ==========================================================================
   Hire Node.js Developer — bespoke page design. Namespaced `.hnd-`.
   Visual language: API/service networks, real-time WebSocket flows,
   microservice architecture, database connections.
   ========================================================================== */

.hnd-page { background: var(--sap-white); overflow-x: clip; }
.hnd-page section { position: relative; }
.hnd-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sap-font-heading); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sap-primary); margin-bottom: 1.1rem; }
.hnd-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--sap-primary); display: inline-block; }

/* 1. HERO — dark, service network graph */
.hnd-hero { position: relative; overflow: hidden; background: #0a0d10; color: #fff; padding: calc(var(--sap-header-height) + 5rem) 0 5.5rem; }
.hnd-hero__glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; top: -220px; right: -160px; background: var(--sap-primary); opacity: .2; filter: blur(100px); }
.hnd-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
.hnd-hero__kicker { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem .5rem .6rem; border-radius: var(--sap-radius-pill); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 1.75rem; }
.hnd-hero__kicker span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sap-primary); box-shadow: 0 0 0 4px rgba(254,109,13,.2); flex-shrink: 0; animation: hndPulseDot 1.8s ease-in-out infinite; }
@keyframes hndPulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hnd-hero__title { font-family: var(--sap-font-heading); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 1.6rem; color: #fff; }
.hnd-hero__title .accent { color: var(--sap-primary); }
.hnd-hero__text { font-size: 1.06rem; line-height: 1.7; color: rgba(255,255,255,.65); max-width: 520px; margin-bottom: 2.25rem; }
.hnd-hero__actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.hnd-hero__secondary { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 3px; }
.hnd-hero__secondary:hover { border-color: var(--sap-primary); color: var(--sap-primary); }

.hnd-network { position: relative; height: 380px; }
.hnd-network svg { width: 100%; height: 100%; }
.hnd-network circle.pulse { animation: hndFlow 2.4s ease-in-out infinite; }
@keyframes hndFlow { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
.hnd-network__label { position: absolute; font-family: var(--sap-font-heading); font-weight: 700; font-size: .68rem; padding: .3rem .6rem; border-radius: var(--sap-radius-sm); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.75); }
.hnd-network__label--api { top: 4%; left: 40%; }
.hnd-network__label--1 { top: 30%; left: 2%; }
.hnd-network__label--2 { top: 12%; right: 4%; }
.hnd-network__label--3 { bottom: 26%; left: -2%; }
.hnd-network__label--4 { bottom: 8%; right: 8%; }
.hnd-network__label--db { bottom: 2%; left: 38%; background: rgba(254,109,13,.15); border-color: rgba(254,109,13,.35); color: var(--sap-primary); }

/* 2. PROBLEM */
.hnd-problem { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hnd-problem__head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.hnd-problem__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hnd-problem__head .accent { color: var(--sap-primary); }
.hnd-problem__head p { color: var(--sap-muted); }
.hnd-problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 980px; margin: 0 auto; }
.hnd-problem-card { background: var(--sap-white); border-radius: var(--sap-radius-lg); padding: 1.75rem; }
.hnd-problem-card__icon { width: 44px; height: 44px; border-radius: var(--sap-radius-md); background: rgba(255,107,107,.1); color: #E24444; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.hnd-problem-card__icon svg { width: 21px; height: 21px; }
.hnd-problem-card h3 { font-size: .98rem; margin-bottom: .4rem; }
.hnd-problem-card p { font-size: .86rem; color: var(--sap-muted); margin-bottom: 0; }

/* 3. WHAT WE BUILD */
.hnd-shelf { padding: var(--sap-section-space) 0; background: var(--sap-white); }

.hnd-shelf__head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.hnd-shelf__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hnd-shelf__head p { color: var(--sap-muted); }
.hnd-shelf__rail { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .5rem .5rem 1rem; }
.hnd-shelf__rail { scrollbar-width: none; -ms-overflow-style: none; }
.hnd-shelf__rail::-webkit-scrollbar { display: none; }
.hnd-shelf__rail {
	mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
	-webkit-mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
}

.hnd-shelf-card { scroll-snap-align: start; flex: 0 0 auto; width: 230px; background: var(--sap-bg-tint); border-radius: var(--sap-radius-lg); padding: 1.5rem; transition: transform .25s ease, box-shadow .25s ease; }
.hnd-shelf-card:hover { transform: translateY(-4px); box-shadow: var(--sap-shadow-md); }
.hnd-shelf-card__icon { width: 42px; height: 42px; border-radius: var(--sap-radius-md); background: var(--sap-white); color: var(--sap-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.hnd-shelf-card__icon svg { width: 21px; height: 21px; }
.hnd-shelf-card h3 { font-size: .95rem; margin-bottom: .4rem; }
.hnd-shelf-card p { font-size: .82rem; color: var(--sap-muted); margin-bottom: 0; }

/* 4. REAL-TIME APPLICATIONS */
.hnd-realtime { padding: var(--sap-section-space) 0; background: var(--sap-dark); color: #fff; }
.hnd-realtime__head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.hnd-realtime__head .hnd-eyebrow { color: var(--sap-accent); }
.hnd-realtime__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: #fff; }
.hnd-realtime__head p { color: rgba(255,255,255,.6); }
.hnd-ws-flow { display: flex; align-items: center; justify-content: center; gap: 1.5rem; max-width: 700px; margin: 0 auto; }
.hnd-ws-node { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--sap-radius-lg); padding: 1.5rem 2rem; text-align: center; font-weight: 700; font-size: .9rem; }
.hnd-ws-connection { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--sap-primary) 0 6px, transparent 6px 12px); }
.hnd-ws-connection__dot { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--sap-primary); transform: translateY(-50%); animation: hndTravel 2.4s linear infinite; }
@keyframes hndTravel { 0% { left: 0; } 100% { left: 100%; } }

/* 5. SCALABLE ARCHITECTURE */
.hnd-arch { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hnd-arch__head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.hnd-arch__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hnd-arch__head p { color: var(--sap-muted); }
.hnd-arch__diagram { max-width: 900px; margin: 0 auto; }
.hnd-arch__gateway { background: var(--sap-gradient); color: #fff; border-radius: var(--sap-radius-md); padding: .9rem 1.5rem; text-align: center; font-weight: 700; font-size: .9rem; max-width: 240px; margin: 0 auto 1.25rem; }
.hnd-arch__services { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.hnd-arch__service { background: var(--sap-bg-tint); border-radius: var(--sap-radius-md); padding: 1rem; text-align: center; font-size: .82rem; font-weight: 600; }

/* 6. DATABASE & INTEGRATIONS */
.hnd-database { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hnd-database__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hnd-database__content .hnd-eyebrow { color: var(--sap-primary); }
.hnd-database__content h2 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin-bottom: 1rem; }
.hnd-database__content p { color: var(--sap-muted); line-height: 1.7; margin-bottom: 0; }
.hnd-database__visual { background: var(--sap-white); border-radius: var(--sap-radius-lg); padding: 1.5rem; }
.hnd-database__row { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--sap-border); font-size: .85rem; }
.hnd-database__row:last-child { border-bottom: none; }
.hnd-database__badge { font-size: .68rem; font-weight: 700; padding: .3rem .6rem; border-radius: var(--sap-radius-pill); background: rgba(95,214,138,.12); color: #2E9A5C; margin-left: auto; }

/* 7. PROCESS */
.hnd-process { padding: var(--sap-section-space) 0; background: var(--sap-secondary); color: #fff; }
.hnd-process__head { max-width: 620px; margin: 0 auto 4rem; text-align: center; }
.hnd-process__head .hnd-eyebrow { color: var(--sap-accent); }
.hnd-process__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: #fff; }
.hnd-process__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; max-width: 1080px; margin: 0 auto; }
.hnd-process__step { text-align: center; }
.hnd-process__num { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 1.1rem; display: flex; align-items: center; justify-content: center; background: var(--sap-gradient); color: #fff; font-family: var(--sap-font-heading); font-weight: 800; font-size: .8rem; }
.hnd-process__step h3 { font-size: .9rem; margin-bottom: .35rem; color: #fff; }
.hnd-process__step p { font-size: .76rem; color: rgba(255,255,255,.5); margin-bottom: 0; }

/* 8. WHY HIRE */
.hnd-why { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hnd-why__layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4.5rem; }
.hnd-why__statement { font-family: var(--sap-font-heading); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; align-self: start; position: sticky; top: calc(var(--sap-header-height) + 2rem); }
.hnd-why__statement .accent { color: var(--sap-primary); }
.hnd-why__list { display: flex; flex-direction: column; }
.hnd-why-item { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--sap-border); }
.hnd-why-item:last-child { border-bottom: 1px solid var(--sap-border); }
.hnd-why-item__mark { color: var(--sap-primary); }
.hnd-why-item__mark svg { width: 20px; height: 20px; }
.hnd-why-item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.hnd-why-item p { font-size: .88rem; color: var(--sap-muted); margin-bottom: 0; }

/* 9. ENGAGEMENT */
.hnd-engage { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hnd-engage__head { max-width: 620px; margin: 0 auto 3rem; text-align: center; }
.hnd-engage__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hnd-engage__head p { color: var(--sap-muted); }
.hnd-engage__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hnd-engage-panel { border-radius: var(--sap-radius-lg); padding: 2.25rem; border: 1px solid var(--sap-border); background: var(--sap-white); }
.hnd-engage-panel--dark { background: var(--sap-dark); color: #fff; border-color: transparent; }
.hnd-engage-panel__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sap-primary); margin-bottom: .8rem; }
.hnd-engage-panel h3 { font-size: 1.2rem; margin-bottom: .65rem; }
.hnd-engage-panel--dark h3 { color: #fff; }
.hnd-engage-panel p { color: var(--sap-muted); font-size: .88rem; line-height: 1.6; margin-bottom: 1.1rem; }
.hnd-engage-panel--dark p { color: rgba(255,255,255,.6); }
.hnd-engage-panel__link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; color: var(--sap-primary); }
.hnd-engage-panel--dark .hnd-engage-panel__link { color: #fff; }
.hnd-engage-panel__link svg { width: 15px; height: 15px; transition: transform .25s ease; }
.hnd-engage-panel:hover .hnd-engage-panel__link svg { transform: translateX(4px); }

/* 10. TECH */
.hnd-tech { padding: 3.5rem 0; background: #0a0d10; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.hnd-tech__label { text-align: center; color: rgba(255,255,255,.45); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.75rem; }
.hnd-tech__track { display: flex; gap: 3.5rem; width: max-content; animation: hndMarquee 30s linear infinite; }
.hnd-tech__item { font-family: var(--sap-font-heading); font-weight: 700; font-size: 1.2rem; color: rgba(255,255,255,.35); white-space: nowrap; }
@keyframes hndMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 11. FAQ */
.hnd-faq { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hnd-faq__layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 4rem; }
.hnd-faq__sticky { position: sticky; top: calc(var(--sap-header-height) + 2rem); align-self: start; }
.hnd-faq__sticky h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.hnd-faq__sticky p { color: var(--sap-muted); }
.hnd-faq__list { border-top: 1px solid var(--sap-border); }
.hnd-faq-item { border-bottom: 1px solid var(--sap-border); }
.hnd-faq-item__trigger { width: 100%; display: grid; grid-template-columns: 3rem 1fr 1.5rem; align-items: center; gap: 1.25rem; padding: 1.5rem 0; text-align: left; }
.hnd-faq-item__num { font-family: var(--sap-font-heading); font-weight: 800; color: var(--sap-primary); font-size: .85rem; }
.hnd-faq-item__q { font-size: 1.02rem; font-weight: 600; }
.hnd-faq-item__icon { width: 20px; height: 20px; color: var(--sap-muted); transition: transform .3s ease; flex-shrink: 0; }
.hnd-faq-item__trigger[aria-expanded="true"] .hnd-faq-item__icon { transform: rotate(45deg); color: var(--sap-primary); }
.hnd-faq-item__panel { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.hnd-faq-item__panel p { padding: 0 0 1.5rem 4.25rem; color: var(--sap-muted); font-size: .92rem; line-height: 1.7; margin-bottom: 0; max-width: 620px; }

/* 12. RELATED */
.hnd-related { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hnd-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.hnd-related__head h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin-bottom: 0; }
.hnd-related__rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.hnd-related-card { background: var(--sap-white); border: 1px solid var(--sap-border); border-radius: var(--sap-radius-lg); padding: 1.6rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hnd-related-card:hover { transform: translateY(-4px); box-shadow: var(--sap-shadow-md); border-color: transparent; }
.hnd-related-card__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--sap-bg-tint); color: var(--sap-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.hnd-related-card__icon svg { width: 20px; height: 20px; }
.hnd-related-card h3 { font-size: .95rem; margin-bottom: 0; line-height: 1.4; }

/* 13. FINAL CTA */
.hnd-final { position: relative; overflow: hidden; background: #0a0d10; color: #fff; text-align: center; padding: 6rem 0; }
.hnd-final__glow { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 900px; height: 700px; background: var(--sap-primary); opacity: .16; filter: blur(120px); border-radius: 50%; }
.hnd-final__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hnd-final h2 { font-family: var(--sap-font-heading); font-weight: 800; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.15; color: #fff; margin-bottom: 1.25rem; }
.hnd-final p { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 2.5rem; }
.hnd-final__actions { display: flex; align-items: center; justify-content: center; gap: 1.75rem; flex-wrap: wrap; }
.hnd-final__secondary { color: #fff; font-weight: 700; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 3px; }
.hnd-final__secondary:hover { border-color: var(--sap-primary); color: var(--sap-primary); }

/* Responsive */
@media (max-width: 1080px) {
	.hnd-hero__inner { grid-template-columns: 1fr; }
	.hnd-network { height: 280px; }
	.hnd-problem__grid { grid-template-columns: repeat(2, 1fr); }
	.hnd-arch__services { grid-template-columns: repeat(2, 1fr); }
	.hnd-database__layout { grid-template-columns: 1fr; }
	.hnd-database__visual { order: -1; }
	.hnd-process__steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
	.hnd-why__layout { grid-template-columns: 1fr; }
	.hnd-why__statement { position: static; margin-bottom: 2rem; }
	.hnd-engage__grid { grid-template-columns: 1fr; }
	.hnd-faq__layout { grid-template-columns: 1fr; }
	.hnd-faq__sticky { position: static; margin-bottom: 2rem; }
	.hnd-related__rail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.hnd-problem__grid { grid-template-columns: 1fr; }
	.hnd-ws-flow { flex-direction: column; }
	.hnd-ws-connection { width: 2px; height: 60px; }
	.hnd-arch__services { grid-template-columns: 1fr; }
	.hnd-process__steps { grid-template-columns: repeat(2, 1fr); }
	.hnd-related__rail { grid-template-columns: 1fr; }
	.hnd-faq-item__panel p { padding-left: 0; }
	.hnd-faq-item__trigger { grid-template-columns: 2.25rem 1fr 1.25rem; }
}
