/* Homepage refresh: special product cards + archive/museum view. */
body.home-refresh {
  background:
    linear-gradient(180deg, rgba(99, 179, 255, 0.08), transparent 360px),
    linear-gradient(125deg, rgba(117, 224, 167, 0.08), transparent 42%),
    linear-gradient(235deg, rgba(217, 114, 255, 0.08), transparent 44%),
    #08090d !important;
  color: #f7f8fb;
}

body.home-refresh::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 70%);
}

.home-refresh #starfield,
.home-refresh .hero-orb,
.home-refresh .hero-orbit-container {
  display: none !important;
}

.home-refresh nav {
  border-bottom: 1px solid rgba(218, 226, 255, 0.13);
  background: rgba(8, 9, 13, 0.82) !important;
}

.home-refresh .nav-logo,
.home-refresh .nav-links a {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.home-refresh #hero {
  min-height: clamp(360px, 46vh, 520px);
  justify-content: flex-end;
  padding: clamp(3.6rem, 7vh, 5rem) 1.5rem clamp(2rem, 4vh, 3rem);
}

.home-refresh .hero-content {
  width: min(100%, 1120px);
  max-width: 1120px;
  padding: 0;
  margin: 0 auto;
  text-align: left;
}

.home-refresh .hero-content::before {
  display: none;
}

.home-refresh .hero-content h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(3rem, 5.7vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

body.home-refresh #hero .gradient-text,
.home-refresh .gradient-text {
  color: #f7f8fb;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.home-refresh .hero-tagline {
  max-width: 680px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0.9rem;
  color: #a5adbd;
  font-size: 1.06rem;
  line-height: 1.55;
}

.home-refresh .hero-app-strip {
  justify-content: flex-start;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.home-refresh .hero-ctas {
  justify-content: flex-start;
}

.home-refresh .hero-app-pill,
.home-refresh .btn,
.home-refresh .btn-primary,
.home-refresh .btn-secondary {
  border-radius: 8px;
  box-shadow: none;
}

.home-refresh .section {
  max-width: 1120px;
  padding: clamp(3.2rem, 6vh, 4.5rem) 1.5rem;
}

.home-refresh #apps {
  padding-top: clamp(2rem, 4vh, 3rem);
}

.home-refresh .section-header {
  max-width: 760px;
  margin: 0 0 1.35rem;
  text-align: left;
}

.home-refresh .section-divider {
  width: auto;
  height: auto;
  margin: 0 0 0.9rem;
  background: none;
}

.home-refresh .section-divider::before {
  content: 'Collection';
  color: #75e0a7;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-refresh .section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.home-refresh .section-header p {
  margin-left: 0;
  color: #a5adbd;
  line-height: 1.65;
}

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

.landing-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(218, 226, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015)),
    rgba(16, 19, 27, 0.72);
  box-shadow: none;
}

.landing-card:hover {
  border-color: rgba(218, 226, 255, 0.22);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.018)),
    rgba(16, 19, 27, 0.86);
  transform: none;
}

.landing-card.primary {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  grid-template-areas:
    "head actions"
    "body actions"
    "receipts actions";
  align-items: start;
  gap: 0.85rem 1.4rem;
  padding: 1.25rem;
}

.landing-card.proxypilot {
  background:
    linear-gradient(135deg, rgba(117, 224, 167, 0.08), rgba(99, 179, 255, 0.04)),
    rgba(16, 19, 27, 0.76);
}

