#home {
  scroll-margin-top: 120px;
}

.home-flow {
  margin-top: 28px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.13);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    radial-gradient(circle at 10% 20%, rgba(103,214,200,0.12), transparent 40%);
}

.home-flow-head {
  margin-bottom: 18px;
}

.home-flow-head h4 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.home-flow-head p {
  margin: 0;
  color: rgba(214,224,240,0.8);
  font-size: 14px;
}

.home-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-flow-steps a {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 150px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7,17,31,0.38);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-flow-steps a:hover {
  transform: translateY(-2px);
  border-color: rgba(137,191,255,0.45);
}

.home-flow-steps .step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: #07111f;
  background: linear-gradient(135deg, #89bfff, #67d6c8);
}

.home-flow-steps strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.home-flow-steps em {
  font-style: normal;
  color: rgba(214,224,240,0.78);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .home-flow-steps {
    grid-template-columns: 1fr;
  }
}

#ai-archive {
  scroll-margin-top: 120px;
}

#national-sales {
  scroll-margin-top: 120px;
}

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

.ai-archive-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.13);
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  color: inherit;
  text-decoration: none;
  min-height: 180px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ai-archive-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103,214,200,0.45);
}

.ai-archive-card strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.ai-archive-card p {
  margin: 0;
  color: rgba(214,224,240,0.8);
  font-size: 14px;
  line-height: 1.55;
}

.ai-archive-card em {
  margin-top: auto;
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
  color: #89bfff;
}

@media (max-width: 900px) {
  .ai-archive-grid {
    grid-template-columns: 1fr;
  }
}

.newsroom-masthead {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  margin-bottom: 28px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03)),
    radial-gradient(circle at 12% 20%, rgba(242,184,91,0.16), transparent 42%);
}

.newsroom-masthead h4 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.newsroom-masthead p {
  margin: 0;
  color: rgba(214,224,240,0.86);
  font-size: 15px;
  line-height: 1.7;
  max-width: 52ch;
}

.newsroom-edition {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(242,184,91,0.28);
  background: rgba(7,17,31,0.4);
}

.newsroom-edition strong {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2b85b;
}

.newsroom-edition span {
  color: rgba(214,224,240,0.82);
  font-size: 14px;
}

.newsroom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 20px;
  margin-bottom: 34px;
}

.news-feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.06);
  min-height: 420px;
  display: grid;
  align-content: end;
  padding: 28px;
}

.news-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 18%, rgba(7,17,31,0.88) 72%),
    linear-gradient(120deg, rgba(31,109,141,0.55), rgba(103,214,200,0.18)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M0 80h160M80 0v160'/%3E%3C/svg%3E");
  background-size: cover, cover, 48px 48px;
  z-index: 0;
}

.news-feature > * { position: relative; z-index: 1; }

.news-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242,184,91,0.35);
  background: rgba(242,184,91,0.12);
  color: #f2b85b;
  font-size: 12px;
  font-weight: 900;
}

.news-feature h4 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.news-feature p {
  margin: 0 0 16px;
  color: rgba(230,238,250,0.9);
  font-size: 15px;
  line-height: 1.7;
  max-width: 58ch;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: rgba(180,200,230,0.78);
  font-size: 12px;
  font-weight: 750;
}

.news-rail {
  display: grid;
  gap: 12px;
}

.news-brief {
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.news-brief:hover {
  transform: translateY(-2px);
  border-color: rgba(137,191,255,0.4);
}

.news-brief .news-kicker {
  margin-bottom: 8px;
}

.news-brief h5 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.news-brief p {
  margin: 0;
  color: rgba(214,224,240,0.78);
  font-size: 13px;
  line-height: 1.55;
}

.news-series {
  margin-bottom: 40px;
}

.news-series-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.news-series-head h4 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.news-series-head p {
  margin: 0;
  color: rgba(214,224,240,0.75);
  font-size: 14px;
}

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

.news-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7,17,31,0.32);
  min-height: 220px;
  align-content: start;
}

.news-card h5 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.news-card p {
  margin: 0;
  color: rgba(214,224,240,0.8);
  font-size: 14px;
  line-height: 1.6;
}

.news-card .news-link {
  margin-top: auto;
  color: #89bfff;
  font-size: 13px;
  font-weight: 850;
}

.archive-block {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.13);
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

.archive-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.archive-head h4 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.archive-head p {
  margin: 0;
  color: rgba(214,224,240,0.8);
  font-size: 14px;
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.archive-filter {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,17,31,0.35);
  color: rgba(230,238,250,0.88);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 850;
}

.archive-filter.is-active {
  border-color: rgba(103,214,200,0.45);
  background: rgba(103,214,200,0.14);
  color: #9ef0e4;
}

.archive-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}

.archive-toolbar input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(7,17,31,0.45);
  color: #fff;
  padding: 12px 14px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sale-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7,17,31,0.38);
}

.sale-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.sale-card h5 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.sale-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(137,191,255,0.3);
  color: #9ed0ff;
  background: rgba(137,191,255,0.1);
}

.sale-badge.is-open {
  border-color: rgba(103,214,200,0.35);
  color: #9ef0e4;
  background: rgba(103,214,200,0.1);
}

.sale-badge.is-soon {
  border-color: rgba(242,184,91,0.35);
  color: #f2b85b;
  background: rgba(242,184,91,0.1);
}

.sale-rows {
  display: grid;
  gap: 6px;
}

.sale-rows div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  font-size: 13px;
}

.sale-rows span {
  color: rgba(180,200,230,0.7);
  font-weight: 750;
}

.sale-rows b {
  font-weight: 800;
  color: rgba(240,246,255,0.95);
}

.sale-note {
  margin: 0;
  color: rgba(214,224,240,0.72);
  font-size: 12px;
  line-height: 1.5;
}

.archive-empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: rgba(180,200,230,0.75);
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 16px;
}

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4,10,18,0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.article-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.article-modal-panel {
  width: min(720px, 100%);
  max-height: min(82vh, 860px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(160deg, #132033, #0b1524);
  padding: 28px;
  box-shadow: var(--shadow);
}

.article-modal-panel h3 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.article-modal-panel .news-meta {
  margin-bottom: 16px;
}

.article-modal-panel .body {
  color: rgba(220,230,245,0.92);
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.article-modal-close {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .newsroom-masthead,
  .newsroom-layout,
  .news-series-grid,
  .archive-grid,
  .archive-toolbar {
    grid-template-columns: 1fr;
  }
}
