.pub-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(6, 11, 22, 0.84);
  border-bottom: 1px solid var(--border-subtle);
}

.pub-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.pub-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.pub-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pub-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
}

.pub-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.hero {
  padding: 84px 0 64px;
  background: radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.14), transparent 45%),
              radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.12), transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin: 0 0 16px;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 560px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.status-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.status-row:last-child {
  margin-bottom: 0;
}

.pub-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 640px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text-primary);
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-pill {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

.pub-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
}

.pub-footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Login Page */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 15%, rgba(6, 182, 212, 0.14), transparent 50%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-header .brand-icon {
  margin: 0 auto 14px;
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.login-header h1 {
  margin: 0 0 6px;
  font-size: 21px;
}

.login-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
}

.pw-wrap {
  position: relative;
}

.pw-wrap input {
  padding-right: 68px;
}

.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--text-secondary);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.alert-box {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 12px;
  display: none;
}

.alert-box.show {
  display: block;
}

.alert-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .pub-links a:not(.btn) {
    display: none;
  }
}
