/* ==========================================================================
   WooBaba Theme - Homepage Modular Stylesheet
   Path: assets/css/home.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MEDIA PLACEHOLDER
   -------------------------------------------------------------------------- */
.media-frame {
  position: relative;
  width: 100%;
}

.media-frame__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-frame__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--panel-border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
}

.media-placeholder__icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mist);
  font-size: 1.2rem;
}

.media-placeholder__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--mist);
  text-transform: uppercase;
}

.media-placeholder__caption {
  font-size: 0.85rem;
  color: var(--mist-dim);
  max-width: 32ch;
}

.media-placeholder--shot {
  aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
   2. HERO SECTION & MEDIA PREVIEW
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  max-width: 1280px;
}

.hero-copy {
  max-width: 100%;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.hero-copy h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero-copy p {
  font-size: 1.05rem;
  color: var(--mist);
  max-width: 52ch;
  margin-bottom: 1.8rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.8rem;
}

.hero-visual {
  width: 100%;
  position: relative;
}

.hero-visual .media-frame {
  max-width: 100%;
  margin: 0;
}

.hero-media-link {
  display: block;
  width: 100%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.hero-img-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.hero-img-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.hero-media-link:hover .hero-img-preview {
  transform: scale(1.03);
}

.hero-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 20, 29, 0.4);
  backdrop-filter: blur(1px);
  transition: background 0.3s ease;
}

.hero-media-link:hover .hero-play-overlay {
  background: rgba(23, 20, 29, 0.15);
}

.hero-play-overlay .btn {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hero-badges .hero-meta {
  color: var(--mist);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-badges .hero-meta strong {
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   3. FEATURES GRID (WALLS)
   -------------------------------------------------------------------------- */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.wall-card {
  background: var(--panel);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}

.wall-card:hover {
  background: var(--charcoal-2);
}

.wall-card__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.wall-card h3 {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--ivory);
}

.wall-card p {
  font-size: 0.92rem;
  color: var(--mist);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. STEPS SECTION
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step {
  border-top: 1px solid var(--panel-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.step:hover {
  border-top-color: var(--gold);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--ivory);
}

.step p {
  font-size: 0.9rem;
  color: var(--mist);
  line-height: 1.6;
}

.step code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  background: var(--charcoal-2);
  border: 1px solid var(--panel-border);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   5. LIVE DEMO SECTION
   -------------------------------------------------------------------------- */
.demo-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.demo-copy {
  max-width: 540px;
}

.demo-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 1.1rem;
  line-height: 1.15;
}

.demo-copy p {
  color: var(--mist);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   6. SHOTS / GALLERY GRID
   -------------------------------------------------------------------------- */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.shot-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.shot-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--charcoal-2);
}

.shot-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.shot-card:hover .shot-card__img {
  transform: scale(1.04);
}

.shot-card__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.shot-card__title {
  color: var(--ivory);
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
}

.shot-card__desc {
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.55;
  display: block;
}

/* --------------------------------------------------------------------------
   7. USE CASES & COMPATIBILITY MATRIX
   -------------------------------------------------------------------------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.usecase-item {
  background: var(--panel);
  padding: 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s ease;
}

.usecase-item:hover {
  background: var(--charcoal-2);
}

.usecase-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.usecase-item--all {
  grid-column: 1 / -1;
  background: var(--charcoal-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.usecase-item--all::before {
  display: none;
}

.compat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 3.5rem;
  max-width: 780px;
}

.compat-list ul {
  display: flex;
  flex-direction: column;
}

.compat-list li {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--mist);
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.compat-list li b {
  color: var(--ivory);
  font-weight: 500;
  text-align: right;
}

/* --------------------------------------------------------------------------
   8. PRICING CARDS
   -------------------------------------------------------------------------- */
.pricing-single {
  display: flex;
  justify-content: center;
}

.price-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.price-card--single {
  max-width: 520px;
  width: 100%;
  border-color: var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.6rem, 3.5vw, 2.6rem);
  text-align: left;
}

.price-card--single:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.price-card__price {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  line-height: 1;
}

.price-card__price span {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--mist);
}

.price-card ul {
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
}

.price-card li {
  font-size: 0.92rem;
  color: var(--mist);
  padding: 0.65rem 0;
  border-top: 1px solid var(--panel-border);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1.5;
}

.price-card li::before {
  content: "✓";
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.price-card li strong {
  color: var(--ivory);
}

.price-card li:first-child {
  border-top: none;
}

/* --------------------------------------------------------------------------
   9. CALL TO ACTION (FINAL CTA)
   -------------------------------------------------------------------------- */
.cta-final {
  text-align: center;
}

.cta-final .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-final h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  max-width: 16ch;
  margin-bottom: 1.1rem;
}

.cta-final p {
  color: var(--mist);
  max-width: 48ch;
  margin-bottom: 2.2rem;
}

/* --------------------------------------------------------------------------
   10. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badges {
    align-items: center;
  }
  .media-frame__lines {
    display: none;
  }
  .demo-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .demo-copy {
    text-align: center;
    max-width: 100%;
  }
  .demo-copy .hero-actions {
    justify-content: center;
  }
  .demo-copy .hero-badges {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.2rem;
  }
}

@media (max-width: 860px) {
  .wall-grid {
    grid-template-columns: 1fr;
  }
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .usecase-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .compat-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

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

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}