.home-page {
  background: var(--surface-page);
}

.home-eyebrow {
  margin: 0 0 0.7rem;
  color: var(--nki-gold);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-hero {
  position: relative;
  color: var(--nki-dark);
  background: transparent;
}

.home-hero__inner {
  position: relative;
  padding: 1rem 0;
}

.home-vulnerabilities,
.home-services-intro,
.home-report,
.home-statement {
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--border-radius-sm);
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  transition: var(--transition-smooth);
}

.home-button--primary {
  background: var(--nki-gold);
  color: var(--nki-dark);
}

.home-button:hover,
.home-button:focus-visible,
.home-section__link:hover,
.home-section__link:focus-visible,
.home-card-link:hover,
.home-card-link:focus-visible {
  transform: translateY(-2px);
}

.home-button--primary:hover,
.home-button--primary:focus-visible {
  background: var(--nki-teal-bright);
}

.home-signal {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.home-signal__heading {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 100%;
  min-width: 0;
  color: var(--nki-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.home-signal__heading span {
  min-width: 0;
  overflow-wrap: break-word;
}

.home-signal__heading i {
  flex: 0 0 auto;
  color: var(--nki-gold);
  font-size: 1rem;
}

.home-signal__list {
  display: grid;
  gap: 0;
  min-width: 0;
}

.home-signal__item {
  display: grid;
  gap: 0.35rem;
  min-height: 0;
  min-width: 0;
  padding: 0;
  transition: var(--transition-smooth);
}

.home-signal__item:hover,
.home-signal__item:focus-visible {
  transform: translateY(-2px);
}

.home-signal__item:hover .home-signal__item-title,
.home-signal__item:focus-visible .home-signal__item-title {
  color: var(--nki-teal);
}

.home-signal__item-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;

  color: var(--nki-dark);
  font-weight: 800;
  line-height: 1.25;
  transition: color 0.2s ease;
}


.home-signal__item-systems {
  display: -webkit-box;
  overflow: hidden;
  color: var(--nki-dark-light);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow-wrap: break-word;
}

.home-signal time,
.home-signal__empty {
  color: var(--nki-teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.home-signal__empty {
  margin: 0;
  max-width: 42rem;
  color: var(--nki-teal);
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-signal__toggle {
  display: none;
}

.home-section {
  padding: 1rem 0;
}

.home-section--updates,
.home-section--services {
  background: var(--nki-white);
}

.home-section--materials {
  background: var(--nki-teal-light);
}

.home-section--podcast {
  background: var(--surface-page);
}

.home-section--report {
  padding-top: 0;
}

.home-section__header {
  margin-bottom: 1.5rem;
}

.home-section__header--split {
  display: grid;
  gap: 1rem;
  align-items: end;
}

.home-section__title {
  margin: 0;
  color: var(--nki-dark);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.home-section__link,
.home-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--border-radius-sm);
  background: var(--nki-white);
  color: var(--nki-dark);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  transition: var(--transition-smooth);
}

.home-section__link:hover,
.home-section__link:focus-visible,
.home-card-link:hover,
.home-card-link:focus-visible {
  background: var(--nki-dark);
  color: var(--nki-white);
}

.home-updates {
  display: grid;
  gap: 1.5rem;
}

.home-feed__list {
  display: grid;
  gap: 0.85rem;
}

.home-feed__item {
  position: relative;
  border-bottom: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  background: transparent;
  transition: var(--transition-smooth);
}

.home-feed__item--featured {
  overflow: hidden;
  border: 0;
  border-radius: var(--border-radius-sm);
  background: transparent;
  box-shadow: none;
}

.home-feed__item a {
  display: grid;
  gap: 0.35rem;
  position: relative;
  padding: 1.3rem;
  background: transparent;
}

.home-feed__item--featured a {
  gap: 0.75rem;
  padding: 0.95rem;
}

.home-feed__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  aspect-ratio: 16 / 9;
  background: transparent;
}

.home-feed__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.home-feed__item--compact a {
  padding-left: clamp(6.5rem, 24vw, 8.25rem);
}

.home-feed__image--compact {
  position: absolute;
  top: 0.95rem;
  bottom: 0.95rem;
  left: 0.95rem;
  width: clamp(4.65rem, 18vw, 6.25rem);
  min-height: 0;
  aspect-ratio: auto;
}

.home-feed__item--featured time,
.home-feed__item--featured h3,
.home-feed__item--featured p {
  margin-right: 0;
  margin-left: 0;
}

.home-feed__item:first-child a {
  padding-top: 0.95rem;
}

.home-feed__item--featured:first-child a {
  padding-top: 0.95rem;
}

.home-feed__item--featured+.home-feed__item:not(.home-feed__item--featured),
.home-feed__item--featured+.home-feed__item--featured+.home-feed__item:not(.home-feed__item--featured) {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.home-feed__item time {
  color: var(--nki-teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.home-feed__item h3 {
  margin: 0;
  color: var(--nki-dark);
  font-size: 1.05rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.home-feed__item p {
  margin: 0;
  color: var(--nki-dark-light);
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-feed__item a:hover h3,
.home-feed__item a:focus-visible h3 {
  color: var(--nki-teal);
}

.home-feed__item:hover,
.home-feed__item:focus-within {
  transform: translateY(-8px);
}

.home-feed__item--featured:hover a,
.home-feed__item--featured:focus-within a {
  background: transparent;
}

.home-feed__item--featured:hover .card-overlay,
.home-feed__item--featured:focus-within .card-overlay,
.home-feed__item--featured:hover .overlay-icon,
.home-feed__item--featured:focus-within .overlay-icon {
  opacity: 1;
}

.home-feed__item--featured:hover .overlay-icon,
.home-feed__item--featured:focus-within .overlay-icon {
  transform: translateY(0);
}

.home-feed__item:hover .home-feed__image img,
.home-feed__item:focus-within .home-feed__image img {
  transform: scale(1.08);
}

.home-vulnerabilities,
.home-services-intro,
.home-report,
.home-statement {
  padding: 1.25rem;
  background: var(--surface-page);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.home-cve-list {
  display: grid;
  gap: 0.65rem;
}

.home-cve-list__item {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  background: var(--nki-white);
  transition: var(--transition-smooth);
}

.home-cve-list__item:hover,
.home-cve-list__item:focus-visible {
  border-color: var(--nki-teal);
  box-shadow: var(--shadow-panel);
}

.home-cve-list__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem;
}

.home-cve-list__title {
  flex: 1 1 10rem;
  min-width: 0;
  color: var(--nki-dark);
  font-weight: 800;
  line-height: 1.35;
}

.home-cve-list__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.home-cve-list__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  padding: 0.35rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--nki-gold-light);
  color: var(--nki-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-cve-list__badge--alacsony {
  background: var(--severity-low-bg);
  border-color: var(--severity-low-border);
  color: var(--severity-low-text);
}

.home-cve-list__badge--kozepes {
  background: var(--severity-medium-bg);
  border-color: var(--severity-medium-border);
  color: var(--severity-medium-text);
}

.home-cve-list__badge--magas {
  background: var(--severity-high-bg);
  border-color: var(--severity-high-border);
  color: var(--severity-high-text);
}

.home-cve-list__badge--kritikus {
  background: var(--severity-critical-bg);
  border-color: var(--severity-critical-border);
  color: var(--severity-critical-text);
}

.home-cve-list__meta .home-cve-list__system {
  display: -webkit-box;
  flex: 1 1 8rem;
  min-width: 0;
  overflow: hidden;
  color: var(--nki-dark-light);
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow-wrap: break-word;
}

.home-card-link {
  width: 100%;
  margin-top: 1rem;
}

.home-materials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.home-materials-grid .modern-card {
  border-radius: var(--border-radius-sm);
}

.home-materials-grid .card-body-custom {
  padding: 1.4rem;
}

.home-materials-grid .card-title-custom {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.home-materials-grid .card-excerpt {
  font-size: 0.9rem;
}

.home-podcast {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.home-podcast__content {
  max-width: 36rem;
}

.home-podcast__content h2 {
  margin: 0;
  color: var(--nki-dark);
  font-size: 1.75rem;
  line-height: 1.15;
}

.home-podcast__content p {
  margin: 1rem 0 0;
  color: var(--nki-dark-light);
}

.home-podcast__player {
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  background: var(--nki-white);
  box-shadow: var(--shadow-panel);
}

.home-podcast__player iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
}

.home-podcast__player .home-section__link {
  width: calc(100% - 1.5rem);
  margin: 0.75rem;
}

.home-services-layout {
  display: grid;
  gap: 1.25rem;
}

.home-services-intro {
  background: var(--nki-teal);
  color: var(--nki-white);
}

.home-services-intro .home-eyebrow {
  color: var(--nki-white);
}

.home-services-intro .home-section__title,
.home-services-intro p {
  color: var(--nki-white);
}

.home-services-intro p {
  margin: 1rem 0 1.5rem;
}

.home-services-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  background: var(--surface-page);
  box-shadow: var(--shadow-sm);
}

.home-services-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--nki-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.home-services-panel__top i {
  color: var(--nki-teal);
}

.home-services-grid {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--nki-teal) var(--surface-muted);
}

.home-service-card {
  flex: 0 0 min(18rem, 84vw);
  scroll-snap-align: start;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  background: var(--nki-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.home-service-card a {
  display: grid;
  gap: 0.75rem;
  height: 100%;
  padding: 1.2rem;
}

.home-service-card:hover,
.home-service-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-panel-hover);
}

.home-service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--nki-gold-light);
  color: var(--nki-gold);
}

.home-service-card h3 {
  margin: 0;
  color: var(--nki-dark);
  font-size: 1.05rem;
  line-height: 1.3;
}

.home-service-card p {
  margin: 0;
  color: var(--nki-dark-light);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-statement,
.home-report {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.home-statement {
  background: var(--nki-white);
  border-left: 5px solid var(--nki-gold);
}

.home-statement h2,
.home-report h2 {
  margin: 0;
  color: var(--nki-dark);
  font-size: 1.55rem;
  line-height: 1.2;
}

.home-statement time,
.home-report p {
  color: var(--nki-dark-light);
}

.home-statement time {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.home-report {
  background: var(--nki-dark);
  color: var(--nki-white);
  border-color: var(--nki-dark);
}

.home-report .home-eyebrow,
.home-report h2,
.home-report p {
  color: var(--nki-white);
}

.home-report p {
  margin: 0.8rem 0 0;
  color: var(--text-white-80);
}

@media (max-width: 639px) {
  .home-hero {
    border-bottom: 0;
  }

  .home-hero__inner {
    padding: 0.85rem 0;
  }

  .home-signal:not(.is-expanded) .home-signal__item--extra {
    display: none;
  }

  .home-signal__item {
    padding: 0.4rem 0;
  }

  .home-signal__item-title {
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .home-signal__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0.45rem 0;
    border: 0;
    border-radius: var(--border-radius-sm);
    background: transparent;
    color: var(--nki-teal);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .home-signal__toggle-close,
  .home-signal.is-expanded .home-signal__toggle-open {
    display: none;
  }

  .home-signal.is-expanded .home-signal__toggle-close {
    display: inline;
  }

  .home-signal.is-expanded .home-signal__toggle i {
    transform: rotate(180deg);
  }

  .home-feed__item--featured a {
    padding: 0;
  }

  .home-feed__item--featured:first-child a {
    padding-top: 0;
  }

  .home-feed__item--featured time,
  .home-feed__item--featured h3,
  .home-feed__item--featured p {
    padding-inline: 0.25rem;
  }

  .home-feed__item--compact a {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    padding-right: 0.25rem;
    padding-left: clamp(5.6rem, 20vw, 7.25rem);
  }

  .home-feed__image--compact {
    left: 0.25rem;
    top: 0.95rem;
    bottom: 0.95rem;
  }

  .home-vulnerabilities,
  .home-services-intro,
  .home-statement {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-vulnerabilities .home-section__header,
  .home-services-intro .home-eyebrow,
  .home-services-intro .home-section__title,
  .home-services-intro p,
  .home-statement>div,
  .home-statement .home-section__link {
    padding-inline: 0.25rem;
  }

  .home-services-intro .home-eyebrow {
    color: var(--nki-teal);
  }

  .home-services-intro .home-section__title {
    color: var(--nki-dark);
  }

  .home-services-intro p {
    color: var(--nki-dark-light);
  }

  html[data-theme="dark"] .home-section--services .home-services-intro {
    --nki-dark: #f8fafb;
    --nki-dark-light: rgba(255, 255, 255, 0.65);
  }

  .home-cve-list {
    gap: 0;
  }

  .home-cve-list__item {
    padding: 0.95rem 0.25rem;
    border: 0;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    background: transparent;
  }

  .home-cve-list__item:last-child {
    border-bottom: 0;
  }

  .home-cve-list__item:hover,
  .home-cve-list__item:focus-visible {
    box-shadow: none;
  }

  .home-materials-grid {
    gap: 1.35rem;
  }

  .home-materials-grid .modern-card {
    height: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-materials-grid .modern-card::before {
    display: none;
  }

  .home-materials-grid .modern-card:hover,
  .home-materials-grid .modern-card:focus-within {
    transform: none;
    box-shadow: none;
  }

  .home-materials-grid .modern-card>a {
    display: grid;
    gap: 0.75rem;
    padding: 0;
  }

  .home-materials-grid .card-img-wrapper {
    border-radius: var(--border-radius-sm);
  }

  .home-materials-grid .card-body-custom {
    padding: 0.95rem 0.25rem 0;
  }

  .home-materials-grid .card-post-type-badge span {
    box-shadow: none;
  }

  .home-podcast__player {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-podcast__player iframe {
    border-radius: var(--border-radius-sm);
  }

  .home-podcast__player .home-section__link {
    width: 100%;
    margin: 0.75rem 0 0;
  }

  .home-services-panel {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-services-panel__top {
    padding: 0 0.25rem 0.85rem;
  }

  .home-services-grid {
    display: grid;
    gap: 0;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .home-service-card {
    flex-basis: auto;
    border: 0;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-service-card:last-child {
    border-bottom: 0;
  }

  .home-service-card a {
    padding: 1rem 0.25rem;
  }

  .home-service-card:hover,
  .home-service-card:focus-within {
    transform: none;
    box-shadow: none;
  }

  .home-report {
    border: 0;
    border-radius: var(--border-radius-sm);
    box-shadow: none;
  }

  .home-section__header--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .home-section__header--split>div {
    flex: 1 1 auto;
    min-width: 0;
  }

  .home-section__header--split .home-eyebrow {
    display: none;
  }

  .home-section__header--split .home-section__title {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .home-section__header--split .home-section__link {
    flex: 0 0 auto;
    min-height: var(--target-size-touch);
    padding: 0.65rem 0.8rem;
    font-size: 0.78rem;
    line-height: 1.15;
    white-space: nowrap;
  }
}

@media (min-width: 640px) {
  .home-signal {
    gap: 0.9rem;
  }

  .home-signal__heading {
    padding-top: 0.1rem;
  }

  .home-signal__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-signal__item {
    padding: 0 0.85rem;
    border-left: 1px solid var(--nki-teal-medium);
  }

  .home-signal__item:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .home-button {
    width: auto;
  }

  .home-section__header--split,
  .home-statement,
  .home-report {
    grid-template-columns: 1fr auto;
  }

  .home-materials-grid,
  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feed__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feed__item:not(.home-feed__item--featured) {
    grid-column: 1 / -1;
  }

  .home-podcast {
    grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1.2fr);
  }
}

@media (min-width: 960px) {
  .home-hero__inner {
    min-height: 0;
    padding: 1rem 0;
  }

  .home-signal {
    gap: 0.9rem;
  }

  .home-section {
    padding: 2.5rem 0;
  }

  .home-section--report {
    padding-top: 0;
  }

  .home-updates {
    grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
    gap: 2.5rem;
  }

  .home-section__title {
    font-size: 2.25rem;
  }

  .home-feed__item h3 {
    font-size: 1.2rem;
  }

  .home-materials-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-services-layout {
    grid-template-columns: minmax(19rem, 0.85fr) minmax(0, 1.15fr);
    gap: 1.5rem;
  }

  .home-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 34rem;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y proximity;
  }

  .home-service-card {
    flex-basis: auto;
  }

  .home-services-intro,
  .home-vulnerabilities,
  .home-report,
  .home-statement {
    padding: 1.75rem;
  }
}
