/* Sát hạch AI — Public landing (Academic fresh, richer) */

.cp-public-page {
  --pub-hero-bg:
    radial-gradient(ellipse 80% 60% at 100% -10%, rgba(29, 78, 216, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 45% at -5% 90%, rgba(3, 105, 161, 0.12), transparent 52%),
    radial-gradient(ellipse 35% 30% at 55% 40%, rgba(14, 165, 233, 0.06), transparent 60%),
    linear-gradient(165deg, #e8eefb 0%, #f3f7fc 42%, #ffffff 100%);
}

.cp-public-page .cp-main-public {
  overflow-x: hidden;
}

@keyframes pub-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pub-meter {
  from { width: 0; }
  to { width: var(--fill, 70%); }
}

@keyframes pub-shine {
  0% { transform: translateX(-120%) rotate(18deg); opacity: 0; }
  30% { opacity: 0.45; }
  100% { transform: translateX(160%) rotate(18deg); opacity: 0; }
}

/* ——— Hero ——— */
.pub-hero {
  position: relative;
  min-height: calc(100vh - var(--cp-nav-h, 68px));
  display: flex;
  align-items: center;
  padding: 3.5rem 0 4.25rem;
  background: var(--pub-hero-bg);
  overflow: hidden;
}

.pub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 64, 175, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 65% at 70% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}

.pub-hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pub-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: pub-float 7s ease-in-out infinite;
}

.pub-orb-a {
  width: 18rem;
  height: 18rem;
  top: 8%;
  right: 6%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.22), transparent 70%);
}

.pub-orb-b {
  width: 12rem;
  height: 12rem;
  bottom: 12%;
  left: 4%;
  background: radial-gradient(circle, rgba(3, 105, 161, 0.2), transparent 70%);
  animation-delay: -2.5s;
}

.pub-orb-c {
  width: 8rem;
  height: 8rem;
  top: 42%;
  left: 42%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14), transparent 70%);
  animation-delay: -4s;
}

.pub-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .pub-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.95fr);
    gap: 3.25rem;
  }
}

.pub-hero-inner {
  max-width: 38rem;
  animation: cp-fade-up 0.55s ease-out both;
}

.pub-eyebrow-glow {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(30, 64, 175, 0.14);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.06);
}

.pub-brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 6.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--cp-ink);
  margin: 0.85rem 0 1rem;
}

.pub-brand-hero span {
  display: block;
  margin-top: 0.4rem;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.28;
  background: linear-gradient(105deg, #1e3a8a 0%, #1d4ed8 45%, #0369a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pub-hero-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--cp-muted);
  margin: 0 0 1.5rem;
}

.pub-hero-lead strong {
  color: var(--cp-ink);
  font-weight: 600;
}

.pub-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.pub-hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pub-hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.45;
}

.pub-hero-points i {
  margin-top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 120, 87, 0.1);
  color: var(--cp-success);
  font-size: 0.55rem;
}

.pub-hero-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 120%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  padding: 1.45rem 1.4rem 1.2rem;
  color: #e2e8f0;
  animation: cp-fade-up 0.65s 0.1s ease-out both;
}

.pub-hero-panel-shine {
  position: absolute;
  top: -40%;
  left: 0;
  width: 40%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: pub-shine 5.5s ease-in-out infinite;
  pointer-events: none;
}

.pub-hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
}

.pub-hero-panel-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #0f172a;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
}

.pub-hero-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-hero-flow li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.65rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}

.pub-hero-flow li:hover {
  background: rgba(255, 255, 255, 0.09);
}

.pub-hero-flow-num {
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #38bdf8, #0284c7);
  color: #0f172a;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.pub-hero-flow strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.pub-hero-flow p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.72);
}

.pub-hero-panel-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.pub-hero-metric {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #7dd3fc;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pub-hero-panel-foot small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.65);
}

.pub-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.55rem;
  border-radius: var(--cp-radius-sm);
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(30, 64, 175, 0.28);
}

