.demo-page {
  --gallery-neon: #b6f500;
  --demo-green: rgb(110, 160, 15);
  --demo-lime: var(--gallery-neon);
  --demo-dark: #070a07;
  --container-max: 1200px;
  --container-pad: clamp(16px, 4vw, 28px);
  margin: 0;
  background: var(--demo-dark);
  color: #f7f8f4;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.demo-page a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  box-sizing: border-box;
}

.form-error {
  display: none;
  margin-top: 6px;
  color: #f87171;
  font-size: 0.72rem;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group input.error,
.form-group select.error {
  border-color: #f87171 !important;
}

.form-group input.success,
.form-group select.success {
  border-color: #34d399 !important;
}

.form-success {
  display: none;
  padding: 24px 0 4px;
  text-align: center;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  font-size: 1.6rem;
}

.form-success h3 {
  margin: 0 0 8px;
  color: #fff;
}

.form-success p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.demo-form-card.hidden-form .demo-form {
  display: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  padding: 14px 20px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  font-size: 0.84rem;
  font-weight: 600;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #059669;
}

.toast.error {
  background: #dc2626;
}

.demo-page *,
.demo-page *::before,
.demo-page *::after {
  box-sizing: border-box;
}

.demo-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.demo-topbar {
  background: #263c21;
  border-bottom: 1px solid rgba(182, 245, 0, 0.16);
}

.demo-topbar-inner,
.demo-header-inner,
.demo-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-topbar-inner {
  min-height: 38px;
  gap: 20px;
  font-size: 0.75rem;
}

.demo-topbar a {
  color: rgba(255, 255, 255, 0.82);
}

.demo-header {
  position: relative;
  z-index: 10;
  background: rgba(5, 8, 5, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-header-inner {
  min-height: 76px;
}

.demo-logo img,
.demo-footer img {
  display: block;
  width: auto;
  height: 54px;
  object-fit: contain;
}

.demo-header-cta,
.demo-btn,
.demo-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.demo-header-cta {
  min-height: 42px;
  padding: 0 20px;
  background: var(--demo-green);
  color: #0b0e08;
}

.demo-header-cta:hover,
.demo-btn:hover,
.demo-submit:hover {
  transform: translateY(-2px);
}

.demo-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(145, 201, 43, 0.16), transparent 33%),
    linear-gradient(150deg, #050705 0%, #0b120a 55%, #070907 100%);
}

.demo-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.demo-glow--one {
  left: -260px;
  top: 30%;
  background: rgba(110, 160, 15, 0.15);
}

.demo-glow--two {
  right: -250px;
  bottom: -250px;
  background: rgba(182, 245, 0, 0.1);
}

.demo-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(42px, 6vw, 84px);
}

.demo-eyebrow,
.demo-section-head > span,
.demo-final-inner > div > span {
  display: inline-block;
  color: var(--demo-lime);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo-hero h1 {
  max-width: 720px;
  margin: 16px 0 22px;
  color: #f4f8e8;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.demo-hero h1 span,
.demo-section-head em {
  color: var(--demo-green);
  font-style: normal;
}

.demo-hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: rgba(244, 244, 245, 0.7);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
}

.demo-hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.demo-hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-hero-points span {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(182, 245, 0, 0.12);
  color: var(--demo-lime);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.demo-btn {
  min-height: 50px;
  padding: 0 24px;
}

.demo-btn--primary {
  background: linear-gradient(135deg, var(--demo-lime), #78ab16);
  color: #0b0e08;
  box-shadow: 0 14px 32px rgba(145, 201, 43, 0.2);
}

.demo-btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.demo-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 38px;
}

.demo-proof div {
  padding: 16px 14px;
  border: 1px solid rgba(182, 245, 0, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.demo-proof strong,
.demo-proof span {
  display: block;
}

.demo-proof strong {
  color: var(--demo-lime);
  font-size: 1.35rem;
}

.demo-proof span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
}

.demo-lead-card {
  overflow: hidden;
  border: 1px solid rgba(182, 245, 0, 0.25);
  border-radius: 26px;
  background: #101510;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.48);
}

.demo-lead-image {
  position: relative;
  height: 215px;
  overflow: hidden;
}

.demo-lead-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, #101510 100%);
}

.demo-lead-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.demo-lead-image span {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(182, 245, 0, 0.28);
  border-radius: 999px;
  background: rgba(5, 8, 5, 0.82);
  color: var(--demo-lime);
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-lead-prompt {
  padding: 26px 28px 30px;
}

.demo-lead-prompt > span {
  color: var(--demo-lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-lead-prompt h2 {
  margin: 8px 0;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.25;
}

.demo-lead-prompt p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  line-height: 1.65;
}

.demo-form-card {
  position: fixed;
  z-index: 1002;
  top: 50%;
  left: 50%;
  width: min(470px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 30px;
  overflow-y: auto;
  border: 1px solid rgba(182, 245, 0, 0.3);
  border-radius: 22px;
  background: #101510;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.demo-page.demo-modal-open {
  overflow: hidden;
}

.demo-page.demo-modal-open .demo-form-card {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.demo-modal-backdrop {
  position: fixed;
  z-index: 1001;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(2, 4, 2, 0.78);
  opacity: 0;
  visibility: hidden;
  cursor: default;
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.demo-page.demo-modal-open .demo-modal-backdrop {
  opacity: 1;
  visibility: visible;
}

.demo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.demo-form-head > span {
  color: #ffcc68;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-form-head h2 {
  margin: 8px 0 6px;
  color: #fff;
  font-size: 1.65rem;
}

.demo-form-head p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.55;
}

.demo-form {
  display: grid;
  gap: 14px;
}

.demo-form .form-group {
  margin: 0;
}

.demo-form label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 700;
}

.demo-form input,
.demo-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  outline: 0;
  background: #181d18;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
}

.demo-form input:focus,
.demo-form select:focus {
  border-color: rgba(182, 245, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(182, 245, 0, 0.08);
}

.demo-form .form-error {
  margin-top: 5px;
  font-size: 0.68rem;
}

.demo-hidden-field {
  display: none;
}

.demo-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  background: var(--demo-green);
  color: #0a0d08;
  cursor: pointer;
  font: inherit;
}

.demo-form-note {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.68rem;
}

.demo-success {
  padding: 24px 0 4px;
}

.demo-success .demo-btn {
  margin-top: 18px;
  color: #fff;
}

.demo-benefits,
.demo-courses {
  padding: clamp(70px, 8vw, 110px) 0;
}

.demo-benefits {
  background: #f5f7f1;
  color: #15200f;
}

.demo-section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.demo-section-head h2 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  letter-spacing: -0.045em;
}

.demo-section-head p {
  margin: 0;
  color: #6b7565;
  line-height: 1.7;
}

.demo-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.demo-benefit-grid article {
  padding: 28px 24px;
  border: 1px solid #dce4d4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 52, 22, 0.06);
}

.demo-benefit-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: #edf5df;
  color: #5f8c0d;
  font-weight: 800;
}

.demo-benefit-grid h3 {
  margin: 20px 0 10px;
  font-size: 1.05rem;
}

.demo-benefit-grid p {
  margin: 0;
  color: #6b7565;
  font-size: 0.84rem;
  line-height: 1.7;
}

.demo-courses {
  background: #0b0f0a;
}

.demo-courses .demo-section-head h2 {
  color: #fff;
}

.demo-course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.demo-course-grid a {
  position: relative;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 22px;
  border: 1px solid rgba(182, 245, 0, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(145, 201, 43, 0.1), transparent 65%),
    #121712;
  color: #fff;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.demo-course-grid a::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 16px;
  height: 16px;
  background-color: var(--demo-lime);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.demo-course-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(182, 245, 0, 0.28);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(182, 245, 0, 0.16), rgba(182, 245, 0, 0.05));
  color: var(--demo-lime);
  box-shadow: inset 0 0 0 1px rgba(182, 245, 0, 0.05);
}

.demo-course-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.demo-course-grid strong,
.demo-course-grid small {
  display: block;
}

.demo-course-grid strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.demo-course-grid small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  line-height: 1.45;
}

.demo-course-grid a:hover {
  border-color: rgba(182, 245, 0, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.demo-companies {
  padding: clamp(64px, 8vw, 100px) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(145, 201, 43, 0.1), transparent 42%),
    #0a0e09;
}

.demo-companies .demo-section-head h2 {
  color: #fff;
}

.demo-companies .demo-section-head p {
  color: rgba(255, 255, 255, 0.58);
}

.demo-companies-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.demo-companies-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  padding-inline: 16px;
  animation: demo-company-marquee 38s linear infinite;
}

.demo-companies-marquee:hover .demo-companies-track {
  animation-play-state: paused;
}

@keyframes demo-company-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.demo-company-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 88px;
  padding: 18px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.demo-company-pill img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 180px;
  object-fit: contain;
}

