/* ============================================================
   home.css - Product + Consulting homepage system
   ============================================================ */

.intro-header.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 112px 0 56px;
  overflow: hidden;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(83, 214, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(7, 18, 34, 0.86) 0%, rgba(12, 24, 44, 0.90) 46%, rgba(8, 18, 35, 0.92) 100%);
  z-index: 0;
}

.intro-header.home-hero .container {
  position: relative;
  z-index: 1;
}

.intro-header.home-hero .site-heading {
  padding: 0;
  text-align: left;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-header.home-hero .site-heading h1 {
  max-width: 760px;
  margin: 0;
  font-size: 62px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.intro-header.home-hero .site-heading .hero-subheadline {
  display: block;
  max-width: 660px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #37a8ff 0%, #1679f2 100%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(22, 121, 242, 0.28);
}

.btn-hero-primary:hover,
.btn-hero-primary:focus {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(22, 121, 242, 0.32);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fbff;
}

.btn-hero-secondary:hover,
.btn-hero-secondary:focus {
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  max-width: 920px;
}

.hero-trust-item {
  min-height: 176px;
  padding: 26px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-trust-value {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-trust-label,
.hero-trust-text {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.home-section {
  position: relative;
  padding: 88px 0;
}

.home-section-positioning {
  background:
    radial-gradient(circle at 92% 20%, rgba(78, 194, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #f4f8ff 0%, #edf3fb 100%);
}

.home-section-projects {
  background: #ffffff;
}

.home-section-writing {
  background:
    linear-gradient(180deg, #f9fbfd 0%, #f3f7fb 100%);
}

.home-section-now {
  background:
    radial-gradient(circle at 88% 18%, rgba(31, 193, 167, 0.10), transparent 26%),
    linear-gradient(180deg, #eff7f5 0%, #edf6f4 100%);
}

.home-section-cta {
  background:
    linear-gradient(180deg, #eef5ff 0%, #f7fbff 100%);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--pc-accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--pc-ink);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-sub {
  max-width: 720px;
  margin: 0 0 42px;
  color: var(--pc-ink-soft);
  font-size: 20px;
  line-height: 1.75;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pc-accent-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}

.section-link:hover {
  color: var(--pc-accent);
  gap: 13px;
  text-decoration: none;
}

.positioning-intro {
  margin: 0;
  color: var(--pc-ink-soft);
  font-size: 19px;
  line-height: 1.9;
}

.consulting-focus-card {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(26, 114, 230, 0.10);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 60px rgba(18, 44, 86, 0.10);
  backdrop-filter: blur(12px);
}

.consulting-focus-card__block + .consulting-focus-card__block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 41, 79, 0.08);
}

.consulting-focus-card__label {
  display: block;
  margin-bottom: 14px;
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.skill-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f2f7ff;
  border: 1px solid rgba(23, 110, 233, 0.10);
  color: var(--pc-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cert-list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0 0 22px;
  color: var(--pc-ink-soft);
  font-size: 15px;
  line-height: 1.28;
}

.cert-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--pc-accent) 0%, var(--pc-accent-teal) 100%);
}

.cert-ticker {
  position: relative;
}

.cert-ticker__viewport {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
}

.cert-ticker__viewport::before,
.cert-ticker__viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 26px;
  pointer-events: none;
  z-index: 2;
}

.cert-ticker__viewport::before {
  top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 100%);
}

.cert-ticker__viewport::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 100%);
}

.cert-ticker__track::before {
  content: "";
  position: absolute;
  inset: -8px -12px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 0%, rgba(23, 110, 233, 0.08), transparent 58%);
  opacity: 0.85;
  z-index: -1;
  animation: certTickerGlow 7s ease-in-out infinite;
}

.cert-ticker__track {
  position: relative;
  will-change: transform;
}

.cert-ticker.is-ready .cert-ticker__track {
  transition: transform 0.65s ease;
}

@keyframes certTickerGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: translateY(0);
  }

  50% {
    opacity: 0.95;
    transform: translateY(4px);
  }
}

.project-card {
  height: 100%;
  padding: 26px;
  border: 1px solid rgba(16, 53, 108, 0.08);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(16, 53, 108, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 110, 233, 0.18);
  box-shadow: 0 24px 56px rgba(16, 53, 108, 0.12);
}

.project-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-status-badge.live {
  background: #e6fbf4;
  color: #0f8f61;
}

.project-status-badge.in-progress {
  background: #eef5ff;
  color: #176ee9;
}

.project-status-badge.shipped {
  background: #f2efff;
  color: #7552ea;
}

