/* Skilleze home — design v3: neutral black / white + blue accent, image-free hero, illustrated cards.
   Loaded after home.css + home-sections.css (only index.html uses it). */

/* ===================== 1. palette ===================== */
html.home-v2 {
  --hv-bg: #09090B; --hv-bg-rgb: 9, 9, 11;
  --hv-card-a: #131418; --hv-card-b: #0E0F13;
  --hv-sheen: rgba(139, 92, 246, 0.09);
  --hv-primary: #A78BFA; --hv-secondary: #C4B5FD;
  --hv-text: #F5F6F8; --hv-text2: #9AA1AE;
  --hv-border: rgba(255, 255, 255, 0.11); --hv-line: rgba(255, 255, 255, 0.09);
  --hv-pill-bg: rgba(139, 92, 246, 0.12); --hv-pill-border: rgba(139, 92, 246, 0.30); --hv-pill-text: #C4B5FD;
  --hv-btn-a: #7C3AED; --hv-btn-b: #8B5CF6; --hv-btn-text: #FFFFFF; --hv-btn-glow: rgba(124, 58, 237, 0.38);
  --hv-icon-bg: rgba(139, 92, 246, 0.12); --hv-icon-border: rgba(139, 92, 246, 0.28);
  --hv-card-shadow: rgba(0, 0, 0, 0.55); --hv-checkmark: #FFFFFF;
  --hv-disc-a: rgba(139, 92, 246, 0.20); --hv-disc-b: rgba(139, 92, 246, 0.03); --hv-disc-rim: rgba(139, 92, 246, 0.30);
  --hv-tg-bg: rgba(20, 21, 26, 0.92); --hv-tg-border: rgba(255, 255, 255, 0.14); --hv-tg-thumb: #8B5CF6; --hv-sun: #FFFFFF; --hv-moon: #F5F6F8;
  --surface-950: #09090B;
  --cyan-500: #A78BFA; --cyan-400: #C4B5FD; --emerald-500: #A78BFA; --emerald-400: #C4B5FD;
  --gold-400: #A78BFA; --gold-500: #8B5CF6; --gold-text: #C4B5FD;
  --sk-cyan: #A78BFA; --sk-green: #A78BFA; --sk-gold: #C4B5FD;
  /* illustration colours */
  --il-blue-a: #B79CFF; --il-blue-b: #7C3AED; --il-blue-c: #5B21B6;
  --il-dark-a: #8A7EC0; --il-dark-b: #473C78; --il-dark-c: #2D2557;
  --il-case-a: #8F84C4; --il-case-b: #4D4284; --il-case-c: #342B63;
  --il-blob: rgba(139, 92, 246, 0.20);
}
html.home-v2[data-theme="light"] {
  --hv-bg: #F8F7FC; --hv-bg-rgb: 248, 247, 252;
  --hv-card-a: #FFFFFF; --hv-card-b: #FFFFFF;
  --hv-sheen: rgba(109, 40, 217, 0.06);
  --hv-primary: #6D28D9; --hv-secondary: #7C3AED;
  --hv-text: #110E1F; --hv-text2: #5F5A72;
  --hv-border: rgba(109, 40, 217, 0.14); --hv-line: rgba(17, 14, 31, 0.08);
  --hv-pill-bg: rgba(109, 40, 217, 0.08); --hv-pill-border: rgba(109, 40, 217, 0.16); --hv-pill-text: #5B21B6;
  --hv-btn-a: #7C3AED; --hv-btn-b: #6D28D9; --hv-btn-text: #FFFFFF; --hv-btn-glow: rgba(109, 40, 217, 0.32);
  --hv-icon-bg: rgba(109, 40, 217, 0.08); --hv-icon-border: rgba(109, 40, 217, 0.14);
  --hv-card-shadow: rgba(91, 33, 182, 0.14); --hv-checkmark: #FFFFFF;
  --hv-disc-a: rgba(109, 40, 217, 0.14); --hv-disc-b: rgba(109, 40, 217, 0.02); --hv-disc-rim: rgba(109, 40, 217, 0.14);
  --hv-tg-bg: #FFFFFF; --hv-tg-border: rgba(17, 14, 31, 0.10); --hv-tg-thumb: #E8E4F4; --hv-sun: #F59E0B; --hv-moon: #5B5470;
  --sk-black: #F8F7FC; --sk-graphite: #FFFFFF; --sk-slate: #F1EEFA; --sk-border: #E4DFF2;
  --sk-text-primary: #110E1F; --sk-text-secondary: #3E3856; --sk-text-muted: #5F5A72;
  --sk-cyan: #6D28D9; --sk-green: #6D28D9; --sk-gold: #5B21B6;
  --surface-950: #F8F7FC; --surface-900: #FFFFFF; --surface-850: #F3F1FA; --surface-800: #EAE6F6; --surface-700: #DAD4EC;
  --line: #E4DFF2; --line-strong: #CFC7E6;
  --text-primary: #110E1F; --text-secondary: #3E3856; --text-muted: #5F5A72;
  --cyan-500: #6D28D9; --cyan-400: #7C3AED; --cyan-600: #5B21B6; --emerald-500: #6D28D9; --emerald-400: #7C3AED;
  --gold-400: #6D28D9; --gold-500: #5B21B6; --gold-text: #6D28D9;
  --il-blue-a: #9B7BFF; --il-blue-b: #7C3AED; --il-blue-c: #5B21B6;
  --il-dark-a: #43337A; --il-dark-b: #1F1650; --il-dark-c: #120B33;
  --il-case-a: #3B2F66; --il-case-b: #221A47; --il-case-c: #150F2E;
  --il-blob: rgba(109, 40, 217, 0.09);
}

