/* QooBot Portal - Homepage luxury theme (index.html only) */

body.home {
  background: #000;
}

.home-section {
  padding: clamp(80px, 11vw, 150px) 24px;
}

.home-section + .home-section {
  border-top: 1px solid rgba(245, 245, 247, 0.06);
}

.home-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.home-eyebrow {
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.home-display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
}

.home-gradient {
  background: linear-gradient(96deg, #f5f5f7, #a1a1a6 46%, #f5f5f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-lede {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

body.home .hero {
  min-height: 100svh;
  aspect-ratio: auto;
}

body.home .hero-content {
  position: relative;
  z-index: 3;
}

body.home .hero .home-display {
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  white-space: nowrap;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(245, 245, 247, 0.3);
  border-radius: 14px;
  z-index: 3;
}

.hero-scroll-wheel {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: rgba(245, 245, 247, 0.55);
  animation: heroWheel 1.8s ease-in-out infinite;
}

@keyframes heroWheel {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-wheel { animation: none; }
}

body.home .hero-bg {
  background:
    radial-gradient(90% 65% at 50% 6%, #1a2b4d 0%, transparent 64%),
    radial-gradient(55% 45% at 80% 32%, #22355e 0%, transparent 62%),
    radial-gradient(45% 40% at 18% 45%, #14213c 0%, transparent 60%),
    #05070c;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 980px;
  font-size: 1.02rem;
  font-weight: 500;
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
    background 0.3s ease, box-shadow 0.35s ease;
}

.home-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.home-btn-solid {
  background: #f5f5f7;
  color: #1d1d1f;
  box-shadow: 0 10px 40px rgba(120, 170, 255, 0.18);
}

.home-btn-ghost {
  border: 1px solid rgba(245, 245, 247, 0.22);
  color: #f5f5f7;
  background: rgba(245, 245, 247, 0.04);
  backdrop-filter: blur(12px);
}

.home-btn-ghost:hover {
  background: rgba(245, 245, 247, 0.1);
}

.home-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.home-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.home-product {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 0;
  min-height: 0;
  display: block;
  border: 1px solid rgba(245, 245, 247, 0.08);
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.home-product:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 245, 247, 0.18);
}

.home-product-visual {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b0d12;
}

.home-product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.home-product:hover .home-product-visual img {
  transform: scale(1.04);
}

.home-product-max {
  background:
    radial-gradient(70% 55% at 50% 22%, rgba(41, 151, 255, 0.22), transparent 65%),
    linear-gradient(180deg, #101418 0%, #05070c 100%);
}

.home-product-nova {
  background:
    radial-gradient(70% 55% at 50% 22%, rgba(175, 82, 222, 0.2), transparent 65%),
    linear-gradient(180deg, #16111c 0%, #06050a 100%);
}

.home-product-body {
  display: block;
  padding: 34px 34px 38px;
}

.home-product-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.home-product h3 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.home-product p {
  color: var(--color-text-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 340px;
}

.home-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
}

.home-specs span {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 980px;
  border: 1px solid rgba(245, 245, 247, 0.14);
  color: var(--color-text-secondary);
}

.home-link {
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 500;
}

.home-link:hover {
  text-decoration: underline;
}

.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.home-pillar {
  padding: 40px 32px;
  border-radius: 22px;
  border: 1px solid rgba(245, 245, 247, 0.08);
  background: linear-gradient(180deg, rgba(245, 245, 247, 0.05), rgba(245, 245, 247, 0.01));
}

.home-pillar-num {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.home-pillar h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.home-pillar p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}

.home-eco {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: rgba(245, 245, 247, 0.08);
  border-radius: 22px;
  overflow: hidden;
}

.home-eco-item {
  background: #06070b;
  padding: 34px 28px;
  transition: background 0.35s ease;
}

.home-eco-item:hover {
  background: #0b0e14;
}

.home-eco-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.home-eco-item span {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.home-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

body.home .nav.scrolled {
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(245, 245, 247, 0.08);
}

@media (max-width: 900px) {
  .home-products,
  .home-pillars,
  .home-eco {
    grid-template-columns: 1fr;
  }

  body.home .hero .home-display {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .home-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-product-body {
    padding: 28px 24px 30px;
  }
}
