/* ============================================================
   home.css — ParsExam / MFTAI homepage redesign
   Professional SaaS / EdTech landing (RTL)
   ============================================================ */

/* ── Page shell ─────────────────────────────────────────────── */
.home-page {
  overflow-x: hidden;
  background: var(--color-bg);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hp-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 80% 60% at 80% 10%, rgba(168, 85, 247, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(99, 102, 241, 0.22), transparent 50%),
    linear-gradient(160deg, #0f172a 0%, #1e1b4b 42%, #2e1065 100%);
  color: #fff;
  overflow: hidden;
}
.hp-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 64px;
  background: var(--color-bg);
  clip-path: ellipse(70% 100% at 50% 100%);
  z-index: 2;
  pointer-events: none;
}
.hp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 960px) {
  .hp-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    padding-inline: var(--space-8);
  }
}

.hp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.hp-kicker-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
  animation: hp-pulse 2s ease-in-out infinite;
}
@keyframes hp-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.08); }
}

.hp-title {
  margin: 0 0 1.15rem;
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #fff;
}
.hp-title-accent {
  background: linear-gradient(115deg, #fb923c 0%, #fbbf24 40%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hp-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
}
.hp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease, background 0.2s ease;
}
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn:active { transform: translateY(0); }
.hp-btn-primary {
  background: linear-gradient(135deg, #f97316, #fb923c 55%, #fbbf24);
  color: #1e1b4b;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
}
.hp-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.45);
  color: #1e1b4b;
}
.hp-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.hp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.hp-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
}
.hp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.hp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.hp-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Hero visual — interactive exam mock */
.hp-visual {
  position: relative;
  min-height: 320px;
}
.hp-visual-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle at 50% 40%, rgba(124, 58, 237, 0.45), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hp-visual-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.45);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}
.hp-visual-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}
.hp-mock {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.2rem 1.25rem;
}
.hp-mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hp-mock-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}
.hp-mock-brand i {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  font-style: normal;
  font-size: 0.85rem;
}
.hp-mock-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #fdba74;
}
.hp-mock-skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.hp-skill {
  text-align: center;
  padding: 0.55rem 0.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: default;
}
.hp-skill:hover,
.hp-skill.is-active {
  transform: translateY(-2px);
  background: rgba(124, 58, 237, 0.28);
  border-color: rgba(167, 139, 250, 0.45);
  color: #fff;
}
.hp-skill b {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.hp-mock-panel {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
}
.hp-mock-q {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.55;
}
.hp-mock-opts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hp-opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.35);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: right;
  font-family: inherit;
  width: 100%;
}
.hp-opt:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(124, 58, 237, 0.2);
}
.hp-opt.is-selected {
  border-color: #a78bfa;
  background: rgba(124, 58, 237, 0.32);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25);
}
.hp-opt-letter {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
}
.hp-mock-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.hp-mock-progress > span {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #f97316);
  transition: width 0.45s ease;
}
.hp-mock-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}
.hp-float {
  position: absolute;
  z-index: 2;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #1e1b4b;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(233, 213, 255, 0.8);
  animation: hp-float 4.5s ease-in-out infinite;
}
.hp-float-a { top: -0.5rem; left: 0.5rem; }
.hp-float-b { bottom: 1.5rem; right: -0.25rem; animation-delay: 1.2s; }
@keyframes hp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (max-width: 959px) {
  .hp-float { display: none; }
  .hp-visual { max-width: 480px; margin-inline: auto; }
}

/* ── Trust strip ────────────────────────────────────────────── */
.hp-trust {
  position: relative;
  z-index: 3;
  margin-top: -1.5rem;
  margin-bottom: 0.5rem;
}
.hp-trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.hp-trust-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 40px rgba(30, 27, 75, 0.08);
  backdrop-filter: blur(12px);
}
@media (min-width: 768px) {
  .hp-trust-card {
    grid-template-columns: repeat(4, 1fr);
    padding: 1.25rem 1.5rem;
  }
}
.hp-trust-item {
  text-align: center;
  padding: 0.5rem;
}
.hp-trust-item strong {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.hp-trust-item span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-body);
  opacity: 0.8;
}

/* ── Sections common ────────────────────────────────────────── */
.hp-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.hp-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.25rem;
  padding: 0 var(--space-4);
}
.hp-section-label {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--color-primary-light);
  letter-spacing: 0.02em;
}
.hp-section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.hp-section-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-body);
  opacity: 0.85;
}

