.public-orb-left {
  left: -6rem;
  top: 1.5rem;
  height: 16rem;
  width: 16rem;
  border-radius: 9999px;
  background: rgb(164 192 212 / 0.35);
  filter: blur(48px);
}

.public-orb-right {
  right: 0;
  top: 18rem;
  height: 18rem;
  width: 18rem;
  border-radius: 9999px;
  background: rgb(103 151 181 / 0.22);
  filter: blur(48px);
}

.public-orb-bottom {
  bottom: 5rem;
  left: 33.333333%;
  height: 14rem;
  width: 14rem;
  border-radius: 9999px;
  background: rgb(217 230 239 / 0.45);
  filter: blur(48px);
}

.public-market-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.public-market-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 72, 113, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 72, 113, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  opacity: 0.4;
}

.public-candle-snapshot-scene {
  position: absolute;
  inset: 0;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.public-candle-snapshot-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: public-candle-snapshot-fade 24s linear infinite;
}

.public-candle-snapshot-layer-1 {
  animation-delay: 0s;
}

.public-candle-snapshot-layer-2 {
  animation-delay: -8s;
}

.public-candle-snapshot-layer-3 {
  animation-delay: -16s;
}

.public-candle-snapshot {
  --x: 50%;
  --body-height: 14vh;
  --wick-height: 20vh;
  --y: 0vh;
  position: absolute;
  left: var(--x);
  bottom: 8%;
  width: clamp(0.55rem, 0.95vw, 0.95rem);
  height: var(--wick-height);
  transform: translate3d(-50%, calc(-1 * var(--y)), 0);
  color: rgba(23, 72, 113, 0.4);
}

.public-candle-snapshot::before,
.public-candle-snapshot::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.public-candle-snapshot::before {
  width: 2px;
  height: var(--wick-height);
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.48;
}

.public-candle-snapshot::after {
  width: clamp(0.52rem, 0.85vw, 0.84rem);
  height: var(--body-height);
  border-radius: 3px;
  background: currentColor;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 6px 14px rgba(23, 72, 113, 0.06);
}

.public-snap-up {
  color: rgba(3, 152, 85, 0.4);
}

.public-snap-down {
  color: rgba(196, 50, 10, 0.34);
}

.public-snap-x-1 { --x: 5%; }
.public-snap-x-2 { --x: 10%; }
.public-snap-x-3 { --x: 15%; }
.public-snap-x-4 { --x: 20%; }
.public-snap-x-5 { --x: 25%; }
.public-snap-x-6 { --x: 30%; }
.public-snap-x-7 { --x: 35%; }
.public-snap-x-8 { --x: 40%; }
.public-snap-x-9 { --x: 45%; }
.public-snap-x-10 { --x: 50%; }
.public-snap-x-11 { --x: 55%; }
.public-snap-x-12 { --x: 60%; }
.public-snap-x-13 { --x: 68%; }
.public-snap-x-14 { --x: 74%; }
.public-snap-x-15 { --x: 80%; }
.public-snap-x-16 { --x: 86%; }
.public-snap-x-17 { --x: 92%; }
.public-snap-x-18 { --x: 96%; }
.public-snap-x-19 { --x: 1.5%; }
.public-snap-x-20 { --x: 4.5%; }
.public-snap-x-21 { --x: 8%; }
.public-snap-x-22 { --x: 91%; }
.public-snap-x-23 { --x: 95.5%; }
.public-snap-x-24 { --x: 98.5%; }

.public-snap-h-4 { --body-height: 8vh; }
.public-snap-h-5 { --body-height: 10vh; }
.public-snap-h-6 { --body-height: 12vh; }
.public-snap-h-7 { --body-height: 14vh; }
.public-snap-h-8 { --body-height: 16vh; }
.public-snap-h-9 { --body-height: 18vh; }

.public-snap-w-7 { --wick-height: 14vh; }
.public-snap-w-8 { --wick-height: 16vh; }
.public-snap-w-9 { --wick-height: 18vh; }
.public-snap-w-10 { --wick-height: 20vh; }
.public-snap-w-11 { --wick-height: 22vh; }
.public-snap-w-12 { --wick-height: 24vh; }

.public-snap-y-1 { --y: 0vh; }
.public-snap-y-2 { --y: 2vh; }
.public-snap-y-3 { --y: 4vh; }
.public-snap-y-4 { --y: 6vh; }
.public-snap-y-5 { --y: 8vh; }
.public-snap-y-6 { --y: 10vh; }
.public-snap-y-7 { --y: 13vh; }
.public-snap-y-8 { --y: 16vh; }

