@charset "utf-8";
/* =====================================================================
   Default.aspx — التصميم الاحترافي الجديد لبوابة برنامج المدرسة الذكية
   محلي بالكامل (بدون CDN) — RTL
   ===================================================================== */

:root {
  --hp-navy: #071631;
  --hp-navy-2: #0D2550;
  --hp-navy-3: #13336B;
  --hp-blue: #2F6BFF;
  --hp-blue-2: #5B8CFF;
  --hp-cyan: #22D3EE;
  --hp-teal: #10B39B;
  --hp-gold: #F6B73C;
  --hp-rose: #F43F5E;
  --hp-violet: #8B5CF6;
  --hp-ink: #0B1730;
  --hp-text: #334155;
  --hp-muted: #6B7A90;
  --hp-line: #E3E9F3;
  --hp-bg: #F5F7FC;
  --hp-card: #FFFFFF;
  --hp-r-lg: 28px;
  --hp-r: 20px;
  --hp-r-sm: 14px;
  --hp-shadow-sm: 0 4px 14px rgba(7, 22, 49, .06);
  --hp-shadow: 0 20px 50px -18px rgba(7, 22, 49, .22);
  --hp-shadow-lg: 0 40px 80px -30px rgba(7, 22, 49, .45);
  --hp-font: 'Changa', 'Noto Kufi Arabic', Tahoma, sans-serif;
  --hp-ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body.q8sch-portal {
  margin: 0;
  font-family: var(--hp-font);
  color: var(--hp-text);
  background: var(--hp-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.q8sch-portal *, body.q8sch-portal *::before, body.q8sch-portal *::after { box-sizing: border-box; }
body.q8sch-portal a { text-decoration: none; }
body.q8sch-portal img { max-width: 100%; height: auto; }
body.q8sch-portal input, body.q8sch-portal textarea, body.q8sch-portal select { font-family: var(--hp-font); }
.q8sch-portal :where(h1, h2, h3, h4) { color: var(--hp-ink); font-weight: 800; }

/* ===== Loader (UpdateProgress) ===== */
.hp-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7, 22, 49, .55);
  backdrop-filter: blur(6px);
}
.hp-loader-box {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 26px; border-radius: 18px;
  background: #fff; box-shadow: var(--hp-shadow-lg);
  font-family: var(--hp-font); font-weight: 800; color: var(--hp-ink); font-size: 1.05rem;
}
.hp-spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid #DCE6FF; border-top-color: var(--hp-blue);
  animation: hp-spin .8s linear infinite;
}
@keyframes hp-spin { to { transform: rotate(360deg); } }

/* ===== Buttons ===== */
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 800; font-size: 1rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--hp-ease), box-shadow .25s var(--hp-ease), background .25s, color .25s;
  white-space: nowrap;
}
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--hp-blue) 0%, #4F46E5 100%);
  box-shadow: 0 14px 30px -10px rgba(47, 107, 255, .65);
}
.hp-btn-primary:hover { box-shadow: 0 18px 36px -10px rgba(47, 107, 255, .8); }
.hp-btn-ghost {
  color: #fff !important;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}
.hp-btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.hp-btn-light { color: var(--hp-navy) !important; background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.hp-btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }

/* ===== Header ===== */
.hp-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1030;
  padding: 14px 0;
  transition: padding .3s var(--hp-ease), background .3s, box-shadow .3s, backdrop-filter .3s;
}
.hp-header.is-scrolled {
  padding: 8px 0;
  background: rgba(7, 22, 49, .82);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.hp-header .navbar { padding: 0; }
.hp-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; }
.hp-brand img {
  width: 46px; height: 46px; object-fit: contain;
  border-radius: 14px; padding: 5px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .4);
}
.hp-brand b { display: block; font-size: 1.1rem; font-weight: 800; line-height: 1.15; }
.hp-brand small { display: block; font-size: .72rem; font-weight: 500; opacity: .7; letter-spacing: .08em; direction: ltr; text-align: right; }