/* ── Capability cards ───────────────────────────────────────── */
.hp-caps {
  background: linear-gradient(180deg, var(--color-bg) 0%, #faf8ff 100%);
}
.hp-caps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 640px) {
  .hp-caps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hp-caps-grid { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
}
.hp-cap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(30, 27, 75, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.hp-cap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hp-cap:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.12);
  border-color: var(--color-border-strong);
  color: inherit;
}
.hp-cap:hover::before { opacity: 1; }
.hp-cap-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: var(--color-primary-light);
}
.hp-cap[data-tone="ielts"] .hp-cap-icon { background: #e0f2fe; }
.hp-cap[data-tone="mcq"] .hp-cap-icon { background: #fff7ed; }
.hp-cap[data-tone="code"] .hp-cap-icon { background: #ede9fe; }
.hp-cap[data-tone="lab"] .hp-cap-icon { background: #dcfce7; }
.hp-cap[data-tone="ai"] .hp-cap-icon { background: #fce7f3; }
.hp-cap[data-tone="cert"] .hp-cap-icon { background: #fef3c7; }
.hp-cap h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-primary);
}
.hp-cap p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-body);
  opacity: 0.88;
  flex: 1;
}
.hp-cap-link {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* ── Platform showcase ──────────────────────────────────────── */
.hp-platform {
  background: #fff;
}
.hp-platform-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 900px) {
  .hp-platform-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
  }
}
.hp-platform-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}
.hp-platform-copy p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-body);
  opacity: 0.9;
}
.hp-checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.hp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.55;
}
.hp-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  margin-top: 0.1rem;
}
.hp-platform-frame {
  position: relative;
  border-radius: 22px;
  padding: 0.85rem;
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.12), rgba(249, 115, 22, 0.08));
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 50px rgba(30, 27, 75, 0.08);
}
.hp-browser {
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 260px;
}
.hp-browser-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hp-browser-top i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #64748b;
}
.hp-browser-top i:nth-child(1) { background: #f87171; }
.hp-browser-top i:nth-child(2) { background: #fbbf24; }
.hp-browser-top i:nth-child(3) { background: #34d399; }
.hp-browser-url {
  margin-inline-start: 0.5rem;
  flex: 1;
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  direction: ltr;
  text-align: left;
}
.hp-browser-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 220px;
}
.hp-browser-side {
  padding: 0.85rem;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(30, 41, 59, 0.5);
}
.hp-browser-main {
  padding: 0.85rem;
}
.hp-browser-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.45rem;
}
.hp-browser-line.w60 { width: 60%; }
.hp-browser-line.w80 { width: 80%; }
.hp-browser-line.w40 { width: 40%; }
.hp-browser-pill {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.hp-browser-opt {
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 0.4rem;
}
.hp-browser-opt.on {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(124, 58, 237, 0.22);
}
@media (max-width: 520px) {
  .hp-browser-body { grid-template-columns: 1fr; }
  .hp-browser-side { border-inline-end: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

/* ── Why MFTAI ──────────────────────────────────────────────── */
.hp-why {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(237, 233, 254, 0.8), transparent 60%),
    var(--color-bg);
}
.hp-why-grid {
  display: grid;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 700px) {
  .hp-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hp-why-grid { grid-template-columns: repeat(3, 1fr); }
}
.hp-why-card {
  padding: 1.35rem 1.25rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.hp-why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(30, 27, 75, 0.08);
}
.hp-why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 900;
  color: #fff;
  background: var(--grad-primary);
  margin-bottom: 0.85rem;
}
.hp-why-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 800;
}
.hp-why-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-body);
  opacity: 0.88;
}
.hp-cred {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--color-border-strong);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text-body);
  font-weight: 600;
}

/* ── Demo ───────────────────────────────────────────────────── */
.hp-demo {
  background: #0f172a;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hp-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(124, 58, 237, 0.25), transparent),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(249, 115, 22, 0.12), transparent);
  pointer-events: none;
}
.hp-demo .hp-section-label {
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
}
.hp-demo .hp-section-title { color: #fff; }
.hp-demo .hp-section-sub { color: rgba(255, 255, 255, 0.65); opacity: 1; }
.hp-demo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 700px) {
  .hp-demo-grid { grid-template-columns: repeat(3, 1fr); }
}
.hp-demo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
  padding: 1.5rem 1.1rem 1.35rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.hp-demo-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  color: #fff;
}
.hp-demo-orb {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
}
.hp-demo-card:hover .hp-demo-orb { transform: scale(1.08) rotate(-3deg); }
.hp-demo-orb.coding {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.55), rgba(15, 23, 42, 0.6));
}
.hp-demo-orb.ielts {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.5), rgba(15, 23, 42, 0.6));
}
.hp-demo-orb.mcq {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.5), rgba(15, 23, 42, 0.6));
}
.hp-demo-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.hp-demo-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
}

/* ── Final CTA ──────────────────────────────────────────────── */
.hp-final {
  padding: clamp(3rem, 6vw, 4.5rem) var(--space-4);
}
.hp-final-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.28);
}
.hp-final-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}
.hp-final-card > * { position: relative; z-index: 1; }
.hp-final-card h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: #fff;
}
.hp-final-card p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}
.hp-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.hp-final-actions .hp-btn-primary {
  background: #fff;
  color: #5b21b6;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}
.hp-final-actions .hp-btn-primary:hover {
  color: #4c1d95;
  filter: none;
  background: #f8fafc;
}
.hp-final-actions .hp-btn-secondary {
  border-color: rgba(255, 255, 255, 0.45);
}

/* ── Minimal page footer note (site footer still injected by nav) ── */
.hp-foot-note {
  text-align: center;
  padding: 0.5rem var(--space-4) 1.5rem;
  font-size: 0.78rem;
  color: var(--color-text-body);
  opacity: 0.55;
  font-weight: 600;
}

/* ── Entrance helpers ───────────────────────────────────────── */
.hp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.hp-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hp-reveal { opacity: 1; transform: none; transition: none; }
  .hp-kicker-dot, .hp-float { animation: none; }
  .hp-btn, .hp-cap, .hp-demo-card, .hp-skill, .hp-opt { transition: none; }
}

