/* ============================================
   Proof of Humanity - misty lake, dawn serenity
   Cool blues, soft gold, contemplative
   ============================================ */

:root {
  /* Dawn over misty lake: cool base, golden accent */
  --cream: #f0f2f5;
  --warm-white: #f8f9fb;
  --sage: #7a8f9a;
  --sage-light: #9eb0b8;
  --terracotta: #c49a6c;
  --terracotta-soft: #e8c9a8;
  --gold: #d4a854;
  --gold-soft: #e8d4a0;
  --earth-brown: #4a5560;
  --forest: #3d4f5a;
  --sky-soft: #c8d8e4;
  --mist: rgba(240, 245, 250, 0.6);
  --water-blue: rgba(150, 175, 195, 0.25);
  --mountain-silhouette: #2d3a44;
  
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(92, 74, 61, 0.08);
  --shadow-hover: 0 12px 40px rgba(92, 74, 61, 0.12);
  
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--earth-brown);
  background-color: #e8ecf0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  line-height: 1.65;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(200, 220, 235, 0.15) 0%,
    transparent 25%,
    transparent 70%,
    rgba(150, 175, 195, 0.12) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* ----- Ambient background ----- */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Misty lake image - base atmosphere */
.bg-image-layer {
  position: absolute;
  inset: 0;
  background: url("assets/lake-sunrise.png") center bottom / cover no-repeat;
  opacity: 0.45;
}

/* Mist/fog over the scene */
.mist-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(230, 240, 250, 0.4) 0%,
    rgba(255, 255, 255, 0.25) 30%,
    rgba(255, 255, 255, 0.4) 55%,
    rgba(230, 238, 248, 0.35) 80%,
    rgba(220, 232, 245, 0.3) 100%
  );
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(200px);
  animation: mirage 30s ease-in-out infinite;
}

/* Cool sky - pale cyan/blue top */
.orb-1 {
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(180, 210, 230, 0.5) 0%, transparent 55%);
  top: -35%;
  left: -20%;
  opacity: 0.5;
  animation-delay: 0s;
}

/* Golden sun glow - low horizon */
.orb-2 {
  width: 90vw;
  height: 60vw;
  background: radial-gradient(
    ellipse at center,
    rgba(230, 200, 150, 0.4) 0%,
    rgba(220, 180, 120, 0.2) 40%,
    transparent 70%
  );
  top: 55%;
  left: 50%;
  margin-left: -45vw;
  opacity: 0.6;
  animation: sun-glow 25s ease-in-out infinite;
}

/* Soft purple/blue mountains haze */
.orb-3 {
  width: 70vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(140, 160, 190, 0.35) 0%, transparent 60%);
  bottom: -15%;
  right: -10%;
  opacity: 0.5;
  animation-delay: -18s;
}

.texture-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

.grain-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise2)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.7;
  pointer-events: none;
}

/* Vignette - subtle frame */
.ambient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 75% at 50% 45%,
    transparent 35%,
    rgba(45, 58, 68, 0.02) 75%,
    rgba(45, 58, 68, 0.05) 100%
  );
  pointer-events: none;
}

/* Nature silhouettes - dark against luminous sky */
.nature-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--mountain-silhouette);
}

.nature-svg {
  position: absolute;
  opacity: 0.12;
}

.nature-trees-left {
  left: -2%;
  bottom: -3%;
  width: 14%;
  min-width: 100px;
  max-width: 180px;
  opacity: 0.18;
  mask-image: linear-gradient(to top, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%);
}

.nature-trees-right {
  right: -2%;
  bottom: -3%;
  width: 16%;
  min-width: 110px;
  max-width: 200px;
  opacity: 0.22;
  mask-image: linear-gradient(to top, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%);
}

.nature-branches {
  color: var(--mountain-silhouette);
}

.nature-mountains {
  left: -5%;
  right: -5%;
  bottom: -2%;
  height: 42%;
  min-height: 200px;
  opacity: 0.15;
  mask-image: linear-gradient(to top, black 35%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 35%, transparent 100%);
}

.nature-mountains-2 {
  left: -5%;
  right: -5%;
  bottom: -2%;
  height: 32%;
  min-height: 160px;
  opacity: 0.05;
  mask-image: linear-gradient(to top, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%);
}