.hp-header .nav-link {
  position: relative;
  color: rgba(255, 255, 255, .78) !important;
  font-weight: 700; font-size: .95rem;
  padding: .5rem .9rem !important;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.hp-header .nav-link:hover, .hp-header .nav-link.active { color: #fff !important; background: rgba(255, 255, 255, .1); }

.hp-nav-actions { display: flex; align-items: center; gap: 8px; }
.hp-nav-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255, 255, 255, .7) !important; font-weight: 700; font-size: .85rem;
  padding: .55rem .9rem; border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, .25);
  transition: all .2s;
}
.hp-nav-ghost:hover { color: #fff !important; border-color: rgba(255, 255, 255, .5); background: rgba(244, 63, 94, .18); }

.hp-toggler {
  border: 1px solid rgba(255, 255, 255, .25) !important;
  color: #fff; font-size: 1.5rem; padding: .25rem .6rem; border-radius: 12px;
}
.hp-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .15) !important; }

/* ===== Hero ===== */
.hp-hero {
  position: relative; overflow: hidden;
  padding: 150px 0 190px;
  color: #fff;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(47, 107, 255, .45), transparent 60%),
    radial-gradient(700px 480px at 5% 90%, rgba(16, 179, 155, .32), transparent 60%),
    radial-gradient(500px 300px at 50% 50%, rgba(139, 92, 246, .18), transparent 70%),
    linear-gradient(160deg, var(--hp-navy) 0%, var(--hp-navy-2) 55%, #0A2047 100%);
}
.hp-hero::before { /* grid pattern */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hp-hero::after { /* curved bottom */
  content: ""; position: absolute; right: 0; left: 0; bottom: -1px; height: 90px;
  background: var(--hp-bg);
  clip-path: ellipse(75% 100% at 50% 100%);
}
.hp-hero .container { position: relative; z-index: 2; }

.hp-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 1; animation: hp-drift 14s ease-in-out infinite; }
.hp-orb.o1 { width: 280px; height: 280px; background: var(--hp-blue); top: 12%; left: 8%; }
.hp-orb.o2 { width: 220px; height: 220px; background: var(--hp-teal); bottom: 18%; right: 40%; animation-delay: -5s; }
@keyframes hp-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -25px); } }

.hp-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .45rem .95rem .45rem 1.1rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  font-size: .88rem; font-weight: 700; color: #DCE7FF;
  backdrop-filter: blur(8px);
  margin-bottom: 1.4rem;
}
.hp-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); animation: hp-pulse 2s infinite; }
@keyframes hp-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); } 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }

.hp-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.3; letter-spacing: -.01em;
  margin: 0 0 1.2rem;
}
.hp-grad {
  background: linear-gradient(90deg, #7DD3FC 0%, #A5B4FC 50%, #5EEAD4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hp-hero .lead-text {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.95; color: rgba(226, 235, 255, .82);
  max-width: 54ch; margin: 0 0 2rem; font-weight: 500;
}
.hp-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.4rem; }

