.public-site {
  --public-bg: #07131f;
  --public-bg-strong: #0b1726;
  --public-surface: rgba(11, 23, 38, 0.78);
  --public-surface-soft: rgba(15, 27, 45, 0.62);
  --public-border: rgba(148, 163, 184, 0.16);
  --public-text: #f8fafc;
  --public-muted: #9db0c8;
  --public-accent: #60a5fa;
  --public-accent-strong: #2563eb;
  --public-success: #3b82f6;
  --public-warm: #f59e0b;
  position: relative;
  min-height: 100vh;
  color: var(--public-text);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(245, 158, 11, 0.08), transparent 30%),
    linear-gradient(180deg, var(--public-bg) 0%, var(--public-bg-strong) 48%, var(--public-bg) 100%);
  overflow: hidden;
}

.public-site__backdrop,
.public-site__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.public-site__backdrop {
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.12), transparent 20%),
    radial-gradient(circle at 82% 22%, rgba(96, 165, 250, 0.14), transparent 18%);
}

.public-site__grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
}

.public-site__nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 5vw;
  background: rgba(7, 19, 31, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.public-site__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: none;
  border: 0;
  color: var(--public-text);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.public-site__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.96), rgba(37, 99, 235, 0.92));
  color: #eff6ff;
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.18);
}

.public-site__brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.public-site__brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.public-site__brand-subtitle {
  font-size: 0.8rem;
  color: var(--public-muted);
}

.public-site__nav-links,
.public-site__footer-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.public-site__nav-link,
.public-site__footer-link,
.public-site__text-action {
  background: none;
  border: 0;
  color: var(--public-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}

.public-site__nav-link:hover,
.public-site__footer-link:hover,
.public-site__text-action:hover,
.public-site__nav-link.is-active,
.public-site__footer-link.is-active {
  color: var(--public-text);
}

.public-site__nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.public-site__theme-toggle {
  display: inline-flex;
}

.public-site__cta,
.public-site__button,
.public-site__button--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 0.95rem;
  padding: 0.95rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.public-site__cta,
.public-site__button {
  color: #eff6ff;
  background: linear-gradient(135deg, var(--public-accent), var(--public-accent-strong));
  border: 0;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.22);
}

.public-site__cta:hover,
.public-site__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

.public-site__cta--nav {
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  gap: 0.5rem;
  line-height: 1.25rem;
  box-shadow: none;
}

.public-site__cta--nav:hover {
  box-shadow: none;
}

.public-site__button--secondary {
  color: var(--public-text);
  background: rgba(15, 27, 45, 0.55);
  border: 1px solid var(--public-border);
}

.public-site__button--secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(15, 27, 45, 0.82);
}

.public-site__main {
  position: relative;
  z-index: 1;
  padding: 0 5vw 4rem;
}

.public-hero,
.public-section,
.public-page {
  max-width: 1280px;
  margin: 0 auto;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding: 4.8rem 0 4.5rem;
}

