/* ========================================
   HESED — Full-screen Hero Attempt
   Using the original colour palette
   ======================================== */

:root {
  --ink: #1c1917;
  --ink-soft: rgba(28, 25, 23, 0.70);
  --parchment: #faf6f1;
  --vellum: #f5efe6;
  --sand: #e0d5c4;
  --amber: #c47c2f;
  --amber-dark: #a86520;
  --cream: #f5efe6;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--ink);
  overflow-x: hidden;
}

/* --- Typography --- */
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-sm {
  font-size: 1.2rem;
  opacity: 0.4;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2.5rem;
  display: block;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, rgba(28, 25, 23, 0.8) 0%, transparent 100%);
  pointer-events: none;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  pointer-events: auto;
}

.header-cta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 100px;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
}

.header-cta:hover {
  background: rgba(245, 239, 230, 0.08);
  border-color: rgba(245, 239, 230, 0.4);
}

/* ========================================
   PANELS — Full-screen sections
   ======================================== */
.panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  scroll-snap-align: start;
}

.panel-content {
  position: relative;
  z-index: 2;
  padding: 2rem 3rem;
  max-width: 1000px;
  width: 100%;
}

/* ========================================
   PANEL: The Question
   ======================================== */
.panel-question {
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(196, 124, 47, 0.06) 0%, transparent 70%),
    var(--ink);
}

.panel-question .panel-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.question-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.question-headline em {
  font-style: italic;
  color: var(--amber);
}

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(196, 124, 47, 0.5);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: float-down 2.5s ease-in-out infinite;
}

@keyframes float-down {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.75; transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   PANEL: Legend (Person)
   ======================================== */
.panel-legend {
  overflow: hidden;
  background-color: var(--ink);
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}

.panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* --- Warren Buffett --- */
.panel-buffett {
  background-image: url('images/buffett.jpg');
  background-position: center 25%;
}

.panel-buffett .panel-overlay {
  background:
    linear-gradient(to bottom, rgba(28, 25, 23, 0.05) 0%, rgba(28, 25, 23, 0.0) 25%, rgba(28, 25, 23, 0.5) 55%, rgba(28, 25, 23, 0.95) 85%, rgba(28, 25, 23, 1) 100%),
    linear-gradient(to right, rgba(28, 25, 23, 0.4) 0%, transparent 45%);
}

/* --- Muhammad Ali --- */
.panel-ali {
  background-image: url('images/ali.jpg');
  background-position: center 30%;
}

.panel-ali .panel-overlay {
  background:
    linear-gradient(to bottom, rgba(28, 25, 23, 0.05) 0%, rgba(28, 25, 23, 0.0) 25%, rgba(28, 25, 23, 0.5) 55%, rgba(28, 25, 23, 0.95) 85%, rgba(28, 25, 23, 1) 100%),
    linear-gradient(to right, rgba(28, 25, 23, 0.4) 0%, transparent 45%);
}

/* --- Benjamin Franklin --- */
.panel-franklin {
  background-image: url('images/franklin.jpg');
  background-position: center 25%;
}

.panel-franklin .panel-overlay {
  background:
    linear-gradient(to bottom, rgba(28, 25, 23, 0.05) 0%, rgba(28, 25, 23, 0.0) 25%, rgba(28, 25, 23, 0.5) 55%, rgba(28, 25, 23, 0.95) 85%, rgba(28, 25, 23, 1) 100%),
    linear-gradient(to right, rgba(28, 25, 23, 0.4) 0%, transparent 45%);
}

/* --- Oprah Winfrey --- */
.panel-oprah {
  background-image: url('images/oprah-v2.jpg');
  background-position: center 20%;
}

.panel-oprah .panel-overlay {
  background:
    linear-gradient(to bottom, rgba(28, 25, 23, 0.05) 0%, rgba(28, 25, 23, 0.0) 25%, rgba(28, 25, 23, 0.5) 55%, rgba(28, 25, 23, 0.95) 85%, rgba(28, 25, 23, 1) 100%),
    linear-gradient(to right, rgba(28, 25, 23, 0.4) 0%, transparent 45%);
}

/* --- Richard Branson --- */
.panel-branson {
  background-image: url('images/branson.jpg');
  background-position: center 25%;
}

.panel-branson .panel-overlay {
  background:
    linear-gradient(to bottom, rgba(28, 25, 23, 0.05) 0%, rgba(28, 25, 23, 0.0) 25%, rgba(28, 25, 23, 0.5) 55%, rgba(28, 25, 23, 0.95) 85%, rgba(28, 25, 23, 1) 100%),
    linear-gradient(to right, rgba(28, 25, 23, 0.4) 0%, transparent 45%);
}

/* --- Martin Luther King Jr. --- */
.panel-mlk {
  background-image: url('images/mlk.jpg');
  background-position: center 20%;
}

.panel-mlk .panel-overlay {
  background:
    linear-gradient(to bottom, rgba(28, 25, 23, 0.05) 0%, rgba(28, 25, 23, 0.0) 25%, rgba(28, 25, 23, 0.5) 55%, rgba(28, 25, 23, 0.95) 85%, rgba(28, 25, 23, 1) 100%),
    linear-gradient(to right, rgba(28, 25, 23, 0.4) 0%, transparent 45%);
}

/* --- Legend content layout --- */
.legend-content {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding-bottom: 8vh;
}

.legend-text {
  max-width: 680px;
}

.legend-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.legend-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  color: rgba(245, 239, 230, 0.9);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.legend-insight {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--amber);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* ========================================
   PANEL: The Answer
   ======================================== */
.panel-answer {
  background: var(--ink);
}

.panel-answer .panel-content {
  text-align: center;
  max-width: 820px;
}

.answer-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 2.5rem;
}

