/* =============================================
   ZERØCRAFT — Page-Specific Styles
   Homepage + Product detail page
   ============================================= */

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--navbar-h) var(--space-6) var(--space-16);
}

/* Dot grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
  pointer-events: none;
}

/* Ambient glow behind hero */
.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  text-transform: uppercase;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tighter);
  color: var(--white);
  margin-bottom: var(--space-6);
}

.hero-heading span {
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero-scroll svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}


/* ===== PRODUCT SHOWCASE (Homepage) ===== */
.showcase {
  padding: var(--section-gap) 0;
  position: relative;
  overflow: hidden;
}

.showcase-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.showcase-content {
  display: flex;
  flex-direction: column;
}

.showcase-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--space-6);
  filter: brightness(0) invert(1);
}

.showcase-hook {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--white);
  margin-bottom: var(--space-4);
}

.showcase-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: 440px;
}

.showcase-price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-8);
}

.showcase-price .currency {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-weight: 500;
}

.showcase-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Product visual */
.showcase-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.showcase-product-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

.showcase-product-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}

/* Placeholder for when product image isn't available yet */
.showcase-product-placeholder {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
  background: rgba(255, 255, 255, 0.02);
}

.showcase-product-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

@media (max-width: 1024px) {
  .showcase-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }

  .showcase-content {
    align-items: center;
  }

  .showcase-desc {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .showcase-actions {
    justify-content: center;
  }
}


/* ===== COMING SOON ===== */
.coming-soon-section {
  padding: var(--space-24) 0;
  text-align: center;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 700px;
  margin: var(--space-10) auto 0;
}

.coming-soon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}

.coming-soon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.coming-soon-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--text-muted);
}

.coming-soon-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 480px) {
  .coming-soon-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== ABOUT / MANIFESTO ===== */
.manifesto {
  padding: var(--section-gap) 0;
  text-align: center;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--text);
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: var(--tracking-tight);
}

.manifesto-text .highlight {
  color: var(--accent);
}

.manifesto-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: var(--space-6) auto 0;
  line-height: var(--leading-relaxed);
}


/* ===== PRODUCT HERO (Detail page) ===== */
.product-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--navbar-h) + var(--space-12)) var(--space-6) var(--space-16);
}

.product-hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.4;
}

.product-hero-content {
  position: relative;
  z-index: 2;
}

.product-hero-logo {
  height: 96px;
  width: auto;
  object-fit: contain;
  margin: 0 auto var(--space-6);
  filter: brightness(0) invert(1);
}

.product-hero-tagline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tighter);
  color: var(--white);
  margin-bottom: var(--space-8);
}

.product-hero-visual {
  position: relative;
  margin: var(--space-12) auto;
  max-width: 700px;
}

.product-hero-img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6));
  animation: float 6s ease-in-out infinite;
}

.product-hero-price-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.product-hero-price {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--white);
}


/* ===== FEATURES GRID (Detail page) ===== */
.features {
  padding: var(--section-gap) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

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

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: var(--section-gap) 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
  position: relative;
}

/* Connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--bg-card);
  line-height: 1;
  margin-bottom: var(--space-6);
  position: relative;
  -webkit-text-stroke: 1px var(--border-strong);
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--accent);
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .steps::before {
    display: none;
  }
}


/* ===== SOFTWARE SECTION ===== */
.software-section {
  padding: var(--section-gap) 0;
}

.software-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.software-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.software-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.software-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.software-features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.software-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.software-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.price-display {
  transition: opacity 0.15s ease, color 0.15s ease;
}

.software-feature-text h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.software-feature-text p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .software-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}


/* ===== SPECS SECTION ===== */
.specs-section {
  padding: var(--section-gap) 0;
}

.specs-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.specs-table-wrapper {
  margin-top: var(--space-10);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}


/* ===== CTA SECTION (Buy / Waitlist) ===== */
.cta-section {
  padding: var(--section-gap) 0;
  text-align: center;
  position: relative;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-price {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--white);
  margin: var(--space-6) 0 var(--space-4);
}

.cta-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-10);
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.cta-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 400px;
  margin: 0 auto var(--space-8);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.cta-divider::before,
.cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Waitlist form */
.waitlist {
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.waitlist-form {
  display: flex;
  gap: var(--space-3);
}

.waitlist-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-full);
  color: var(--success);
  font-size: var(--text-sm);
  font-weight: 500;
}

.waitlist-success.show {
  display: flex;
}

@media (max-width: 480px) {
  .waitlist-form {
    flex-direction: column;
  }
}


/* ===== INSTAGRAM BUTTON SPECIAL ===== */
.btn-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: var(--white);
  border: none;
}

.btn-instagram:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(131, 58, 180, 0.3);
}