.demo-final-cta {
  padding: 52px 0;
  background: linear-gradient(110deg, #5e8d0d, #94ce27);
}

.demo-final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.demo-final-inner > div > span {
  color: #1d2a0c;
}

.demo-final-inner h2 {
  margin: 8px 0;
  color: #0b1006;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.demo-final-inner p {
  margin: 0;
  color: rgba(11, 16, 6, 0.72);
}

.demo-final-cta .demo-btn--primary {
  flex: 0 0 auto;
  background: #0b1007;
  color: #fff;
}

.demo-footer {
  padding: 28px 0;
  background: #050705;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-footer-inner {
  gap: 24px;
}

.demo-footer p,
.demo-footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .demo-hero-grid {
    grid-template-columns: 1fr;
  }

  .demo-hero-copy {
    text-align: center;
  }

  .demo-hero-copy > p,
  .demo-proof {
    margin-inline: auto;
  }

  .demo-hero-points {
    max-width: 660px;
    margin-inline: auto;
    margin-top: 28px;
    text-align: left;
  }

  .demo-actions {
    justify-content: center;
  }

  .demo-lead-card {
    width: min(590px, 100%);
    margin-inline: auto;
  }

  .demo-benefit-grid,
  .demo-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .demo-topbar-inner {
    justify-content: center;
  }

  .demo-topbar-inner a:first-child {
    display: none;
  }

  .demo-header-inner {
    min-height: 68px;
  }

  .demo-logo img {
    height: 45px;
  }

  .demo-header-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.76rem;
  }

  .demo-hero {
    padding-top: 40px;
  }

  .demo-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
  }

  .demo-hero-points,
  .demo-benefit-grid,
  .demo-course-grid {
    grid-template-columns: 1fr;
  }

  .demo-proof {
    gap: 7px;
  }

  .demo-proof div {
    padding: 12px 7px;
  }

  .demo-proof strong {
    font-size: 1.05rem;
  }

  .demo-proof span {
    font-size: 0.61rem;
  }

  .demo-company-pill {
    min-width: 140px;
    min-height: 72px;
    padding: 14px 18px;
  }

  .demo-company-pill img {
    height: 32px;
    max-width: 140px;
  }

  .demo-companies-track {
    gap: 12px;
  }

  .demo-lead-image {
    height: 180px;
  }

  .demo-form-card {
    padding: 26px 18px 22px;
  }

  .demo-final-inner,
  .demo-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .demo-final-cta .demo-btn {
    width: 100%;
  }
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}

.wa-float::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: waPulse 1.8s ease-out infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.demo-page.demo-modal-open .wa-float {
  z-index: 998;
}

@media (max-width: 640px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .wa-float svg {
    width: 26px;
    height: 26px;
  }
}
