/* Home landing page — mirrors the original structure: hero, solutions, process, cases, team, contact. */

.pub-home-section {
  position: relative;
  padding: 80px 0;
  background: var(--pub-navy-900);
}

.pub-home-section--alt {
  background: var(--pub-navy-800);
}

.pub-home-section--fade {
  background: linear-gradient(180deg, var(--pub-navy-800), var(--pub-navy-900));
}

.pub-home-head {
  max-width: 900px;
  margin: 0 auto 64px;
  text-align: center;
}

.pub-home-title {
  margin-bottom: 16px;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.pub-home-title--left {
  margin-bottom: 32px;
  font-size: clamp(1.875rem, 3vw, 2.25rem);
}

.pub-home-title--sm {
  margin-bottom: 24px;
}

.pub-home-lead {
  max-width: 672px;
  margin: 0 auto;
  color: var(--pub-text-muted);
  font-size: 1.125rem;
}

/* Hero */
.pub-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--pub-gradient-section);
  isolation: isolate;
}

.pub-hero__particles {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.pub-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--pub-navy-900), rgba(10, 22, 40, 0.95), var(--pub-navy-800));
}

.pub-hero__inner {
  padding-top: 80px;
  text-align: center;
}

.pub-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 8px 16px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--pub-radius-pill);
  background: rgba(6, 182, 212, 0.1);
  color: var(--pub-cyan);
  font-size: 0.875rem;
  font-weight: 500;
  animation: pub-float 3s ease-in-out infinite;
}

.pub-hero__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pub-cyan);
  animation: pub-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pub-hero__title {
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 0 80px rgba(59, 130, 246, 0.3);
}

.pub-hero__line {
  display: block;
}

.pub-hero__line + .pub-hero__line {
  margin-top: 8px;
}

.pub-hero__line--gradient {
  background: linear-gradient(90deg, var(--pub-blue), var(--pub-cyan), var(--pub-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.pub-hero__desc {
  max-width: 768px;
  margin: 0 auto 40px;
  color: var(--pub-text-soft);
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  line-height: 1.625;
}

.pub-hero__accent {
  color: var(--pub-cyan);
  font-weight: 500;
}

.pub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pub-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  color: var(--pub-white);
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.pub-hero__btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.pub-hero__btn--primary {
  background: var(--pub-gradient-button);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.25);
}

.pub-hero__btn--primary:hover {
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
}

.pub-hero__btn--primary:hover svg {
  transform: translateX(4px);
}

.pub-hero__btn--outline {
  border: 2px solid var(--pub-text-faint);
}

.pub-hero__btn--outline:hover {
  border-color: var(--pub-cyan);
  color: var(--pub-cyan);
}

/* Solutions: pains + core solutions */
.pub-solutions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
}

.pub-pains {
  display: grid;
  gap: 16px;
}

.pub-pain {
  --pain: #EF4444;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-left: 4px solid var(--pain);
  border-radius: 12px;
  background: var(--pub-navy-800);
  transition: background-color 0.2s ease;
}

.pub-pain:hover {
  background: var(--pub-navy-700);
}

.pub-pain--orange {
  --pain: #F97316;
}

.pub-pain--yellow {
  --pain: #EAB308;
}

.pub-pain--pink {
  --pain: #EC4899;
}

.pub-pain__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--pain) 20%, transparent);
  color: color-mix(in srgb, var(--pain) 75%, white);
}

.pub-pain__icon svg {
  width: 24px;
  height: 24px;
}

.pub-pain__title {
  margin-bottom: 4px;
  font-family: var(--pub-font-body);
  font-size: 1.125rem;
  font-weight: 600;
}

.pub-pain__text {
  color: var(--pub-text-muted);
}

.pub-cores {
  display: grid;
  gap: 24px;
}

.pub-core {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--pub-navy-600);
  border-radius: 16px;
  background: var(--pub-gradient-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pub-core:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.pub-core--ai {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.1);
}

.pub-core--ai:hover {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.2);
}

.pub-core__glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}

.pub-core__glow--top {
  top: -80px;
  right: -80px;
  background: rgba(6, 182, 212, 0.2);
}

.pub-core__glow--bottom {
  bottom: -80px;
  left: -80px;
  background: rgba(139, 92, 246, 0.2);
}

