/* ═══════════════════════════════════════════════════════════════════
   Hero section – dark glass-morphism theme
═══════════════════════════════════════════════════════════════════ */

:root {
  --hero-bg: #050608;
  --hero-bg-end: #0b0d11;
  --hero-panel: rgba(14, 18, 24, 0.82);
  --hero-card: rgba(255, 255, 255, 0.045);
  --hero-card-hover: rgba(255, 255, 255, 0.075);
  --hero-stroke: rgba(255, 255, 255, 0.08);
  --hero-text: #f5f7fb;
  --hero-muted: #a5adbc;
  --hero-muted-soft: #7f8899;
  --hero-accent: #9ebdff;
  --hero-accent-soft: rgba(158, 189, 255, 0.18);
  --hero-accent-strong: #d8e4ff;
  --hero-success: #83f3ae;
  --hero-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --hero-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Root wrapper */
.hero-root {
  position: relative;
  min-height: 100vh;
  color: var(--hero-text);
  background:
    radial-gradient(circle at top left, rgba(93, 143, 255, 0.16), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(180deg, var(--hero-bg) 0%, var(--hero-bg-end) 100%);
  padding: 24px;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", sans-serif;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 18%,
      transparent 82%,
      rgba(255, 255, 255, 0.02) 100%);
}

.hero-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Glass panel mixin */
.hero-glass {
  background: linear-gradient(180deg,
      rgba(19, 24, 31, 0.82),
      rgba(11, 14, 19, 0.94));
  border: 1px solid var(--hero-stroke);
  box-shadow: var(--hero-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* ─── Topbar ─── */
.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 28px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.hero-brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%,
      #ffffff 0%,
      #cfe0ff 28%,
      #7ea8ff 55%,
      #4d7fff 100%);
  box-shadow: 0 0 24px rgba(105, 152, 255, 0.45);
  flex: none;
}

.hero-brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hero-text);
}

.hero-brand-sub {
  display: block;
  font-size: 0.88rem;
  color: var(--hero-muted);
  margin-top: 3px;
}

.hero-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Status pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--hero-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--hero-success);
  box-shadow: 0 0 0 6px rgba(131, 243, 174, 0.12);
  flex: none;
}

.hero-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--hero-muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.hero-meta-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  transition:
    transform 0.18s var(--hero-ease),
    background 0.24s var(--hero-ease),
    border-color 0.24s var(--hero-ease),
    box-shadow 0.24s var(--hero-ease),
    color 0.24s var(--hero-ease);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  color: inherit;
}

.hero-btn:hover {
  transform: translateY(-1px);
}

.hero-btn:active {
  transform: translateY(1px) scale(0.992);
}

.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--hero-stroke);
  color: var(--hero-text);
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-btn-solid {
  background: linear-gradient(180deg, #f7f9fc 0%, #d7deea 100%);
  color: #0a0d12;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.08);
}

.hero-btn-solid:hover {
  box-shadow: 0 16px 32px rgba(255, 255, 255, 0.12);
}

/* ─── Layout ─── */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

/* ─── Panel (left) ─── */
.hero-panel {
  border-radius: 32px;
  padding: 28px;
}

.hero-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-muted-soft);
  margin-bottom: 10px;
}

.hero-h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 700;
  color: var(--hero-text);
}

.hero-intro {
  margin-top: 12px;
  max-width: 42rem;
  color: var(--hero-muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.hero-panel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Country list ─── */
.hero-country-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding: 0;
}

.hero-country-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 16px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    transform 0.22s var(--hero-ease),
    background 0.22s var(--hero-ease),
    border-color 0.22s var(--hero-ease),
    box-shadow 0.22s var(--hero-ease);
  cursor: pointer;
  color: var(--hero-text);
  text-align: left;
  appearance: none;
  position: relative;
  overflow: hidden;
  font: inherit;
}

.hero-country-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 55%);
  opacity: 0;
  transition: opacity 0.24s var(--hero-ease);
  pointer-events: none;
}

.hero-country-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.22);
}

.hero-country-card:hover::after {
  opacity: 1;
}

.hero-country-card:active {
  transform: translateY(1px) scale(0.995);
}

.hero-country-card.active {
  background: linear-gradient(180deg,
      rgba(93, 143, 255, 0.22),
      rgba(255, 255, 255, 0.05));
  border-color: rgba(158, 189, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 36px rgba(19, 34, 78, 0.34);
}

.hero-country-card.active .hero-country-copy span {
  color: #d7e4ff;
}

.hero-country-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-flag {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 1.35rem;
  flex: none;
  transition:
    transform 0.22s var(--hero-ease),
    background 0.22s var(--hero-ease),
    border-color 0.22s var(--hero-ease);
}

.hero-country-card:hover .hero-flag,
.hero-country-card.active .hero-flag {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.hero-country-copy {
  min-width: 0;
}

.hero-country-copy strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-country-copy span {
  display: block;
  margin-top: 4px;
  color: var(--hero-muted);
  font-size: 0.88rem;
  transition: color 0.22s var(--hero-ease);
}

.hero-stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eef2f8;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
  position: relative;
  z-index: 1;
  transition:
    background 0.22s var(--hero-ease),
    border-color 0.22s var(--hero-ease),
    transform 0.22s var(--hero-ease);
}

.hero-country-card:hover .hero-stock-pill,
.hero-country-card.active .hero-stock-pill {
  transform: translateY(-1px);
}

.hero-country-card.active .hero-stock-pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ─── Focus card ─── */
.hero-focus-card {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.hero-focus-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right,
      rgba(158, 189, 255, 0.14),
      transparent 30%);
  opacity: 0.8;
}

.hero-focus-card>* {
  position: relative;
  z-index: 1;
}

