/* ═══════════════════════════════════════════════════════
   HOME PAGE — CIPHERX
   Color palette:
     Primary:   #1d4ed8 (deep blue) / #2563eb / #3b82f6
     Neutrals:  #ffffff, #f8fafc, #071a33, #06122b
     Accent:    #38bdf8 (sky)
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Reset & base ── */
.hm-body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #071a33;
  background: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.hm-body *,
.hm-body *::before,
.hm-body *::after {
  box-sizing: border-box;
}

.hm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── NAVBAR ── */
.hm-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hm-nav-wrap.hm-nav-scrolled {
  background: rgba(6, 18, 43, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.hm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 2rem;
}

/* Logo */
.hm-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
}

.hm-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.hm-logo-icon svg {
  width: 32px;
  height: 32px;
}

/* Brand mark in the navbar/footer.
   The company-logo PNG ships with a white background, so on the dark blue
   navbar it would look like an unstyled white blob. We seat it inside a
   small rounded white tile (40px) with a subtle padding so the actual
   logo content reads cleanly at any size. The inline SVG fallback uses
   the same tile so the geometry stays identical when the PNG fails. */
.hm-logo-icon.hm-logo-icon-img {
  position: relative;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 1px 6px rgba(0, 0, 0, 0.12);
}
.hm-logo-icon-img .hm-logo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 5px;
  color: #1d4ed8;
  z-index: 0;
  border-radius: inherit;
}
.hm-logo-icon-img .hm-logo-png {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
  border-radius: inherit;
}

.hm-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
}

/* Nav links */
.hm-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-nav-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.hm-nav-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

/* Nav action buttons */
.hm-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Mobile hamburger */
.hm-nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hm-nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── BUTTONS ── */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.hm-btn:hover { transform: translateY(-1px); }
.hm-btn:active { transform: translateY(0); }

/* Outlined (on dark hero bg) */
.hm-btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: #ffffff;
  background: transparent;
}

.hm-btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.1);
}

/* Solid (hero buttons) */
.hm-btn-solid {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
  color: #ffffff;
}

.hm-btn-solid:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
}

/* Ghost (on dark hero) */
.hm-btn-outline-white {
  border-color: #ffffff;
  color: #ffffff;
  background: transparent;
}

.hm-btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
}

.hm-btn-ghost-white {
  border-color: transparent;
  color: rgba(255,255,255,0.85);
  background: transparent;
  font-weight: 600;
}

.hm-btn-ghost-white:hover {
  color: #ffffff;
}

/* Full-width */
.hm-btn-full { width: 100%; }

/* Discord */
.hm-btn-discord {
  background: #5865f2;
  border-color: #5865f2;
  color: #ffffff;
  font-size: 0.9rem;
  padding: 0.65rem 1.75rem;
}

.hm-btn-discord:hover {
  background: #4752c4;
  border-color: #4752c4;
}

/* ── HERO ── */
.hm-hero {
  position: relative;
  background: linear-gradient(135deg, #06122b 0%, #1d4ed8 50%, #3b82f6 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hm-hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.hm-hero-text {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.hm-hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0 0 1rem;
}

.hm-hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hm-hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin: 0 0 2rem;
  max-width: 520px;
}

.hm-hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hm-hero-visual {
  position: relative;
  flex: 0 0 460px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hm-orb-canvas {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  opacity: 0.98;
  box-shadow: 0 0 80px rgba(56, 189, 248, 0.45), 0 0 160px rgba(14, 165, 233, 0.25);
  background: radial-gradient(circle at 35% 30%, rgba(125, 211, 252, 0.18) 0%, rgba(56, 189, 248, 0.12) 32%, rgba(37, 99, 235, 0.10) 58%, rgba(10, 35, 80, 0.22) 78%, rgba(6, 18, 43, 0.16) 100%);
  transform-style: preserve-3d;
}

/* Extra blue atmosphere behind the orb */
.hm-hero-visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle 220px at 45% 40%, rgba(125, 211, 252, 0.18), transparent 70%),
    radial-gradient(circle 260px at 65% 65%, rgba(56, 189, 248, 0.14), transparent 70%),
    radial-gradient(circle 320px at 35% 75%, rgba(37, 99, 235, 0.10), transparent 72%);
  filter: blur(12px);
  opacity: 0.95;
  z-index: 1;
  pointer-events: none;
}