/* ===================== 2. hero: no image, centred ===================== */
html.home-v2 section.hv-hero { padding-top: 86px !important; }
.hv3-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 60% at 50% 0%, var(--hv-disc-a) 0%, transparent 72%),
    radial-gradient(circle, var(--hv-line) 1.2px, transparent 1.6px) 0 0 / 28px 28px;
  -webkit-mask-image: linear-gradient(#000 45%, transparent 95%); mask-image: linear-gradient(#000 45%, transparent 95%);
}
.hv-top { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 36px; }
.hv-copy { display: flex; flex-direction: column; align-items: center; padding-bottom: 56px; }
html.home-v2 .hv-title { max-width: 15.5em; margin-inline: auto; font-size: clamp(2.6rem, 4.1vw, 4.4rem) !important; letter-spacing: -0.022em; word-spacing: .04em; text-wrap: balance; }
html.home-v2 .hv-lead { max-width: 36em; margin-inline: auto; }
.hv-badge { margin-bottom: 22px; }

/* ===================== 3. cards like the reference ===================== */
.hv-cards { gap: 32px; padding-bottom: 56px; }
.hv3-card {
  display: block !important; position: relative; min-height: 0 !important; overflow: hidden;
  padding: 34px 38px !important; border-radius: 30px !important;
}
.hv3-body { position: relative; z-index: 2; max-width: 54%; }
.hv3-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 10px !important; font-size: 12.5px; letter-spacing: .03em; }
.hv3-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.home-v2 .hv3-card .hv-card-title { margin-top: 16px; font-size: clamp(1.6rem, 2vw, 2.1rem) !important; line-height: 1.12 !important; letter-spacing: -0.03em; }
html.home-v2 .hv3-card .hv-card-desc { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--hv-text2); opacity: 1; }
.hv3-card .hv-list { margin-top: 20px; row-gap: 11px; }
.hv3-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; margin-top: 28px; padding: 0 26px; border-radius: 999px;
  border: 1.5px solid var(--hv-primary); color: var(--hv-primary); background: transparent;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif); font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  position: relative; z-index: 3; transition: background-color .25s ease, color .25s ease, transform .3s cubic-bezier(.16,1,.3,1);
}
html.home-v2[data-theme="light"] .hv3-btn { background: #fff; }
.hv3-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hv3-btn:hover { background: var(--hv-primary); color: var(--hv-btn-text); transform: translateY(-2px); }
.hv3-art { position: absolute; z-index: 1; right: 26px; top: 52%; width: 42%; max-width: 310px; aspect-ratio: 260 / 230; transform: translateY(-50%); pointer-events: none; }
.hv3-art::before { content: ""; position: absolute; right: -8%; top: -12%; width: 112%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--il-blob), transparent 72%); }
.hv3-ill { position: relative; width: 100%; height: 100%; display: block; overflow: visible; }

