/* =============================================
   Use Cases Page — Dark Forge Design System Extension
   Self-contained: includes CSS variables and forgeReveal keyframe
   so this stylesheet can be loaded independently.
   ============================================= */

:root {
  --bg-primary: #0F0F0F;
  --bg-secondary: #1A1A1A;
  --surface: #242424;
  --amber: #E8A020;
  --amber-light: #F5C563;
  --amber-glow: rgba(232, 160, 32, 0.15);
  --text-primary: #F0EDE6;
  --text-secondary: #8A8780;
  --border: #2E2E2E;
}

@keyframes forgeReveal {
  0%   { opacity: 0; transform: translateY(24px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

/* Base styles for the use-cases page */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: "DM Sans", sans-serif;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* =============================================
   SCROLL REVEAL — reveal-item
   Works with the existing Stimulus reveal_controller.js
   which adds the "revealed" class on intersection
   ============================================= */

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 550ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger child cards inside .uc-grid */
.uc-grid .uc-card:nth-child(1) { transition-delay: 0ms; }
.uc-grid .uc-card:nth-child(2) { transition-delay: 80ms; }
.uc-grid .uc-card:nth-child(3) { transition-delay: 160ms; }
.uc-grid .uc-card:nth-child(4) { transition-delay: 240ms; }
.uc-grid .uc-card:nth-child(5) { transition-delay: 320ms; }
.uc-grid .uc-card:nth-child(6) { transition-delay: 400ms; }

/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =============================================
   HERO
   ============================================= */

.uc-hero {
  background: var(--bg-primary);
  position: relative;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

/* Dot-grid pattern — identical to .blog-hero::before */
.uc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 2px, transparent 2px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Subtle amber radial glow behind headline */
.uc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 60%, rgba(232, 160, 32, 0.05), transparent);
  pointer-events: none;
}

.uc-hero__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  z-index: 1;
}

.uc-hero__eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  animation: forgeReveal 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0ms;
}

.uc-hero__eyebrow-dash {
  color: var(--amber);
}

.uc-hero__headline {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 52px;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: forgeReveal 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 120ms;
}

.uc-hero__subhead {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
  animation: forgeReveal 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 240ms;
}

@media (max-width: 767px) {
  .uc-hero {
    padding: 6rem 1.25rem 3rem;
  }
  .uc-hero__headline {
    font-size: 34px;
  }
  .uc-hero__subhead {
    font-size: 16px;
  }
}

/* =============================================
   SECTION LAYOUT
   ============================================= */

.uc-section {
  background: var(--bg-primary);
  padding: 6rem 1.5rem;
}

.uc-section + .uc-section {
  border-top: 1px solid var(--border);
}

.uc-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.uc-section__header {
  margin-bottom: 48px;
}

.uc-section__eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.uc-section__eyebrow-dash {
  color: var(--amber);
  margin-right: 8px;
}

.uc-section__headline {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.uc-section__intro {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.65;
}

/* 2-col grid */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Personal section: last card full-width if odd total (5 cards) */
.uc-grid--personal .uc-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 600px;
}

@media (max-width: 1023px) {
  .uc-section__headline {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .uc-section {
    padding: 4rem 1.25rem;
  }
  .uc-grid {
    grid-template-columns: 1fr;
  }
  .uc-section__headline {
    font-size: 28px;
  }
}

/* =============================================
   SCENARIO CARD
   ============================================= */

.uc-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.uc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 40px rgba(232, 160, 32, 0.07);
}

/* TOP AREA — badge + title */
.uc-card__top {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.uc-card__title {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: 12px;
}

/* BEFORE block */
.uc-card__before {
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-left: 3px solid rgba(220, 60, 60, 0.35);
  border-bottom: 1px solid var(--border);
}

/* AFTER block */
.uc-card__after {
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--amber);
  position: relative;
  flex: 1;
}

/* Amber glow behind the "after" block */
.uc-card__after::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(232, 160, 32, 0.03);
  pointer-events: none;
}

/* Hover: amber border brightens on "after" block */
.uc-card:hover .uc-card__after {
  border-left-color: var(--amber-light);
}

