.page-home {
  --home-line: rgba(169, 201, 222, 0.55);
  --home-glass: rgba(247, 250, 252, 0.9);
  --home-glow: rgba(47, 227, 176, 0.16);
  background: var(--sg-white);
  color: var(--sg-deep);
}

.page-home .hero {
  position: relative;
  padding: 22px 0 46px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 82% 0%, rgba(43, 127, 184, 0.14), transparent 58%),
    linear-gradient(180deg, var(--sg-white) 0%, var(--sg-mist) 100%);
}

.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--sg-salt);
  font-family: var(--sg-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-home .home-context__brand {
  color: var(--sg-deep);
  font-weight: 700;
}

.page-home .home-context__sep {
  color: var(--sg-glass);
}

.page-home .hero-grid {
  display: grid;
  gap: 18px;
}

.page-home .query-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--home-line);
  border-radius: var(--sg-radius-l);
  background: var(--home-glass);
  box-shadow: var(--sg-shadow-m);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.page-home .query-panel h1 {
  margin: 0;
  color: var(--sg-deep);
  font-family: var(--sg-font-display);
  font-size: clamp(2.45rem, 8.5vw, 4.35rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.page-home .query-lead {
  max-width: 34em;
  margin: 0;
  color: var(--sg-tide);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .query-fields {
  display: grid;
  gap: 14px;
}

.page-home .query-field {
  display: grid;
  gap: 8px;
}

.page-home .query-label {
  color: var(--sg-salt);
  font-family: var(--sg-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-home .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .query-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--sg-tide);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s var(--sg-ease), border-color 0.2s var(--sg-ease), color 0.2s var(--sg-ease);
}

.page-home .query-chip:hover {
  border-color: var(--sg-sea);
  background: var(--sg-white);
  color: var(--sg-deep);
}

.page-home .query-chip.is-active {
  border-color: var(--sg-deep);
  background: var(--sg-deep);
  color: var(--sg-white);
}

.page-home .query-chip:focus-visible {
  outline: 2px solid var(--sg-coral);
  outline-offset: 2px;
}

.page-home select,
.page-home input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--home-line);
  border-radius: var(--sg-radius-s);
  background: var(--sg-white);
  color: var(--sg-deep);
  font-family: var(--sg-font-sans);
  font-size: 14px;
}

.page-home select:focus-visible,
.page-home input[type="search"]:focus-visible {
  outline: 2px solid var(--sg-coral);
  outline-offset: 2px;
  border-color: var(--sg-coral);
}

.page-home .query-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-home .query-hint {
  color: var(--sg-salt);
  font-size: 12px;
}

.page-home .query-results {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--home-line);
}

.page-home .result-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--home-line);
  border-radius: var(--sg-radius-m);
  background: var(--sg-white);
  transition: transform 0.2s var(--sg-ease), border-color 0.2s var(--sg-ease);
}

.page-home .result-card:hover {
  transform: translateY(-2px);
  border-color: var(--sg-sea);
}

.page-home .result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--sg-salt);
  font-size: 12px;
}

.page-home .result-meta .sg-data {
  color: var(--sg-tide);
  font-weight: 700;
}

.page-home .result-match {
  margin: 0;
  color: var(--sg-deep);
  font-size: 15px;
  font-weight: 800;
}

.page-home .result-match span {
  padding: 0 4px;
  color: var(--sg-salt);
  font-weight: 500;
}

.page-home .result-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .result-foot a {
  color: var(--sg-sea);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.page-home .result-foot a:focus-visible {
  outline: 2px solid var(--sg-coral);
  outline-offset: 2px;
}

.page-home .wave-stage {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--sg-radius-l);
  background: var(--sg-deep);
  box-shadow: var(--sg-shadow-m);
}

.page-home .wave-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.46;
  object-fit: cover;
  filter: saturate(0.9);
}

.page-home .wave-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-home .wave-badges {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  gap: 8px;
  width: min(210px, 58%);
}

