/* ==========================================================
   WISAXIS — HOME PAGE STYLES (2026 SaaS Design System)
   Hero section, live template carousel, and bento grid features.
   ========================================================== */

/* Clearance for fixed header */
main#main-content {
  padding-top: var(--desktop-navbar-height, 76px);
  min-height: 100vh;
}

@media (max-width: 820px) {
  main#main-content {
    padding-top: var(--mobile-navbar-height, 72px);
  }
}

/* ===== TEMPLATE BACKGROUND CLASSES ===== */
.t1 {
  background-image: url('/static/images/templates/templateA.webp');
}

.t2 {
  background-image: url('/static/images/templates/templateB.webp');
}

.t3 {
  background-image: url('/static/images/templates/templateC.webp');
}

.t4 {
  background-image: url('/static/images/templates/templateD.webp');
}

.t5 {
  background-image: url('/static/images/templates/templateE.webp');
}

.t6 {
  background-image: url('/static/images/templates/templateF.webp');
}

.t7 {
  background-image: url('/static/images/templates/templateG.webp');
}

.t8 {
  background-image: url('/static/images/templates/templateH.webp');
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 5.5rem var(--space-5) 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Hero Staggered Animation Sequence */
.hero-inner .badge-wrapper {
  animation: pageReveal 0.6s var(--ease-out-smooth) 0.05s both;
}

.hero-inner .hero-title {
  animation: pageReveal 0.65s var(--ease-out-smooth) 0.15s both;
}

.hero-inner .hero-lead {
  animation: pageReveal 0.65s var(--ease-out-smooth) 0.25s both;
}

.hero-inner .hero-actions {
  animation: pageReveal 0.65s var(--ease-out-smooth) 0.35s both;
}

.hero-inner .hero-trust {
  animation: pageReveal 0.65s var(--ease-out-smooth) 0.45s both;
}

/* Ambient Radial Glow Blobs (Dark Mode: Black Glow / Noir Ambient) */
.hero::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.40) 45%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(70px);
  animation: heroGlow1 22s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
  animation: heroGlow2 26s ease-in-out infinite alternate;
}

/* Light Mode: Soft Black / Slate Shadow Glow */
html[data-theme="light"] .hero::before {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.06) 0%, rgba(15, 23, 42, 0.02) 45%, transparent 70%);
}

html[data-theme="light"] .hero::after {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, rgba(15, 23, 42, 0.01) 50%, transparent 70%);
}

@keyframes heroGlow1 {
  0% {
    transform: translate(-4%, -4%) scale(0.95);
  }

  100% {
    transform: translate(4%, 4%) scale(1.08);
  }
}

@keyframes heroGlow2 {
  0% {
    transform: translate(4%, 4%) scale(1.08);
  }

  100% {
    transform: translate(-4%, -4%) scale(0.95);
  }
}

/* ===== HERO BADGE ===== */
.badge-wrapper {
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-spring);
  animation: badgeFloat 4s ease-in-out infinite;
}

.hero-badge:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  animation: pulseGlow 2s infinite ease-in-out;
}

html[data-theme="light"] .hero-badge {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* ===== HERO TITLE ===== */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw + 0.5rem, 4.75rem);
  font-weight: 900;
  margin: 0 auto 1.5rem;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--text-main);
  max-width: 860px;
}

.hero-title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: filter 0.3s ease;
}

.hero-title:hover span {
  filter: drop-shadow(0 0 25px var(--primary-glow));
}

html[data-theme="light"] .hero-title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== HERO LEAD TEXT ===== */
.hero-lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: var(--leading-relaxed);
}

/* ===== HERO ACTIONS ===== */
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

/* ===== TRUST BADGES ===== */
.hero-trust {
  margin-top: 1rem;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  transition: all 0.25s var(--ease-spring);
}

.trust-badge:hover {
  color: var(--text-main);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .trust-badge {
  background: #ffffff;
  border-color: var(--border-default);
  color: var(--text-secondary);
}

/* ===== TEMPLATE CAROUSEL SECTION ===== */
.template-section {
  padding: 6rem 0;
  background: transparent;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

html[data-theme="light"] .template-section {
  background: #f8fafc;
  border-color: var(--border-default);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding: 0 var(--space-5);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
  font-weight: 900;
  margin: 0 0 0.75rem;
  letter-spacing: var(--tracking-tight);
  color: var(--text-main);
}

.section-desc {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: var(--text-md);
  margin: 0;
}

/* Infinite Template Track */
.template-scroll-wrapper {
  overflow: hidden;
  padding: 1.5rem 0 2.5rem;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.template-scroll-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  animation: cinematicScroll 40s linear infinite;
}

.template-scroll-wrapper:hover .template-scroll-track,
.template-scroll-wrapper:focus-within .template-scroll-track {
  animation-play-state: paused;
}

@keyframes cinematicScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ===== 2026 BENTO FEATURES SECTION ===== */
.features-section {
  padding: 6rem var(--space-5);
  max-width: 1240px;
  margin: 0 auto;
}

.bento-visual-preview {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--surface-2);
  padding: 1rem;
}

.bento-pill-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.bento-pill {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 768px) {
  .hero {
    padding: 2.75rem var(--space-4) 2.25rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
    margin-bottom: 1rem;
  }

  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-actions .cta-primary,
  .hero-actions .cta-secondary {
    width: 100%;
    box-sizing: border-box;
  }

  .trust-badges {
    gap: 0.5rem;
  }

  .trust-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .template-section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
    padding: 0 var(--space-4);
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .section-desc {
    font-size: var(--text-sm);
  }

  .features-section {
    padding: 3.5rem var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem var(--space-3) 1.75rem;
  }

  .hero-badge {
    font-size: 11px;
    padding: 4px 14px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.5rem);
  }

  .hero-lead {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions .cta-primary {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .hero-actions .cta-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
    min-height: 44px;
  }

  .trust-badges {
    gap: 6px;
    justify-content: center;
  }

  .trust-badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  .bento-card {
    padding: 1.25rem;
  }

  .bento-icon {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
    border-radius: var(--radius-sm);
  }

  .bento-title {
    font-size: 1.1rem;
  }

  .bento-desc {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .bento-pill {
    font-size: 10px;
    padding: 3px 10px;
  }

  .features-section {
    padding: 2.5rem var(--space-3);
  }

  .template-card {
    width: 170px;
    height: 240px;
    padding: 12px;
    border-radius: var(--radius-lg);
  }

  .template-name {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .template-tag {
    font-size: 9px;
    padding: 2px 8px;
  }
}

/* ===== ULTRA-NARROW PHONES (≤360px) ===== */
@media (max-width: 360px) {
  .hero {
    padding: 1.5rem var(--space-2) 1.25rem;
  }

  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
  }

  .hero-lead {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-desc {
    font-size: 0.8rem;
  }

  .template-card {
    width: 150px;
    height: 210px;
    padding: 10px;
  }

  .trust-badge {
    font-size: 9px;
    padding: 3px 8px;
  }
}