.answer-headline em {
  color: var(--amber);
  font-style: italic;
}

.answer-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(245, 239, 230, 0.55);
  margin-bottom: 1.25rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.answer-hook {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(245, 239, 230, 0.8);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   PANEL: CTA / Sign Up
   ======================================== */
.panel-cta {
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(196, 124, 47, 0.06) 0%, transparent 70%),
    linear-gradient(170deg, #241c15 0%, var(--ink) 100%);
}

.panel-cta .panel-content {
  text-align: center;
  max-width: 480px;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.cta-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(245, 239, 230, 0.45);
  margin-bottom: 2.5rem;
}

/* --- Waitlist Form --- */
.waitlist-box {
  margin-bottom: 2.5rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-field {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(245, 239, 230, 0.06);
  border: 1px solid rgba(245, 239, 230, 0.12);
  border-radius: 8px;
  color: var(--cream);
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.input-field::placeholder {
  color: rgba(245, 239, 230, 0.3);
}

.input-field:focus {
  border-color: var(--amber);
  background: rgba(245, 239, 230, 0.08);
  box-shadow: 0 0 0 3px rgba(196, 124, 47, 0.08);
}

.btn-primary {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
  width: 100%;
}

.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(196, 124, 47, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.waitlist-note {
  font-size: 0.78rem;
  color: rgba(245, 239, 230, 0.3);
  margin-top: 1rem;
  line-height: 1.5;
}

.waitlist-status {
  min-height: 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(245, 239, 230, 0.7);
}

.waitlist-status.is-success {
  color: #8ad9a2;
}

.waitlist-status.is-error {
  color: #f4a6a6;
}

/* --- Social Proof --- */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.proof-dots {
  display: flex;
}

.dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  margin-right: -8px;
}

.dot:nth-child(1) { background: var(--sand); }
.dot:nth-child(2) { background: #b8a48a; }
.dot:nth-child(3) { background: #c49a6c; }
.dot:nth-child(4) { background: var(--amber); }

.proof-text {
  font-size: 0.82rem;
  color: rgba(245, 239, 230, 0.4);
}

.proof-text strong {
  color: rgba(245, 239, 230, 0.65);
}

/* --- Footer --- */
.footer {
  padding: 2rem 3rem;
  border-top: 1px solid rgba(245, 239, 230, 0.06);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(245, 239, 230, 0.2);
}

.footer-link {
  font-size: 0.72rem;
  color: rgba(245, 239, 230, 0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: rgba(245, 239, 230, 0.7);
}

/* ========================================
   Scroll-triggered Fade-In
   ======================================== */
.panel-legend .legend-name,
.panel-legend .legend-quote,
.panel-legend .legend-insight,
.panel-answer .answer-headline,
.panel-answer .answer-sub,
.panel-answer .answer-hook,
.panel-cta .cta-headline,
.panel-cta .cta-sub,
.panel-cta .waitlist-box,
.panel-cta .social-proof {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.panel-legend .legend-quote { transition-delay: 0.12s; }
.panel-legend .legend-insight { transition-delay: 0.24s; }
.panel-answer .answer-sub { transition-delay: 0.12s; }
.panel-answer .answer-hook { transition-delay: 0.25s; }
.panel-cta .cta-sub { transition-delay: 0.08s; }
.panel-cta .waitlist-box { transition-delay: 0.16s; }
.panel-cta .social-proof { transition-delay: 0.3s; }

.is-visible .legend-name,
.is-visible .legend-quote,
.is-visible .legend-insight,
.is-visible .answer-headline,
.is-visible .answer-sub,
.is-visible .answer-hook,
.is-visible .cta-headline,
.is-visible .cta-sub,
.is-visible .waitlist-box,
.is-visible .social-proof {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  html { scroll-snap-type: y proximity; }
  .header { padding: 1rem 1.5rem; }
  .panel-content { padding: 2rem 1.5rem; }
  .legend-content { padding-bottom: 6vh; }
  .legend-name { font-size: clamp(3rem, 14vw, 5rem); }

  .panel-buffett  { background-position: 38% center; }
  .panel-ali      { background-position: 45% center; }
  .panel-franklin { background-position: 42% center; }
  .panel-oprah    { background-position: 50% center; }
  .panel-branson  { background-position: 50% center; }
  .panel-mlk      { background-position: 45% center; }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .legend-content {
    padding-left: 6vw;
  }
}