.landing-card.inorbit {
  border-color: rgba(206, 154, 255, 0.24);
  background:
    radial-gradient(circle at 72% 12%, rgba(215, 44, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(123, 66, 255, 0.12), transparent 52%),
    #1a1238;
}

.landing-card.inorbit.special {
  background:
    radial-gradient(circle at 78% 13%, rgba(215, 44, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(123, 66, 255, 0.12), transparent 52%),
    #1a1238;
}

.landing-card.inorbit .landing-card-icon {
  position: relative;
  border-radius: 50%;
  color: transparent;
  background:
    radial-gradient(circle at 38% 37%, rgba(244, 218, 255, 0.85), transparent 18%),
    radial-gradient(circle at 50% 50%, #8f50ff 0, #6f2de7 72%);
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(152, 80, 255, 0.62);
}

.landing-card.inorbit .landing-card-icon::before,
.landing-card.inorbit .landing-card-icon::after {
  content: '';
  position: absolute;
  top: 41%;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 54% 43%, #fffaff 0 18%, transparent 19%),
    #120a25;
}

.landing-card.inorbit .landing-card-icon::before { left: 32%; }
.landing-card.inorbit .landing-card-icon::after { right: 32%; }

.landing-card.inorbit .landing-card-receipts span {
  border-color: rgba(206, 154, 255, 0.24);
  color: #d7c9ea;
  background: rgba(255, 255, 255, 0.055);
}

.landing-card.gptme {
  border-color: rgba(189, 255, 223, 0.18);
  background:
    linear-gradient(90deg, rgba(117, 224, 167, 0.09), transparent 36%),
    rgba(11, 16, 16, 0.8);
}

.landing-card.gptme .landing-card-icon {
  color: #061018;
  background: linear-gradient(135deg, #8bd3ff, #f5c56c);
  font-size: 0.92rem;
  font-weight: 900;
}

.landing-card.epiphyte {
  border-color: rgba(173, 244, 214, 0.18);
  background:
    linear-gradient(120deg, rgba(117, 224, 167, 0.1), transparent 42%),
    linear-gradient(245deg, rgba(99, 179, 255, 0.07), transparent 48%),
    rgba(8, 18, 18, 0.82);
}

.landing-card.epiphyte .landing-card-icon {
  overflow: hidden;
  background: transparent;
}

.landing-card.voltkit {
  border-color: rgba(245, 197, 108, 0.2);
  background:
    linear-gradient(180deg, rgba(245, 197, 108, 0.09), transparent 42%),
    rgba(16, 18, 13, 0.82);
}

.landing-card.voltkit .landing-card-icon {
  color: #0b0d07;
  background: linear-gradient(135deg, #f5c56c, #75e0a7);
  font-size: 0.92rem;
  font-weight: 900;
}

.landing-card.hearth {
  border-color: rgba(255, 179, 122, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 179, 122, 0.1), transparent 46%),
    rgba(18, 13, 20, 0.82);
}

.landing-card.hearth .landing-card-icon {
  color: #14070a;
  background: linear-gradient(135deg, #ffb37a, #d972ff);
  font-size: 0.92rem;
  font-weight: 900;
}

.landing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(218, 226, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.35rem;
}

.landing-card-icon img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.landing-card h3 {
  margin: 0;
  color: #f7f8fb;
  font-size: 1.25rem;
  line-height: 1.1;
}

.landing-card h3 a {
  color: inherit;
  text-decoration: none;
}

.landing-card .app-platform,
.landing-card p {
  color: #a5adbd;
}

.landing-card p {
  margin: 0.2rem 0 0;
  line-height: 1.58;
}

.landing-card.primary > .landing-card-head {
  grid-area: head;
  justify-content: flex-start;
}

.landing-card.primary > p {
  grid-area: body;
  max-width: 720px;
}

.landing-card.primary > .landing-card-receipts {
  grid-area: receipts;
}

.landing-card.primary > .landing-card-actions {
  grid-area: actions;
}

.landing-card .badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(245, 197, 108, 0.35);
  border-radius: 999px;
  background: rgba(245, 197, 108, 0.1);
  color: #ffe0a3;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-card-receipts,
.museum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.landing-card-receipts span,
.museum-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(218, 226, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #a5adbd;
  font-size: 0.76rem;
  font-weight: 700;
}

.landing-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
}

.landing-card.primary .landing-card-actions {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  margin-top: 0;
}

.landing-card-actions a,
.museum-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(218, 226, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #f7f8fb;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  align-self: flex-start;
}

.landing-card.primary .landing-card-actions a {
  width: 100%;
  align-self: stretch;
}

.landing-card-actions a.primary {
  color: #061018;
  border-color: transparent;
  background: linear-gradient(135deg, #75e0a7, #63b3ff);
}

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

.museum-item {
  position: relative;
  min-width: 0;
  padding: 1.05rem;
  border: 1px solid rgba(218, 226, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 50%),
    rgba(16, 19, 27, 0.62);
}

.museum-item::before {
  content: '';
  display: block;
  width: 46px;
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #75e0a7, #63b3ff);
}

.museum-item h3 {
  margin: 0 0 0.45rem;
  color: #f7f8fb;
  font-size: 1rem;
}

.museum-item p {
  color: #a5adbd;
  font-size: 0.9rem;
  line-height: 1.58;
}

.museum-label {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: #f5c56c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#projects .section-divider::before {
  content: 'Archive';
  color: #f5c56c;
}

@media (max-width: 940px) {
  .landing-products-grid,
  .landing-card.primary,
  .museum-grid {
    grid-template-columns: 1fr;
  }

  .landing-card.primary {
    grid-column: span 1;
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "body"
      "receipts"
      "actions";
  }

  .landing-card.primary .landing-card-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .landing-card.primary .landing-card-actions a {
    width: auto;
    align-self: flex-start;
  }
}

@media (max-width: 720px) {
  .home-refresh #hero,
  .home-refresh .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-refresh #hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 1.1rem);
  }

  .home-refresh .hero-content h1 {
    font-size: clamp(2.65rem, 12vw, 3rem);
  }
}
