/* ==========================================
   PurPassion Landing Page — Styles
   Dawn/Bright Optimism Theme
   ========================================== */

/* --- Custom Properties --- */
:root {
  /* Palette */
  --deep-horizon: #1A1040;
  --twilight-indigo: #2D1B69;
  --dawn-purple: #5B2D8E;
  --sunrise-coral: #E8614D;
  --warm-gold: #F4A942;
  --sky-blue: #7BCBF5;
  --soft-peach: #FFD4C2;
  --cloud-white: #FFF8F2;
  --cream: #FFFAF5;

  /* Text */
  --text-heading: #1A1040;
  --text-body: #3A2A5C;
  --text-subtle: #7A6B94;
  --text-light: #FFF8F2;
  --text-accent: #E8614D;

  /* Gradients */
  --gradient-hero: linear-gradient(180deg, #7BCBF5 0%, #B8DFFA 15%, #FFD4C2 35%, #E8614D 60%, #5B2D8E 80%, #1A1040 100%);
  --gradient-cta: linear-gradient(135deg, #E8614D 0%, #F4A942 100%);
  --gradient-footer: linear-gradient(180deg, #2D1B69 0%, #1A1040 100%);
  --gradient-join: linear-gradient(180deg, #FFD4C2 0%, #E8614D 40%, #5B2D8E 75%, #1A1040 100%);

  /* Spacing */
  --section-pad-y: 120px;
  --section-pad-y-mobile: 72px;
  --content-max: 680px;
  --wide-max: 1080px;

  /* Type */
  --font: 'Work Sans', sans-serif;
  --font-display: 'Passion One', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--warm-gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.accent-dot {
  color: var(--sunrise-coral);
}


/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__sky {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero__clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  z-index: 1;
}

.hero__terrain {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  z-index: 2;
  will-change: transform;
}

.hero__terrain--far  { z-index: 2; height: 50%; }
.hero__terrain--mid  { z-index: 3; height: 45%; }
.hero__terrain--close { z-index: 4; height: 40%; }
.hero__terrain--front { z-index: 5; height: 35%; }

.hero__water {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8%;
  background: linear-gradient(180deg, rgba(93, 45, 142, 0.25) 0%, rgba(26, 16, 64, 0.6) 100%);
  z-index: 6;
  will-change: transform;
}

.hero__kitsunebi {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  margin-top: -10vh;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 2px 40px rgba(26, 16, 64, 0.3);
}

.hero__title .accent-dot {
  color: var(--warm-gold);
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: rgba(255, 248, 242, 0.9);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 248, 242, 0.7);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 20;
}


/* ==========================================
   KITSUNEBI ORBS
   ========================================== */
.kitsunebi {
  display: block;
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #F4A942 0%, rgba(232, 97, 77, 0.6) 60%, transparent 100%);
  box-shadow: 0 0 10px 5px rgba(244, 169, 66, 0.25);
  pointer-events: none;
}

.kitsunebi:nth-child(1) { animation: kitsunebi-float 4.5s ease-in-out infinite 0s, kitsunebi-glow 3.5s ease-in-out infinite 0.2s; }
.kitsunebi:nth-child(2) { animation: kitsunebi-float 5.2s ease-in-out infinite 0.8s, kitsunebi-glow 4.0s ease-in-out infinite 1.0s; }
.kitsunebi:nth-child(3) { animation: kitsunebi-float 3.8s ease-in-out infinite 1.5s, kitsunebi-glow 3.2s ease-in-out infinite 0.5s; }
.kitsunebi:nth-child(4) { animation: kitsunebi-float 4.8s ease-in-out infinite 0.3s, kitsunebi-glow 3.8s ease-in-out infinite 1.5s; }
.kitsunebi:nth-child(5) { animation: kitsunebi-float 5.5s ease-in-out infinite 2.0s, kitsunebi-glow 4.2s ease-in-out infinite 0.7s; }

.kitsunebi--lg {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 20px 10px rgba(244, 169, 66, 0.45);
  background: radial-gradient(circle, #FFD080 0%, #F4A942 30%, rgba(232, 97, 77, 0.6) 60%, transparent 100%);
}

.kitsunebi--footer {
  position: absolute;
  bottom: 20px;
  right: 32px;
  width: 8px;
  height: 8px;
  animation: kitsunebi-float 5s ease-in-out infinite, kitsunebi-glow 4s ease-in-out infinite;
}


/* ==========================================
   SECTIONS — Shared
   ========================================== */
.section {
  padding: var(--section-pad-y) 24px;
}

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.section__intro {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 16px;
  line-height: 1.5;
}

.section__sub {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 16px;
}

.section__closing {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--text-heading);
  margin-top: 48px;
  text-align: center;
}

em {
  font-style: italic;
  color: var(--text-accent);
}


/* ==========================================
   SECTION 2: THE PROBLEM
   ========================================== */
.section--problem {
  background: var(--cloud-white);
}

.section--problem .lead-text {
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  font-weight: 500;
  color: var(--text-heading);
  line-height: 1.45;
  margin-bottom: 24px;
}

.section--problem .closing-text {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text-accent);
  margin-top: 32px;
}

.section--problem p + p {
  margin-top: 16px;
}


/* ==========================================
   SECTION 3: A DIFFERENT APPROACH
   ========================================== */
.section--approach {
  background: var(--cream);
}

.section--approach .section__inner {
  max-width: var(--wide-max);
}

/* Zone grid */
.zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 48px 0;
}

.zone {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid rgba(91, 45, 142, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zone:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(91, 45, 142, 0.1);
}

.zone__icon {
  width: 40px;
  height: 40px;
  color: var(--dawn-purple);
  margin-bottom: 12px;
}

.zone__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.zone__desc {
  font-size: 0.9rem;
  color: var(--text-subtle);
  line-height: 1.5;
}


/* Depth scene: scroll-driven parallax zoom */
.depth-scene {
  margin-top: 48px;
}

.depth-scene__scroll-track {
  height: 200vh;
  position: relative;
}

.depth-scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2D1B69;
  border-radius: 20px;
  transition: background-color 0.15s linear;
}

.depth-scene__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--cloud-white);
  margin-bottom: 40px;
  z-index: 10;
}