@keyframes public-candle-snapshot-fade {
  0%, 22% {
    opacity: 0;
  }
  30%, 58% {
    opacity: 0.95;
  }
  66%, 100% {
    opacity: 0;
  }
}

.public-candle-lane {
  position: absolute;
  left: 0;
  top: 50%;
  display: flex;
  width: max-content;
  height: 100vh;
  gap: 2.2rem;
  align-items: center;
  opacity: 0.16;
  transform: translateY(-50%);
  will-change: transform;
}

.public-candle-lane-full {
  animation: public-candle-page-flow 220s linear infinite;
}

.public-candle-stream {
  position: relative;
  display: flex;
  min-width: max-content;
  height: 100%;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
}

.public-candle-graph-line {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.public-candle-graph-line polyline {
  fill: none;
  stroke: rgba(23, 72, 113, 0.22);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 6px 14px rgba(23, 72, 113, 0.1));
}

.public-candle {
  --body-height: 16vh;
  --wick-height: 26vh;
  --candle-offset: 0vh;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(0.72rem, 1.1vw, 1.15rem);
  height: var(--wick-height);
  color: rgba(23, 72, 113, 0.45);
  transform: translateY(var(--candle-offset));
}

.public-candle::before,
.public-candle::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.public-candle::before {
  width: 2px;
  height: var(--wick-height);
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.55;
}

.public-candle::after {
  width: clamp(0.72rem, 1vw, 1rem);
  height: var(--body-height);
  border-radius: 3px;
  background: currentColor;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 6px 14px rgba(23, 72, 113, 0.08);
}

.public-candle-up {
  color: rgba(3, 152, 85, 0.5);
}

.public-candle-down {
  color: rgba(196, 50, 10, 0.42);
}

.public-candle-h-4 {
  --body-height: 9vh;
}

.public-candle-h-5 {
  --body-height: 11vh;
}

.public-candle-h-6 {
  --body-height: 13vh;
}

.public-candle-h-7 {
  --body-height: 15vh;
}

.public-candle-h-8 {
  --body-height: 17vh;
}

.public-candle-h-9 {
  --body-height: 19vh;
}

.public-candle-h-10 {
  --body-height: 21vh;
}

.public-candle-h-11 {
  --body-height: 23vh;
}

.public-candle-h-12 {
  --body-height: 25vh;
}

.public-candle-wick-8 {
  --wick-height: 20vh;
}

.public-candle-wick-9 {
  --wick-height: 23vh;
}

.public-candle-wick-10 {
  --wick-height: 26vh;
}

.public-candle-wick-11 {
  --wick-height: 29vh;
}

.public-candle-wick-12 {
  --wick-height: 32vh;
}

.public-candle-wick-13 {
  --wick-height: 35vh;
}

.public-candle-wick-14 {
  --wick-height: 38vh;
}

.public-candle-wick-15 {
  --wick-height: 41vh;
}

.public-candle-y-1 {
  --candle-offset: -28vh;
}

.public-candle-y-2 {
  --candle-offset: -22vh;
}

.public-candle-y-3 {
  --candle-offset: -16vh;
}

.public-candle-y-4 {
  --candle-offset: -9vh;
}

.public-candle-y-5 {
  --candle-offset: -2vh;
}

.public-candle-y-6 {
  --candle-offset: 6vh;
}

.public-candle-y-7 {
  --candle-offset: 13vh;
}

.public-candle-y-8 {
  --candle-offset: 20vh;
}

.public-candle-y-9 {
  --candle-offset: 27vh;
}

@keyframes public-candle-page-flow {
  from {
    transform: translate3d(-50%, -50%, 0);
  }
  to {
    transform: translate3d(0, -50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-candle-lane-full {
    animation: none;
    transform: translate3d(-25%, -50%, 0);
  }
}

.public-hero-panel {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: 32px;
  background:
    radial-gradient(circle at top center, rgba(164, 192, 212, 0.34), transparent 34%),
    linear-gradient(to top, rgba(248, 252, 255, 0.98) 0%, rgba(228, 240, 249, 0.92) 52%, rgba(205, 225, 239, 0.9) 100%);
  box-shadow: 0 24px 80px rgba(4, 17, 33, 0.1);
  backdrop-filter: blur(12px);
}

.public-soft-panel {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(249, 251, 252, 0.8), rgba(234, 241, 246, 0.66));
  box-shadow: 0 18px 60px rgba(4, 17, 33, 0.08);
  backdrop-filter: blur(16px);
}

.public-pill {
  display: inline-flex;
  border: 1px solid #cfe0eb;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.75);
  color: #174871;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.public-title {
  color: #041121;
}

.public-text {
  color: #505f6b;
}

.public-card {
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(238, 244, 248, 0.66));
  box-shadow: 0 16px 40px rgba(4, 17, 33, 0.08);
  backdrop-filter: blur(12px);
}