.page-home .wave-badge {
  padding: 10px 12px;
  border: 1px solid rgba(169, 201, 222, 0.35);
  border-radius: 10px;
  background: rgba(6, 26, 46, 0.66);
  color: rgba(247, 250, 252, 0.82);
  font-size: 11px;
  line-height: 1.5;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.page-home .wave-badge strong {
  display: block;
  color: var(--sg-lime);
  font-family: var(--sg-font-mono);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.page-home .wave-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: 72%;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(169, 201, 222, 0.3);
  border-radius: 8px;
  background: rgba(6, 26, 46, 0.68);
  color: var(--sg-white);
  font-size: 12px;
  line-height: 1.6;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.page-home .section-head {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 26px;
}

.page-home .section-head h2 {
  margin: 0;
  color: var(--sg-deep);
  font-family: var(--sg-font-display);
  font-size: clamp(1.8rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.page-home .section-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--sg-salt);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .path-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .path-step {
  position: relative;
  padding: 0 0 28px 48px;
}

.page-home .path-step::before {
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 15px;
  width: 2px;
  background: var(--home-line);
  content: "";
}

.page-home .path-step:last-child {
  padding-bottom: 0;
}

.page-home .path-step:last-child::before {
  display: none;
}

.page-home .path-index {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sg-deep);
  color: var(--sg-white);
  font-family: var(--sg-font-mono);
  font-size: 12px;
  font-weight: 700;
}

.page-home .path-step h3 {
  margin: 0 0 6px;
  color: var(--sg-deep);
  font-size: 1.15rem;
  line-height: 1.35;
}

.page-home .path-step p {
  max-width: 36ch;
  margin: 0 0 10px;
  color: var(--sg-salt);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .path-link {
  color: var(--sg-tide);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.page-home .path-link:hover {
  color: var(--sg-sea);
}

.page-home .path-link:focus-visible {
  outline: 2px solid var(--sg-coral);
  outline-offset: 3px;
}

.page-home .focus-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--sg-radius-l);
  background: var(--sg-deep);
}

.page-home .focus-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .focus-banner__overlay {
  position: relative;
  width: 100%;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 26, 46, 0.88) 100%);
  color: var(--sg-white);
}

.page-home .focus-banner .sg-eyebrow {
  color: var(--sg-lime);
}

.page-home .focus-banner__overlay h2 {
  margin: 6px 0 8px;
  color: var(--sg-white);
  font-family: var(--sg-font-display);
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.page-home .focus-banner__overlay p:last-child {
  max-width: 56ch;
  margin: 0;
  color: rgba(247, 250, 252, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .focus-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--sg-salt);
  font-size: 12px;
}

.page-home .focus-grid {
  display: grid;
  gap: 14px;
}

.page-home .focus-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--home-line);
  border-radius: var(--sg-radius-m);
  background: var(--sg-white);
  box-shadow: var(--sg-shadow-s);
  transition: transform 0.2s var(--sg-ease), border-color 0.2s var(--sg-ease), box-shadow 0.2s var(--sg-ease);
}

.page-home .focus-card:hover {
  transform: translateY(-3px);
  border-color: var(--sg-sea);
  box-shadow: var(--sg-shadow-m);
}

.page-home .focus-card:focus-within {
  border-color: var(--sg-coral);
}

.page-home .focus-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .focus-region {
  color: var(--sg-salt);
  font-family: var(--sg-font-mono);
  font-size: 12px;
}

.page-home .focus-time {
  margin: 0;
}

.page-home .focus-time .sg-data {
  color: var(--sg-tide);
  font-size: 14px;
  font-weight: 700;
}

.page-home .focus-match {
  margin: 0;
  color: var(--sg-deep);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.4;
}

.page-home .focus-match span {
  color: var(--sg-salt);
  font-size: 0.9em;
  font-weight: 500;
}

.page-home .focus-status {
  margin: 0;
  color: var(--sg-salt);
  font-family: var(--sg-font-mono);
  font-size: 12px;
}

.page-home .focus-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.page-home .fav {
  position: relative;
}

.page-home .fav input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.page-home .fav label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  color: var(--sg-tide);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--sg-ease), border-color 0.2s var(--sg-ease), color 0.2s var(--sg-ease);
}

.page-home .fav label:hover {
  border-color: var(--sg-coral);
  color: var(--sg-coral);
}

.page-home .fav input:focus-visible + label {
  outline: 2px solid var(--sg-coral);
  outline-offset: 2px;
}

.page-home .fav input:checked + label {
  border-color: var(--sg-coral);
  background: rgba(217, 79, 50, 0.1);
  color: var(--sg-coral);
}

.page-home .fav-on {
  display: none;
}

.page-home .fav input:checked + label .fav-off {
  display: none;
}

.page-home .fav input:checked + label .fav-on {
  display: inline;
}

.page-home .watch-details {
  position: relative;
  color: var(--sg-tide);
  font-size: 13px;
}

.page-home .watch-details summary {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.page-home .watch-details summary::-webkit-details-marker {
  display: none;
}

.page-home .watch-details summary:hover {
  border-color: var(--sg-sea);
  color: var(--sg-deep);
}

.page-home .watch-details summary:focus-visible {
  outline: 2px solid var(--sg-coral);
  outline-offset: 2px;
}

.page-home .watch-body {
  position: relative;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--sg-radius-s);
  background: var(--sg-mist);
  color: var(--sg-salt);
}

.page-home .watch-body p {
  margin: 0 0 4px;
  color: var(--sg-tide);
  font-weight: 700;
}

