/* ==========================================================================
   AIO Market hub — faithful static clone of the Base44 app
   Design tokens mirror the original Tailwind palette:
   slate-950 #020617 · slate-900 #0f172a · slate-800 #1e293b
   slate-700 #334155 · slate-600 #475569 · slate-500 #64748b
   slate-400 #94a3b8 · slate-300 #cbd5e1
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid #e5e7eb;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Page shell + ambient background blobs
   -------------------------------------------------------------------------- */

.page {
  min-height: 100vh;
  background-image: linear-gradient(to bottom right, #020617, #0f172a, #020617);
  color: #fff;
  overflow-x: hidden;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  filter: blur(64px);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.blob-blue {
  top: 0;
  left: 25%;
  background-color: rgba(59, 130, 246, 0.1);
}

.blob-purple {
  right: 25%;
  bottom: 0;
  background-color: rgba(168, 85, 247, 0.1);
  animation-delay: 1s;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

/* Shared container (max-w-7xl + px-6, as in the original header/footer) */
.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* max-w-7xl without horizontal padding — sections already carry px-6 */
.container-flush {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.icon-16 {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon-20 {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Social icon rows */
.social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-row a {
  color: #94a3b8;
  transition: color 0.15s ease;
}

.social-row a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 10;
  background-color: rgba(15, 23, 42, 0.3);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.brand-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  background-image: linear-gradient(to right, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #94a3b8;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.header-link {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.header-link:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 10;
  padding: 5rem 1.5rem;
}

.hero-inner {
  text-align: center;
}

.hero-logo {
  width: 12rem;
  height: 12rem;
  margin: 0 auto 2rem;
  object-fit: contain;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
  color: #60a5fa;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.gradient-text {
  background-image: linear-gradient(to right, #60a5fa, #c084fc, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.25rem;
  line-height: 1.625;
  color: #94a3b8;
  max-width: 48rem;
  margin: 0 auto 1rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
    line-height: 1;
  }
}

/* --------------------------------------------------------------------------
   Store cards
   -------------------------------------------------------------------------- */

.stores {
  position: relative;
  z-index: 10;
  padding: 3rem 1.5rem 8rem;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  overflow: hidden;
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(30, 41, 59, 0.5);
  border-radius: 0.75rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 0 40px -18px rgb(var(--sh) / 0.55), 0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: #334155;
  transform: translateY(-0.5rem);
  box-shadow: 0 0 55px -15px rgb(var(--sh) / 0.7),
    0 25px 50px -12px rgba(15, 23, 42, 0.5);
}

.card-glow {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom right, var(--g1), var(--g2));
  opacity: 0.1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.card:hover .card-glow {
  opacity: 0.16;
}

.card-body {
  position: relative;
  z-index: 10;
  padding: 2rem;
}

.card-tile {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  background-image: linear-gradient(to bottom right, var(--g1), var(--g2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-tile {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 10px 15px -3px rgba(var(--sh), 0.5), 0 4px 6px -4px rgba(var(--sh), 0.5);
}

.card-emoji {
  font-size: 1.875rem;
  line-height: 1;
}

.card-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-title {
  background-image: linear-gradient(to right, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-desc {
  margin-bottom: 1.5rem;
  min-height: 3rem;
  line-height: 1.625;
  color: #94a3b8;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.25rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background-image: linear-gradient(to right, var(--g1), var(--g2));
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-btn:hover {
  opacity: 0.9;
}

.store-arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-btn:hover .store-arrow {
  transform: translateX(4px);
}

.card-domain {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* Featured (pinnacle) store card */
.store-feature {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-featured {
  flex: 0 0 100%;
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 60px -20px rgba(168, 85, 247, 0.55);
}

@media (min-width: 768px) {
  .card-featured {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 1024px) {
  .card-featured {
    flex: 0 0 calc((100% - 3rem) / 3);
  }
}

.card-featured:hover {
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 70px -20px rgba(168, 85, 247, 0.7),
    0 25px 50px -12px rgba(15, 23, 42, 0.5);
}

.card-featured .card-glow {
  opacity: 0.1;
}

.card-featured:hover .card-glow {
  opacity: 0.16;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 10;
  background-color: rgba(15, 23, 42, 0.3);
  border-top: 1px solid rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
}

.footer-copy a {
  color: #60a5fa;
  transition: color 0.15s ease;
}

.footer-copy a:hover {
  color: #93c5fd;
}

.footer-copy .footer-privacy {
  color: #64748b;
  margin-left: 0.5rem;
}

.footer-copy .footer-privacy:hover {
  color: #cbd5e1;
}

.footer-spacer {
  width: 180px;
}

/* --------------------------------------------------------------------------
   Privacy Policy page
   -------------------------------------------------------------------------- */

.doc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 56rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.doc-back {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.doc-back:hover {
  color: #fff;
}

.doc-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #60a5fa;
}

.doc-label span {
  font-weight: 600;
}

.doc-main {
  position: relative;
  z-index: 10;
  padding: 4rem 1.5rem;
}

.doc-container {
  max-width: 72rem;
  margin: 0 auto;
}

.article {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: #cbd5e1;
  line-height: 1.625;
}

.article h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.article h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.article .updated {
  color: #94a3b8;
}

.article ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article strong {
  color: #fff;
  font-weight: 700;
}

.article a {
  color: #60a5fa;
  transition: color 0.15s ease;
}

.article a:hover {
  color: #93c5fd;
}

.doc-footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .footer-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-spacer {
    display: none;
  }
}
