/* ==========================================================================
   Hire React Developer — bespoke page design. Namespaced `.hrd-`.
   Visual language: interactive component preview, component trees,
   UI transitions — the most dynamic/interactive of the dev pages.
   ========================================================================== */

.hrd-page { background: var(--sap-white); overflow-x: clip; }
.hrd-page section { position: relative; }
.hrd-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; }
.hrd-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--sap-primary); display: inline-block; }

/* 1. HERO — light, interactive component preview */
.hrd-hero { position: relative; overflow: hidden; background: var(--sap-bg-tint); padding: calc(var(--sap-header-height) + 5rem) 0 5rem; }
.hrd-hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
.hrd-hero__kicker { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem; border-radius: var(--sap-radius-pill); background: var(--sap-white); border: 1px solid var(--sap-border); font-size: .8rem; font-weight: 600; color: var(--sap-secondary); box-shadow: var(--sap-shadow-sm); margin-bottom: 1.75rem; }
.hrd-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; }
.hrd-hero__title .accent { color: var(--sap-primary); }
.hrd-hero__text { font-size: 1.06rem; line-height: 1.7; color: var(--sap-muted); max-width: 520px; margin-bottom: 2.25rem; }
.hrd-hero__actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.hrd-hero__secondary { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; color: var(--sap-text); border-bottom: 1px solid var(--sap-border); padding-bottom: 3px; }
.hrd-hero__secondary:hover { border-color: var(--sap-primary); color: var(--sap-primary); }

.hrd-preview { background: var(--sap-white); border-radius: var(--sap-radius-lg); box-shadow: var(--sap-shadow-lg); overflow: hidden; }
.hrd-preview__bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; background: var(--sap-bg-tint); border-bottom: 1px solid var(--sap-border); }
.hrd-preview__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sap-border); }
.hrd-preview__tabs { display: flex; gap: .4rem; margin-left: .75rem; }
.hrd-preview__tab { font-size: .74rem; font-weight: 700; padding: .35rem .8rem; border-radius: var(--sap-radius-pill); color: var(--sap-muted); transition: background .2s ease, color .2s ease; }
.hrd-preview__tab.is-active { background: var(--sap-secondary); color: #fff; }
.hrd-preview__stage { padding: 2rem; min-height: 220px; display: flex; align-items: center; justify-content: center; }
.hrd-preview__demo { display: none; width: 100%; }
.hrd-preview__demo.is-active { display: block; animation: hrdFadeIn .3s ease; }
@keyframes hrdFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.hrd-demo-card { background: var(--sap-bg-tint); border-radius: var(--sap-radius-lg); padding: 1.5rem; }
.hrd-demo-card__img { height: 70px; border-radius: var(--sap-radius-md); background: var(--sap-gradient); margin-bottom: 1rem; }
.hrd-demo-card__line { height: 8px; border-radius: 3px; background: var(--sap-border); margin-bottom: .5rem; }
.hrd-demo-card__line:last-child { width: 60%; margin-bottom: 0; }

.hrd-demo-list { display: flex; flex-direction: column; gap: .6rem; }
.hrd-demo-list__row { display: flex; align-items: center; gap: .75rem; background: var(--sap-bg-tint); border-radius: var(--sap-radius-sm); padding: .7rem .9rem; }
.hrd-demo-list__icon { width: 28px; height: 28px; border-radius: 50%; background: var(--sap-gradient); flex-shrink: 0; }
.hrd-demo-list__line { flex: 1; height: 7px; border-radius: 3px; background: var(--sap-border); }

.hrd-demo-form { display: flex; flex-direction: column; gap: .75rem; }
.hrd-demo-form__field { height: 34px; border-radius: var(--sap-radius-sm); background: var(--sap-bg-tint); border: 1px solid var(--sap-border); }
.hrd-demo-form__btn { height: 34px; border-radius: var(--sap-radius-sm); background: var(--sap-gradient); width: 100px; margin-top: .25rem; }

/* 2. PROBLEM */
.hrd-problem { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hrd-problem__head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.hrd-problem__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hrd-problem__head .accent { color: var(--sap-primary); }
.hrd-problem__head p { color: var(--sap-muted); }
.hrd-problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 980px; margin: 0 auto; }
.hrd-problem-card { background: var(--sap-bg-tint); border-radius: var(--sap-radius-lg); padding: 1.75rem; }
.hrd-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; }
.hrd-problem-card__icon svg { width: 21px; height: 21px; }
.hrd-problem-card h3 { font-size: .98rem; margin-bottom: .4rem; }
.hrd-problem-card p { font-size: .86rem; color: var(--sap-muted); margin-bottom: 0; }

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