.project-card h3 {
  margin: 0 0 10px;
  color: var(--pc-ink);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.project-card p {
  margin: 0 0 18px;
  color: var(--pc-ink-soft);
  font-size: 16px;
  line-height: 1.8;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #47617f;
  font-size: 12px;
  font-weight: 700;
}

.project-card-link {
  margin-top: auto;
  color: var(--pc-accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
}

.project-card-link:hover {
  color: var(--pc-accent);
  text-decoration: none;
}

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

.project-col {
  width: auto;
  padding: 0;
  margin: 0;
}

.writing-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(15, 40, 80, 0.08);
}

.writing-item-meta {
  margin-bottom: 10px;
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.writing-item h3 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.writing-item h3 a {
  color: var(--pc-ink);
  text-decoration: none;
}

.writing-item h3 a:hover {
  color: var(--pc-accent-strong);
}

.writing-item-excerpt {
  margin: 0 0 14px;
  color: var(--pc-ink-soft);
  font-size: 17px;
  line-height: 1.82;
}

.writing-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.writing-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ecf5ff;
  color: var(--pc-accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.writing-tag:hover {
  color: var(--pc-accent);
  text-decoration: none;
}

.now-items {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.now-items li {
  position: relative;
  padding: 16px 0 16px 18px;
  color: var(--pc-ink-soft);
  font-size: 17px;
  line-height: 1.8;
  border-bottom: 1px solid rgba(15, 40, 80, 0.08);
}

.now-items li:last-child {
  border-bottom: none;
}

.now-bullet {
  position: absolute;
  top: 27px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pc-accent) 0%, var(--pc-accent-teal) 100%);
}

.now-updated {
  margin-top: 10px;
  color: var(--pc-muted);
  font-size: 13px;
}

.cta-section {
  text-align: center;
}

.cta-section h2 {
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--pc-ink);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.cta-section p {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--pc-ink-soft);
  font-size: 19px;
  line-height: 1.82;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-cta-primary {
  background: linear-gradient(135deg, #37a8ff 0%, #1679f2 100%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(22, 121, 242, 0.24);
}

.btn-cta-primary:hover,
.btn-cta-secondary:hover {
  text-decoration: none;
}

.btn-cta-primary:hover,
.btn-cta-primary:focus {
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-cta-secondary {
  background: #ffffff;
  border-color: rgba(15, 40, 80, 0.10);
  color: var(--pc-ink);
}

.btn-cta-secondary:hover,
.btn-cta-secondary:focus {
  color: var(--pc-accent-strong);
  border-color: rgba(23, 110, 233, 0.16);
}

@media (max-width: 1199px) {
  .projects-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .intro-header.home-hero {
    padding: 104px 0 48px;
  }

  .intro-header.home-hero .site-heading h1 {
    max-width: 620px;
    font-size: 52px;
  }

  .intro-header.home-hero .site-heading .hero-subheadline {
    font-size: 20px;
  }

  .hero-trust-grid,
  .projects-row {
    grid-template-columns: 1fr;
  }

  .consulting-focus-card {
    margin-top: 28px;
  }

  .section-heading,
  .cta-section h2 {
    font-size: 40px;
  }

  .section-sub,
  .cta-section p {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .intro-header.home-hero {
    padding: 92px 0 40px;
  }

  .intro-header.home-hero .site-heading {
    text-align: center;
  }

  .hero-kicker {
    justify-content: center;
  }

  .intro-header.home-hero .site-heading h1 {
    font-size: 40px;
    max-width: 100%;
  }

  .intro-header.home-hero .site-heading .hero-subheadline {
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
  }

  .hero-ctas,
  .cta-buttons {
    justify-content: center;
  }

  .hero-trust-grid {
    margin-top: 32px;
  }

  .hero-trust-item {
    min-height: 0;
    padding: 22px 20px;
  }

  .hero-trust-value {
    font-size: 28px;
  }

  .home-section {
    padding: 72px 0;
  }

  .section-heading,
  .cta-section h2 {
    font-size: 34px;
  }

  .section-sub,
  .positioning-intro,
  .project-card p,
  .writing-item-excerpt,
  .now-items li,
  .cta-section p {
    font-size: 16px;
  }

  .writing-item h3 {
    font-size: 24px;
  }

  .cert-list li {
    min-height: 36px;
    font-size: 14px;
    line-height: 1.22;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-ticker__track::before {
    animation: none;
  }

  .cert-ticker.is-ready .cert-ticker__track {
    transition: none;
  }
}
