:root {
  --brand: #0f9f4a;
  --brand-dark: #0b7d39;
  --brand-deep: #075e2a;
  --accent: #f6b60b;
  --accent-2: #22c1a6;
  --text: #0f172a;
  --muted: #526071;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: rgba(248, 250, 252, 0.9);
  --border: rgba(148, 163, 184, 0.26);
  --radius-lg: 22px;
  --radius-md: 12px;
  --shadow-lg: 0 32px 70px rgba(8, 46, 29, 0.2);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.14);
  --content-max: 820px;
  --logo-size: clamp(98px, 18vw, 190px);
  --logo-overlap: clamp(24px, 5vw, 64px);
  --logo-overlap-header: clamp(6px, 1.6vw, 14px);
  --side-padding: clamp(16px, 4vw, 32px);
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

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

html,
body {
  height: 100%;
  min-height: 100svh;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: radial-gradient(
      circle at 8% 6%,
      rgba(34, 193, 166, 0.2) 0%,
      transparent 52%
    ),
    radial-gradient(
      circle at 92% 12%,
      rgba(246, 182, 11, 0.18) 0%,
      transparent 46%
    ),
    linear-gradient(180deg, #f4fff8 0%, #f7f9fb 48%, #ffffff 100%);
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.main-container {
  position: relative;
  min-height: 100svh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  font-size: 16px;
  overflow-x: hidden;
  padding-bottom: 0;
  isolation: isolate;
}

.main-container::before,
.main-container::after {
  content: "";
  position: absolute;
  width: clamp(220px, 40vw, 520px);
  height: clamp(220px, 40vw, 520px);
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.main-container::before {
  top: -120px;
  left: -140px;
  background: radial-gradient(
    circle,
    rgba(34, 193, 166, 0.6) 0%,
    transparent 65%
  );
}

.main-container::after {
  top: 240px;
  right: -160px;
  background: radial-gradient(
    circle,
    rgba(246, 182, 11, 0.5) 0%,
    transparent 65%
  );
}

.main-container > * {
  position: relative;
  z-index: 1;
}

.bg-logo {
  position: absolute;
  inset: 0;
  background-image: url("bpc.d8991ea9ad14.png");
  background-repeat: no-repeat;
  background-position: center 160px;
  background-size: min(64vmin, 460px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.9) grayscale(0.05);
  mix-blend-mode: multiply;
}

.bg-graphics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(0.5px);
  mix-blend-mode: multiply;
}

.orb-1 {
  width: clamp(180px, 26vw, 260px);
  height: clamp(180px, 26vw, 260px);
  top: 8%;
  left: 6%;
  background: radial-gradient(
    circle,
    rgba(34, 193, 166, 0.55) 0%,
    transparent 70%
  );
}

.orb-2 {
  width: clamp(160px, 22vw, 220px);
  height: clamp(160px, 22vw, 220px);
  top: 12%;
  right: 8%;
  background: radial-gradient(
    circle,
    rgba(246, 182, 11, 0.45) 0%,
    transparent 70%
  );
}

.orb-3 {
  width: clamp(200px, 30vw, 280px);
  height: clamp(200px, 30vw, 280px);
  bottom: -6%;
  left: 10%;
  background: radial-gradient(
    circle,
    rgba(15, 159, 74, 0.35) 0%,
    transparent 70%
  );
}

.bg-streak {
  position: absolute;
  width: min(60vw, 640px);
  height: 2px;
  top: 34%;
  left: 20%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15, 159, 74, 0.35),
    rgba(34, 193, 166, 0.35),
    transparent
  );
  opacity: 0.6;
}

.bg-ring {
  position: absolute;
  width: clamp(220px, 36vw, 360px);
  height: clamp(220px, 36vw, 360px);
  right: -120px;
  bottom: 12%;
  border-radius: 50%;
  border: 1px solid rgba(15, 159, 74, 0.2);
  opacity: 0.6;
}

.main-container .header-container {
  width: min(92vw, 860px);
  min-height: auto;
  margin-top: clamp(16px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.78);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  z-index: 3;
}

.header-container h1 {
  font-family: var(--font-display);
  color: var(--brand-dark);
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0;
  text-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.header-container::after {
  content: "";
  width: min(260px, 60vw);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--brand-dark),
    var(--accent-2),
    var(--accent)
  );
  opacity: 0.9;
}

.img-container {
  height: var(--logo-size);
  width: var(--logo-size);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #eef8f1 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: calc(-1 * var(--logo-overlap-header));
  border: 6px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(8, 46, 29, 0.2);
  z-index: 2;
  position: relative;
  overflow: hidden;
}

.img-container img {
  height: 90%;
  width: 90%;
  border-radius: 50%;
  object-fit: contain;
}

.img-container::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(15, 159, 74, 0.2);
  pointer-events: none;
}

.form-container {
  width: min(92vw, var(--content-max));
  margin-top: calc(-1 * var(--logo-overlap));
  margin-bottom: clamp(12px, 3vh, 36px);
  padding: calc(var(--logo-size) / 2 + 18px) var(--side-padding)
    var(--side-padding);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 159, 74, 0.1),
    rgba(246, 182, 11, 0.08)
  );
  opacity: 0.4;
  pointer-events: none;
}

.form-container > * {
  position: relative;
  z-index: 1;
}

.form-container .paragraph-container,
.form-container form,
.extra-link,
.ndi-button-container {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.form-container .paragraph-container p {
  color: #475569;
  font-size: 15.5px;
  margin: 0 0 12px 0;
  text-align: left;
}

.form-container .paragraph-container p:last-child {
  margin-bottom: 0;
}

.form-container form {
  gap: 12px;
}

.form-container form input {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 160ms ease, box-shadow 160ms ease,
    background 160ms ease;
  width: 100%;
}

.form-container form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 159, 74, 0.18);
  background: #fff;
}