.hrd-shelf__head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.hrd-shelf__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hrd-shelf__head p { color: var(--sap-muted); }
.hrd-shelf__rail { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .5rem .5rem 1rem; }
.hrd-shelf__rail { scrollbar-width: none; -ms-overflow-style: none; }
.hrd-shelf__rail::-webkit-scrollbar { display: none; }
.hrd-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%);
}

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

/* 4. COMPONENT ARCHITECTURE — tree */
.hrd-tree-section { padding: var(--sap-section-space) 0; background: var(--sap-dark); color: #fff; }
.hrd-tree-section__head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.hrd-tree-section__head .hrd-eyebrow { color: var(--sap-accent); }
.hrd-tree-section__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: #fff; }
.hrd-tree-section__head p { color: rgba(255,255,255,.6); }
.hrd-comp-tree { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.hrd-comp-tree__level { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; width: 100%; }
.hrd-comp-tree__node { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--sap-radius-md); padding: .8rem 1.25rem; font-size: .85rem; font-weight: 600; font-family: 'SFMono-Regular', Consolas, monospace; }
.hrd-comp-tree__node--root { background: var(--sap-gradient); border-color: transparent; font-size: .95rem; }
.hrd-comp-tree__connector { width: 2px; height: 20px; background: rgba(255,255,255,.15); }

/* 5. API INTEGRATION */
.hrd-api { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hrd-api__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hrd-api__content .hrd-eyebrow { color: var(--sap-primary); }
.hrd-api__content h2 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin-bottom: 1rem; }
.hrd-api__content p { color: var(--sap-muted); line-height: 1.7; margin-bottom: 0; }
.hrd-api__panel { background: var(--sap-dark); border-radius: var(--sap-radius-lg); padding: 1.5rem; font-family: 'SFMono-Regular', Consolas, monospace; font-size: .8rem; line-height: 1.8; color: rgba(255,255,255,.65); }
.hrd-api__panel .kw { color: var(--sap-primary); }
.hrd-api__panel .fn { color: #5FD68A; }

/* 6. PERFORMANCE */
.hrd-perf { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hrd-perf__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hrd-perf__content .hrd-eyebrow { color: var(--sap-primary); }
.hrd-perf__content h2 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin-bottom: 1rem; }
.hrd-perf__content p { color: var(--sap-muted); line-height: 1.7; margin-bottom: 0; }
.hrd-perf__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.hrd-perf-stat { background: var(--sap-white); border-radius: var(--sap-radius-lg); padding: 1.5rem; text-align: center; }
.hrd-perf-stat__value { font-family: var(--sap-font-heading); font-weight: 800; font-size: 1.6rem; color: var(--sap-primary); }
.hrd-perf-stat__label { font-size: .78rem; color: var(--sap-muted); margin-top: .3rem; }

/* 7. PROCESS */
.hrd-process { padding: var(--sap-section-space) 0; background: var(--sap-secondary); color: #fff; }
.hrd-process__head { max-width: 620px; margin: 0 auto 4rem; text-align: center; }
.hrd-process__head .hrd-eyebrow { color: var(--sap-accent); }
.hrd-process__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: #fff; }
.hrd-process__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; max-width: 1080px; margin: 0 auto; }
.hrd-process__step { text-align: center; }
.hrd-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; }
.hrd-process__step h3 { font-size: .9rem; margin-bottom: .35rem; color: #fff; }
.hrd-process__step p { font-size: .76rem; color: rgba(255,255,255,.5); margin-bottom: 0; }

/* 8. WHY HIRE */
.hrd-why { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hrd-why__layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4.5rem; }
.hrd-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); }
.hrd-why__statement .accent { color: var(--sap-primary); }
.hrd-why__list { display: flex; flex-direction: column; }
.hrd-why-item { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--sap-border); }
.hrd-why-item:last-child { border-bottom: 1px solid var(--sap-border); }
.hrd-why-item__mark { color: var(--sap-primary); }
.hrd-why-item__mark svg { width: 20px; height: 20px; }
.hrd-why-item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.hrd-why-item p { font-size: .88rem; color: var(--sap-muted); margin-bottom: 0; }

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