.nature-mountains-3 {
  left: -5%;
  right: -5%;
  bottom: -2%;
  height: 26%;
  min-height: 130px;
  opacity: 0.045;
  mask-image: linear-gradient(to top, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 55%, transparent 100%);
}

.nature-peaks-left {
  left: -2%;
  bottom: 15%;
  width: 16%;
  min-width: 100px;
  max-width: 180px;
  opacity: 0.05;
  mask-image: linear-gradient(to top, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 30%, transparent 100%);
}

.nature-peaks-right {
  right: -2%;
  bottom: 12%;
  width: 14%;
  min-width: 90px;
  max-width: 150px;
  opacity: 0.05;
  mask-image: linear-gradient(to top, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 30%, transparent 100%);
}

.nature-leaves {
  top: 12%;
  right: 6%;
  width: 22%;
  max-width: 220px;
  opacity: 0.05;
  animation: float-gentle 18s ease-in-out infinite;
}

.nature-leaves-2 {
  top: 50%;
  left: 2%;
  width: 20%;
  max-width: 180px;
  opacity: 0.045;
  animation: float-gentle 22s ease-in-out infinite 2s;
}

.nature-leaves-3 {
  top: 35%;
  right: 1%;
  width: 16%;
  max-width: 150px;
  opacity: 0.04;
  animation: float-gentle 20s ease-in-out infinite 1s;
}

.nature-leaves-4 {
  top: 65%;
  right: 10%;
  width: 18%;
  max-width: 170px;
  opacity: 0.042;
  animation: float-gentle 24s ease-in-out infinite 3s;
}

.nature-leaves-5 {
  top: 20%;
  left: 12%;
  width: 14%;
  max-width: 130px;
  opacity: 0.038;
  animation: float-gentle 19s ease-in-out infinite 0.5s;
}

.nature-leaves-6 {
  top: 75%;
  left: 8%;
  width: 12%;
  max-width: 120px;
  opacity: 0.035;
  animation: float-gentle 21s ease-in-out infinite 4s;
}

.nature-fern {
  left: 6%;
  bottom: 22%;
  width: 7%;
  min-width: 55px;
  max-width: 100px;
  opacity: 0.048;
  mask-image: linear-gradient(to top, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%);
}

.nature-fern-2 {
  right: 8%;
  bottom: 30%;
  width: 5%;
  min-width: 45px;
  max-width: 80px;
  opacity: 0.04;
  transform: scaleX(-1);
  animation: none;
  mask-image: linear-gradient(to top, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%);
}

.nature-branch {
  top: 22%;
  left: 4%;
  width: 17%;
  max-width: 160px;
  opacity: 0.05;
  animation: float-gentle 16s ease-in-out infinite;
}

.nature-branch-2 {
  top: 55%;
  right: 5%;
  width: 14%;
  max-width: 130px;
  opacity: 0.045;
  animation: float-gentle 23s ease-in-out infinite 2.5s;
}

.nature-branch-3 {
  top: 45%;
  left: 1%;
  width: 11%;
  max-width: 100px;
  opacity: 0.038;
  animation: float-gentle 17s ease-in-out infinite 1.5s;
}

.nature-vine {
  right: 12%;
  bottom: 32%;
  width: 5%;
  min-width: 40px;
  max-width: 70px;
  opacity: 0.042;
  mask-image: linear-gradient(to top, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%);
}

.nature-vine-2 {
  left: 14%;
  top: 30%;
  width: 4%;
  min-width: 35px;
  max-width: 55px;
  opacity: 0.036;
  transform: scaleX(-1) rotate(-10deg);
  animation: none;
  mask-image: linear-gradient(to bottom, transparent 20%, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 20%, black 60%, transparent 100%);
}

@keyframes float-gentle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, -1%) scale(1.02); }
}

@keyframes mirage {
  0%, 100% { transform: translate(0, 0) scale(1) translateZ(0); }
  25% { transform: translate(2%, -1%) scale(1.02) translateZ(0); }
  50% { transform: translate(-1%, 2%) scale(0.98) translateZ(0); }
  75% { transform: translate(1%, 1%) scale(1.01) translateZ(0); }
}