.hp-trust { display: flex; flex-wrap: wrap; gap: 28px; }
.hp-trust-item { display: flex; align-items: center; gap: 12px; }
.hp-trust-item i {
  width: 44px; height: 44px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 1.2rem; color: #A5C4FF;
}
.hp-trust-item b { display: block; color: #fff; font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.hp-trust-item span { font-size: .82rem; color: rgba(226, 235, 255, .65); font-weight: 600; }

/* Hero visual */
.hp-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hp-visual-ring {
  position: absolute; top: 50%; left: 50%; width: 420px; height: 420px; max-width: 95%;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .18);
  animation: hp-spin 60s linear infinite;
}
.hp-visual-ring::before {
  content: ""; position: absolute; inset: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  background: radial-gradient(circle, rgba(47, 107, 255, .25), transparent 70%);
}
.hp-phone {
  position: relative; z-index: 2;
  width: 270px; max-width: 72%;
  padding: 12px; border-radius: 42px;
  background: linear-gradient(160deg, #1E2A44, #0B1324);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .08), var(--hp-shadow-lg), 0 0 80px -10px rgba(47, 107, 255, .5);
  animation: hp-float 6s ease-in-out infinite;
}
.hp-phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 20px; border-radius: 20px; background: #0B1324; z-index: 3;
}
.hp-phone img { display: block; width: 100%; border-radius: 32px; }
@keyframes hp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hp-float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: var(--hp-ink);
  box-shadow: var(--hp-shadow);
  font-size: .85rem; font-weight: 800; white-space: nowrap;
  animation: hp-float 6s ease-in-out infinite;
}
.hp-float-card small { display: block; font-weight: 600; color: var(--hp-muted); font-size: .72rem; }
.hp-float-card .ic {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem;
}
.hp-float-card.c1 { top: 14%; right: 0; animation-delay: -1s; }
.hp-float-card.c1 .ic { background: linear-gradient(135deg, #10B981, #059669); }
.hp-float-card.c2 { bottom: 22%; left: -10px; animation-delay: -3s; }
.hp-float-card.c2 .ic { background: linear-gradient(135deg, var(--hp-blue), #4F46E5); }
.hp-float-card.c3 { bottom: 4%; right: 6%; animation-delay: -4.5s; }
.hp-float-card.c3 .ic { background: linear-gradient(135deg, #F59E0B, #F97316); }

/* ===== Section basics ===== */
.hp-section { position: relative; padding: 96px 0; }
.hp-section-alt { background: #fff; }
.hp-head { text-align: center; max-width: 680px; margin: 0 auto 3.2rem; }
.hp-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .35rem .9rem; border-radius: 999px;
  background: #E8EFFF; color: var(--hp-blue);
  font-size: .82rem; font-weight: 800; letter-spacing: .02em;
  margin-bottom: .9rem;
}
.hp-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); line-height: 1.35; margin: 0 0 .8rem; }
.hp-head p { margin: 0; color: var(--hp-muted); font-size: 1.05rem; line-height: 1.85; font-weight: 500; }

/* ===== Login ===== */
.hp-login { margin-top: -170px; padding-top: 0; z-index: 5; }
.hp-login-wrap {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--hp-r-lg);
  box-shadow: var(--hp-shadow-lg);
  padding: 34px;
}
.hp-login-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.hp-login-top h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.hp-login-top p { margin: 4px 0 0; color: var(--hp-muted); font-weight: 600; }
.hp-secure { display: inline-flex; align-items: center; gap: 8px; padding: .5rem 1rem; border-radius: 999px; background: #ECFDF5; color: #047857; font-weight: 800; font-size: .85rem; }

.hp-login-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.hp-login-card {
  --accent: var(--hp-blue);
  --accent-2: #4F46E5;
  --accent-soft: #E8EFFF;
  position: relative; overflow: hidden;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-r);
  padding: 28px 26px 26px;
  box-shadow: var(--hp-shadow-sm);
  transition: transform .3s var(--hp-ease), box-shadow .3s var(--hp-ease), border-color .3s;
}
.hp-login-card.is-parent { --accent: var(--hp-teal); --accent-2: #0891B2; --accent-soft: #E0F7F3; }
.hp-login-card::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.hp-login-card::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  top: -110px; left: -90px; background: var(--accent-soft); opacity: .7; z-index: 0;
}
.hp-login-card > * { position: relative; z-index: 1; }
.hp-login-card:hover, .hp-login-card:focus-within { transform: translateY(-4px); box-shadow: var(--hp-shadow); border-color: transparent; }

.hp-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hp-card-ico {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 24px -10px var(--accent);
}
.hp-card-head h3 { margin: 0; font-size: 1.2rem; }
.hp-card-head p { margin: 2px 0 0; font-size: .86rem; color: var(--hp-muted); font-weight: 600; }

.hp-field { margin-bottom: 14px; }
.hp-field label { display: block; font-size: .86rem; font-weight: 800; color: var(--hp-ink); margin-bottom: 6px; }
.hp-input { position: relative; }
.hp-input > i {
  position: absolute; top: 50%; right: 16px; transform: translateY(-50%);
  color: #94A3B8; font-size: 1.1rem; pointer-events: none; transition: color .2s;
}
.hp-input:focus-within > i { color: var(--accent); }

body.q8sch-portal .hp-login-card .form-control {
  height: 54px !important;
  border-radius: 14px !important;
  border: 1.5px solid #DCE3EE !important;
  background: #F8FAFD !important;
  padding: 0 48px 0 16px !important;
  font-family: var(--hp-font) !important;
  font-size: 1.1rem !important; font-weight: 800 !important;
  color: var(--hp-ink) !important;
  direction: ltr; text-align: left;
  box-shadow: none !important;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
body.q8sch-portal .hp-login-card .form-control::placeholder { color: #A3AFC2; font-weight: 600; font-size: .95rem; direction: rtl; text-align: right; }
body.q8sch-portal .hp-login-card .form-control:focus {
  background: #fff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-soft) !important;
}

.hp-remember { display: flex; align-items: center; margin: 4px 0 18px; }
.hp-remember label { font-weight: 700; color: var(--hp-text); cursor: pointer; margin: 0 6px 0 0; font-size: .95rem; }
body.q8sch-portal .hp-remember input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; }

body.q8sch-portal .hp-login-card input[type="submit"] {
  width: 100%; height: 54px;
  border: none !important; border-radius: 14px !important;
  font-family: var(--hp-font) !important; font-weight: 800 !important; font-size: 1.1rem !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  box-shadow: 0 14px 28px -12px var(--accent) !important;
  cursor: pointer;
  transition: transform .2s var(--hp-ease), filter .2s, box-shadow .2s;
}
body.q8sch-portal .hp-login-card input[type="submit"]:hover { transform: translateY(-2px); filter: brightness(1.06); }
body.q8sch-portal .hp-login-card input[type="submit"]:active { transform: translateY(0); }

.hp-otp {
  margin-top: 18px; padding: 18px; text-align: center;
  border-radius: var(--hp-r-sm);
  background: linear-gradient(180deg, #FFF8EC, #FFF);
  border: 1px solid #FCD9A0;
}
.hp-otp::before {
  content: "\F47B"; font-family: "bootstrap-icons"; display: block;
  font-size: 1.8rem; color: #F59E0B; margin-bottom: 4px;
}
.hp-otp-warn { display: inline-block; color: #B91C1C; font-weight: 800; font-size: .95rem; line-height: 1.7; }
.hp-otp-info { display: inline-block; color: var(--hp-blue); font-weight: 800; font-size: .95rem; direction: ltr; }
body.q8sch-portal .hp-otp .form-control { padding: 0 16px !important; text-align: center !important; letter-spacing: .5em; font-size: 1.4rem !important; margin: 10px 0 12px; }

/* ===== Products (promos) ===== */
.hp-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.hp-product {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--hp-r);
  background: #fff; border: 1px solid var(--hp-line);
  box-shadow: var(--hp-shadow-sm);
  color: inherit;
  transition: transform .3s var(--hp-ease), box-shadow .3s var(--hp-ease), border-color .3s;
}
.hp-product:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow); border-color: #C9D8FF; }
.hp-product-logo { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 16px; background: #F1F5FB; padding: 6px; }
.hp-product-logo svg { width: 100%; height: 100%; }
.hp-product-body { flex: 1; min-width: 0; }
.hp-product-body small { display: block; color: var(--hp-teal); font-weight: 800; font-size: .78rem; }
.hp-product-body h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.hp-product-body h3 span { color: var(--hp-blue); }
.hp-product-body p { margin: 0; color: var(--hp-muted); font-size: .88rem; line-height: 1.6; font-weight: 500; }
.hp-product-go {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hp-navy); color: #fff; font-size: 1.1rem;
  transition: transform .3s var(--hp-ease), background .3s;
}
.hp-product:hover .hp-product-go { transform: translateX(-4px); background: var(--hp-blue); }

/* ===== About ===== */
.hp-about-media { position: relative; }
.hp-about-media img { position: relative; z-index: 1; border-radius: var(--hp-r-lg); box-shadow: var(--hp-shadow); width: 100%; }
.hp-about-media::before {
  content: ""; position: absolute; inset: 24px -18px -18px 24px; border-radius: var(--hp-r-lg);
  background: linear-gradient(135deg, var(--hp-blue), var(--hp-teal)); opacity: .14; z-index: 0;
}
.hp-about-badge {
  position: absolute; z-index: 2; bottom: -22px; left: 24px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 18px; background: #fff; box-shadow: var(--hp-shadow);
}
.hp-about-badge i { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #ECFDF5; color: #059669; font-size: 1.3rem; }
.hp-about-badge b { display: block; color: var(--hp-ink); font-size: 1rem; }
.hp-about-badge span { font-size: .8rem; color: var(--hp-muted); font-weight: 600; }

.hp-about-text h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.4; margin: 0 0 1rem; }
.hp-about-text .lead-p { font-size: 1.12rem; color: var(--hp-ink); font-weight: 700; line-height: 1.8; }
.hp-about-text p { color: var(--hp-muted); line-height: 1.9; font-weight: 500; }
.hp-checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 12px; }
.hp-checks li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--hp-ink); }
.hp-checks li i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #E0F7F3; color: var(--hp-teal); }

/* ===== Services ===== */
.hp-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hp-service {
  --c1: var(--hp-blue); --c2: #4F46E5; --soft: #E8EFFF;
  position: relative; overflow: hidden;
  padding: 30px 26px; border-radius: var(--hp-r);
  background: #fff; border: 1px solid var(--hp-line);
  transition: transform .35s var(--hp-ease), box-shadow .35s var(--hp-ease), border-color .35s;
}
.hp-service::after {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px; border-radius: 50%;
  background: var(--soft); opacity: 0; transform: scale(.6);
  transition: opacity .35s, transform .35s var(--hp-ease);
}
.hp-service > * { position: relative; z-index: 1; }
.hp-service:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow); border-color: transparent; }
.hp-service:hover::after { opacity: 1; transform: scale(1); }
.hp-service-ico {
  width: 58px; height: 58px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.55rem; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 14px 26px -12px var(--c1);
}
.hp-service h3 { font-size: 1.18rem; margin: 0 0 8px; }
.hp-service p { margin: 0; color: var(--hp-muted); line-height: 1.8; font-weight: 500; font-size: .96rem; }
.hp-service.s2 { --c1: #F43F5E; --c2: #E11D48; --soft: #FFE4E9; }
.hp-service.s3 { --c1: #F59E0B; --c2: #F97316; --soft: #FEF3C7; }
.hp-service.s4 { --c1: #8B5CF6; --c2: #6D28D9; --soft: #EDE9FE; }
.hp-service.s5 { --c1: #10B39B; --c2: #0891B2; --soft: #DDF7F2; }
.hp-service.s6 { --c1: #0EA5E9; --c2: #2563EB; --soft: #E0F2FE; }

/* ===== Features (dark band) ===== */
.hp-dark {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(47, 107, 255, .35), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(16, 179, 155, .25), transparent 60%),
    var(--hp-navy);
}
.hp-dark .hp-head h2 { color: #fff; }
.hp-dark .hp-head p { color: rgba(226, 235, 255, .7); }
.hp-dark .hp-kicker { background: rgba(255, 255, 255, .1); color: #A5C4FF; }
.hp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hp-feature {
  padding: 30px 24px; border-radius: var(--hp-r);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: background .3s, transform .3s var(--hp-ease), border-color .3s;
}
.hp-feature:hover { background: rgba(255, 255, 255, .08); transform: translateY(-5px); border-color: rgba(165, 196, 255, .35); }
.hp-feature i {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(47, 107, 255, .9), rgba(16, 179, 155, .9));
}
.hp-feature h3 { color: #fff; font-size: 1.12rem; margin: 0 0 8px; }
.hp-feature p { margin: 0; color: rgba(226, 235, 255, .68); line-height: 1.85; font-size: .94rem; font-weight: 500; }

/* ===== Stats ===== */
.hp-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff; border: 1px solid var(--hp-line);
  border-radius: var(--hp-r-lg); box-shadow: var(--hp-shadow);
  overflow: hidden;
}
.hp-stat { padding: 34px 20px; text-align: center; position: relative; }
.hp-stat + .hp-stat::before { content: ""; position: absolute; right: 0; top: 25%; bottom: 25%; width: 1px; background: var(--hp-line); }
.hp-stat i { font-size: 1.6rem; color: var(--hp-blue); }
.hp-stat .num {
  display: block; margin: 8px 0 4px;
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, var(--hp-navy-3), var(--hp-blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  direction: ltr;
}
.hp-stat span { color: var(--hp-muted); font-weight: 700; font-size: .95rem; }
.hp-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #10B981; margin-left: 6px; animation: hp-pulse 2s infinite; vertical-align: middle; }

/* ===== Contact ===== */
.hp-cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--hp-r-lg);
  padding: 48px;
  color: #fff;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(135deg, #2F6BFF 0%, #4F46E5 55%, #0E7490 100%);
  box-shadow: var(--hp-shadow-lg);
}
.hp-cta-band::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  border: 50px solid rgba(255, 255, 255, .07); left: -80px; bottom: -140px;
}
.hp-cta-band > .row { position: relative; z-index: 1; }
.hp-cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .7rem; }
.hp-cta-band p { color: rgba(255, 255, 255, .85); font-weight: 500; line-height: 1.9; margin: 0 0 1.5rem; }
.hp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hp-contact-list { display: grid; gap: 14px; }
.hp-contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px); color: #fff !important;
  transition: background .25s, transform .25s var(--hp-ease);
}
.hp-contact-item:hover { background: rgba(255, 255, 255, .2); transform: translateX(-4px); }
.hp-contact-item i { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--hp-blue); font-size: 1.25rem; }
.hp-contact-item small { display: block; opacity: .75; font-weight: 600; font-size: .8rem; }
.hp-contact-item b { display: block; font-size: 1rem; word-break: break-all; }