/* 10. TECH */
.hrd-tech { padding: 3.5rem 0; background: var(--sap-dark); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.hrd-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; }
.hrd-tech__track { display: flex; gap: 3.5rem; width: max-content; animation: hrdMarquee 30s linear infinite; }
.hrd-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 hrdMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 11. FAQ */
.hrd-faq { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hrd-faq__layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 4rem; }
.hrd-faq__sticky { position: sticky; top: calc(var(--sap-header-height) + 2rem); align-self: start; }
.hrd-faq__sticky h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.hrd-faq__sticky p { color: var(--sap-muted); }
.hrd-faq__list { border-top: 1px solid var(--sap-border); }
.hrd-faq-item { border-bottom: 1px solid var(--sap-border); }
.hrd-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; }
.hrd-faq-item__num { font-family: var(--sap-font-heading); font-weight: 800; color: var(--sap-primary); font-size: .85rem; }
.hrd-faq-item__q { font-size: 1.02rem; font-weight: 600; }
.hrd-faq-item__icon { width: 20px; height: 20px; color: var(--sap-muted); transition: transform .3s ease; flex-shrink: 0; }
.hrd-faq-item__trigger[aria-expanded="true"] .hrd-faq-item__icon { transform: rotate(45deg); color: var(--sap-primary); }
.hrd-faq-item__panel { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.hrd-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 */
.hrd-related { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hrd-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.hrd-related__head h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin-bottom: 0; }
.hrd-related__rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.hrd-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; }
.hrd-related-card:hover { transform: translateY(-4px); box-shadow: var(--sap-shadow-md); border-color: transparent; }
.hrd-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; }
.hrd-related-card__icon svg { width: 20px; height: 20px; }
.hrd-related-card h3 { font-size: .95rem; margin-bottom: 0; line-height: 1.4; }

/* 13. FINAL CTA */
.hrd-final { position: relative; overflow: hidden; background: #0a0a0a; color: #fff; text-align: center; padding: 6rem 0; }
.hrd-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%; }
.hrd-final__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hrd-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; }
.hrd-final p { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 2.5rem; }
.hrd-final__actions { display: flex; align-items: center; justify-content: center; gap: 1.75rem; flex-wrap: wrap; }
.hrd-final__secondary { color: #fff; font-weight: 700; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 3px; }
.hrd-final__secondary:hover { border-color: var(--sap-primary); color: var(--sap-primary); }

/* Responsive */
@media (max-width: 1080px) {
	.hrd-hero__inner { grid-template-columns: 1fr; }
	.hrd-problem__grid { grid-template-columns: repeat(2, 1fr); }
	.hrd-api__layout { grid-template-columns: 1fr; }
	.hrd-api__visual { order: -1; }
	.hrd-perf__layout { grid-template-columns: 1fr; }
	.hrd-perf__visual { order: -1; }
	.hrd-process__steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
	.hrd-why__layout { grid-template-columns: 1fr; }
	.hrd-why__statement { position: static; margin-bottom: 2rem; }
	.hrd-engage__grid { grid-template-columns: 1fr; }
	.hrd-faq__layout { grid-template-columns: 1fr; }
	.hrd-faq__sticky { position: static; margin-bottom: 2rem; }
	.hrd-related__rail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.hrd-problem__grid { grid-template-columns: 1fr; }
	.hrd-process__steps { grid-template-columns: repeat(2, 1fr); }
	.hrd-related__rail { grid-template-columns: 1fr; }
	.hrd-faq-item__panel p { padding-left: 0; }
	.hrd-faq-item__trigger { grid-template-columns: 2.25rem 1fr 1.25rem; }
	.hrd-preview__tabs { flex-wrap: wrap; }
}
