/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #fafafa;
  --foreground: #1a1a1a;
  --primary: #1a1a1a;
  --muted-foreground: #737373;
  --border: #e5e5e5;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background);
  color: var(--foreground);
}

::selection {
  background: #000;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Keyframes ─────────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-slide-up-sm {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page Layout ───────────────────────────────────── */
.page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* ── Header ────────────────────────────────────────── */
.header {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-title {
  font-family: 'Permanent Marker', system-ui;
  font-size: 1.875rem;
  color: var(--primary);
  cursor: default;
  user-select: none;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fade-in 1s ease forwards;
}

/* ── Main ──────────────────────────────────────────── */
.main {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.hero-heading {
  font-family: 'Averia Serif Libre', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  color: var(--primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
  opacity: 0;
  animation: fade-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-heading em {
  font-style: italic;
  opacity: 0.9;
}

.hero-heading br {
  display: none;
}

.hero-divider {
  height: 1px;
  width: 85%;
  max-width: 85%;
  background: rgba(26, 26, 26, 0.1);
  opacity: 0;
  animation: fade-in 1s ease 0.5s forwards;
}

/* ── Products Section ──────────────────────────────── */
.products-section {
  width: 100%;
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.products-heading {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 4rem 0;
  opacity: 0;
  animation: fade-in 1s ease 0.8s forwards;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

/* ── Product Icon ──────────────────────────────────── */
.product {
  position: relative;
  width: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fade-slide-up-sm 0.5s ease-out forwards;
}

.product:nth-child(1) { animation-delay: 0s; }
.product:nth-child(2) { animation-delay: 0.1s; }
.product:nth-child(3) { animation-delay: 0.2s; }
.product:nth-child(4) { animation-delay: 0.3s; }
.product:nth-child(5) { animation-delay: 0.4s; }
.product:nth-child(6) { animation-delay: 0.5s; }
.product:nth-child(7) { animation-delay: 0.6s; }
.product:nth-child(8) { animation-delay: 0.7s; }

.product-box-wrapper {
  position: relative;
}

.product-box {
  width: 6rem;
  height: 6rem;
  border-radius: 22%;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid;
}

/* Ready product box */
.product-box.ready {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.product-box.ready:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: scale(1.05) translateY(-5px);
}

.product-box.ready:active {
  transform: scale(0.95);
}

/* Coming-soon product box */
.product-box.coming-soon {
  background: #f9fafb;
  border-color: #e5e7eb;
  cursor: default;
  opacity: 0.8;
}

.product-box.coming-soon:hover {
  transform: scale(1.02);
}

.product-box .icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-box .icon-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-box .icon-placeholder svg {
  width: 2.5rem;
  height: 2.5rem;
  color: #9ca3af;
}

/* Frosted overlay for coming-soon */
.product-box .frost-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px);
}

/* ── Product Label Area ────────────────────────────── */
.product-label {
  text-align: center;
  padding-top: 0.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 24px;
  justify-content: center;
  position: relative;
}

.product-name {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(115, 115, 115, 0.8);
}

/* Progress bar for coming-soon products */
.progress-bar {
  height: 6px;
  width: 80%;
  background: rgba(188, 234, 200, 0.3);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #98D8A9;
  border-radius: 9999px;
}

/* Visit hover label */
.visit-label {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 10px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.visit-label svg {
  width: 10px;
  height: 10px;
}

.product:hover .visit-label {
  opacity: 1;
}

.icon-img.onboardinghub {
  transform: scale(1.45);
}

.progress-bar-fill.vantage { width: 35%; }
.progress-bar-fill.echo { width: 20%; }
.progress-bar-fill.flux { width: 5%; }

/* ── Footer ────────────────────────────────────────── */
.footer {
  width: 100%;
  padding: 2rem 0;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(115, 115, 115, 0.4);
  font-weight: 500;
}

/* ── Responsive ────────────────────────────────────── */
@media (min-width: 640px) {
  .header {
    padding: 3rem;
  }

  .header-title {
    font-size: 2.25rem;
  }

  .hero-heading br {
    display: block;
  }

  .products-grid {
    gap: 4rem;
  }

  .product {
    width: 7rem;
  }

  .product-box {
    width: 7rem;
    height: 7rem;
  }
}

@media (min-width: 768px) {
  .products-grid {
    gap: 5rem;
  }
}
