/* Hostzera partner frontend — custom layer (Tailwind utilities loaded separately) */
:root {
  --hz-brand: #04af5b;
  --hz-auth-in-duration: 0.65s;
  --hz-stagger: 60ms;
}

::selection {
  background: rgba(4, 175, 91, 0.22);
  color: #0f172a;
}

.mesh-hero {
  background-color: #f8fafc;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(4, 175, 91, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(56, 189, 248, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 20%, rgba(4, 175, 91, 0.06), transparent 45%);
}

/* Home page — extra ambient glow (hero + sections) */
.home-hero-bloom {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% 15%, rgba(4, 175, 91, 0.11), transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 80%, rgba(4, 175, 91, 0.05), transparent 50%);
}

/* Solid headline + glow (do not combine with .text-gradient-hero — clip text breaks shadows) */
.home-hero-title {
  text-shadow:
    0 0 100px rgba(4, 175, 91, 0.32),
    0 0 56px rgba(4, 175, 91, 0.22),
    0 0 28px rgba(16, 185, 129, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.98),
    0 8px 32px rgba(15, 23, 42, 0.06);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
  animation: home-hero-title-pop 5s ease-in-out infinite;
}

@keyframes home-hero-title-pop {
  0%,
  100% {
    text-shadow:
      0 0 100px rgba(4, 175, 91, 0.28),
      0 0 52px rgba(4, 175, 91, 0.2),
      0 0 24px rgba(16, 185, 129, 0.16),
      0 2px 0 rgba(255, 255, 255, 0.98),
      0 8px 32px rgba(15, 23, 42, 0.06);
  }
  50% {
    text-shadow:
      0 0 120px rgba(4, 175, 91, 0.38),
      0 0 64px rgba(4, 175, 91, 0.26),
      0 0 36px rgba(16, 185, 129, 0.22),
      0 2px 0 rgba(255, 255, 255, 1),
      0 10px 36px rgba(15, 23, 42, 0.07);
  }
}

