/* =============================================
   PYROMASTER PRO — Home Page Styles
   ============================================= */

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg-base);
  padding-top: var(--header-height);
}

/* Multi-layer atmospheric background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.22;
  filter: saturate(1.4) brightness(0.7);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.0) 30%, rgba(10,10,15,0.5) 80%, #0A0A0F 100%),
    linear-gradient(to right, rgba(10,10,15,0.6) 0%, transparent 50%);
}

/* Animated glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbPulse ease-in-out infinite alternate;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(255,107,26,0.18) 0%, rgba(255,69,0,0.06) 50%, transparent 70%);
  animation-duration: 7s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -50px;
  left: -50px;
  background: radial-gradient(circle, rgba(255,179,71,0.1) 0%, transparent 65%);
  animation-duration: 9s;
  animation-delay: 2s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,107,26,0.08) 0%, transparent 65%);
  animation-duration: 11s;
  animation-delay: 1s;
}

@keyframes orbPulse {
  from { opacity: 0.6; transform: scale(0.95); }
  to   { opacity: 1;   transform: scale(1.08); }
}

/* Particle canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Grid lines decoration */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 80%);
}

/* Hero Content */
.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-content {
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-full);
  background: rgba(255,107,26,0.08);
  backdrop-filter: blur(10px);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.2s forwards;
}

.hero-eyebrow .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulseDot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,26,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(255,107,26,0); }
}

.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.35s forwards;
}

.hero-headline .line-1 { display: block; color: var(--color-text-primary); }
.hero-headline .line-2 {
  display: block;
  background: linear-gradient(135deg, #FFB347 0%, #FF6B1A 45%, #FF4500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.5s forwards;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.65s forwards;
}

/* Hero trust bar */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.8s forwards;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}

.hero-trust-item svg { color: var(--color-primary); flex-shrink: 0; }

/* Hero right panel — floating product card */
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 560px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: heroSlideLeft 1s ease 0.5s forwards;
}

.hero-product-card {
  background: rgba(28,28,46,0.7);
  border: 1px solid rgba(255,107,26,0.2);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 40px rgba(255,107,26,0.08);
  pointer-events: auto;
}

.hero-product-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.hero-product-info {
  margin-top: 1.25rem;
}

.hero-product-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--color-text-primary);
}

.hero-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.875rem;
}

.hero-product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.hero-product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--font-size-xs);
  color: #F59E0B;
  font-weight: 600;
}

/* Floating badges on card */
.hero-badge {
  position: absolute;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
  font-size: var(--font-size-xs);
  font-weight: 600;
  white-space: nowrap;
  animation: heroBadgeFloat ease-in-out infinite alternate;
}

.hero-badge-1 {
  top: -1.5rem;
  left: -2.5rem;
  animation-duration: 4s;
  animation-delay: 1.2s;
  border-color: rgba(34,197,94,0.3);
}

.hero-badge-2 {
  bottom: 4rem;
  right: -2rem;
  animation-duration: 5s;
  animation-delay: 2s;
  border-color: var(--color-border-accent);
}

@keyframes heroBadgeFloat {
  from { transform: translateY(-4px); }
  to   { transform: translateY(4px); }
}

/* Hero Keyframes */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateY(-50%) translateX(60px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 1.2s forwards;
}

.hero-scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =============================================
   BRAND TICKER (Logo Marquee)
   ============================================= */
.brand-ticker {
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  overflow: hidden;
  position: relative;
}

.brand-ticker::before,
.brand-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
}
.brand-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-surface), transparent);
}
.brand-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-surface), transparent);
}

.ticker-track {
  display: flex;
  gap: 3rem;
  animation: tickerScroll 28s linear infinite;
  width: max-content;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-item .ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section {
  padding: var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,107,26,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* =============================================
   PRODUCTS PREVIEW SECTION
   ============================================= */
.products-preview {
  padding: var(--space-5xl) 0;
  background: var(--color-bg-surface);
  position: relative;
  overflow: hidden;
}

.products-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,107,26,0.4) 50%, transparent 100%);
}

.products-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,107,26,0.4) 50%, transparent 100%);
}

.products-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

/* Featured product card variant */
.card-product-featured {
  position: relative;
  overflow: hidden;
}

.card-product-featured .featured-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
}

/* =============================================
   HOW IT WORKS SECTION
   ============================================= */
.how-it-works {
  padding: var(--space-5xl) 0;
  background: var(--color-bg-base);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: var(--space-3xl);
}

.step-item {
  background: var(--color-bg-surface);
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  transition: background var(--transition-base);
}

.step-item:hover {
  background: var(--color-bg-elevated);
}

.step-number {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,107,26,0.25);
  margin-bottom: var(--space-lg);
  display: block;
  font-family: var(--font-family);
  letter-spacing: -0.05em;
}

.step-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(255,107,26,0.2), rgba(255,69,0,0.1));
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.step-item:hover .step-icon {
  background: linear-gradient(135deg, rgba(255,107,26,0.35), rgba(255,69,0,0.2));
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.step-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Arrow connector */
.step-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-primary);
  z-index: 1;
  display: none; /* shown via grid gap */
}

/* =============================================
   MEDIA / PRESS SECTION
   ============================================= */
.press-section {
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-surface);
}

.press-label {
  text-align: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.press-logo {
  opacity: 0.35;
  transition: opacity var(--transition-base);
  filter: grayscale(1) brightness(2);
  font-size: var(--font-size-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.press-logo:hover { opacity: 0.7; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  padding: var(--space-5xl) 0;
  background: var(--color-bg-base);
  overflow: hidden;
}

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

.card-testimonial {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(20px);
  transition: all var(--transition-base);
  position: relative;
}

.card-testimonial:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--color-primary);
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: var(--space-md);
  opacity: 0.6;
}

.testimonial-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  color: #F59E0B;
  font-size: 14px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border-accent);
  flex-shrink: 0;
  background: var(--color-bg-elevated);
}

.testimonial-name {
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* =============================================
   WHOLESALE CTA SECTION
   ============================================= */
.wholesale-cta {
  padding: var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
}

.wholesale-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(255,107,26,0.12) 0%, transparent 65%),
    linear-gradient(135deg, #0A0A0F 0%, #12121A 50%, #0A0A0F 100%);
}

.wholesale-cta-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,26,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,26,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, black 0%, transparent 70%);
}

.wholesale-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.wholesale-cta h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
}

.wholesale-cta p {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.wholesale-perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin: var(--space-3xl) 0;
}

.perk-item {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.perk-item:hover {
  border-color: var(--color-border-accent);
  background: var(--color-bg-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.perk-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.perk-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.perk-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
.newsletter-section {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
  padding: var(--space-2xl) var(--space-3xl);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
}

.newsletter-text h3 {
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.newsletter-text p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.newsletter-form-inline {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 380px;
}

.newsletter-form-inline input {
  flex: 1;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.1rem;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form-inline input:focus {
  border-color: var(--color-primary);
}

/* =============================================
   RESPONSIVE OVERRIDES
   ============================================= */
@media (max-width: 1280px) {
  .hero-visual { width: 42%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .wholesale-perks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .products-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form-inline { min-width: auto; width: 100%; max-width: 480px; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding-top: calc(var(--header-height) + 2rem); padding-bottom: 4rem; }
  .hero-headline { font-size: clamp(2.2rem, 10vw, 3rem); }
  .features-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .products-preview-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .press-logos { gap: var(--space-xl); }
  .wholesale-perks { grid-template-columns: repeat(2, 1fr); }
  .hero-trust { gap: var(--space-md); }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .wholesale-perks { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}
