/* AIMCODE visual polish: contained layouts, calmer surfaces, and responsive footer. */
html, body { overflow-x: hidden; }
.landing-page, .landing-hero, .landing-hero-content { min-width: 0; }
.landing-hero-content > * { min-width: 0; }
.landing-status {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 64px));
  margin: -1px auto 0;
  border: 1px solid rgba(194, 160, 255, .22);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(117, 71, 255, .13), transparent 30%),
    linear-gradient(110deg, rgba(19, 13, 34, .96), rgba(10, 9, 22, .98));
  box-shadow: 0 20px 70px rgba(0, 0, 0, .28), inset 0 1px rgba(255,255,255,.06);
}
.landing-status > div { border-color: rgba(194, 160, 255, .16); }
.landing-status > div:first-child i { box-shadow: 0 0 0 5px rgba(32, 213, 154, .12), 0 0 22px rgba(32, 213, 154, .6); }

.catalog-card {
  isolation: isolate;
  min-height: 310px;
  border-color: color-mix(in srgb, var(--model-color) 22%, rgba(255,255,255,.12));
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--model-color) 18%, transparent), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--model-color) 9%, #151120), #0e0c16 72%);
  box-shadow: inset 0 1px rgba(255,255,255,.045);
}
.catalog-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  right: -90px;
  bottom: -100px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--model-color) 26%, transparent);
  filter: blur(34px);
  opacity: .35;
  pointer-events: none;
  transition: opacity .35s, transform .35s;
}
.catalog-card:hover::after { opacity: .7; transform: scale(1.25); }
.catalog-metrics {
  border-color: color-mix(in srgb, var(--model-color) 24%, rgba(255,255,255,.12));
  background: rgba(8, 7, 14, .28);
}
.catalog-metrics > div { border-color: rgba(255,255,255,.1); }

.aim-motion-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .72s cubic-bezier(.16,1,.3,1), transform .72s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--motion-delay, 0ms);
}
.aim-motion-reveal.is-visible { opacity: 1; transform: none; }
.aim-scroll-glow {
  position: fixed;
  z-index: 10050;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #8f6cff, #c884ff 45%, #57e9c1);
  box-shadow: 0 0 16px rgba(164, 126, 255, .8);
}

.aim-footer-enhanced {
  position: relative;
  overflow: hidden;
  margin-top: clamp(32px, 7vw, 96px);
  border-top: 1px solid rgba(194,160,255,.16);
  background:
    radial-gradient(circle at 8% 0%, rgba(117,71,255,.17), transparent 32%),
    radial-gradient(circle at 92% 100%, rgba(56,200,255,.08), transparent 34%),
    #0d0918;
}
.aim-footer-enhanced::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.aim-footer-enhanced > .aim-legal-footer { position: relative; }

@media (max-width: 900px) {
  .landing-status { width: calc(100% - 32px); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .landing-status {
    width: calc(100% - 24px);
    border-radius: 16px;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
  .landing-status > div { padding: 15px 14px !important; min-height: 82px !important; }
  .landing-status strong { font-size: 15px !important; }
  .landing-status span { font-size: 8px !important; }
  .catalog-grid { grid-template-columns: 1fr; gap: 12px; }
  .catalog-card { min-height: 286px; padding: 18px; }
  .catalog-card h3 { font-size: 22px; margin-top: 28px; }
  .aim-footer-enhanced > .aim-legal-footer {
    grid-template-columns: 1fr 1fr !important;
    gap: 25px 16px !important;
    padding: 34px 18px 20px !important;
  }
  .aim-footer-enhanced .aim-footer-brand { grid-column: 1 / -1 !important; }
  .aim-footer-enhanced .aim-footer-bottom { grid-column: 1 / -1 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .aim-motion-reveal { opacity: 1; transform: none; transition: none; }
  .catalog-card, .catalog-card::after { transition: none; }
}