.pub-core__icon {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pub-blue), #2563EB);
  color: var(--pub-white);
}

.pub-core--ai .pub-core__icon {
  background: linear-gradient(135deg, var(--pub-cyan), var(--pub-purple));
  animation: pub-glow 2s ease-in-out infinite;
}

.pub-core__icon svg {
  width: 28px;
  height: 28px;
}

.pub-core__body {
  position: relative;
}

.pub-core__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pub-core__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.pub-core__badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.2);
  color: var(--pub-cyan);
  font-size: 0.75rem;
  font-weight: 500;
}

.pub-core__text {
  color: var(--pub-text-soft);
  line-height: 1.625;
}

.pub-core__accent {
  color: var(--pub-cyan);
  font-weight: 600;
}

/* Process: particle network background, same effect as the hero */
.pub-home-section--animated {
  overflow: hidden;
  isolation: isolate;
}

.pub-section-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
}
/* Process timeline */
.pub-timeline {
  position: relative;
}

.pub-timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--pub-navy-600);
  transform: translateX(-50%);
}

.pub-timeline__progress {
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--pub-blue), var(--pub-purple));
}

.pub-timeline__list {
  display: grid;
  gap: 96px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-timeline__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pub-timeline__item:nth-child(even) {
  justify-content: flex-start;
}

.pub-timeline__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 4px solid var(--pub-navy-800);
  border-radius: 50%;
  background: var(--pub-blue);
  transform: translate(-50%, -50%);
}

.pub-timeline__card {
  width: 41.666%;
  padding: 32px;
  border: 1px solid var(--pub-navy-600);
  border-radius: 16px;
  background: var(--pub-navy-700);
}

.pub-timeline__item:nth-child(even) .pub-timeline__card {
  text-align: right;
}

.pub-timeline__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pub-timeline__item:nth-child(even) .pub-timeline__head {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.pub-timeline__item:nth-child(even) .pub-timeline__head {
  justify-content: flex-start;
}

.pub-timeline__number {
  background: linear-gradient(90deg, var(--pub-blue), var(--pub-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--pub-font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.pub-timeline__icon {
  --step: var(--pub-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--step) 20%, transparent);
  color: var(--step);
}

.pub-timeline__icon svg {
  width: 24px;
  height: 24px;
}

.pub-timeline__icon--cyan {
  --step: var(--pub-cyan);
}

.pub-timeline__icon--purple {
  --step: var(--pub-purple);
}

.pub-timeline__icon--green {
  --step: #4ADE80;
}

.pub-timeline__icon--sky {
  --step: #60A5FA;
}

.pub-timeline__title {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.pub-timeline__text {
  color: var(--pub-text-muted);
}

/* Cases */
.pub-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.pub-case {
  padding: 32px;
  border: 1px solid var(--pub-navy-600);
  border-radius: 16px;
  background: var(--pub-navy-800);
  transform: perspective(1000px) rotateX(0) rotateY(0);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pub-case:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px);
}

.pub-case__title {
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 700;
}

.pub-case__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--pub-text-muted);
}

.pub-case__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border-radius: 8px;
}

.pub-case__icon svg {
  width: 16px;
  height: 16px;
}

.pub-case__icon--problem {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
}

.pub-case__icon--solution {
  background: rgba(6, 182, 212, 0.2);
  color: var(--pub-cyan);
}

.pub-case__label {
  font-weight: 500;
}

.pub-case__label--problem {
  color: #F87171;
}

.pub-case__label--solution {
  color: var(--pub-cyan);
}

.pub-case__results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--pub-navy-600);
  text-align: center;
}

.pub-case__value {
  margin-bottom: 4px;
  font-family: var(--pub-font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.pub-case__caption {
  color: var(--pub-text-muted);
  font-size: 0.875rem;
}

/* Team */
.pub-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.pub-member {
  padding: 32px;
  border: 1px solid var(--pub-navy-600);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--pub-navy-700), var(--pub-navy-800));
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pub-member:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.1);
  transform: translateY(-8px);
}

.pub-member__avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 24px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pub-blue), var(--pub-cyan));
}

.pub-member__avatar--cyan-purple {
  background: linear-gradient(135deg, var(--pub-cyan), var(--pub-purple));
}