.hm-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  animation: hm-ring-pulse 4s ease-in-out infinite;
}

.hm-orb-ring-1 {
  width: 420px;
  height: 420px;
  animation-delay: 0s;
}

.hm-orb-ring-2 {
  width: 460px;
  height: 460px;
  animation-delay: 1s;
  border-color: rgba(255,255,255,0.08);
}

@keyframes hm-ring-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Wave divider */
.hm-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}

.hm-hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ── WHAT WE DO ── */
.hm-section {
  padding: 6rem 0;
}

.hm-what {
  background: #ffffff;
  padding-top: 5rem;
}

.hm-what-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hm-what-text {
  flex: 1 1 380px;
  min-width: 0;
}

.hm-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(29, 78, 216, 0.1);
  border-radius: 12px;
  color: #2563eb;
  margin-bottom: 1.1rem;
}

.hm-section-icon svg {
  width: 26px;
  height: 26px;
}

.hm-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: #071a33;
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hm-section-body {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #4a3a5c;
  max-width: 520px;
}

/* Code windows — stacked vertically so each gets the full column width and
   the source -> protected transformation reads naturally top to bottom. */
.hm-what-code {
  flex: 1 1 540px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hm-code-window {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dbe4f2;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
}

.hm-code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: #f1f5f9;
  border-bottom: 1px solid #dbe4f2;
}
.hm-code-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hm-code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hm-dot-red    { background: #ff5f57; }
.hm-dot-yellow { background: #febc2e; }
.hm-dot-green  { background: #28c840; }

.hm-code-lang {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #475569;
}

/* Both windows use one identical light theme — the source and the protected
   output differ only in their code, never in colour, so the before/after
   reads as one consistent editor. */
.hm-code-body {
  padding: 1rem 1.15rem;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.65;
  color: #334155;
  background: transparent;
  border: none;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

/* The shared cipherx.css gives every <code> an accent background, border and
   padding — inside a code window that paints a "marker" highlight behind the
   text. The window itself is the surface, so strip all of it back off here. */
.hm-code-body code {
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

/* Syntax highlighting — a restrained blue-led palette matching the landing
   page; applied identically to both code windows. */
.hm-k  { color: #2563eb; font-weight: 600; }
.hm-f  { color: #0891b2; }
.hm-n  { color: #c2410c; }
.hm-s  { color: #15803d; }
.hm-c  { color: #94a3b8; font-style: italic; }

/* Encryption Layers — vertical auto-scrolling marquee */
.hm-layers-marquee {
  position: relative;
  margin: 1.5rem auto 2.5rem;
  max-width: 860px;
  height: 460px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.hm-layers-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: hm-layers-scroll 36s linear infinite;
  will-change: transform;
}
.hm-layers-marquee:hover .hm-layers-track {
  animation-play-state: paused;
}
@keyframes hm-layers-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-layers-track { animation: none; }
  .hm-layers-marquee {
    height: auto;
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
}
.hm-layer-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.hm-layer-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.4rem;
  color: #a98bff;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  min-width: 3rem;
  text-align: center;
  line-height: 1;
  align-self: start;
}
.hm-layer-text h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}
.hm-layer-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}
.hm-layer-text strong {
  color: #ffffff;
}
.hm-layer-text em {
  font-style: italic;
  color: #ffd86b;
}
.hm-section-sub-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .hm-layer-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .hm-layer-num {
    justify-self: start;
  }
}

/* What We Do wave below */
.hm-what::after {
  content: '';
  display: block;
  position: relative;
}

/* ── FEATURES ── */
.hm-features {
  background: linear-gradient(160deg, #06122b 0%, #1d4ed8 60%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}

/* Blue atmosphere overlay inside features section */
.hm-blue-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle 520px at 20% 30%, rgba(125, 211, 252, 0.14), transparent 70%),
    radial-gradient(circle 640px at 80% 45%, rgba(56, 189, 248, 0.10), transparent 72%),
    radial-gradient(circle 700px at 55% 80%, rgba(37, 99, 235, 0.10), transparent 74%),
    conic-gradient(from 210deg at 50% 50%, rgba(56, 189, 248, 0.05), rgba(37, 99, 235, 0.05), rgba(125, 211, 252, 0.05));
  filter: blur(18px);
  opacity: 0.85;
  pointer-events: none;
}

.hm-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.hm-section-sub {
  font-size: 1rem;
  color: #64748b;
  margin-top: 0.75rem;
}

.hm-title-white {
  color: #ffffff;
}

.hm-text-white-dim {
  color: rgba(255,255,255,0.65);
}

.hm-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.hm-feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hm-feature-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-3px);
}

.hm-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #93c5fd;
  margin-bottom: 1.1rem;
}

.hm-feature-icon svg {
  width: 22px;
  height: 22px;
}

.hm-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.6rem;
}

.hm-feature-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* ── Confidential / notice-style card (replaces V1.1 internals) ── */
.hm-feature-card-notice {
  position: relative;
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(56,189,248,0.10));
  border: 1px solid rgba(167,139,250,0.45);
  box-shadow: 0 0 0 1px rgba(167,139,250,0.10) inset, 0 12px 40px -12px rgba(124,92,255,0.45);
}
.hm-feature-card-notice::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(167,139,250,0.25), transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgba(56,189,248,0.18), transparent 60%);
  opacity: 0.85;
}
.hm-feature-card-notice > * { position: relative; z-index: 1; }
.hm-feature-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  background: rgba(167,139,250,0.22);
  border: 1px solid rgba(167,139,250,0.55);
  border-radius: 999px;
  color: #e9e4ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hm-feature-icon-notice {
  background: rgba(167,139,250,0.22);
  color: #c4b5fd;
  border: 1px solid rgba(167,139,250,0.45);
}
.hm-feature-card-notice h3 { color: #ffffff; }
.hm-feature-card-notice p { color: rgba(255,255,255,0.78); }

/* Transition to white at bottom of features */
.hm-features::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  pointer-events: none;
}