/* ===================== 4. neutral tweaks for the rest ===================== */
html.home-v2 .hv-cta-sec a[href*="wa.me"] {
  background: transparent !important; color: var(--hv-text) !important; border: 1.5px solid var(--hv-border) !important; box-shadow: none !important;
}
html.home-v2 .hv-cta-sec a[href*="wa.me"]:hover { border-color: var(--hv-primary) !important; color: var(--hv-primary) !important; }
html.home-v2 .hv-cta-sec a[href*="wa.me"] svg { color: var(--hv-primary) !important; }
html.home-v2 .hv-cta-sec { background: radial-gradient(70% 110% at 50% 0%, var(--hv-disc-a) 0%, transparent 70%), linear-gradient(160deg, var(--hv-card-a), var(--hv-card-b)) !important; }
html.home-v2 .hv-ccard:hover, html.home-v2 .hv-card:hover { border-color: var(--hv-primary) !important; }

@media (max-width: 920px) { .hv3-body { max-width: 100%; } .hv3-art { display: none; } }

/* ===================== 5. motion for the new hero ===================== */
@keyframes hv-bob { from { translate: 0 0; } to { translate: 0 -9px; } }
.hv3-ill { animation: hv-bob 6.5s ease-in-out infinite alternate; will-change: transform; }
.hv-card + .hv-card .hv3-ill { animation-delay: -3.2s; }
/* paused whenever the hero is off-screen / tab hidden (class set by js/home.js) */
.hv-hero.is-offscreen .hv3-ill { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hv3-ill { animation: none; will-change: auto; } }

/* ===================== 6. keep fixed helpers on-palette (no green) ===================== */
html.home-v2 .floating-whatsapp-widget {
  background: linear-gradient(135deg, var(--hv-btn-a), var(--hv-btn-b)) !important;
  color: var(--hv-btn-text) !important;
  box-shadow: 0 12px 30px -10px var(--hv-btn-glow) !important;
}
html.home-v2 .floating-whatsapp-widget:hover { box-shadow: 0 16px 34px -10px var(--hv-btn-glow) !important; }
html.home-v2 a[href*="wa.me"].bg-\[\#075E54\] {
  background: var(--hv-card-a) !important; color: var(--hv-text) !important; border: 1px solid var(--hv-border);
}
html.home-v2 .md\:hidden.fixed.bottom-0 > button, html.home-v2 .md\:hidden.fixed.bottom-0 button { color: var(--hv-btn-text) !important; background: linear-gradient(135deg, var(--hv-btn-a), var(--hv-btn-b)) !important; }

/* ===================== 7. small screens ===================== */
@media (max-width: 640px) {
  .hv3-card { padding: 26px 22px !important; border-radius: 26px !important; }
  .hv-cards { gap: 20px; }
  .hv3-btn { width: 100%; justify-content: center; }
}

@media (min-width: 921px) and (max-width: 1280px) {
  .hv3-card { padding: 30px 28px !important; }
  .hv3-body { max-width: 60%; }
  .hv3-art { width: 34%; right: 18px; }
  .hv3-btn { padding: 0 20px; font-size: 14px; }
}
.hv3-btn { white-space: nowrap; }

/* ===================== 8. section buttons: never cut off, any width ===================== */
html.home-v2 main :is(.hv-guide, .hv-panel, .hv-cta-sec) a[href^="/"] > button,
html.home-v2 main .hv-more button,
html.home-v2 .hv-cta-sec a[href*="wa.me"] {
  height: auto !important; min-height: 54px; max-width: 100%;
  padding: 14px 30px !important; white-space: normal !important; text-align: center; line-height: 1.25;
  box-sizing: border-box;
}
html.home-v2 main :is(.hv-guide, .hv-panel, .hv-cta-sec, .hv-more) a:has(> button) { display: inline-block; max-width: 100%; }
html.home-v2 main .hv-more button { min-height: 52px; }
@media (max-width: 560px) {
  html.home-v2 main :is(.hv-guide, .hv-panel, .hv-cta-sec, .hv-more) a:has(> button),
  html.home-v2 .hv-cta-sec a[href*="wa.me"] { display: flex; width: 100%; }
  html.home-v2 main :is(.hv-guide, .hv-panel, .hv-cta-sec) a[href^="/"] > button,
  html.home-v2 main .hv-more button,
  html.home-v2 .hv-cta-sec a[href*="wa.me"] { width: 100%; justify-content: center; padding: 14px 20px !important; font-size: 15px !important; }
  html.home-v2 .hv-cta-sec > div.relative > div { width: 100%; }
}