/* Designer (hidden by default — server controlled) */
.hp-designer { padding: 0 0 60px; }
.hp-designer-card { max-width: 340px; margin: 0 auto; text-align: center; padding: 28px; background: #fff; border-radius: var(--hp-r); border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow-sm); }
.hp-designer-card img.designer-logo { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; margin: 10px auto 12px; display: block; }

/* ===== Footer ===== */
.hp-footer { background: var(--hp-navy); color: rgba(226, 235, 255, .7); padding: 64px 0 0; margin-top: 96px; }
.hp-footer h4 { color: #fff; font-size: 1.02rem; margin: 0 0 16px; }
.hp-footer p { line-height: 1.9; font-weight: 500; font-size: .95rem; }
.hp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hp-footer ul a { color: rgba(226, 235, 255, .7); font-weight: 600; transition: color .2s, padding .2s; }
.hp-footer ul a:hover { color: #fff; padding-right: 4px; }
.hp-footer .hp-brand { margin-bottom: 16px; }
.hp-company-logo { max-height: 56px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; }
.hp-footer-bottom {
  margin-top: 48px; padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: .9rem; font-weight: 600;
}
.hp-footer-bottom a { color: #A5C4FF; }

/* Back to top */
.hp-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 1040;
  width: 50px; height: 50px; border-radius: 16px; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--hp-blue), #4F46E5);
  box-shadow: 0 14px 28px -10px rgba(47, 107, 255, .7);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .3s var(--hp-ease);
}
.hp-top.show { opacity: 1; visibility: visible; transform: none; }
.hp-top:hover { transform: translateY(-3px); }

/* ===== Reveal ===== */
.hp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--hp-ease), transform .8s var(--hp-ease); }
.hp-reveal.is-in { opacity: 1; transform: none; }
.hp-reveal.d1 { transition-delay: .1s; }
.hp-reveal.d2 { transition-delay: .2s; }
.hp-reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hp-reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .hp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .hp-header { background: rgba(7, 22, 49, .92); backdrop-filter: blur(14px); padding: 10px 0; }
  .hp-header .navbar-collapse {
    margin-top: 12px; padding: 12px; border-radius: 18px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  }
  .hp-nav-actions { margin-top: 10px; flex-wrap: wrap; }
  .hp-nav-actions > * { flex: 1; justify-content: center; }
  .hp-hero { padding: 120px 0 180px; text-align: center; }
  .hp-hero .lead-text { margin-left: auto; margin-right: auto; }
  .hp-hero-ctas, .hp-trust { justify-content: center; }
  .hp-visual { margin-top: 40px; }
  .hp-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-login-grid, .hp-products { grid-template-columns: 1fr; }
  .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-stat:nth-child(3)::before { display: none; }
  .hp-about-media { margin-bottom: 40px; }
  .hp-cta-band { padding: 34px 24px; }
  .hp-section { padding: 72px 0; }
}
@media (max-width: 575px) {
  .hp-visual { display: none; }
  .hp-hero { padding-bottom: 170px; }
  .hp-login-wrap { padding: 20px 16px; border-radius: 22px; }
  .hp-login-card { padding: 24px 18px 20px; }
  .hp-services, .hp-features { grid-template-columns: 1fr; }
  .hp-float-card { font-size: .75rem; padding: 8px 10px; }
  .hp-float-card .ic { width: 30px; height: 30px; flex-basis: 30px; font-size: .9rem; }
  .hp-float-card.c2 { left: 0; }
  .hp-trust { gap: 18px; }
  .hp-product { flex-wrap: wrap; }
  .hp-top { left: 14px; bottom: 14px; }
}