/* ── PRICING ── */
.hm-pricing {
  background: #ffffff;
}

/* ─── Billing period toggle (Monthly / Yearly / Lifetime) ─── */
.hm-pricing .hm-billing-toggle {
  display: flex;
  width: max-content;
  margin: 0 auto 1rem;
  padding: 5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  gap: 4px;
  position: relative;
}
.hm-pricing .hm-billing-opt {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0.6rem 1.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: #475569;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  letter-spacing: -0.005em;
  line-height: 1;
  position: relative;
  white-space: nowrap;
}
.hm-pricing .hm-billing-opt:hover {
  color: #0f172a;
}
.hm-pricing .hm-billing-opt:active {
  transform: translateY(1px);
}
.hm-pricing .hm-billing-opt.is-on {
  background: #ffffff;
  color: #0f172a;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}
.hm-pricing .hm-billing-opt:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.hm-pricing .hm-billing-save {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 2px 7px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  vertical-align: 1px;
}

/* Explanatory note under the toggle: "credits drip in, not all at once". */
.hm-pricing-note {
  max-width: 640px;
  margin: 0 auto 2.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
}
.hm-pricing-note strong {
  color: #0f172a;
  font-weight: 600;
}

/* Per-card cadence banner: "Refills every X hours". */
.hm-pricing-cadence {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  margin: 0.5rem 0 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.4;
}
.hm-pricing-cadence svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #2563eb;
}
.hm-pricing-cadence strong {
  color: #0f172a;
  font-weight: 600;
}
.hm-pricing-featured .hm-pricing-cadence {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.18);
}

.hm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.hm-pricing-card {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.hm-pricing-card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
}

.hm-pricing-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 32px rgba(29, 78, 216, 0.12);
  transform: translateY(-3px);
}

.hm-pricing-featured {
  border-color: #2563eb;
  box-shadow: 0 8px 40px rgba(29, 78, 216, 0.18);
  transform: scale(1.03);
}

.hm-pricing-featured:hover {
  transform: scale(1.03) translateY(-3px);
}

.hm-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hm-pricing-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.6rem;
}

.hm-pricing-price {
  font-size: 2.75rem;
  font-weight: 900;
  color: #071a33;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.hm-pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0;
}

.hm-pricing-custom {
  font-size: 2rem;
}