.form-container form .checkbox-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.form-container form .checkbox-container .checkbox-input {
  width: 18px;
  height: 18px;
}

.form-container form .checkbox-container label {
  color: var(--muted);
  font-size: 14px;
}

.form-container form button {
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), #1dd17c);
  box-shadow: 0 14px 28px rgba(15, 159, 74, 0.25);
  transition: transform 140ms ease, box-shadow 140ms ease,
    filter 140ms ease;
}

.form-container form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(15, 159, 74, 0.3);
  filter: brightness(1.02);
}

.ndi-button-container {
  gap: 10px;
}

.ndi-button-container a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: linear-gradient(135deg, #0f2f2f, #1b4a4a);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 26px rgba(15, 47, 47, 0.24);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.ndi-button-container a img {
  width: 34px;
  height: 34px;
}

.ndi-button-container a p {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.ndi-button-container a:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 47, 47, 0.28);
}

.extra-link {
  flex-direction: row;
  justify-content: flex-end;
}

.extra-link a {
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.extra-link a:hover {
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 80px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  text-align: center;
  padding: 14px var(--side-padding) 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 -14px 34px rgba(8, 46, 29, 0.08);
  backdrop-filter: blur(10px);
}

.footer::before {
  content: "";
  width: min(520px, 80vw);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  margin-bottom: 10px;
}

.footer p {
  margin: 0;
  font-size: clamp(12px, 2.6vw, 14px);
  font-weight: 600;
  color: #0f172a;
}

/* Dialogue Box */
.dialogue-box {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 16px;
  z-index: 999;
}

@supports (backdrop-filter: blur(6px)) {
  .dialogue-box {
    backdrop-filter: blur(6px);
  }
}

.dialogue-content {
  background-color: #fff;
  padding: clamp(12px, 3vw, 24px);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  width: min(92vw, 520px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow: auto;
  position: relative;
}

.dialogue-content h2 {
  font-weight: 700;
  color: #0f172a;
  font-size: clamp(18px, 3vw, 24px);
  margin: 0;
}

.dialogue-content h2 span {
  color: #5ac994 !important;
}

.dialogue-content .qr_code_container {
  margin-top: 8px;
  width: clamp(160px, 55vw, 220px);
  height: clamp(160px, 55vw, 220px);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.dialogue-content .qr_code_container .large-image {
  width: 95%;
  height: 95%;
  border: 2px solid #5ac994 !important;
  border-radius: 12px !important;
}

.dialogue-content .qr_code_container .small-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: auto;
  display: none;
}

.dialogue-content .info_container {
  margin-top: 6px;
  max-width: 420px;
  width: 100%;
}

.dialogue-content .info_container ol {
  padding-left: 18px;
  margin: 0;
}

.dialogue-content .info_container ol li {
  text-align: left;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.dialogue-content .info_container ol .info-2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dialogue-content .info_container ol .info-2 img {
  margin-left: 5px;
  width: 28px;
  height: 28px;
}

.dialogue-content .mobile-ndi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dialogue-content .mobile-view {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.dialogue-content .mobile-view hr {
  width: 100px;
  margin: 10px;
}

.dialogue-content .mobile-view p,
.dialogue-content p {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin: 6px 0;
}

.dialogue-content p span {
  color: #5ca994;
}

.mobile-ndi-view {
  display: none;
}

.dialogue-content .video_guide {
  margin-top: 8px;
  min-width: 160px;
  min-height: 32px;
  padding: 4px 14px;
  background-color: #5ac994;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
}

.dialogue-content .video_guide a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.dialogue-content .video_guide img {
  margin-left: 8px;
  width: 18px;
  height: 18px;
}

.dialogue-content .download_text {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 16px;
  margin-bottom: -10px;
}

.dialogue-content .download_container {
  width: 100%;
  padding: 0;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dialogue-content .download_button {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.dialogue-content .download_container a img {
  width: clamp(96px, 30vw, 120px);
  height: auto;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  color: #0f172a;
  height: 36px;
  width: 36px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  transition: background 140ms ease, border-color 140ms ease,
    transform 140ms ease;
}

.close-button:hover {
  background: #e2e8f0;
  border-color: #cbd5f5;
  transform: translateY(-1px);
}

.close-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 164, 77, 0.2);
}

/* Loading bar */
.loading-bar {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  position: relative;
  background: #e2e8f0;
  overflow: hidden;
}

.loading-bar::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--brand);
  animation: loading 2s infinite;
}

@keyframes loading {
  0% {
    width: 0%;
  }
  50% {
    width: 60%;
  }
  100% {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .form-container {
    gap: 14px;
  }

  .bg-streak {
    width: min(70vw, 420px);
    left: 10%;
  }

  .bg-ring {
    right: -160px;
    bottom: 8%;
  }

  .mobile-ndi-view {
    display: block;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --side-padding: 14px;
  }

  .bg-logo {
    background-position: center 120px;
    background-size: min(74vmin, 320px);
  }

  .bg-streak {
    top: 30%;
  }

  .bg-ring {
    width: clamp(180px, 58vw, 260px);
    height: clamp(180px, 58vw, 260px);
  }

  .header-container h1 {
    font-size: clamp(18px, 5vw, 22px);
  }

  .form-container .paragraph-container p {
    font-size: 14px;
  }

  .extra-link a {
    font-size: 13px;
  }

  .form-container {
    margin-bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .loading-bar::after {
    animation: none;
  }
}

