:root {
  --text: #eaf2ff;
  --muted: #a9b9d3;
  --soft: #7f93b6;
  --explorer-border: rgba(154, 178, 213, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(180deg, #07111f 0%, #091428 42%, #081121 100%);
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 17, 31, 0.94);
}

.topbar-inner,
.brand,
.nav,
.hero-actions-row,
.hero-pills {
  display: flex;
  align-items: center;
}

.topbar-inner {
  min-height: 74px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  gap: 12px;
  text-decoration: none;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff url("../assets/app-logo.png") center / cover no-repeat;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.lang-toggle {
  min-width: 42px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

.explorer-main {
  min-height: 100vh;
}

.explorer-hero {
  padding: 82px 0 30px;
}

.explorer-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 38px;
  align-items: center;
}

.explorer-copy {
  max-width: 700px;
}

.eyebrow-pill,
.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 999px;
  color: #b9fff5;
  background: rgba(45, 212, 191, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.eyebrow-pill {
  margin-bottom: 18px;
}

.explorer-title {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.explorer-subtitle {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.62;
}

.hero-actions {
  margin-top: 28px;
}

.hero-actions-row,
.hero-pills {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills {
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(154, 178, 213, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-weight: 700;
}

.btn-primary {
  border-color: transparent;
  color: #022a34;
  background: #2dd4bf;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
  transform: none;
}

.hero-live-note {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #c7fff7;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
}

.hero-showcase-card {
  width: min(100%, 470px);
  min-height: 360px;
  margin-left: auto;
  padding: 24px;
  border: 1px solid var(--explorer-border);
  border-radius: 32px;
  background: rgba(8, 19, 39, 0.82);
}

@media (max-width: 1080px) {
  .explorer-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-showcase-card {
    margin-left: 0;
  }
}

@media (max-width: 940px) {
  .explorer-hero {
    padding-top: 58px;
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .explorer-title {
    max-width: 560px;
    font-size: clamp(34px, 11vw, 50px);
  }

  .hero-showcase-card {
    width: 100%;
  }
}

/* Product-first Explorer shell */
body.explorer-page {
  color: #0f172a;
  background: #f5f7f9;
}

.explorer-page .topbar {
  height: 64px;
  color: #eaf2ff;
  background: rgba(6, 20, 36, 0.96);
}

.explorer-page .topbar-inner {
  min-height: 64px;
  flex-direction: row;
  align-items: center;
}

.explorer-page .nav { flex-wrap: nowrap; }
.explorer-main { min-height: 100vh; }
.explorer-product-header { padding: 28px 0 22px; background: #ffffff; border-bottom: 1px solid #dfe5eb; }
.product-header-shell { display: grid; gap: 20px; }
.product-header-main { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr); align-items: end; gap: 48px; }
.explorer-product-header .eyebrow-pill { min-height: 0; margin: 0 0 9px; padding: 0; border: 0; color: #08786f; background: transparent; }
.explorer-product-header .explorer-title { margin: 0; color: #0f172a; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; }
.explorer-product-header .explorer-subtitle { margin: 11px 0 0; color: #536174; font-size: 15px; line-height: 1.55; }
.explorer-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; min-height: 58px; padding: 5px 6px 5px 16px; border: 1px solid #cdd6df; border-radius: 18px; background: #ffffff; }
.explorer-search-input { min-width: 0; height: 46px; border: 0; outline: 0; color: #0f172a; background: transparent; }
.explorer-search-submit, .explorer-location-button { min-height: 46px; border: 0; border-radius: 13px; }
.explorer-search-submit { padding: 0 18px; color: #ffffff; background: #0f9f91; }
.explorer-location-button { width: 46px; margin-left: 5px; color: #0f172a; background: #f0f3f6; }
.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #dfe5eb; border-radius: 20px; background: #ffffff; }
.summary-metric { min-height: 96px; padding: 16px 20px; }
.summary-metric + .summary-metric { border-left: 1px solid #dfe5eb; }
.summary-metric-label, .summary-metric-detail { display: block; color: #536174; font-size: 12px; }
.summary-metric-value { display: block; margin-top: 8px; color: #0f172a; font-size: 22px; }
.explorer-shell { background: #f5f7f9; }

@media (max-width: 1080px) {
  .product-header-main { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 680px) {
  .explorer-page .topbar, .explorer-page .topbar-inner { height: 58px; min-height: 58px; }
  .explorer-product-header { padding: 20px 0 16px; }
  .explorer-product-header .explorer-title { font-size: 31px; }
  .explorer-search { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 54px; }
  .explorer-search-submit { display: none; }
  .summary-strip { overflow-x: auto; grid-template-columns: repeat(4, minmax(160px, 1fr)); }
}
