/* ============================================================
   JESTER LANDING PAGE — style.css
   Mobile-first. Dark theme. Bebas Neue (display) + Epilogue (body).
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:            #0A0A0A;
  --surface:       #111111;
  --border:        #1E1E1E;
  --text:          #F0F0F0;
  --muted:         #666666;
  --muted-light:   #888888;
  --accent:        #4A306D;
  --accent-hover:  #5c3a85;
  --accent-dim:    rgba(74, 48, 109, 0.15);
  --font-display:  'Bebas Neue', sans-serif;
  --font-body:     'Epilogue', sans-serif;
  --max-w:         1100px;
  --section-gap:   96px;
  --radius:        8px;

  /* z-index scale */
  --z-nav:     50;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  z-index: 9999;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  /* Logo is dark-on-white PNG — invert so it reads white-on-transparent on dark bg.
     hue-rotate(180deg) brings purple back close to original after inversion.
     Replace with a transparent-background PNG when available for best results. */
  filter: invert(1) hue-rotate(180deg) brightness(1.1);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1;
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-light);
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 8px 0;
  letter-spacing: 0.02em;
}

.nav-cta:hover {
  color: var(--text);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 32px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Bebas Neue headline */
.headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 12vw, 82px);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.headline .accent-line {
  display: block;
  color: var(--accent);
}

.subheadline {
  font-size: clamp(17px, 3vw, 21px);
  font-weight: 300;
  color: var(--muted-light);
  letter-spacing: 0.01em;
  line-height: 1.5;
  max-width: 480px;
}

/* ---- Email Form ---- */
.form-wrap {
  margin-top: 4px;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 15px 18px;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  min-height: 52px;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 47, 255, 0.2);
}

.email-input.error {
  border-color: #cc3333;
  box-shadow: 0 0 0 3px rgba(204, 51, 51, 0.15);
}

.btn-primary {
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #FFFFFF;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 15px 24px;
  transition: background 0.2s ease, transform 0.15s ease;
  width: 100%;
  white-space: nowrap;
  letter-spacing: 0.02em;
  min-height: 52px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-confirmation {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  padding: 16px 0 4px;
  line-height: 1.5;
}

/* ---- Hero Visual (full-bleed below hero) ---- */
.hero-visual-full {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 16px;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   PAIN + SOLUTION
   ============================================================ */
.pain-solution {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.pain-block {
  padding: 36px 32px;
  border-left: 2px solid rgba(74, 48, 109, 0.35);
  margin-bottom: 72px;
}

.pain-copy {
  font-size: clamp(17px, 3vw, 21px);
  font-weight: 300;
  font-style: italic;
  color: var(--muted-light);
  line-height: 1.8;
  max-width: 660px;
}

.pain-copy em {
  font-style: normal;
  color: var(--text);
  font-weight: 500;
}

.solution-copy {
  font-size: clamp(18px, 3vw, 23px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  max-width: 660px;
}

.solution-copy strong {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 56px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  line-height: 1;
}

.step-title {
  font-family: var(--font-body);
  font-size: clamp(19px, 4vw, 24px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.step-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted-light);
  line-height: 1.7;
  max-width: 320px;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.strike-b {
  color: var(--accent);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 9vw, 72px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.97;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 48px;
  max-width: 640px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 4px 0;
}

.footer-link:hover {
  color: var(--text);
}

.footer-credit {
  font-size: 13px;
  color: #2E2E2E;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.step:nth-child(2).reveal { transition-delay: 0.08s; }
.step:nth-child(3).reveal { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .animate-in {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .btn-primary:active:not(:disabled) {
    transform: none;
  }
}

/* ============================================================
   DESKTOP BREAKPOINTS
   ============================================================ */
@media (min-width: 640px) {
  .email-form {
    flex-direction: row;
    max-width: 480px;
  }

  .email-input {
    flex: 1;
  }

  .btn-primary {
    width: auto;
  }
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 720px;
  }

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

  .hero-visual-full {
    max-width: 700px;
  }

  .steps {
    flex-direction: row;
    gap: 48px;
  }

  .step {
    flex: 1;
  }

  .step-desc {
    max-width: none;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
}
