/* ── main layout ── */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

/* ── glow orbs (CSS-only decorative depth) ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(72px);
}
.glow-orb--tr {
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.38) 0%, transparent 68%);
  top: -120px;
  right: -120px;
}
.glow-orb--bl {
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, transparent 68%);
  bottom: -100px;
  left: -100px;
}
.glow-orb--center {
  width: min(600px, 100vw);
  height: min(600px, 100vw);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

[theme="light"] .glow-orb {
  opacity: 0.8;
}

/* ── hero ── */
.pub-hero {
  position: relative;
  width: 100%;
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
  overflow: hidden;
}
.pub-hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 auto 1.25rem;
  max-width: 680px;
}
.pub-hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

/* ── primary button ── */
.pub-btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 22px rgba(139, 92, 246, 0.38);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.pub-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.52);
}
.pub-btn:active {
  transform: translateY(0);
  filter: brightness(1.0);
}

/* ── section wrapper ── */
.pub-section {
  position: relative;
  width: 100%;
  padding: 4.5rem 1.5rem;
  overflow: hidden;
}
.pub-section__title {
  text-align: center;
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}
.pub-section__sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 auto 2.75rem;
  max-width: 460px;
}

/* ── services grid ── */
.pub-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.pub-card {
  background: var(--bg-light);
  border: var(--border-card);
  border-top: 2px solid var(--primary);
  border-radius: 12px;
  padding: 1.6rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.18);
}
.pub-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.55rem;
}
.pub-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ── why section ── */
.pub-why {
  background: var(--bg);
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
}
.pub-why__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}
.pub-why__item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.pub-why__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 0.45rem;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.65);
}
.pub-why__item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.pub-why__item p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ── CTA banner ── */
.pub-cta {
  position: relative;
  text-align: center;
  padding: 5.5rem 1.5rem 6.5rem;
  width: 100%;
  overflow: hidden;
}
.pub-cta h2 {
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}
.pub-cta p {
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 420px;
  line-height: 1.65;
}

/* ── about page ── */
.pub-page-header {
  position: relative;
  width: 100%;
  padding: 4.5rem 1.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}
.pub-page-header h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
}
.pub-page-header p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0;
}

.pub-expertise {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.pub-expertise__area {
  padding-left: 1.25rem;
  border-left: 3px solid var(--primary);
}
.pub-expertise__area h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.pub-expertise__area p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.96rem;
  margin: 0 0 0.6rem;
}
.pub-expertise__area p:last-of-type {
  margin-bottom: 0;
}

.pub-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.pub-tech__tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  background: var(--bg-light);
  border: var(--border-card);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── contact page ── */
.pub-contact {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.pub-contact__header h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}
.pub-contact__header p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.02rem;
  margin: 0;
}
.pub-contact__block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pub-contact__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.pub-email-link {
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.pub-email-link:hover {
  color: var(--primary);
}
.pub-contact__note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
.pub-contact__closing {
  padding: 1.75rem;
  border: var(--border-card);
  border-top: 2px solid var(--primary);
  border-radius: 12px;
  background: var(--bg-light);
}
.pub-contact__closing h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.pub-contact__closing p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ── responsive ── */
@media (max-width: 768px) {
  .pub-hero {
    padding: 3.5rem 1.25rem 3rem;
  }
  .pub-section {
    padding: 3.5rem 1.25rem;
  }
  .pub-cta {
    padding: 3.5rem 1.25rem 5rem;
  }
  .pub-page-header {
    padding: 3rem 1.25rem 1.5rem;
  }
  .pub-expertise {
    padding: 1rem 1.25rem 4rem;
  }
  .pub-contact {
    padding: 3rem 1.25rem 4rem;
  }
}