.public-hero__badge,
.public-section__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(96, 165, 250, 0.1);
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.public-hero__title {
  margin: 1.35rem 0 1.1rem;
  font-size: clamp(2.85rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.public-hero__title-accent {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, #dbeafe 0%, #60a5fa 45%, #2563eb 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.public-hero__copy {
  margin: 0;
  max-width: 40rem;
  color: var(--public-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.public-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 2rem;
}

.public-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.public-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--public-border);
  background: rgba(15, 27, 45, 0.62);
  padding: 0.7rem 1rem;
  color: var(--public-muted);
  font-size: 0.9rem;
}

.public-hero__panel,
.public-card,
.public-page__card,
.public-stats__card,
.public-preview__panel {
  border: 1px solid var(--public-border);
  background: var(--public-surface);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

.public-preview__panel {
  padding: 1.6rem;
  border-radius: 1.8rem;
  transform: perspective(1000px) rotateY(-6deg) rotateX(4deg);
  transition: transform 0.3s ease;
}

.public-preview__panel:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.public-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.public-preview__status {
  color: #bfdbfe;
  font-size: 0.85rem;
  font-weight: 600;
}

.public-preview__status::before {
  content: '';
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.16);
}

.public-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.public-preview__card {
  border-radius: 1.25rem;
  padding: 1.15rem;
  background: rgba(7, 19, 31, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.public-preview__label {
  color: var(--public-muted);
  font-size: 0.8rem;
}

.public-preview__value {
  margin-top: 0.55rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.public-preview__value--accent {
  color: #93c5fd;
}

.public-preview__value--success {
  color: #60a5fa;
}

.public-progress {
  height: 0.5rem;
  margin-top: 0.85rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.public-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--public-accent), var(--public-accent-strong));
}

.public-preview__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.public-preview__meta-card {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(3, 9, 18, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.public-section {
  margin-bottom: 4.5rem;
}

.public-section__header {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.public-section__title {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.public-section__copy {
  margin: 0;
  color: var(--public-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.public-features,
.public-steps,
.public-page__grid {
  display: grid;
  gap: 1.2rem;
}

.public-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.public-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(37, 99, 235, 0.16));
  color: #dbeafe;
  margin-bottom: 1rem;
}

.public-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.public-card__copy {
  margin: 0;
  color: var(--public-muted);
  line-height: 1.75;
}

.public-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-step {
  position: relative;
  padding: 1.6rem;
  border-radius: 1.5rem;
}

.public-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.32);
  color: #dbeafe;
  font-weight: 700;
  margin-bottom: 1rem;
}

.public-step__title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.public-step__copy {
  margin: 0;
  color: var(--public-muted);
  line-height: 1.7;
}

.public-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.public-stats__card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
}

.public-stats__value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.public-stats__label {
  margin-top: 0.5rem;
  color: var(--public-muted);
}

.public-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1.9rem;
  background: linear-gradient(135deg, rgba(6, 18, 31, 0.94), rgba(11, 23, 38, 0.78));
  border: 1px solid var(--public-border);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

.public-cta-panel__title {
  margin: 0.75rem 0 0.55rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.public-cta-panel__copy {
  margin: 0;
  color: var(--public-muted);
  line-height: 1.75;
}

.public-cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.public-page {
  padding: 3.25rem 0 4rem;
}

.public-page__hero {
  max-width: 54rem;
  margin-bottom: 2rem;
}

.public-page__title {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.public-page__copy {
  margin: 0;
  color: var(--public-muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.public-page__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-page__card {
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.public-page__card--wide {
  grid-column: 1 / -1;
}

.public-page__card-title {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.public-page__card-copy,
.public-page__list {
  margin: 0;
  color: var(--public-muted);
  line-height: 1.75;
}

.public-page__list {
  padding-left: 1.1rem;
}

.public-page__list li + li {
  margin-top: 0.45rem;
}

.public-page__notice {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  line-height: 1.7;
}

.public-site__footer {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5vw 2.8rem;
}

.public-site__footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.public-site__footer-meta {
  color: var(--public-muted);
  font-size: 0.92rem;
}

html:not(.dark) .public-site {
  --public-bg: #eef4ff;
  --public-bg-strong: #f8fbff;
  --public-surface: rgba(255, 255, 255, 0.88);
  --public-surface-soft: rgba(255, 255, 255, 0.74);
  --public-border: rgba(37, 99, 235, 0.14);
  --public-text: #0f172a;
  --public-muted: #475569;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.44), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(245, 158, 11, 0.12), transparent 30%),
    linear-gradient(180deg, var(--public-bg) 0%, var(--public-bg-strong) 48%, #edf5ff 100%);
}

html:not(.dark) .public-site__backdrop {
  background:
    radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.14), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(59, 130, 246, 0.12), transparent 18%);
}

html:not(.dark) .public-site__grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
}

html:not(.dark) .public-site__nav {
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

html:not(.dark) .public-site__brand-mark {
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.16);
}

html:not(.dark) .public-site__button--secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(37, 99, 235, 0.16);
}

html:not(.dark) .public-site__button--secondary:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(255, 255, 255, 0.96);
}

html:not(.dark) .public-hero__badge,
html:not(.dark) .public-section__tag {
  color: #1d4ed8;
  background: rgba(96, 165, 250, 0.12);
}

html:not(.dark) .public-chip {
  background: rgba(255, 255, 255, 0.78);
}

html:not(.dark) .public-preview__panel,
html:not(.dark) .public-card,
html:not(.dark) .public-page__card,
html:not(.dark) .public-stats__card {
  box-shadow: 0 24px 52px rgba(37, 99, 235, 0.12);
}

html:not(.dark) .public-preview__card {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(37, 99, 235, 0.12);
}

html:not(.dark) .public-progress {
  background: rgba(37, 99, 235, 0.1);
}

html:not(.dark) .public-preview__meta-card {
  background: rgba(244, 247, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.12);
}

html:not(.dark) .public-cta-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.92));
  box-shadow: 0 24px 52px rgba(37, 99, 235, 0.12);
}

html:not(.dark) .public-site__footer-inner {
  border-top: 1px solid rgba(37, 99, 235, 0.12);
}

@media (max-width: 1100px) {
  .public-hero {
    grid-template-columns: 1fr;
  }

  .public-preview__panel {
    transform: none;
  }

  .public-features,
  .public-steps,
  .public-stats,
  .public-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 780px) {
  .public-site__nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-site__nav-links,
  .public-site__nav-actions,
  .public-site__footer-inner {
    width: 100%;
  }

  .public-site__footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-preview__grid,
  .public-preview__meta,
  .public-features,
  .public-steps,
  .public-stats,
  .public-page__grid {
    grid-template-columns: 1fr;
  }

  .public-hero__title {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }
}