.pub-btn-glow:hover,
.pub-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.35);
  color: #fff;
}

.pub-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: var(--cp-radius-sm);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(30, 64, 175, 0.22);
  color: var(--cp-primary-dark) !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.pub-btn-outline:hover {
  background: #fff;
  border-color: rgba(30, 64, 175, 0.4);
  color: var(--cp-primary-dark);
  transform: translateY(-1px);
}

/* ——— Section shell ——— */
.pub-section {
  padding: 4rem 0;
}

.pub-section-alt {
  background: #fff;
  border-top: 1px solid var(--cp-border);
  border-bottom: 1px solid var(--cp-border);
}

.pub-section-head {
  max-width: 40rem;
  margin: 0 0 2.25rem;
  padding: 0;
}

.pub-section-head.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pub-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  color: var(--cp-ink);
}

.pub-section-head p {
  font-size: 1.02rem;
  color: var(--cp-muted);
  margin: 0;
  line-height: 1.6;
}

.pub-section-head .cp-eyebrow {
  margin-bottom: 0.5rem;
}

/* ——— AI evaluation ——— */
.pub-ai-section {
  position: relative;
  padding: 4.25rem 0 4.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f5fc 0%, #eef3fb 50%, #f7f9fc 100%);
  border-top: 1px solid var(--cp-border);
  border-bottom: 1px solid var(--cp-border);
}

.pub-ai-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 10% 20%, rgba(30, 64, 175, 0.08), transparent 58%),
    radial-gradient(ellipse 40% 35% at 90% 75%, rgba(3, 105, 161, 0.08), transparent 55%);
}

.pub-ai-inner {
  position: relative;
  z-index: 1;
}

.pub-ai-head {
  max-width: none;
  margin: 0 0 2.25rem;
}

.pub-ai-head .cp-eyebrow {
  margin-bottom: 0.65rem;
}

.pub-ai-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--cp-ink);
  margin: 0 0 0.85rem;
  text-wrap: balance;
}

.pub-ai-lead {
  font-size: 1.05rem;
  color: var(--cp-muted);
  line-height: 1.65;
  margin: 0;
  max-width: none;
  text-wrap: pretty;
}

.pub-ai-lead strong {
  color: var(--cp-ink);
  font-weight: 600;
}

.pub-ai-board {
  max-width: 48rem;
  margin: 0 0 2.5rem;
  padding: 1.45rem 1.4rem 1.3rem;
  border-radius: 1rem;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(30, 64, 175, 0.12);
  box-shadow:
    0 18px 40px rgba(30, 64, 175, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  animation: cp-fade-up 0.65s 0.1s ease-out both;
}

.pub-ai-board-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.pub-ai-board-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cp-muted);
  font-family: var(--font-display);
}

.pub-ai-board-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.08);
}

.pub-ai-scores {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pub-ai-scores {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
  }
}

.pub-ai-score {
  min-width: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--cp-radius-sm);
  background: var(--cp-bg);
  border: 1px solid var(--cp-border);
}

.pub-ai-score-prompt {
  border-color: rgba(3, 105, 161, 0.2);
  background: linear-gradient(165deg, #f0f9ff 0%, #fff 100%);
}

.pub-ai-score-output {
  border-color: rgba(30, 64, 175, 0.18);
  background: linear-gradient(165deg, #f5f8ff 0%, #fff 100%);
}

.pub-ai-score-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.pub-ai-score-meta > span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cp-muted);
}

.pub-ai-score-meta strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cp-ink);
  line-height: 1;
}

.pub-ai-score-meta strong span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 0.1rem;
}

.pub-ai-meter {
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.pub-ai-meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0369a1, #0ea5e9);
  animation: pub-ai-fill 1.1s 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pub-ai-score-output .pub-ai-meter i {
  background: linear-gradient(90deg, #1e40af, #3b82f6);
  animation-delay: 0.4s;
}

@keyframes pub-ai-fill {
  from { width: 0; }
  to { width: var(--fill, 70%); }
}

.pub-ai-score-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--cp-muted);
}