.hm-pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hm-pricing-list li {
  font-size: 0.92rem;
  color: #4a3a5c;
  padding-left: 1.5rem;
  position: relative;
}

.hm-pricing-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
}

/* Pricing card buttons — dark blue on white background */
.hm-pricing-card .hm-btn-outline {
  border-color: #2563eb;
  color: #2563eb;
  background: transparent;
}

.hm-pricing-card .hm-btn-outline:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: #1d4ed8;
  color: #1d4ed8;
}

/* Pricing featured button override */
.hm-pricing-featured .hm-btn-outline {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.hm-pricing-featured .hm-btn-outline:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* ── DISCORD CTA ── */
.hm-discord-cta {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 3.5rem 0;
}

.hm-discord-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hm-discord-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: #5865f2;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.hm-discord-icon svg {
  width: 28px;
  height: 28px;
}

.hm-discord-text {
  flex: 1;
  min-width: 200px;
}

.hm-discord-text h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #071a33;
  margin: 0 0 0.35rem;
}

.hm-discord-text p {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
}

/* ── FOOTER ── */
.hm-footer {
  background: #06122b;
  color: rgba(255,255,255,0.65);
  padding: 3rem 0;
}

.hm-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.hm-footer .hm-logo {
  color: rgba(255,255,255,0.9);
}

.hm-footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin: 0.25rem 0 0;
}

.hm-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}

.hm-footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.hm-footer-links a:hover {
  color: #ffffff;
}

.hm-footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  /* ── Mobile navigation ── the hamburger collapses the links and the action
     buttons into a stacked panel. Done at 900px (not 700px) so the full
     horizontal nav never overflows on narrow tablets. */
  .hm-nav {
    flex-wrap: wrap;
  }
  .hm-nav-mobile-toggle {
    display: flex;
  }
  .hm-nav-links,
  .hm-nav-actions {
    display: none;
    width: 100%;
  }
  .hm-nav-wrap.hm-nav-open .hm-nav-links,
  .hm-nav-wrap.hm-nav-open .hm-nav-actions {
    display: flex;
  }
  .hm-nav-wrap.hm-nav-open {
    background: rgba(6, 18, 43, 0.98);
    backdrop-filter: blur(16px);
  }
  .hm-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .hm-nav-links li {
    width: 100%;
  }
  .hm-nav-link {
    display: block;
    width: 100%;
    padding: 0.85rem 0.4rem;
    border-radius: 6px;
  }
  .hm-nav-actions {
    flex-direction: column;
    gap: 0.6rem;
    padding-bottom: 0.3rem;
  }
  .hm-nav-actions .hm-btn {
    width: 100%;
  }
  .hm-nav-wrap.hm-nav-open .hm-nav-mobile-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hm-nav-wrap.hm-nav-open .hm-nav-mobile-toggle span:nth-child(2) {
    opacity: 0;
  }
  .hm-nav-wrap.hm-nav-open .hm-nav-mobile-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hm-hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .hm-hero-cta {
    justify-content: center;
  }

  .hm-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hm-hero-visual {
    flex: none;
    width: 300px;
    height: 300px;
  }

  .hm-orb-canvas {
    width: 250px;
    height: 250px;
  }

  .hm-orb-ring-1 { width: 290px; height: 290px; }
  .hm-orb-ring-2 { width: 320px; height: 320px; }

  .hm-what-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .hm-what-code {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .hm-hero-visual {
    display: none;
  }

  .hm-what-code {
    display: none;
  }

  .hm-what-inner {
    flex-direction: column;
  }

  .hm-discord-inner {
    flex-direction: column;
    text-align: center;
  }

  /* A stacked featured card shouldn't be scaled up — it would spill past its
     own column edge. */
  .hm-pricing-featured,
  .hm-pricing-featured:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .hm-container {
    padding: 0 1.25rem;
  }
  .hm-section {
    padding: 4rem 0;
  }
  /* Keep the billing toggle within a narrow viewport. */
  .hm-pricing .hm-billing-opt {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
  }
  .hm-pricing .hm-billing-save {
    display: none;
  }
}

/* Both window bodies share a comfortable max height. */
.hm-code-window .hm-code-body {
  max-height: 320px;
}

