* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f1e9;
  --surface: rgba(255,255,255,.56);
  --surface-strong: #ffffff;
  --text: #10222d;
  --muted: #6c7a80;
  --line: rgba(16,34,45,.14);
  --cyan: #18a8c9;
  --cyan-deep: #087c9b;
  --gold: #f2c34c;
  --dark: #0c1e27;
  --shadow: 0 24px 60px rgba(13, 38, 48, .12);
}

body.dark {
  --bg: #0b171d;
  --surface: rgba(255,255,255,.055);
  --surface-strong: #12242c;
  --text: #f3f3ec;
  --muted: #a8b3b7;
  --line: rgba(255,255,255,.12);
  --dark: #f3f3ec;
  --shadow: 0 24px 60px rgba(0,0,0,.28);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(24,168,201,.12), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(242,195,76,.13), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  transition: background .25s ease, color .25s ease;
}

a {
  color: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header,
.hero,
.quick-stats,
.rating-section,
.about-section,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .12em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--cyan);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
}

.hero {
  min-height: 680px;
  padding: 72px 0 64px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 58px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--cyan-deep);
}

.hero h1,
.section-heading h2,
.about-copy h2 {
  margin: 14px 0 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(52px, 7vw, 92px);
  line-height: .96;
  letter-spacing: -.055em;
}

.hero h1 span {
  color: var(--cyan);
}

.hero-text {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px 15px 22px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.primary-btn span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #10222d;
}

.hero-note {
  color: var(--muted);
  font-size: 12px;
  max-width: 190px;
  line-height: 1.4;
}

.hero-art {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.sun {
  width: min(360px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--gold) 0 18%, transparent 18.5%),
    repeating-conic-gradient(from 0deg, var(--gold) 0deg 6deg, transparent 6deg 12deg);
  opacity: .95;
  animation: rotate 55s linear infinite;
}

.hero-center {
  position: absolute;
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: var(--cyan);
  color: white;
  font-family: "Unbounded", sans-serif;
  font-size: 64px;
  box-shadow: 0 22px 60px rgba(24,168,201,.28);
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-a {
  width: 430px;
  height: 430px;
}

.orbit-b {
  width: 540px;
  height: 540px;
}

.hero-card {
  position: absolute;
  min-width: 145px;
  padding: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  border-radius: 20px;
  transform: rotate(-4deg);
}

.hero-card small {
  display: block;
  color: var(--cyan-deep);
  font-weight: 800;
}

.hero-card strong {
  display: block;
  font-family: "Unbounded", sans-serif;
  margin-top: 9px;
}

.hero-card span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.hero-card-1 { top: 40px; left: 0; }
.hero-card-2 { right: 0; top: 160px; transform: rotate(5deg); }
.hero-card-3 { left: 55px; bottom: 30px; transform: rotate(3deg); }

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-stats > div {
  padding: 30px 22px;
  border-right: 1px solid var(--line);
}

.quick-stats > div:last-child {
  border-right: 0;
}

.quick-stats strong {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-size: 28px;
}

.quick-stats span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
}

.rating-section {
  padding: 110px 0 80px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.about-copy h2 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -.04em;
}

.search-box {
  width: min(360px, 100%);
  height: 50px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
}

.search-box span {
  font-size: 22px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.search-box input::placeholder {
  color: var(--muted);
}

.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.filter {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.filter:hover,
.filter.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.store-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(24,168,201,.45);
}

.rank {
  position: absolute;
  right: 22px;
  top: 11px;
  font-family: "Unbounded", sans-serif;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -.08em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  user-select: none;
}

.store-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent, var(--cyan));
  color: white;
  font-size: 24px;
  box-shadow: 0 12px 25px color-mix(in srgb, var(--accent, var(--cyan)) 25%, transparent);
}

.store-meta {
  margin-top: 52px;
}

.store-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.store-card h3 {
  margin: 9px 0 7px;
  font-family: "Unbounded", sans-serif;
  font-size: 26px;
  letter-spacing: -.04em;
}

.store-card p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.store-bottom {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 7px 9px;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}

.site-link {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 800;
}

.site-link:hover {
  background: var(--cyan);
  color: white;
}

.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}

.empty-state span {
  font-size: 36px;
}

.about-section {
  margin-top: 50px;
  margin-bottom: 100px;
  min-height: 420px;
  display: grid;
  grid-template-columns: .55fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 54px;
  background: var(--text);
  color: var(--bg);
  border-radius: 36px;
}

.about-number {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(90px, 14vw, 180px);
  color: var(--cyan);
  letter-spacing: -.1em;
}

.about-copy .section-kicker {
  color: var(--gold);
}

.about-copy h2 {
  color: inherit;
}

.about-copy p {
  max-width: 700px;
  font-size: 17px;
  line-height: 1.75;
  opacity: .78;
}

.about-small {
  font-size: 13px !important;
}

.about-copy code {
  color: var(--gold);
}

footer {
  min-height: 150px;
  padding: 38px 0 50px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.footer-title {
  font-family: "Unbounded", sans-serif;
  font-size: 18px;
}

footer p,
.footer-links {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.footer-links a {
  text-decoration: none;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .nav { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .hero-art {
    min-height: 440px;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-stats > div:nth-child(2) {
    border-right: 0;
  }

  .quick-stats > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .site-header,
  .hero,
  .quick-stats,
  .rating-section,
  .about-section,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    height: 72px;
  }

  .logo {
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 44px 0;
  }

  .hero h1 {
    font-size: clamp(43px, 15vw, 64px);
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-art {
    min-height: 355px;
    overflow: hidden;
  }

  .sun {
    width: 260px;
  }

  .hero-center {
    width: 132px;
    height: 132px;
    font-size: 48px;
  }

  .orbit-a { width: 310px; height: 310px; }
  .orbit-b { width: 390px; height: 390px; }

  .hero-card {
    min-width: 118px;
    padding: 12px;
  }

  .hero-card-1 { left: 5px; top: 15px; }
  .hero-card-2 { right: 4px; top: 118px; }
  .hero-card-3 { left: 22px; bottom: 10px; }

  .quick-stats > div {
    padding: 22px 16px;
  }

  .quick-stats strong {
    font-size: 22px;
  }

  .rating-section {
    padding-top: 76px;
  }

  .store-card {
    min-height: 330px;
    padding: 22px;
  }

  .rank {
    font-size: 62px;
  }

  .store-meta {
    margin-top: 46px;
  }

  .store-bottom {
    align-items: flex-end;
  }

  .about-section {
    padding: 28px;
    border-radius: 28px;
  }

  footer {
    flex-direction: column;
  }
}