.pub-ai-score-plus {
  display: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .pub-ai-score-plus {
    display: block;
    text-align: center;
  }
}

.pub-ai-feedback {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 1.1rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: var(--cp-radius-sm);
  background: var(--cp-primary-soft);
  border-left: 3px solid var(--cp-primary);
}

.pub-ai-feedback > i {
  color: var(--cp-primary);
  font-size: 0.9rem;
  margin-top: 0.15rem;
  opacity: 0.85;
}

.pub-ai-feedback p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--cp-ink);
}

.pub-ai-journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 48rem;
}

@media (min-width: 768px) {
  .pub-ai-journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .pub-ai-journey li {
    position: relative;
    padding: 0 1.25rem;
  }

  .pub-ai-journey li:first-child {
    padding-left: 0;
  }

  .pub-ai-journey li:last-child {
    padding-right: 0;
  }

  .pub-ai-journey li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0.85rem;
    left: calc(2.4rem + 0.5rem);
    right: 0.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.4), rgba(148, 163, 184, 0.2));
  }
}

.pub-ai-journey-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cp-primary);
  margin-bottom: 0.5rem;
}

.pub-ai-journey strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cp-ink);
  margin-bottom: 0.3rem;
}

.pub-ai-journey p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--cp-muted);
}

@media (prefers-reduced-motion: reduce) {
  .pub-orb,
  .pub-hero-panel-shine,
  .pub-ai-board,
  .pub-ai-meter i,
  .pub-hero-inner,
  .pub-hero-panel {
    animation: none;
  }

  .pub-ai-meter i {
    width: var(--fill, 70%);
  }

  .pub-feature-item:hover,
  .pub-process-step:hover,
  .pub-btn-glow:hover,
  .pub-btn-primary:hover {
    transform: none;
  }
}

/* ——— Features ——— */
.pub-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .pub-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.pub-feature-item {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 1.3rem 1.35rem;
  border: 1px solid rgba(30, 64, 175, 0.1);
  border-radius: var(--cp-radius);
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pub-feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.9;
}

.pub-feature-a::before { background: linear-gradient(90deg, #0369a1, #38bdf8); }
.pub-feature-b::before { background: linear-gradient(90deg, #1e40af, #6366f1); }
.pub-feature-c::before { background: linear-gradient(90deg, #0f766e, #2dd4bf); }
.pub-feature-d::before { background: linear-gradient(90deg, #b45309, #fbbf24); }

.pub-feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(30, 64, 175, 0.1);
  border-color: rgba(30, 64, 175, 0.2);
}

.pub-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  margin-bottom: 0.95rem;
  font-size: 1.05rem;
}

.pub-feature-a .pub-feature-icon {
  background: rgba(3, 105, 161, 0.1);
  color: #0369a1;
}

.pub-feature-b .pub-feature-icon {
  background: rgba(30, 64, 175, 0.1);
  color: #1e40af;
}

.pub-feature-c .pub-feature-icon {
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

.pub-feature-d .pub-feature-icon {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
}

.pub-feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--cp-ink);
}

.pub-feature-item p {
  font-size: 0.93rem;
  color: var(--cp-muted);
  margin: 0;
  line-height: 1.55;
}

.pub-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--cp-border);
}

.pub-feature-row {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--cp-border);
}

@media (min-width: 768px) {
  .pub-feature-row {
    grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
    align-items: baseline;
  }
}

.pub-feature-row h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--cp-ink);
}

.pub-feature-row p {
  font-size: 0.95rem;
  color: var(--cp-muted);
  line-height: 1.55;
  margin: 0;
}