.public-card-soft {
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 244, 248, 0.64));
  box-shadow: 0 18px 44px rgba(4, 17, 33, 0.08);
  backdrop-filter: blur(12px);
}

.public-cta-panel {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(164, 192, 212, 0.26), transparent 30%),
    radial-gradient(circle at bottom right, rgba(103, 151, 181, 0.18), transparent 25%),
    linear-gradient(135deg, rgba(249, 251, 252, 0.92), rgba(232, 240, 246, 0.78));
  box-shadow: 0 20px 60px rgba(4, 17, 33, 0.1);
  backdrop-filter: blur(16px);
}

.public-btn-primary {
  border-radius: 0.75rem;
  background: #0e2e51;
  color: #fff;
  transition: background-color 0.2s ease;
}

.public-btn-primary:hover {
  background: #174871;
}

.public-btn-secondary {
  border: 1px solid #cfe0eb;
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.65);
  color: #4f6b8c;
  transition: all 0.2s ease;
}

.public-btn-secondary:hover {
  border-color: #a4c0d4;
  background: rgb(255 255 255 / 0.85);
  color: #174871;
}

.public-plan-card {
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(238, 244, 248, 0.66));
  box-shadow: 0 18px 46px rgba(4, 17, 33, 0.08);
  backdrop-filter: blur(12px);
}

.public-plan-card-selected {
  border-color: #88aeca;
  background:
    radial-gradient(circle at top right, rgba(103, 151, 181, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 240, 246, 0.84));
  box-shadow:
    0 18px 46px rgba(4, 17, 33, 0.08),
    0 0 0 2px #b3cada;
}

.public-flow-grid {
  display: grid;
  gap: 1rem;
}

.public-flow-step {
  display: flex;
  min-width: 0;
}

.public-flow-card {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(235, 243, 248, 0.74));
  box-shadow: 0 18px 44px rgba(4, 17, 33, 0.08);
  text-align: center;
}

.public-flow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0e2e51, #174871);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(23, 72, 113, 0.22);
}

.public-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  color: #174871;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.8;
}

.public-flow-arrow span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(235, 243, 248, 0.68));
  box-shadow: 0 10px 24px rgba(23, 72, 113, 0.14);
}

.public-feature-pill {
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(239, 245, 249, 0.68));
}

.public-white-panel {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.public-form-label {
  display: block;
  font-size: 0.875rem;
  color: #505f6b;
}

.public-form-control {
  width: 100%;
  border: 1px solid #dbe6ee;
  border-radius: 0.625rem;
  background: rgb(255 255 255 / 0.96);
  color: #041121;
  padding: 0.5rem 0.75rem;
}

.public-form-control:focus {
  outline: none;
  border-color: #88aeca;
  box-shadow: 0 0 0 3px rgb(179 202 218 / 0.35);
}

.public-form-control:disabled {
  background: #eef3f7;
  color: #6f7f8e;
}

.public-muted-card {
  border: 1px solid #dbe6ee;
  border-radius: 0.75rem;
  background: #f5f9fc;
}

.public-accent-panel {
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.public-feedback-info {
  border-radius: 0.625rem;
  background: #eaf3ff;
  color: #174871;
}

@media (max-width: 640px) {
  .public-candle-snapshot {
    width: clamp(0.46rem, 0.8vw, 0.72rem);
  }

  .public-candle-lane {
    gap: 1.45rem;
    opacity: 0.22;
  }

  .public-candle-stream {
    gap: 1.45rem;
    padding-right: 1.45rem;
  }

  .public-orb-right {
    top: 22rem;
    height: 14rem;
    width: 14rem;
  }

  .public-flow-arrow span {
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-candle-snapshot-layer {
    animation: none;
    opacity: 0;
  }

  .public-candle-snapshot-layer-1 {
    opacity: 0.9;
  }
}

@media (min-width: 768px) {
  .public-flow-grid {
    grid-template-columns: minmax(0, 1fr) 3.25rem minmax(0, 1fr) 3.25rem minmax(0, 1fr) 3.25rem minmax(0, 1fr);
    align-items: stretch;
  }

  .public-flow-arrow {
    min-height: 0;
  }
}