.page-home .watch-body ul {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.8;
}

.page-home .watch-body a {
  color: var(--sg-sea);
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.page-home .focus-report {
  margin-top: auto;
  color: var(--sg-sea);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.page-home .focus-report:focus-visible {
  outline: 2px solid var(--sg-coral);
  outline-offset: 3px;
}

.page-home .data-download-grid {
  display: grid;
  gap: 20px;
}

.page-home .refresh-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--sg-radius-l);
  background: var(--sg-deep);
  color: var(--sg-white);
}

.page-home .refresh-panel > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  object-fit: cover;
}

.page-home .refresh-panel::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 26, 46, 0.18) 0%, rgba(6, 26, 46, 0.92) 100%);
  content: "";
}

.page-home .refresh-content {
  position: relative;
  z-index: 2;
}

.page-home .refresh-panel .sg-eyebrow {
  color: var(--sg-lime);
}

.page-home .refresh-content h3 {
  margin: 6px 0 10px;
  color: var(--sg-white);
  font-family: var(--sg-font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
}

.page-home .refresh-content > p:not(.sg-eyebrow) {
  max-width: 46ch;
  margin: 0;
  color: rgba(247, 250, 252, 0.78);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .refresh-steps {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.page-home .refresh-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(247, 250, 252, 0.86);
  font-size: 13px;
}

.page-home .refresh-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--home-glow);
  color: var(--sg-lime);
  font-family: var(--sg-font-mono);
  font-size: 11px;
  font-weight: 700;
}

.page-home .refresh-panel .sg-btn--ghost {
  border-color: rgba(247, 250, 252, 0.5);
  color: var(--sg-white);
}

.page-home .download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--home-line);
  border-radius: var(--sg-radius-l);
  background: var(--sg-white);
  box-shadow: var(--sg-shadow-s);
}

.page-home .download-card > img {
  width: 100%;
  height: auto;
  border-radius: var(--sg-radius-m);
  object-fit: cover;
}

.page-home .download-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.page-home .download-content h3 {
  margin: 0;
  color: var(--sg-deep);
  font-family: var(--sg-font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
}

.page-home .download-content > p:not(.sg-eyebrow) {
  margin: 0;
  color: var(--sg-salt);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .format-row span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--sg-mist);
  color: var(--sg-tide);
  font-family: var(--sg-font-mono);
  font-size: 12px;
  font-weight: 700;
}

.page-home .download-note {
  color: var(--sg-salt);
  font-size: 12px;
  line-height: 1.6;
}

.page-home .trust-section {
  color: var(--sg-white);
}

.page-home .trust-head h2 {
  margin: 6px 0 10px;
  color: var(--sg-white);
  font-family: var(--sg-font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.page-home .trust-head p:last-child {
  max-width: 64ch;
  margin: 0;
  color: rgba(247, 250, 252, 0.72);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .trust-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
  padding: 0;
}

.page-home .trust-stats > div {
  padding-top: 12px;
  border-top: 1px solid rgba(169, 201, 222, 0.25);
}

.page-home .trust-stats dt {
  margin-bottom: 6px;
  color: rgba(247, 250, 252, 0.58);
  font-family: var(--sg-font-mono);
  font-size: 12px;
}

.page-home .trust-stats dd {
  margin: 0;
  color: var(--sg-white);
  font-size: 14px;
}

.page-home .trust-stats .sg-data {
  margin-right: 4px;
  color: var(--sg-lime);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
}

.page-home .trust-foot {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(169, 201, 222, 0.25);
}

.page-home .trust-foot p {
  max-width: 62ch;
  margin: 0;
  color: rgba(247, 250, 252, 0.76);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .trust-actions .sg-btn--ghost {
  border-color: rgba(247, 250, 252, 0.5);
  color: var(--sg-white);
}

@media (min-width: 680px) {
  .page-home .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .trust-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .download-content {
    padding: 2px 4px 4px;
  }
}

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
    gap: 24px;
  }

  .page-home .query-panel {
    padding: 28px;
  }

  .page-home .wave-stage {
    min-height: 540px;
  }

  .page-home .data-download-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: stretch;
  }

  .page-home .download-card {
    justify-content: space-between;
  }

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

  .page-home .path-step {
    padding: 34px 18px 0;
  }

  .page-home .path-step::before {
    top: 15px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 2px;
  }

  .page-home .path-index {
    top: 0;
  }

  .page-home .path-step h3 {
    margin-top: 16px;
  }

  .page-home .trust-foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 1040px) {
  .page-home .focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .trust-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .result-card,
  .page-home .focus-card,
  .page-home .query-chip,
  .page-home .fav label {
    transition: none;
  }

  .page-home .result-card:hover,
  .page-home .focus-card:hover {
    transform: none;
  }
}
