/* =====================================================
   UNIFIED DESIGN SYSTEM
   ===================================================== */
:root {
    --h-ease: cubic-bezier(.2,.8,.2,1);
    --h-radius: 16px;
    --h-radius-sm: 10px;
    --h-card-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(30,64,175,.06);
    --h-card-shadow-hover: 0 8px 28px rgba(30,64,175,.14);
}

/* Animate-on-scroll baseline */
[data-animate] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--h-ease), transform .7s var(--h-ease); }
[data-animate].is-in { opacity: 1; transform: translateY(0); }

/* Section rhythm */
.h-section { padding: 96px 0; }
.h-section--alt { background: var(--bg-light); }
@media (max-width: 992px) { .h-section { padding: 72px 0; } }
@media (max-width: 640px) { .h-section { padding: 56px 0; } }

/* Section header */
.h-header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.h-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(59,130,246,0.08);
    color: var(--primary);
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.h-eyebrow i { font-size: 11px; }
.h-h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin: 0 0 14px;
}
.h-subtitle {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0;
}

/* Buttons */
.h-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600; font-size: 15px;
    text-decoration: none; border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .25s var(--h-ease);
    white-space: nowrap;
}
.h-btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(30,64,175,.22); }
.h-btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,64,175,.30); color: #fff; }
.h-btn--ghost { background: transparent; color: var(--text-dark); border-color: var(--border-medium); }
.h-btn--ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(59,130,246,0.06); transform: translateY(-2px); }
.h-btn--outline { background: var(--bg-white); color: var(--primary); border-color: rgba(59,130,246,0.35); }
.h-btn--outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.h-btn--white { background: #fff; color: var(--primary); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.h-btn--white:hover { background: var(--bg-lighter); transform: translateY(-2px); color: var(--primary-dark); }
.h-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.h-btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; transform: translateY(-2px); }
.h-icon-arrow { transition: transform .25s var(--h-ease); }
.h-btn:hover .h-icon-arrow { transform: translateX(4px); }
[dir="rtl"] .h-btn:hover .h-icon-arrow { transform: translateX(-4px) rotate(180deg); }
[dir="rtl"] .h-icon-arrow { transform: rotate(180deg); }

.h-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600; font-size: 14px;
    text-decoration: none;
    transition: color .2s ease;
}
.h-link:hover { color: var(--primary-dark); }
.h-link--muted { color: var(--text-medium); }
.h-link--muted:hover { color: var(--text-dark); }

/* Chip */
.h-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    color: var(--text-medium);
    box-shadow: var(--shadow-sm);
}
.h-chip__dot {
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16,185,129,.22);
    animation: h-pulse 2s ease-in-out infinite;
}
@keyframes h-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,.22); }
    50% { box-shadow: 0 0 0 8px rgba(16,185,129,.05); }
}

/* Grid */
.h-grid { display: grid; gap: 24px; }
.h-grid--1 { grid-template-columns: minmax(0, 760px); justify-content: center; }
.h-grid--2 { grid-template-columns: repeat(2, 1fr); }
.h-grid--3 { grid-template-columns: repeat(3, 1fr); }
.h-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .h-grid--3, .h-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .h-grid--2, .h-grid--3, .h-grid--4 { grid-template-columns: 1fr; } }

/* Card base */
.h-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--h-radius);
    padding: 32px;
    box-shadow: var(--h-card-shadow);
    transition: all .35s var(--h-ease);
    display: flex; flex-direction: column;
}
.h-card:hover { transform: translateY(-4px); box-shadow: var(--h-card-shadow-hover); border-color: rgba(59,130,246,.35); }
.h-card__title { font-size: 20px; font-weight: 700; color: var(--text-dark); margin: 0 0 10px; line-height: 1.3; }
.h-card__desc { font-size: 15px; line-height: 1.65; color: var(--text-light); margin: 0 0 16px; flex-grow: 1; }
.h-center { text-align: center; }
.h-mt-32 { margin-top: 32px; }
.h-mt-48 { margin-top: 48px; }