@keyframes sun-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.65; }
}

/* ----- Music control ----- */
.music-control {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
}

.music-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--mist);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(200, 220, 235, 0.6);
  border-radius: 999px;
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  box-shadow: 0 2px 20px rgba(92, 74, 61, 0.06);
}

.music-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.music-btn.playing .icon-music {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.icon-music {
  width: 20px;
  height: 20px;
}

/* ----- Header ----- */
.header {
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 248, 252, 0.55);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(140, 165, 185, 0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.logo-symbol {
  color: var(--sage);
  font-size: 1.2em;
}

.logo-ticker {
  background: linear-gradient(135deg, var(--gold), var(--terracotta));
  color: white;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--sage);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--forest);
  transform: translateY(-1px);
}

/* ----- Hero ----- */
.hero {
  padding: 7rem 2rem 6rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--sage);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--earth-brown);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
}

.hero-title em {
  font-style: italic;
  color: var(--forest);
  position: relative;
  opacity: 0.95;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--earth-brown);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--terracotta);
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow);
}

.hero-cta:hover {
  background: var(--earth-brown);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ----- Why now ----- */
.why-now {
  padding: 6rem 2rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(180, 200, 220, 0.08) 25%,
    rgba(200, 215, 230, 0.12) 50%,
    rgba(180, 200, 220, 0.06) 75%,
    transparent 100%
  );
}

.why-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
}

.why-now h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--forest);
  margin-bottom: 1.5rem;
}

.why-now p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--earth-brown);
}

.why-now strong {
  color: var(--forest);
}

/* ----- Achievements ----- */
.achievements {
  padding: 6rem 2rem 7rem;
  max-width: 1200px;
  margin: 0 auto;
}

.achievements > h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--forest);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--earth-brown);
  opacity: 0.85;
  margin-bottom: 3.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.video-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(
    145deg,
    var(--sage-light) 0%,
    var(--water-blue) 40%,
    var(--terracotta-soft) 100%
  );
  transition: transform 0.5s var(--ease-soft), box-shadow 0.5s var(--ease);
  box-shadow:
    0 4px 24px rgba(45, 58, 68, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 25%,
    rgba(44, 44, 44, 0.3) 60%,
    rgba(44, 44, 44, 0.75) 100%
  );
  z-index: 1;
  transition: all 0.4s var(--ease);
}

.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}

.video-card.loaded video {
  opacity: 1;
}

.video-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(92, 74, 61, 0.1);
}

.video-card:hover .card-overlay {
  background: linear-gradient(
    180deg,
    transparent 15%,
    rgba(44, 44, 44, 0.5) 55%,
    rgba(44, 44, 44, 0.9) 100%
  );
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(44, 44, 44, 0.4) 70%,
    rgba(44, 44, 44, 0.82) 100%
  );
  transition: all 0.4s var(--ease);
}

.card-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: white;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card-overlay p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Play icon overlay */
.video-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  transition: all 0.4s var(--ease-soft);
  backdrop-filter: blur(4px);
}

.video-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ----- Video modal ----- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.video-modal.open {
  opacity: 1;
  visibility: visible;
}

.video-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 44, 0.9);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--earth-brown);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

#modalVideo {
  width: 100%;
  display: block;
}

#modalTitle {
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: white;
}

/* ----- Join CTA ----- */
.join-cta {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 168, 84, 0.05) 30%,
    rgba(212, 168, 84, 0.12) 70%,
    transparent 100%
  );
}

.join-cta h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--forest);
  margin-bottom: 1rem;
}

.join-cta p {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  color: var(--earth-brown);
  font-size: 1.05rem;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--forest);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  margin-bottom: 1.5rem;
}

.cta-btn:hover {
  background: var(--sage);
  transform: translateY(-2px);
}

.cta-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--sage) !important;
}

/* ----- Footer ----- */
.footer {
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(140, 165, 185, 0.15);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(45, 58, 68, 0.02) 100%
  );
}

.footer p {
  color: var(--earth-brown);
  opacity: 0.85;
  font-size: 0.95rem;
}

.footer-tagline {
  margin-top: 0.5rem;
  font-style: italic;
  opacity: 0.75;
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .music-label {
    display: none;
  }

  .nav-cta {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}
