/* WriteX — Desktop Screenplay Studio (Pure Black & Obsidian Craft Theme) */
:root {
  --bg-black: #000000;
  --bg-obsidian: #0F1115;
  --bg-elevated: #151820;
  --amber-primary: #F97316;
  --amber-light: #FB923C;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

/* Lenis Smooth Scroll Compatibility */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

html {
  background-color: #000000;
  color: #F4F4F5;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #000000;
  color: #F4F4F5;
  overflow-x: hidden;
  word-spacing: 0.08em;
  -webkit-font-smoothing: antialiased;
}

.font-screenplay {
  font-family: 'Courier Prime', 'Courier New', monospace;
  word-spacing: 0.08em;
}

.font-mono-ui,
.font-mono,
code,
kbd {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  word-spacing: 0.14em !important;
  letter-spacing: 0.01em;
}

.text-xs,
.text-\[11px\],
.btn-pill-white,
.btn-pill-orange,
button,
label,
select,
option {
  word-spacing: 0.14em !important;
}

label,
select,
option {
  font-family: inherit;
}

.tracking-tight,
.tracking-tighter {
  word-spacing: 0.1em;
}

/* Subtle top radial light */
.hero-spotlight {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(249, 115, 22, 0.14), transparent 70%);
}

/* Full-width Warm Amber-Orange (#F97316) Hero Showcase Ambient Band */
.hero-amber-band {
  position: relative;
  width: 100%;
  background:
    radial-gradient(ellipse 68% 75% at 50% 50%, rgba(249, 115, 22, 0.34) 0%, rgba(249, 115, 22, 0.14) 48%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(90deg, rgba(249, 115, 22, 0.03) 0%, rgba(249, 115, 22, 0.22) 50%, rgba(249, 115, 22, 0.03) 100%);
  border-top: 1px solid rgba(249, 115, 22, 0.22);
  border-bottom: 1px solid rgba(249, 115, 22, 0.22);
}

/* Staggered Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Obsidian Card (#0F1115) */
.obsidian-card {
  background: linear-gradient(180deg, #12151B 0%, #0F1115 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}

.obsidian-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 20px 44px -24px rgba(249, 115, 22, 0.25);
}

/* Orange glowing icon badge */
.orange-icon-badge {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 88, 12, 0.08) 100%);
  border: 1px solid rgba(249, 115, 22, 0.38);
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.18);
  color: #FB923C;
}

/* Primary Pill CTA */
.btn-pill-white {
  background: #FFFFFF;
  color: #000000;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.35);
}

.btn-pill-white:hover {
  background: #F4F4F5;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px rgba(255, 255, 255, 0.45);
}

.btn-pill-orange {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: #000000;
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.btn-pill-orange:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 0 38px rgba(249, 115, 22, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Framed Desktop Window */
.app-window-frame {
  background: #0F1115;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.96),
    0 0 110px -25px rgba(249, 115, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Sticky Tour Step States */
.tour-step {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
  opacity: 0.58;
}

.tour-step:hover {
  opacity: 0.88;
}

.tour-step.is-active {
  opacity: 1;
  border-left-color: #F97316;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.08) 0%, transparent 100%);
}

@keyframes tourFadeIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tour-image-animate {
  animation: tourFadeIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Click-to-zoom hover overlay */
.zoom-overlay-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.zoom-trigger:hover .zoom-overlay-hint {
  opacity: 1;
}

/* Lightbox */
.lightbox-panel {
  transform: scale(0.97);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.lightbox-backdrop.is-open .lightbox-panel {
  transform: scale(1);
  opacity: 1;
}

/* FAQ Accordion (Closed by default, smooth 350ms grid-template-rows animation, no text clipping) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 350ms ease, opacity 350ms ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-chevron {
  transition: transform 350ms ease, color 250ms ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: #F97316;
}

/* Giant Wordmark in Footer (Uncut full glyph rendering) */
.footer-wordmark {
  font-size: clamp(4.25rem, 17vw, 13.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  padding-top: 0.75rem;
  padding-bottom: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(249, 115, 22, 0.22) 68%, rgba(249, 115, 22, 0.06) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* Custom sleek dark scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #000000;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #27272A;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #F97316;
}

/* Guide & Editorial Article Typography */
.guide-prose h2 {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.25;
  margin-top: 2.35rem;
  margin-bottom: 0.9rem;
  letter-spacing: -0.015em;
}

.guide-prose h3 {
  color: #F4F4F5;
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.guide-prose p {
  color: #D4D4D8;
  line-height: 1.8;
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
}

.guide-prose ul,
.guide-prose ol {
  color: #D4D4D8;
  margin-bottom: 1.25rem;
  padding-left: 1.4rem;
}

.guide-prose ul {
  list-style-type: disc;
}

.guide-prose ol {
  list-style-type: decimal;
}

.guide-prose li {
  margin-bottom: 0.55rem;
  line-height: 1.7;
}

.guide-prose strong {
  color: #FFFFFF;
}

.guide-prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.12rem 0.4rem;
  border-radius: 0.35rem;
  color: #FDBA74;
}

.guide-prose a {
  color: #FB923C;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-prose a:hover {
  color: #FDBA74;
}

.guide-callout {
  background: rgba(249, 115, 22, 0.08);
  border-left: 3px solid #F97316;
  padding: 1.1rem 1.25rem;
  border-radius: 0 0.75rem 0.75rem 0;
  margin: 1.5rem 0;
  color: #E4E4E7;
}

.script-excerpt {
  background: #0F1115;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.85rem;
  padding: 1.35rem 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Courier Prime', monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #E4E4E7;
  overflow-x: auto;
}