.pub-member__avatar--purple-blue {
  background: linear-gradient(135deg, var(--pub-purple), var(--pub-blue));
}

.pub-member__photo {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: var(--pub-navy-800);
}

.pub-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transform: scale(1.5);
  transform-origin: top;
}

.pub-member__name {
  margin-bottom: 4px;
  font-size: 1.25rem;
  font-weight: 700;
}

.pub-member__role {
  margin-bottom: 16px;
  color: var(--pub-cyan);
  font-weight: 500;
}

.pub-member__bio {
  margin-bottom: 24px;
  color: var(--pub-text-muted);
  font-size: 0.875rem;
  line-height: 1.625;
}

.pub-member__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* Contact */
.pub-home-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
}

.pub-home-contact__lead {
  margin-bottom: 32px;
  color: var(--pub-text-muted);
  font-size: 1.125rem;
  line-height: 1.625;
}

.pub-home-contact__list {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-home-contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pub-home-contact__icon {
  --contact: var(--pub-blue);
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--contact) 20%, transparent);
  color: var(--contact);
}

.pub-home-contact__icon svg {
  width: 24px;
  height: 24px;
}

.pub-home-contact__icon--cyan {
  --contact: var(--pub-cyan);
}

.pub-home-contact__icon--purple {
  --contact: var(--pub-purple);
}

.pub-home-contact__label {
  color: var(--pub-text-muted);
  font-size: 0.875rem;
}

.pub-home-contact__value {
  display: block;
  color: var(--pub-white);
  font-weight: 500;
  overflow-wrap: anywhere;
}

a.pub-home-contact__value:hover {
  color: var(--pub-cyan);
}

.pub-home-contact__social {
  margin-top: 40px;
}

.pub-home-contact__social .footer-social {
  margin-top: 16px;
}

.pub-home-form {
  padding: 32px;
  border: 1px solid var(--pub-navy-600);
  border-radius: 16px;
  background: var(--pub-navy-800);
}

.pub-home-form__title {
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 700;
}

.pub-home-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pub-home-form .pub-input {
  min-height: 0;
  border-color: var(--pub-navy-600);
  background: var(--pub-navy-700);
}

.pub-home-form .pub-input.input-validation-error {
  border-color: #EF4444;
}

textarea.pub-input--fixed {
  min-height: 0;
  resize: none;
}

.pub-home-form__submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--pub-gradient-button);
  color: var(--pub-white);
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.pub-home-form__submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.pub-home-form__submit:hover {
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.25);
}

.pub-home-form__submit:hover::before {
  left: 100%;
}

.pub-home-form__submit svg {
  width: 20px;
  height: 20px;
}

/* Animations */
@keyframes pub-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pub-pulse {
  50% {
    opacity: 0.5;
  }
}

@keyframes pub-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
  }

  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
  }
}

/* Responsive (lg = 1024px, md = 768px, sm = 640px as on the original) */
@media (min-width: 1024px) {
  .pub-home-section {
    padding: 128px 0;
  }
}

@media (max-width: 1023px) {
  .pub-solutions,
  .pub-home-contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .pub-cases {
    grid-template-columns: minmax(0, 1fr);
  }

  .pub-timeline__line {
    left: 24px;
    transform: none;
  }

  .pub-timeline__list {
    gap: 48px;
  }

  .pub-timeline__item,
  .pub-timeline__item:nth-child(even) {
    justify-content: flex-start;
  }

  .pub-timeline__dot {
    top: 32px;
    left: 25px;
  }

  .pub-timeline__card {
    width: auto;
    margin-left: 64px;
    padding: 24px;
  }

  .pub-timeline__item:nth-child(even) .pub-timeline__card {
    text-align: left;
  }

  .pub-timeline__item:nth-child(even) .pub-timeline__head {
    flex-direction: row;
  }

  .pub-timeline__number {
    font-size: 2.25rem;
  }
}

@media (max-width: 767px) {
  .pub-team {
    grid-template-columns: minmax(0, 1fr);
  }

  .pub-case:hover,
  .pub-member:hover {
    transform: none;
  }
}

@media (max-width: 639px) {
  .pub-hero__actions {
    flex-direction: column;
  }

  .pub-home-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pub-home-more {
  margin-top: clamp(32px, 5vw, 48px);
  text-align: center;
}