/* Labels */
.uc-card__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.uc-card__label--before {
  color: rgba(220, 80, 80, 0.7);
}

.uc-card__label--after {
  color: var(--amber);
}

/* Body text */
.uc-card__text {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* =============================================
   CHANNEL BADGES
   ============================================= */

.uc-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  padding: 3px 9px;
  display: inline-block;
  white-space: nowrap;
}

/* WhatsApp — green */
.uc-badge--whatsapp {
  color: #25D366;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.22);
}

/* Telegram — blue */
.uc-badge--telegram {
  color: #29B6F6;
  background: rgba(41, 182, 246, 0.08);
  border: 1px solid rgba(41, 182, 246, 0.22);
}

/* SMS — muted gray */
.uc-badge--sms {
  color: var(--text-secondary);
  background: rgba(138, 135, 128, 0.08);
  border: 1px solid rgba(138, 135, 128, 0.22);
}

/* Phone — amber (matches brand) */
.uc-badge--phone {
  color: var(--amber);
  background: rgba(232, 160, 32, 0.08);
  border: 1px solid rgba(232, 160, 32, 0.22);
}

/* =============================================
   SECTION DIVIDER (Forge Slash)
   ============================================= */

.uc-divider {
  text-align: center;
  padding: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.uc-divider__slashes {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--amber);
  opacity: 0.4;
  display: inline-block;
  padding: 12px 24px;
  background: var(--bg-primary);
  position: relative;
  top: -1px;
}

/* =============================================
   CTA SECTION
   ============================================= */

.uc-cta {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Amber glow at top of CTA section */
.uc-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.6;
}

.uc-cta__inner {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.uc-cta__eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--amber);
  margin-bottom: 16px;
}

.uc-cta__headline {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.uc-cta__subtext {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
}

.uc-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Primary amber button */
.uc-cta__btn-primary {
  display: inline-block;
  background: var(--amber);
  color: #000;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.uc-cta__btn-primary:hover {
  background: var(--amber-light);
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(232, 160, 32, 0.25);
}

.uc-cta__btn-primary:active {
  transform: scale(0.98);
  background: #D4901A;
}

/* Secondary text link */
.uc-cta__btn-secondary {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--amber);
  text-decoration: none;
  transition: color 150ms ease;
}

.uc-cta__btn-secondary:hover {
  color: var(--amber-light);
  text-decoration: underline;
}

/* Trust nudge */
.uc-cta__trust {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 24px;
  opacity: 0.8;
}

@media (max-width: 767px) {
  .uc-cta {
    padding: 4rem 1.25rem;
  }
  .uc-cta__headline {
    font-size: 28px;
  }
  .uc-cta__btn-primary {
    width: 100%;
    text-align: center;
    font-size: 17px;
  }
}

/* =============================================
   LANDING PAGE TEASER BLOCK
   ============================================= */

.uc-teaser {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  background: rgba(232, 160, 32, 0.04);
  border: 1px solid rgba(232, 160, 32, 0.15);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  padding: 28px 32px;
  margin-top: 40px;
  transition: background 250ms ease, border-color 250ms ease;
}

.uc-teaser:hover {
  background: rgba(232, 160, 32, 0.07);
  border-color: rgba(232, 160, 32, 0.3);
  border-left-color: var(--amber-light);
}

.uc-teaser__eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
  margin-bottom: 8px;
}

.uc-teaser__headline {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.uc-teaser__body {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.uc-teaser__link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  transition: gap 200ms ease;
}

.uc-teaser__link:hover {
  gap: 12px;
}

.uc-teaser__link-text {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--amber);
  white-space: nowrap;
  transition: color 150ms ease;
}

.uc-teaser__link:hover .uc-teaser__link-text {
  color: var(--amber-light);
}

.uc-teaser__link-arrow {
  font-size: 18px;
  color: var(--amber);
  transition: color 150ms ease, transform 200ms ease;
}

.uc-teaser__link:hover .uc-teaser__link-arrow {
  color: var(--amber-light);
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .uc-teaser {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .uc-teaser__link {
    margin-top: 8px;
  }
}
