/* --- Index Page Specific CSS --- */
    /* ── STANDALONE PAGE LAYOUT ── */
    #hp-page {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      width: 100%;
    }
    /* Ensure app-header inside hp-page has no grid column positioning */
    #hp-page app-header {
      display: block;
      width: 100%;
      grid-column: unset !important;
      grid-row: unset !important;
    }
    #hp-main {
      flex: 1;
      width: 100%;
      padding-top: var(--header-height, 64px);
    }
    #hp-main .content-wrapper {
      max-width: 1100px;
      margin: 0 auto;
      padding: 2rem 1.5rem;
      width: 100%;
      box-sizing: border-box;
    }

    .hp-hero {
      min-height: calc(100vh - var(--header-height));
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 4rem var(--content-padding) 3rem;
      position: relative;
      overflow: hidden;
    }
    .hp-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(99,102,241,0.18) 0%, transparent 70%);
      pointer-events: none;
    }
    .hp-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 20px;
      background: rgba(99,102,241,0.08);
      border: 1px solid rgba(99,102,241,0.2);
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 700;
      color: #818cf8;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 2rem;
      animation: fade-down 0.8s ease both;
    }
    .hp-eyebrow .dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: #10b981;
      box-shadow: 0 0 8px #10b981;
      animation: pulse-dot 2s ease infinite;
    }
    .hp-headline {
      font-size: clamp(2.8rem, 7vw, 6rem);
      font-weight: 900;
      line-height: 1.1;
      color: #fafafa;
      letter-spacing: -0.03em;
      margin-bottom: 1.5rem;
      animation: fade-up 0.9s ease 0.1s both;
    }
    .hp-headline .hl-outline {
      -webkit-text-stroke: 2px rgba(99,102,241,0.7);
      color: transparent;
      display: block;
    }
    .hp-headline .hl-gradient {
      background: linear-gradient(90deg, #818cf8, #06b6d4, #a78bfa);
      background-size: 200%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: shimmer-text 4s linear infinite;
    }
    @keyframes shimmer-text {
      0%   { background-position: 0% 50%; }
      100% { background-position: 200% 50%; }
    }
    .hp-sub {
      font-size: clamp(1rem, 2.5vw, 1.2rem);
      color: #71717a;
      max-width: 540px;
      line-height: 1.8;
      margin-bottom: 2.5rem;
      animation: fade-up 0.9s ease 0.2s both;
    }
    .hp-cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      justify-content: center;
      animation: fade-up 0.9s ease 0.3s both;
    }
    .hp-btn-main {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 36px;
      background: linear-gradient(135deg, #6366f1, #06b6d4);
      color: #fff;
      font-weight: 700;
      font-size: 1rem;
      border-radius: 999px;
      text-decoration: none;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 8px 32px rgba(99,102,241,0.4);
      font-family: var(--font-arabic);
    }
    .hp-btn-main:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 40px rgba(99,102,241,0.55);
    }
    .hp-btn-ghost {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 13px 32px;
      background: transparent;
      color: #a1a1aa;
      font-weight: 600;
      font-size: 1rem;
      border-radius: 999px;
      text-decoration: none;
      border: 1px solid rgba(255,255,255,0.08);
      cursor: pointer;
      transition: all 0.3s ease;
      font-family: var(--font-arabic);
    }
    .hp-btn-ghost:hover {
      border-color: rgba(255,255,255,0.2);
      color: #fafafa;
      background: rgba(255,255,255,0.04);
    }
    .hp-marquee {
      width: 100%;
      overflow: hidden;
      padding: 2.5rem 0;
      border-top: 1px solid rgba(255,255,255,0.05);
      border-bottom: 1px solid rgba(255,255,255,0.05);
      margin-top: 4rem;
      position: relative;
    }
    .hp-marquee::before, .hp-marquee::after {
      content: '';
      position: absolute;
      top: 0; bottom: 0;
      width: 120px;
      z-index: 2;
      pointer-events: none;
    }
    .hp-marquee::before { right: 0; background: linear-gradient(to left, var(--bg-base), transparent); }
    .hp-marquee::after  { left: 0;  background: linear-gradient(to right, var(--bg-base), transparent); }
    .marquee-track {
      display: flex;
      gap: 3rem;
      animation: marquee-rtl 30s linear infinite;
      white-space: nowrap;
      will-change: transform;
    }
    .marquee-item {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #52525b;
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      flex-shrink: 0;
    }
    .marquee-item i { color: #6366f1; font-size: 1rem; }
    @keyframes marquee-rtl {
      from { transform: translateX(0); }
      to   { transform: translateX(50%); }
    }
    .hp-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: rgba(255,255,255,0.05);
      border-radius: 20px;
      overflow: hidden;
      margin-bottom: 6rem;
    }
    .hp-stat {
      background: var(--bg-base);
      padding: 2.5rem 1.5rem;
      text-align: center;
      transition: background 0.3s;
    }
    .hp-stat:hover { background: rgba(99,102,241,0.04); }
    .hp-stat-num {
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 900;
      letter-spacing: -0.04em;
      background: linear-gradient(135deg, #818cf8, #06b6d4);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1;
    }
    .hp-stat-label {
      color: #52525b;
      font-size: 0.85rem;
      font-weight: 600;
      margin-top: 8px;
    }
    /* ── SERVICES GRID (Bento Style) ── */
    .hp-services { margin-bottom: 6rem; }
    .hp-section-tag {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: #6366f1;
      margin-bottom: 1rem;
    }
    .hp-section-heading {
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 800;
      color: #fafafa;
      letter-spacing: -0.03em;
      line-height: 1.2;
      margin-bottom: 1rem;
    }
    .hp-section-desc {
      color: #52525b;
      font-size: 1rem;
      max-width: 480px;
      line-height: 1.7;
      margin-bottom: 3rem;
    }
    @keyframes electric-flicker {
      0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
        text-shadow: 0 0 4px #fef08a, 0 0 10px #eab308, 0 0 20px #ca8a04;
        color: #fef08a;
      }
      20%, 24%, 55% {
        opacity: 0.1;
        text-shadow: none;
        color: #3f3f46;
      }
    }
    .blinking-text {
      animation: electric-flicker 2.5s infinite;
    }
    /* Bento grid */
    .svc-marquee-container {
      width: 100%;
      overflow: hidden;
      position: relative;
      -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
      mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
      padding: 1rem 0;
    }
    .svc-marquee-track {
      display: flex;
      gap: 1.5rem;
      width: max-content;
      animation: services-scroll 35s linear infinite;
    }
    .svc-marquee-track:hover { animation-play-state: paused; }
    
    @keyframes services-scroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(50%); }
    }
    .svc-marquee-track > a {
      min-width: 280px;
      width: 85vw;
      max-width: 320px;
      flex-shrink: 0;
    }
    .svc-card {
      position: relative;
      border-radius: 20px;
      border: 1px solid rgba(255,255,255,0.05);
      background: #0e0e10;
      padding: 1.75rem;
      text-decoration: none;
      color: inherit;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 2rem;
      transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
      min-height: 180px;
    }
    /* Glow on hover */
    .svc-card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: radial-gradient(circle at 20% 80%, var(--c-glow, rgba(99,102,241,0.12)), transparent 65%);
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
    }
    .svc-card:hover::before { opacity: 1; }
    .svc-card:hover {
      border-color: var(--c-border, rgba(99,102,241,0.25));
      transform: translateY(-3px);
      box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    }
    /* Featured card */
    .svc-card--featured {
      flex-direction: column;
    }
    .svc-card--featured .svc-card-icon {
      width: 72px; height: 72px;
      font-size: 2rem;
    }
    /* Icon */
    .svc-card-icon {
      width: 52px; height: 52px;
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.5rem;
      background: var(--c-icon-bg, rgba(99,102,241,0.1));
      color: var(--c-icon, #818cf8);
      transition: transform 0.3s ease;
      flex-shrink: 0;
    }
    .svc-card:hover .svc-card-icon {
      transform: scale(1.08) rotate(-6deg);
    }
    .svc-card-name {
      font-size: 1rem;
      font-weight: 700;
      color: #e4e4e7;
      margin-bottom: 6px;
    }
    .svc-card-desc {
      font-size: 0.8rem;
      color: #3f3f46;
      line-height: 1.55;
    }
    .svc-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: auto;
    }
    .svc-card-tag {
      font-size: 0.68rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 999px;
      background: var(--c-tag-bg, rgba(99,102,241,0.1));
      color: var(--c-icon, #818cf8);
      letter-spacing: 0.04em;
    }
    .svc-card-arrow {
      width: 30px; height: 30px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.06);
      display: flex; align-items: center; justify-content: center;
      color: #27272a;
      font-size: 0.75rem;
      transition: all 0.3s ease;
    }
    .svc-card:hover .svc-card-arrow {
      border-color: var(--c-border, rgba(99,102,241,0.3));
      color: var(--c-icon, #818cf8);
      transform: translateX(-3px);
    }
    @media (max-width: 600px) {
      .svc-marquee-track {
        flex-direction: column;
        width: 100%;
        animation: none !important;
      }
      .svc-marquee-track > a {
        width: 100%;
        max-width: none;
        min-width: 0;
      }
      .svc-marquee-container {
        -webkit-mask-image: none;
        mask-image: none;
        padding: 0;
      }
    }
    .hp-process { margin-bottom: 6rem; }
    .process-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
      margin-top: 3rem;
    }
    .process-card {
      padding: 2rem;
      border: 1px solid rgba(255,255,255,0.05);
      border-radius: 20px;
      background: rgba(255,255,255,0.01);
      transition: border-color 0.3s, background 0.3s;
    }
    .process-card:hover {
      border-color: rgba(99,102,241,0.2);
      background: rgba(99,102,241,0.03);
    }
    .process-num {
      font-size: 3.5rem;
      font-weight: 900;
      letter-spacing: -0.05em;
      color: rgba(99,102,241,0.15);
      line-height: 1;
      margin-bottom: 1rem;
    }
    .process-title { font-size: 1.1rem; font-weight: 700; color: #e4e4e7; margin-bottom: 0.5rem; }
    .process-text { font-size: 0.9rem; color: #52525b; line-height: 1.7; }
    .hp-trust {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      justify-content: center;
      align-items: center;
      margin-bottom: 6rem;
      padding: 2.5rem;
      border-radius: 20px;
      background: rgba(255,255,255,0.01);
      border: 1px solid rgba(255,255,255,0.05);
    }
    .trust-pill {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 20px;
      border-radius: 999px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.06);
      font-size: 0.85rem;
      color: #71717a;
      font-weight: 600;
      transition: all 0.25s;
    }
    .trust-pill:hover { border-color: rgba(99,102,241,0.3); color: #a1a1aa; }
    .trust-pill i { color: #6366f1; }
    .hp-cta {
      margin-bottom: 4rem;
      position: relative;
      border-radius: 28px;
      overflow: hidden;
      padding: 5rem 2rem;
      text-align: center;
      background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(6,182,212,0.06) 100%);
      border: 1px solid rgba(99,102,241,0.15);
    }
    .hp-cta::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(99,102,241,0.2), transparent 70%);
      pointer-events: none;
    }
    .hp-cta-title {
      font-size: clamp(1.8rem, 4vw, 3rem);
      font-weight: 900;
      color: #fafafa;
      letter-spacing: -0.03em;
      margin-bottom: 1rem;
      position: relative;
    }
    .hp-cta-sub {
      color: #71717a;
      font-size: 1rem;
      margin-bottom: 2.5rem;
      max-width: 440px;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.7;
      position: relative;
    }
    .hp-cta-buttons {
      display: flex;
      gap: 14px;
      justify-content: center;
      flex-wrap: wrap;
      position: relative;
    }
    @keyframes fade-down {
      from { opacity: 0; transform: translateY(-16px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fade-up {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes pulse-dot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50%       { opacity: 0.6; transform: scale(0.85); }
    }
    @media (min-width: 640px) {
      .process-grid { grid-template-columns: repeat(3, 1fr); }
    }
    @media (max-width: 480px) {
      .svc-item { padding: 1.25rem 1.25rem; }
      .hp-stat  { padding: 1.5rem 0.75rem; }
    }