/* ——— Process ——— */
.pub-process {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pub-process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.pub-process-step {
  position: relative;
  padding: 1.35rem 1.25rem 1.4rem;
  min-width: 0;
  border-radius: var(--cp-radius);
  background: linear-gradient(165deg, #f8fafc 0%, #fff 55%);
  border: 1px solid rgba(30, 64, 175, 0.1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-process-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.08);
}

.pub-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e40af, #1d4ed8);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  box-shadow: 0 6px 14px rgba(30, 64, 175, 0.28);
}

.pub-process-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--cp-ink);
}

.pub-process-step p {
  font-size: 0.9rem;
  color: var(--cp-muted);
  line-height: 1.55;
  margin: 0;
}

/* ——— CTA band ——— */
.pub-cta-band {
  position: relative;
  padding: 4rem 0;
  background:
    radial-gradient(ellipse 55% 80% at 0% 100%, rgba(14, 165, 233, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 70% at 100% 0%, rgba(99, 102, 241, 0.25), transparent 50%),
    linear-gradient(125deg, #0f172a 0%, #1e3a8a 45%, #1d4ed8 100%);
  overflow: hidden;
}

.pub-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 10%, transparent 70%);
  pointer-events: none;
}

.pub-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  color: #fff;
}

.pub-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
}

.pub-cta-inner p {
  font-size: 1.05rem;
  opacity: 0.88;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.pub-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pub-cta-inner .pub-btn-primary {
  background: #fff;
  color: var(--cp-primary-dark) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.pub-cta-inner .pub-btn-primary:hover {
  background: #f8fafc;
  color: var(--cp-primary-dark) !important;
  filter: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.pub-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  border-radius: var(--cp-radius-sm);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}

.pub-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  transform: translateY(-1px);
}

/* ——— Auth page ——— */
.pub-auth-wrap {
  min-height: calc(100vh - var(--cp-nav-h, 68px));
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
  background: var(--pub-hero-bg);
}

.pub-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .pub-auth-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 3rem;
  }
}

.pub-auth-intro {
  display: none;
}

@media (min-width: 992px) {
  .pub-auth-intro {
    display: block;
    animation: cp-fade-up 0.45s ease-out both;
  }
}

.pub-auth-intro .pub-brand-hero {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  margin-bottom: 0.85rem;
}

.pub-auth-intro .pub-hero-lead {
  max-width: none;
}

.pub-auth-card {
  padding: 2rem 1.75rem;
  border-radius: var(--cp-radius);
  background: #fff;
  border: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow-lg);
  animation: cp-fade-up 0.5s 0.05s ease-out both;
}

.pub-auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.pub-auth-card .pub-auth-sub {
  font-size: 0.9rem;
  color: var(--cp-muted);
  margin-bottom: 1.5rem;
}

.pub-auth-card .form-control {
  border-radius: var(--cp-radius-sm);
  border-color: rgba(15, 23, 42, 0.12);
  padding: 0.65rem 0.85rem;
}

.pub-auth-card .form-control:focus {
  border-color: rgba(30, 64, 175, 0.45);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.pub-sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--cp-radius-sm);
  border: 1px solid var(--cp-border);
  background: #fff;
  color: var(--cp-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.pub-sso-btn:hover {
  border-color: rgba(30, 64, 175, 0.28);
  background: #f8fafc;
  color: var(--cp-ink);
}

.pub-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  font-size: 0.78rem;
  color: var(--cp-muted);
}

.pub-auth-divider::before,
.pub-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cp-border);
}

.cp-public-page .cp-topbar {
  box-shadow: none;
}

.cp-public-page .cp-footer {
  margin-top: 0;
}

@media (max-width: 575.98px) {
  .pub-btn-primary,
  .pub-btn-outline,
  .pub-btn-ghost {
    white-space: normal;
    width: 100%;
  }

  .pub-hero-cta,
  .pub-cta-actions {
    flex-direction: column;
  }

  .pub-hero {
    min-height: auto;
    padding: 3rem 0 3.5rem;
  }

  .pub-orb-a {
    width: 11rem;
    height: 11rem;
  }

  .pub-orb-b {
    width: 8rem;
    height: 8rem;
  }

  .pub-orb-c {
    display: none;
  }
}