/* Shared layer styles */
.depth-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  filter: blur(6px);
  text-align: center;
  pointer-events: none;
  width: 90%;
  max-width: 700px;
}

.depth-layer__label {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: block;
}

.depth-layer__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.depth-layer__items span {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Layer-specific colors — designed for colored backgrounds */
.depth-layer--zones .depth-layer__label {
  color: var(--sky-blue);
}
.depth-layer--zones .depth-layer__items span {
  background: rgba(255, 255, 255, 0.15);
  color: var(--cloud-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.depth-layer--fields .depth-layer__label {
  color: var(--cloud-white);
}
.depth-layer--fields .depth-layer__items span {
  background: rgba(255, 255, 255, 0.18);
  color: var(--cloud-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.depth-layer--roles .depth-layer__label {
  color: var(--deep-horizon);
}
.depth-layer--roles .depth-layer__items span {
  background: rgba(26, 16, 64, 0.12);
  color: var(--deep-horizon);
  border: 1px solid rgba(26, 16, 64, 0.18);
}

/* Monday layer */
.depth-layer--monday {
  width: auto;
  max-width: none;
}

.depth-layer__monday-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--deep-horizon);
  text-align: center;
  display: block;
}

/* Active state — layer is in focus */
.depth-layer.depth-layer--active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: blur(0);
}

/* Passed state — layer zooms past */
.depth-layer.depth-layer--passed {
  transform: translate(-50%, -50%) scale(1.8);
  opacity: 0;
  filter: blur(4px);
}

@media (max-width: 600px) {
  .depth-scene__scroll-track {
    height: 160vh;
  }
  .depth-scene__sticky {
    height: 60vh;
  }
  .depth-layer__items span {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .depth-layer__label {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .depth-scene__scroll-track {
    height: auto;
  }
  .depth-scene__sticky {
    position: relative;
    height: auto;
    padding: 48px 24px;
  }
  .depth-layer {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    opacity: 1;
    filter: none;
    margin-bottom: 32px;
  }
  .depth-layer.depth-layer--passed {
    transform: none;
    opacity: 1;
    filter: none;
  }
}


/* ==========================================
   SECTION 4: THE INGS
   ========================================== */
.section--ings {
  background: linear-gradient(180deg, var(--cream) 0%, var(--soft-peach) 100%);
}

/* Ings translations */
.ings-translations {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ings-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ings-noun {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: rgba(91, 45, 142, 0.08);
  padding: 8px 18px;
  border-radius: 24px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ings-arrow {
  color: var(--text-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.ings-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ing-tag {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(232, 97, 77, 0.12) 0%, rgba(244, 169, 66, 0.12) 100%);
  color: var(--sunrise-coral);
  border: 1px solid rgba(232, 97, 77, 0.15);
}

/* Ings cloud */
.ings-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
  padding: 24px 0;
}

.ings-cloud span {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 16px;
  background: rgba(91, 45, 142, 0.06);
  color: var(--dawn-purple);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ings-cloud span:hover {
  opacity: 1;
  transform: scale(1.05);
}


/* ==========================================
   SECTION 5: HONEST ABOUT AI
   ========================================== */
.section--ai {
  background: linear-gradient(180deg, var(--soft-peach) 0%, #E8F4FC 50%, var(--cloud-white) 100%);
}

/* AI Visualization */
.ai-viz {
  margin: 48px 0;
  padding: 32px;
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(91, 45, 142, 0.08);
}

.ai-viz__bar-group {
  margin-bottom: 24px;
}

.ai-viz__bar-group:last-of-type {
  margin-bottom: 16px;
}

.ai-viz__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.ai-viz__bar {
  height: 28px;
  background: rgba(91, 45, 142, 0.06);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.ai-viz__fill {
  height: 100%;
  border-radius: 14px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ai-viz__fill--theoretical {
  background: linear-gradient(90deg, var(--dawn-purple), var(--twilight-indigo));
  opacity: 0.3;
}

.ai-viz__fill--actual {
  background: var(--gradient-cta);
}

/* When revealed by IntersectionObserver */
.ai-viz.revealed .ai-viz__fill--theoretical {
  width: 90%;
}

.ai-viz.revealed .ai-viz__fill--actual {
  width: 35%;
  transition-delay: 0.5s;
}

.ai-viz__gap-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-accent);
  text-align: center;
  margin-top: 16px;
}

.ai-examples {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-examples p {
  padding-left: 20px;
  border-left: 3px solid var(--warm-gold);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
}

.section__closing--bold {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
}


/* ==========================================
   SECTION 6: YOUR GUIDE
   ========================================== */
.section--guide {
  background: linear-gradient(180deg, var(--soft-peach) 0%, var(--cloud-white) 100%);
}

.guide-content {
  position: relative;
  margin: 32px 0;
}

.guide-visual {
  position: relative;
  height: 200px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2D1B69 0%, #1A1040 100%);
  overflow: hidden;
}

.guide-description {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.7;
}

.guide-qualities {
  list-style: none;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-qualities li {
  padding-left: 20px;
  border-left: 3px solid var(--warm-gold);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
}

.guide-qualities li strong {
  color: var(--text-heading);
}

.guide-closer {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 24px;
}


/* ==========================================
   SECTION 7: JOIN THE JOURNEY
   ========================================== */
.section--join {
  background: var(--gradient-join);
  text-align: center;
  padding: var(--section-pad-y) 24px;
}

.section__heading--light {
  color: var(--text-light);
}

.section__intro--light {
  color: rgba(255, 248, 242, 0.85);
}

/* Form */
.waitlist-form {
  max-width: 480px;
  margin: 40px auto 0;
}

.waitlist-form__fields {
  display: flex;
  gap: 12px;
}

.waitlist-form__input {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid transparent;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.waitlist-form__input::placeholder {
  color: var(--text-subtle);
}

.waitlist-form__input:focus {
  border-color: var(--warm-gold);
  box-shadow: 0 0 0 4px rgba(244, 169, 66, 0.2);
}

.waitlist-form__button {
  height: 52px;
  padding: 0 28px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: var(--gradient-cta);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.waitlist-form__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 97, 77, 0.35);
  filter: brightness(1.05);
}

.waitlist-form__button:active {
  transform: translateY(0);
}

.waitlist-form__note {
  font-size: 0.8rem;
  color: rgba(255, 248, 242, 0.55);
  margin-top: 12px;
}

/* Success state */
.waitlist-success {
  max-width: 480px;
  margin: 40px auto 0;
  position: relative;
}

.waitlist-success__orbs {
  position: relative;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.waitlist-success__text {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-light);
}


/* ==========================================
   FOOTER
   ========================================== */
.footer {
  position: relative;
  background: var(--gradient-footer);
  padding: 48px 24px;
  text-align: center;
  color: rgba(255, 248, 242, 0.6);
  font-size: 0.9rem;
}

.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__ecosystem p {
  font-size: 0.95rem;
  color: rgba(255, 248, 242, 0.7);
}

.footer__ecosystem a {
  color: var(--soft-peach);
  font-weight: 600;
}

.footer__ecosystem a:hover {
  color: var(--warm-gold);
}

.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer__links a {
  color: rgba(255, 248, 242, 0.5);
  font-size: 0.85rem;
}

.footer__links a:hover {
  color: var(--warm-gold);
}

.footer__divider {
  color: rgba(255, 248, 242, 0.25);
}

.footer__legal {
  font-size: 0.8rem;
  color: rgba(255, 248, 242, 0.35);
}


/* ==========================================
   RESPONSIVE
   ========================================== */

/* Mobile */
@media (max-width: 767px) {
  .section {
    padding: var(--section-pad-y-mobile) 20px;
  }

  .hero__content {
    margin-top: -5vh;
  }

  .hero__scroll-hint {
    bottom: 20px;
  }

  /* Stack form vertically */
  .waitlist-form__fields {
    flex-direction: column;
  }

  .waitlist-form__button {
    width: 100%;
  }

  /* Ings rows stack */
  .ings-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ings-arrow {
    transform: rotate(90deg);
    margin: 4px 0 4px 24px;
  }

  /* Zones single column */
  .zones {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Guide visual smaller */
  .guide-visual {
    height: 120px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .zones {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .zones {
    grid-template-columns: repeat(4, 1fr);
  }

  .zones .zone:nth-child(n+5) {
    grid-column: span 1;
  }
}

/* Wide */
@media (min-width: 1440px) {
  .section__inner {
    max-width: 720px;
  }

  .section--approach .section__inner {
    max-width: 1120px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .kitsunebi {
    animation: none !important;
  }
}