.home-hero-title .home-hero-accent {
  background: linear-gradient(135deg, #0f172a 0%, var(--hz-brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero-eyebrow {
  box-shadow:
    0 0 36px -4px rgba(4, 175, 91, 0.45),
    0 4px 20px -8px rgba(4, 175, 91, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.home-section-glow {
  text-shadow: 0 0 56px rgba(4, 175, 91, 0.1);
}

.home-cta-title-glow {
  text-shadow:
    0 0 60px rgba(255, 255, 255, 0.25),
    0 0 48px rgba(4, 175, 91, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.08);
}

.mesh-dark {
  background-color: #0f172a;
  background-image:
    radial-gradient(ellipse 100% 80% at 20% -20%, rgba(4, 175, 91, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(56, 189, 248, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(4, 175, 91, 0.15), transparent 45%);
}

.grid-fine {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, black 20%, transparent 75%);
}

.grid-fine-dark {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 15%, transparent 70%);
}

.text-gradient-hero {
  background: linear-gradient(135deg, #0f172a 0%, #0f172a 42%, var(--hz-brand) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-auth {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 45%, rgba(167, 243, 208, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-auth {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.92) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 4px 40px -12px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}

.card-premium {
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(4, 175, 91, 0.35), rgba(148, 163, 184, 0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-shine:hover::after {
  transform: translateX(100%);
}

.dash-tilt {
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}

.logo-back {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 14px rgba(15, 23, 42, 0.12);
}

/* Floating orbs (auth / internal) */
.auth-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  animation: orb-float 18s ease-in-out infinite;
}

.orb--a {
  width: 320px;
  height: 320px;
  background: rgba(4, 175, 91, 0.45);
  top: -8%;
  right: -5%;
}

.orb--b {
  width: 280px;
  height: 280px;
  background: rgba(56, 189, 248, 0.2);
  bottom: 5%;
  left: -10%;
  animation-delay: -6s;
}

.orb--c {
  width: 200px;
  height: 200px;
  background: rgba(167, 243, 208, 0.35);
  top: 40%;
  left: 35%;
  animation-delay: -12s;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(12px, -18px) scale(1.04);
  }
  66% {
    transform: translate(-10px, 10px) scale(0.98);
  }
}

/* Auth layout */
.auth-page {
  min-height: 100vh;
}

.auth-brand-panel {
  position: relative;
}

/* Entrance */
@keyframes auth-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auth-enter-subtle {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-animate-in {
  animation: auth-enter var(--hz-auth-in-duration) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-animate-delay-1 {
  animation-delay: 80ms;
}

.auth-animate-delay-2 {
  animation-delay: 140ms;
}

.auth-animate-delay-3 {
  animation-delay: 200ms;
}

.auth-card-in {
  animation: auth-enter-subtle 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Form inputs */
.input-premium {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.input-premium:hover:not(:focus) {
  border-color: rgb(203 213 225);
}

.input-premium:focus {
  outline: none;
  border-color: var(--hz-brand);
  box-shadow: 0 0 0 3px rgba(4, 175, 91, 0.2);
  background-color: #fff;
}

/* Internal doc pages */
.site-header {
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.doc-page main h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.doc-page main h3 {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.doc-page main p,
.doc-page main li {
  color: #475569;
  line-height: 1.7;
}

.doc-page main table {
  font-size: 0.875rem;
}

.doc-hero h1 {
  letter-spacing: -0.03em;
}

.internal-callout {
  border-radius: 1rem;
  border: 1px solid rgba(4, 175, 91, 0.2);
  background: linear-gradient(135deg, rgba(232, 250, 241, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
  padding: 1rem 1.25rem;
}

.related-card {
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  background: #fff;
  padding: 1.25rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.related-card:hover {
  border-color: rgba(4, 175, 91, 0.35);
  box-shadow: 0 12px 40px -16px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

/* Contact page — disclosure list */
.contact-faq details {
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-faq details[open] {
  border-color: rgba(4, 175, 91, 0.28);
  box-shadow: 0 12px 40px -18px rgba(15, 23, 42, 0.1);
}

.contact-faq summary {
  list-style: none;
  cursor: pointer;
}

.contact-faq summary::-webkit-details-marker {
  display: none;
}

.contact-faq details[open] .contact-faq-chevron {
  transform: rotate(180deg);
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > *:nth-child(1) {
  transition-delay: 0ms;
}
.reveal-stagger > *:nth-child(2) {
  transition-delay: 55ms;
}
.reveal-stagger > *:nth-child(3) {
  transition-delay: 110ms;
}
.reveal-stagger > *:nth-child(4) {
  transition-delay: 165ms;
}

.doc-table-wrap {
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  overflow: hidden;
  box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.08);
}

/* Step chips (join) */
.step-chip {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.step-chip.is-active {
  background: rgba(4, 175, 91, 0.12);
  border-color: rgba(4, 175, 91, 0.45);
  color: #026b3a;
}

/* —— Glow headings (dark panel) —— */
.glow-heading-auth {
  text-shadow:
    0 0 42px rgba(4, 175, 91, 0.35),
    0 0 100px rgba(4, 175, 91, 0.12),
    0 2px 0 rgba(15, 23, 42, 0.35);
}

.glow-eyebrow {
  text-shadow: 0 0 24px rgba(167, 243, 208, 0.45);
}

/* Light panel: subtle brand glow on titles */
.glow-heading-light {
  text-shadow: 0 0 40px rgba(4, 175, 91, 0.12);
}

/* Animated gradient text (light backgrounds) */
.text-shimmer-brand {
  background: linear-gradient(
    110deg,
    #0f172a 0%,
    #0f172a 38%,
    var(--hz-brand) 50%,
    #0f172a 62%,
    #0f172a 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shimmer 4.5s ease-in-out infinite;
}

@keyframes text-shimmer {
  0%,
  100% {
    background-position: 100% center;
  }
  50% {
    background-position: 0% center;
  }
}

/* Glass card with animated rim glow */
.glass-auth-wrap {
  position: relative;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(
    125deg,
    rgba(4, 175, 91, 0.45),
    rgba(148, 163, 184, 0.25),
    rgba(4, 175, 91, 0.2),
    rgba(56, 189, 248, 0.15)
  );
  background-size: 300% 300%;
  animation: rim-shift 8s ease infinite;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 24px 60px -20px rgba(4, 175, 91, 0.15);
}

@keyframes rim-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.glass-auth-wrap .glass-auth {
  border-radius: calc(1.5rem - 1px);
  box-shadow: none;
}

/* Stronger card entrance */
.auth-card-in-strong {
  animation: auth-pop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes auth-pop {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Auth: secondary CTA + unified footer links */
.auth-cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  text-align: center;
}

.auth-cta-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(148 163 184);
}

.auth-cta-link {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--hz-brand);
  text-decoration: none;
  transition:
    color 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease;
  text-shadow: 0 0 20px rgba(4, 175, 91, 0.25);
}

.auth-cta-link:hover {
  color: #038a49;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.auth-foot-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.auth-foot-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(71 85 105);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgb(226 232 240);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
  text-decoration: none;
}

.auth-foot-pill:hover {
  color: var(--hz-brand);
  border-color: rgba(4, 175, 91, 0.45);
  box-shadow:
    0 0 20px -4px rgba(4, 175, 91, 0.35),
    0 4px 14px -4px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

/* Mobile top bar: pill buttons */
.auth-pill-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--hz-brand) 0%, #038a49 100%);
  box-shadow:
    0 0 24px -4px rgba(4, 175, 91, 0.65),
    0 4px 14px -2px rgba(4, 175, 91, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    filter 0.2s ease;
}

.auth-pill-nav:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 32px -2px rgba(4, 175, 91, 0.75),
    0 8px 20px -4px rgba(4, 175, 91, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.auth-pill-nav--ghost {
  color: var(--hz-brand);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(4, 175, 91, 0.35);
  box-shadow: 0 2px 12px -2px rgba(4, 175, 91, 0.15);
}

.auth-pill-nav--ghost:hover {
  background: rgba(232, 250, 241, 0.95);
}

/* Join: program hint callout */
.auth-field-hint {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgb(51 65 85);
  background: linear-gradient(135deg, rgba(232, 250, 241, 0.65) 0%, rgba(248, 250, 252, 0.95) 100%);
  border: 1px solid rgba(4, 175, 91, 0.18);
  box-shadow: 0 4px 20px -8px rgba(4, 175, 91, 0.12);
}

.auth-field-hint strong {
  color: rgb(15 23 42);
}

@media (max-width: 1023px) {
  .dash-tilt {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-title {
    animation: none;
  }

  .animate-float,
  .animate-float-delayed,
  .animate-pulse-slow {
    animation: none !important;
  }

  .dash-tilt {
    transform: none !important;
  }

  .orb {
    animation: none !important;
  }

  .auth-animate-in,
  .auth-animate-delay-1,
  .auth-animate-delay-2,
  .auth-animate-delay-3,
  .auth-card-in,
  .auth-card-in-strong {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .text-shimmer-brand {
    animation: none !important;
    color: #0f172a;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    text-shadow: none;
  }

  .glass-auth-wrap {
    animation: none !important;
    background: linear-gradient(125deg, rgba(4, 175, 91, 0.25), rgba(148, 163, 184, 0.2));
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn-shine::after {
    display: none;
  }
}

/* ── Marketing / public pages compatibility layer ─────────────────── */

/* Nav link */
.hz-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.15s, background 0.15s;
}
.hz-nav-link:hover { color: #04af5b; background: rgba(4,175,91,0.06); }

/* Buttons */
.hz-btn-primary,
.hz-btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  background: #04af5b;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 12px 48px -12px rgba(4,175,91,0.45);
  transition: background 0.15s;
  text-decoration: none;
}
.hz-btn-primary:hover,
.hz-btn-glow:hover { background: #038a49; }

.hz-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.hz-btn-secondary:hover { border-color: rgba(4,175,91,0.4); color: #04af5b; }

/* Eyebrow badge */
.hz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: rgba(4,175,91,0.08);
  border: 1px solid rgba(4,175,91,0.22);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #04af5b;
}

/* Title glow */
.hz-title-glow {
  background: linear-gradient(135deg, #0f172a 0%, #04af5b 70%, #038a49 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mockup window */
.hz-mockup-window {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(4,175,91,0.15);
  background: rgba(15,23,42,0.96);
  box-shadow: 0 40px 80px -20px rgba(4,175,91,0.20), 0 0 0 1px rgba(4,175,91,0.1);
}
.hz-mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}
.hz-mockup-dot { display: block; height: 0.625rem; width: 0.625rem; border-radius: 9999px; }

/* Float animations */
.hz-float-slow  { animation: float 8s ease-in-out infinite; }
.hz-float-delayed { animation: float 10s ease-in-out infinite 1s; }
.hz-glow-pulse  { animation: pulseGlow 6s ease-in-out infinite; }
.hz-glow-orb    { filter: blur(40px); opacity: 0.6; }

/* Grid fade */
.hz-grid-fade {
  background-image:
    linear-gradient(rgba(4,175,91,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4,175,91,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}

/* Scroll-reveal */
.hz-reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hz-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* bg scene */
.hz-bg-scene { background: #ffffff; }
