:root {
  --ink: #111827;
  --muted: #607086;
  --line: rgba(17, 24, 39, 0.11);
  --paper: rgba(255, 255, 255, 0.82);
  --brand: #0f766e;
  --brand-2: #ef476f;
  --brand-3: #ffb703;
  --brand-4: #118ab2;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 183, 3, 0.22), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(239, 71, 111, 0.22), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef8f7 48%, #fff7eb 100%);
}

a {
  color: inherit;
}

.site-shell {
  overflow: hidden;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(12, 20, 32, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 15px 45px rgba(12, 20, 32, 0.18);
}

.navbar .container {
  max-width: 1180px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #07131f;
  background: linear-gradient(135deg, var(--brand-3), #35f0be);
  box-shadow: 0 12px 28px rgba(255, 183, 3, 0.26);
}

.nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-search {
  position: relative;
  width: min(100%, 360px);
}

.nav-search input,
.hero-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  outline: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-search input {
  min-height: 42px;
  padding: 0.65rem 2.75rem 0.65rem 1rem;
}

.nav-search input::placeholder,
.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.search-button,
.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #07131f;
  background: var(--brand-3);
}

.nav-search .search-button {
  position: absolute;
  top: 0;
  right: 0;
}

.hero-section {
  position: relative;
  padding: 78px 0 40px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(6, 95, 70, 0.96), rgba(17, 138, 178, 0.88)),
    url("https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(to bottom, transparent, rgba(248, 251, 255, 0.96));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--brand-3);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5.65rem);
  font-weight: 950;
  line-height: 0.95;
}

.hero-copy {
  max-width: 690px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  max-width: 820px;
  margin-top: 2rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-search input {
  min-height: 58px;
  padding: 0 1.15rem;
  font-size: 1rem;
}

.hero-search button {
  min-width: 58px;
  height: 58px;
  border: 0;
  border-radius: 10px;
  color: #07131f;
  background: linear-gradient(135deg, var(--brand-3), #35f0be);
}

.stat-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 820px;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.stat {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.45rem;
}

.stat span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 1rem;
}

.section-tight {
  padding-top: 32px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-heading h2,
.page-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 950;
}

.section-heading p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
}

.category-grid,
.listing-grid {
  display: grid;
  gap: 1rem;
}

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

.listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card,
.listing-card,
.info-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.category-card {
  display: block;
  min-height: 178px;
  padding: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.category-card::before,
.listing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
}

.category-card:hover,
.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-4), var(--brand-2));
}

.category-card h3,
.listing-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.13rem;
  font-weight: 900;
}

.category-card p,
.listing-card p,
.info-panel p {
  margin: 0;
  color: var(--muted);
}

.directory-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 92px;
}

.category-menu,
.search-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.category-menu {
  padding: 1rem;
}

.category-menu h2,
.category-menu h5 {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.category-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  padding: 0.72rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.category-menu a:hover,
.category-menu a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-4));
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
}

.search-panel input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 1rem;
  outline: 0;
}

.listing-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 1.2rem;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  color: #0f5132;
  background: rgba(15, 118, 110, 0.11);
  font-size: 0.78rem;
  font-weight: 850;
}

.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.15rem;
}

.btn-modern {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-weight: 900;
  text-decoration: none;
}

.btn-primary-modern {
  color: #07131f;
  background: linear-gradient(135deg, var(--brand-3), #35f0be);
}

.btn-ghost-modern {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.detail-hero {
  padding: 70px 0 42px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #118ab2 52%, #ef476f);
}

.detail-card {
  max-width: 920px;
  margin: -38px auto 0;
  padding: 1.5rem;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.detail-list div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.06);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.deep-link {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 850;
  text-decoration: none;
}

.deep-link i {
  color: var(--brand);
  font-size: 1.15rem;
}

.deep-link:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.1);
}

.platform-links-page {
  display: grid;
  gap: 2rem;
}

.platform-section {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.06);
}

.footer {
  margin-top: 50px;
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #0c1420;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer .container {
  max-width: 1180px;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed rgba(17, 24, 39, 0.2);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 992px) {
  .category-grid,
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero-search,
  .search-panel,
  .stat-strip,
  .detail-list,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 54px;
  }

  .hero-title {
    font-size: 2.45rem;
  }
}