@media (max-width: 480px) {
  .hp-cta-row { flex-direction: column; }
  .hp-btn { width: 100%; }
  .hp-mock-skills { grid-template-columns: repeat(2, 1fr); }
}
/* ── Exam Builder interactive demos ─────────────────────────── */
.hp-builder { background: linear-gradient(180deg, #faf8ff 0%, #fff 40%, #f5f3ff 100%); }
.hp-builder-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin: 0 auto 1.25rem; max-width: 520px; padding: 0 var(--space-4);
}
.hp-builder-pill {
  border: 1.5px solid var(--color-border); background: #fff; color: var(--color-text-primary);
  font-family: inherit; font-weight: 800; font-size: 0.88rem; padding: 0.55rem 1.1rem;
  border-radius: 999px; cursor: pointer; transition: all 0.2s;
}
.hp-builder-pill.is-active, .hp-builder-pill:hover {
  background: var(--grad-primary); color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px rgba(124,58,237,0.25);
}
.hp-builder-demo {
  display: grid; gap: 1rem; max-width: 1000px; margin: 0 auto; padding: 0 var(--space-4) 1rem;
}
@media (min-width: 800px) {
  .hp-builder-demo { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.hp-builder-demo.hidden { display: none !important; }
.hp-builder-bank, .hp-builder-exam {
  background: #fff; border: 1px solid var(--color-border); border-radius: 18px;
  padding: 1rem; box-shadow: 0 8px 24px rgba(30,27,75,0.05); min-height: 280px;
  display: flex; flex-direction: column;
}
.hp-builder-col-title {
  font-size: 0.82rem; font-weight: 800; color: var(--color-text-primary); margin-bottom: 0.65rem;
}
.hp-builder-list { display: flex; flex-direction: column; gap: 0.45rem; flex: 1; min-height: 160px; }
.hp-builder-drop {
  border: 2px dashed var(--color-border-strong); border-radius: 14px; padding: 0.5rem;
  background: var(--color-surface-alt); transition: border-color 0.2s, background 0.2s;
}
.hp-builder-drop.is-over { border-color: var(--color-primary); background: var(--color-primary-light); }
.hp-q-card {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.65rem 0.75rem; border-radius: 12px; background: #fff;
  border: 1px solid var(--color-border); font-size: 0.85rem; font-weight: 700;
  cursor: grab; user-select: none; transition: box-shadow 0.2s, transform 0.15s;
}
.hp-q-card:active { cursor: grabbing; }
.hp-q-card:hover { box-shadow: 0 6px 16px rgba(124,58,237,0.12); transform: translateY(-1px); }
.hp-q-card span {
  font-size: 0.65rem; font-weight: 800; color: var(--color-primary);
  background: var(--color-primary-light); padding: 0.15rem 0.45rem; border-radius: 999px;
}
.hp-q-card.is-dragging { opacity: 0.45; }
.hp-builder-empty {
  text-align: center; color: #94a3b8; font-size: 0.85rem; font-weight: 600;
  padding: 1.5rem 0.5rem;
}
.hp-builder-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.75rem; font-size: 0.78rem; font-weight: 700; color: var(--color-text-body);
}
.hp-builder-hint { color: #94a3b8; font-weight: 600; font-size: 0.72rem; }
.hp-lang-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hp-lang {
  border: 1px solid var(--color-border); background: #fff; border-radius: 999px;
  padding: 0.35rem 0.7rem; font-family: inherit; font-size: 0.75rem; font-weight: 800;
  cursor: pointer; color: var(--color-text-primary); transition: all 0.15s;
}
.hp-lang.is-active, .hp-lang:hover {
  background: #0f172a; color: #fff; border-color: #0f172a;
}
.hp-code-preview {
  background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 0.85rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem; line-height: 1.55; white-space: pre-wrap; min-height: 88px;
  border: 1px solid rgba(255,255,255,0.08);
}
.hp-builder-features {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  max-width: 900px; margin: 0.5rem auto 0; padding: 0 var(--space-4);
}
.hp-bf {
  font-size: 0.78rem; font-weight: 800; padding: 0.45rem 0.85rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--color-border); color: var(--color-text-primary);
  box-shadow: 0 2px 8px rgba(30,27,75,0.04);
}
.hp-pwa-install {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 90; border: none; border-radius: 999px; padding: 0.75rem 1.25rem;
  font-family: inherit; font-weight: 800; font-size: 0.88rem; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, #5b21b6, #7c3aed);
  box-shadow: 0 12px 32px rgba(91,33,182,0.4);
}
.hp-pwa-install.hidden { display: none !important; }
@media (max-width: 860px) {
  .hp-pwa-install { bottom: 5.5rem; }
}