/* Hero */
.h-hero {
    position: relative;
    padding: 80px 0 96px;
    background: var(--bg-white);
    overflow: hidden;
}
.h-hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
    z-index: 0;
}
.h-hero__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(120px); opacity: 0.32; z-index: 0; pointer-events: none; }
.h-hero__glow--a { background: var(--primary-light); top: -160px; right: -120px; }
.h-hero__glow--b { background: var(--accent); bottom: -180px; left: -120px; opacity: .22; }
[dir="rtl"] .h-hero__glow--a { right: auto; left: -120px; }
[dir="rtl"] .h-hero__glow--b { left: auto; right: -120px; }

.h-hero__inner { position: relative; z-index: 1; max-width: 880px; text-align: center; margin: 0 auto; }
.h-chip--ghost { margin-bottom: 24px; }
.h-hero__title {
    font-size: clamp(34px, 5.4vw, 60px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--text-dark);
    margin: 0 0 22px;
}
.h-hero__lede { font-size: 18px; line-height: 1.75; color: var(--text-light); max-width: 720px; margin: 0 auto 36px; }
.h-hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.h-hero__socials { display: flex; gap: 10px; justify-content: center; }
.h-hero__social {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-medium);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: all .3s var(--h-ease);
}
.h-hero__social:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30,64,175,.25);
}
@media (max-width: 640px) {
    .h-hero { padding: 56px 0 64px; }
    .h-hero__lede { font-size: 16px; }
    .h-hero__ctas { gap: 10px; }
    .h-hero__ctas .h-btn { padding: 12px 20px; font-size: 14px; }
}

/* Consultation CTA */
.h-cta { position: relative; padding: 96px 0; overflow: hidden; color: #fff; }
.h-cta__bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    z-index: 0;
}
.h-cta__bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 18% 24%, rgba(255,255,255,.18) 0%, transparent 40%),
        radial-gradient(circle at 82% 76%, rgba(255,255,255,.12) 0%, transparent 40%);
}
.h-cta__inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.h-cta__icon {
    width: 72px; height: 72px;
    margin: 0 auto 22px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #fff;
}
.h-cta__title { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 14px; color: #fff; }
.h-cta__desc { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.9); margin: 0 0 32px; }
.h-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
    .h-cta { padding: 72px 0; }
    .h-cta__icon { width: 60px; height: 60px; font-size: 26px; }
    .h-cta__desc { font-size: 15px; }
}

/* Recommendations */
.h-rec { position: relative; padding-top: 38px; }
.h-rec__quote {
    position: absolute; top: 24px; left: 32px;
    font-size: 28px; color: var(--primary-light); opacity: 0.4;
}
[dir="rtl"] .h-rec__quote { left: auto; right: 32px; transform: scaleX(-1); }
.h-rec__text { font-size: 15px; line-height: 1.75; color: var(--text-medium); margin: 0 0 22px; font-style: italic; }
.h-rec__author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border-light); }
.h-rec__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.h-rec__avatar--fallback {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
}
.h-rec__info { flex-grow: 1; min-width: 0; }
.h-rec__name { font-size: 14px; font-weight: 700; color: var(--text-dark); margin: 0; }
.h-rec__role { font-size: 12px; color: var(--text-light); margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-rec__linkedin {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(59,130,246,.1);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all .25s ease;
    flex-shrink: 0;
}
.h-rec__linkedin:hover { background: var(--primary); color: #fff; }

/* Empty State */
.h-empty {
    text-align: center;
    padding: 80px 24px;
    background: var(--bg-white);
    border: 2px dashed var(--border-light);
    border-radius: var(--h-radius);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.h-empty__icon {
    width: 64px; height: 64px;
    background: var(--bg-light);
    color: var(--text-light);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 16px;
}
.h-empty__title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin: 0 0 8px; }
.h-empty__desc { font-size: 14.5px; color: var(--text-light); margin: 0 0 20px; max-width: 360px; line-height: 1.6; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