.hero-focus-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-focus-title {
  font-size: 1.38rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--hero-text);
}

.hero-focus-sub {
  margin-top: 6px;
  color: var(--hero-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 38rem;
}

.hero-price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7f9fc 0%, #d7deea 100%);
  color: #0a0d12;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

/* ─── Metrics grid ─── */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metric {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    transform 0.2s var(--hero-ease),
    background 0.2s var(--hero-ease),
    border-color 0.2s var(--hero-ease);
}

.hero-metric:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-metric span {
  display: block;
  color: var(--hero-muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.hero-metric strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--hero-text);
}

/* ─── Stock entries table ─── */
.hero-table-shell {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.hero-table-label {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--hero-muted);
  font-size: 0.88rem;
}

.hero-table-wrap {
  overflow-x: auto;
}

.hero-table {
  width: 100%;
  border-collapse: collapse;
}

.hero-table th,
.hero-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.hero-table thead th {
  color: var(--hero-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-table tbody td {
  font-size: 0.93rem;
  color: var(--hero-text);
  transition: background 0.2s var(--hero-ease);
}

.hero-table tbody tr:last-child td {
  border-bottom: none;
}

.hero-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* ─── Summary grid ─── */
.hero-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-summary-card {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    transform 0.2s var(--hero-ease),
    background 0.2s var(--hero-ease),
    border-color 0.2s var(--hero-ease);
}

.hero-summary-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-summary-card span {
  display: block;
  color: var(--hero-muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.hero-summary-card strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  color: var(--hero-text);
}

/* ─── Side panel (right) ─── */
.hero-side-panel {
  position: sticky;
  top: 24px;
  border-radius: 32px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-side-title {
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--hero-text);
}

.hero-side-desc {
  margin-top: 10px;
  color: var(--hero-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── API endpoint cards ─── */
.hero-api-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-api-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    transform 0.2s var(--hero-ease),
    background 0.2s var(--hero-ease),
    border-color 0.2s var(--hero-ease);
}

.hero-api-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-api-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-api-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hero-accent-strong);
}

.hero-api-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--hero-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-api-badge.public {
  background: rgba(131, 243, 174, 0.1);
  color: var(--hero-success);
}

.hero-api-subtitle {
  font-size: 0.88rem;
  color: var(--hero-muted);
  margin-bottom: 4px;
}

.hero-api-desc {
  font-size: 0.84rem;
  color: var(--hero-muted-soft);
  line-height: 1.55;
}

/* ─── CTA section ─── */
.hero-cta-section {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg,
      rgba(158, 189, 255, 0.1),
      rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(158, 189, 255, 0.14);
}

.hero-cta-title {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--hero-text);
  margin-bottom: 6px;
}

.hero-cta-desc {
  color: var(--hero-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.hero-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-side-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .hero-root {
    padding: 14px;
  }

  .hero-topbar,
  .hero-panel,
  .hero-side-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-focus-card {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-metrics,
  .hero-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-focus-head,
  .hero-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-cta-buttons {
    flex-direction: column;
  }

  .hero-cta-buttons .hero-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-root {
    padding: 10px;
  }

  .hero-topbar {
    padding: 16px;
  }

  .hero-panel,
  .hero-side-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-country-card {
    padding: 14px;
    border-radius: 18px;
  }

  .hero-flag {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .hero-stock-pill {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.8rem;
  }
}

@layer utilities {

  /* Chrome, Safari and Opera */
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }

  .no-scrollbar::-webkit-scrollbar-track {
    background-color: transparent;
  }

  .no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
  }

  input:focus~label,
  input:not(:placeholder-shown)~label {
    @apply -translate-y-2 text-xsmall-regular;
  }

  input:focus~label {
    @apply left-0;
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  textarea:-webkit-autofill,
  textarea:-webkit-autofill:hover,
  textarea:-webkit-autofill:focus,
  select:-webkit-autofill,
  select:-webkit-autofill:hover,
  select:-webkit-autofill:focus {
    border: 1px solid #212121;
    -webkit-text-fill-color: #212121;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
    transition: background-color 5000s ease-in-out 0s;
  }

  input[type="search"]::-webkit-search-decoration,
  input[type="search"]::-webkit-search-cancel-button,
  input[type="search"]::-webkit-search-results-button,
  input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
  }
}

@layer components {
  .content-container {
    @apply max-w-[1440px] w-full mx-auto px-6;
  }

  .contrast-btn {
    @apply px-4 py-2 border border-black rounded-full hover:bg-black hover:text-white transition-colors duration-200 ease-in;
  }

  .text-xsmall-regular {
    @apply text-[10px] leading-4 font-normal;
  }

  .text-small-regular {
    @apply text-xs leading-5 font-normal;
  }

  .text-small-semi {
    @apply text-xs leading-5 font-semibold;
  }

  .text-base-regular {
    @apply text-sm leading-6 font-normal;
  }

  .text-base-semi {
    @apply text-sm leading-6 font-semibold;
  }

  .text-large-regular {
    @apply text-base leading-6 font-normal;
  }

  .text-large-semi {
    @apply text-base leading-6 font-semibold;
  }

  .text-xl-regular {
    @apply text-2xl leading-[36px] font-normal;
  }

  .text-xl-semi {
    @apply text-2xl leading-[36px] font-semibold;
  }

  .text-2xl-regular {
    @apply text-[30px] leading-[48px] font-normal;
  }

  .text-2xl-semi {
    @apply text-[30px] leading-[48px] font-semibold;
  }

  .text-3xl-regular {
    @apply text-[32px] leading-[44px] font-normal;
  }

  .text-3xl-semi {
    @apply text-[32px] leading-[44px] font-semibold;
  }
}