/* Header tag — a small grey label at the far-right of a window header
   ("Original" / "Protected"). Identical on both windows. */
.hm-code-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #e6edf7;
  color: #5b6b85;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Transform connector between the source and protected windows. */
.hm-code-flow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.4rem;
}
.hm-code-flow-line {
  flex: 1;
  height: 1px;
  background: #d4ddec;
}
.hm-code-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.3);
}
.hm-code-flow-badge svg {
  width: 13px;
  height: 13px;
}

/* ─── Demo modal ─── */
.hm-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.hm-demo-modal[hidden] { display: none; }

.hm-demo-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 18, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hm-demo-card {
  position: relative;
  z-index: 1;
  width: min(880px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(124, 92, 255, 0.32);
  background: linear-gradient(165deg, #14151f 0%, #0b0c14 100%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.hm-demo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(105deg, rgba(124, 92, 255, 0.18), rgba(76, 201, 240, 0.10));
}
.hm-demo-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9bbff;
  margin-bottom: 0.3rem;
}
.hm-demo-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}
.hm-demo-sub {
  margin: 0.4rem 0 0;
  color: #a8adc1;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 60ch;
}
.hm-demo-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d4d6e3;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.hm-demo-close:hover { background: rgba(255, 255, 255, 0.14); }

.hm-demo-toolbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: #0d0e16;
  flex-wrap: wrap;
}
.hm-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 92, 92, 0.10);
  border: 1px solid rgba(255, 92, 92, 0.28);
  color: #ffb3b3;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 600;
}
.hm-demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5e5e;
  box-shadow: 0 0 8px rgba(255, 94, 94, 0.6);
  display: inline-block;
}
.hm-demo-meta {
  color: #6c7186;
  font-size: 0.78rem;
  flex: 1;
  min-width: 0;
}
.hm-demo-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(124, 92, 255, 0.45);
  color: #efeaff;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hm-demo-copy:hover { background: rgba(124, 92, 255, 0.32); }

.hm-demo-body {
  margin: 0;
  padding: 1.2rem 1.6rem 1.6rem;
  overflow: auto;
  background: #07080f;
  color: #c1d3ff;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  white-space: pre;
  flex: 1;
}
.hm-demo-body code { color: inherit; }

.hm-demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0d0e16;
  color: #6c7186;
  font-size: 0.75rem;
}
.hm-demo-foot kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  font-family: inherit;
  font-size: 0.72rem;
  color: #c9c9d8;
}

@media (max-width: 600px) {
  .hm-demo-head { padding: 1.1rem 1.1rem 0.9rem; }
  .hm-demo-toolbar, .hm-demo-foot { padding-left: 1.1rem; padding-right: 1.1rem; }
  .hm-demo-body { padding: 1rem 1.1rem 1.2rem; font-size: 0.72rem; }
  .hm-demo-title { font-size: 1.15rem; }
}

/* ─── Ticket modal (clicking a pricing card) ─────────────────
   A small, focused dialog telling the user to open a Discord
   ticket. Uses the same visual language as the demo modal but
   is more compact since the message is short. */
.hm-ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.hm-ticket-modal[hidden] { display: none; }
.hm-ticket-scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 43, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hm-ticket-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(7, 18, 43, 0.45);
  animation: hm-ticket-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes hm-ticket-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hm-ticket-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border: none; background: transparent;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.hm-ticket-close:hover { background: #f1f5f9; color: #0f172a; }
.hm-ticket-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  background: #5865f2;
  color: #ffffff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.hm-ticket-icon svg { width: 30px; height: 30px; }
.hm-ticket-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #071a33;
  letter-spacing: -0.01em;
}
.hm-ticket-body {
  margin: 0 0 0.5rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}
.hm-ticket-product {
  margin: 0.25rem 0 1.25rem;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 1em;
}
.hm-ticket-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hm-ticket-cta {
  background: #5865f2 !important;
  border-color: #5865f2 !important;
  color: #ffffff !important;
}
.hm-ticket-cta:hover {
  background: #4752c4 !important;
  border-color: #4752c4 !important;
}
@media (max-width: 480px) {
  .hm-ticket-card { padding: 1.75rem 1.25rem 1.5rem; }
  .hm-ticket-title { font-size: 1.1rem; }
}
