/* =============================================================
   LANDING PAGE STYLES — Compost Software House
   software.akademikompos.com
   
   Hero 3D scene, product showcase, process flow, CTA sections
   ============================================================= */

/* =============================================================
   HERO SECTION
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-fallback {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.no-webgl .hero-canvas { display: none; }
.no-webgl .hero-fallback { display: block; }

/* Subtle gradient overlay for text readability */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.5) 50%,
    rgba(10, 10, 10, 0.7) 100%
  );
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(197, 168, 128, 0.1);
  border: 1px solid rgba(197, 168, 128, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.05em;
}

.hero-badge i {
  font-size: 0.6rem;
}

.hero h1 {
  font-size: var(--text-6xl);
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Floating particle dots */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; transform: scale(1); }
  90% { opacity: 0.1; }
  100% { transform: translateY(-100vh) scale(0.5); }
}


/* =============================================================
   PRODUCTS SHOWCASE SECTION
   ============================================================= */
.showcase {
  position: relative;
}

.showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.showcase-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.product-card {
  position: relative;
  perspective: 1000px;
}

.product-card .card {
  transform-style: preserve-3d;
  will-change: transform;
}

.product-card .card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
}

.product-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.product-card .card-img {
  transition: transform 0.6s var(--ease-out);
}

.product-card .card:hover .card-img {
  transform: scale(1.05);
}

.product-card .card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(10, 10, 10, 0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

.product-card .card:hover .card-img-overlay {
  opacity: 1;
}

.product-card .card-img-overlay .btn {
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s var(--ease-out) 0.1s;
}

.product-card .card:hover .card-img-overlay .btn {
  transform: translateY(0);
  opacity: 1;
}

.product-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-md);
}

.tech-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* =============================================================
   PROCESS / HOW IT WORKS SECTION
   ============================================================= */
.process {
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.process-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
}

/* Connecting line between steps */
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), var(--gold-dim), var(--border-subtle));
}

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

.process-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold);
  background: var(--bg-base);
  border: 2px solid rgba(var(--gold-rgb), 0.3);
  position: relative;
  z-index: 1;
  transition: var(--transition-normal);
}

.process-step:hover .process-step-number {
  background: rgba(var(--gold-rgb), 0.1);
  border-color: var(--gold);
  box-shadow: var(--shadow-glow);
}

.process-step-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: var(--text-2xl);
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.06);
  border: 1px solid rgba(var(--gold-rgb), 0.1);
}

.process-step h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}


/* =============================================================
   CTA SECTION
   ============================================================= */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
  border: 1px solid rgba(var(--gold-rgb), 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 120%, rgba(var(--gold-rgb), 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-box h2 {
  position: relative;
  z-index: 1;
}

.cta-box p {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

.cta-box .hero-cta {
  position: relative;
  z-index: 1;
  justify-content: center;
}


/* =============================================================
   ORDER FORM SECTION (on landing page)
   ============================================================= */
.order-section {
  background: var(--bg-elevated);
}

.order-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.order-info h2 {
  margin-bottom: var(--space-md);
}

.order-info-list {
  margin-top: var(--space-xl);
}

.order-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.order-info-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--gold-rgb), 0.08);
  color: var(--gold);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.order-info-item h5 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 2px;
}

.order-info-item p {
  font-size: var(--text-sm);
  margin: 0;
}

.order-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.order-form-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}


/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .hero h1 { font-size: var(--text-5xl); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero h1 { font-size: var(--text-4xl); }
  .hero-subtitle { font-size: var(--text-base); }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn { text-align: center; }

  .order-form-wrapper { grid-template-columns: 1fr; }

  .cta-box { padding: var(--space-2xl); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: var(--text-3xl); }
  .process-steps { grid-template-columns: 1fr; }
}