/* ===================== 9. floating helpers: never on top of the mobile Call / WhatsApp / Apply bar ===================== */
.back-to-top-btn {
  width: 46px; height: 46px; background: var(--hv-card-a) !important; color: var(--hv-primary) !important;
  border: 1.5px solid var(--hv-primary) !important; box-shadow: 0 10px 24px -10px var(--hv-card-shadow);
  transform: translateY(8px); transition: opacity .3s ease, visibility .3s ease, transform .3s cubic-bezier(.16,1,.3,1), background-color .25s ease, color .25s ease !important;
}
.back-to-top-btn.visible { transform: none; }
.back-to-top-btn svg { width: 22px; height: 22px; }
.back-to-top-btn:hover { background: var(--hv-primary) !important; color: var(--hv-btn-text) !important; box-shadow: 0 14px 28px -10px var(--hv-btn-glow); }
.back-to-top-btn:focus-visible, .floating-whatsapp-widget:focus-visible { outline: 2px solid var(--hv-primary); outline-offset: 3px; }
@media (max-width: 767px) {
  /* the fixed bar is ~68px tall: sit comfortably above it (plus the iOS home-indicator inset) */
  html.home-v2 .back-to-top-btn { left: 14px !important; bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; width: 44px; height: 44px; }
  html.home-v2 .floating-whatsapp-widget {
    right: 14px !important; bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    width: 52px; height: 52px; padding: 0 !important; justify-content: center; border-radius: 50% !important;
  }
  html.home-v2 .floating-whatsapp-widget span { display: none !important; }
  html.home-v2 .hv-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ===================== 10. course cards: tech logos rise on hover ===================== */
.hv-tagwrap { position: relative; }
.hv-tags { transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1); }
.hv-logos {
  position: absolute; left: 0; right: 0; top: -2px; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; pointer-events: none;
}
.hv-lg {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  color: var(--hv-primary); background: var(--hv-card-a); border: 1.5px solid var(--hv-border);
  box-shadow: 0 12px 22px -12px var(--hv-card-shadow);
  opacity: 0; transform: translate3d(0, 14px, 0) scale(.82);
  transition: opacity .3s ease, transform .45s cubic-bezier(.16, 1, .3, 1), border-color .25s ease;
  transition-delay: 0ms;
}
.hv-lg svg { width: 22px; height: 22px; fill: currentColor; }
.hv-lg-dots { display: inline-flex; gap: 4px; opacity: 0; transition: opacity .3s ease; transition-delay: calc(var(--k) * 55ms); flex: none; }
.hv-lg-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--hv-primary); display: block; }
.hv-lg-go { background: var(--hv-primary); color: var(--hv-btn-text); border-color: transparent; }
.hv-lg-go svg { width: 20px; height: 20px; fill: none; }
@media (hover: hover) {
  html.home-v2 .hv-ccard:hover .hv-tags, html.home-v2 .hv-ccard:focus-within .hv-tags { opacity: 0; transform: translateY(8px); }
  html.home-v2 .hv-ccard:hover .hv-lg, html.home-v2 .hv-ccard:focus-within .hv-lg { opacity: 1; transform: translate3d(0, -3px, 0) scale(1); transition-delay: calc(var(--k) * 55ms); border-color: var(--hv-primary); }
  html.home-v2 .hv-ccard:hover .hv-lg-dots, html.home-v2 .hv-ccard:focus-within .hv-lg-dots { opacity: 1; }
  html.home-v2 .hv-ccard:hover .hv-lg-dots i { animation: hv-dot 1s ease-in-out infinite; }
  html.home-v2 .hv-ccard:hover .hv-lg-dots i:nth-child(2) { animation-delay: .15s; }
  html.home-v2 .hv-ccard:hover .hv-lg-dots i:nth-child(3) { animation-delay: .3s; }
}
@keyframes hv-dot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 400px) { .hv-lg { width: 40px; height: 40px; } .hv-lg svg { width: 19px; height: 19px; } .hv-logos { gap: 7px; } }
@media (prefers-reduced-motion: reduce) { .hv-lg, .hv-tags, .hv-lg-dots { transition-duration: .01ms; } .hv-lg-dots i { animation: none !important; } }

.back-to-top-btn { padding: 0 !important; min-width: 0; }
.back-to-top-btn svg { flex: none; }
