/*
Theme Name: We Want Destiny 3
Theme URI: https://wewantdestiny3.com
Author: We Want Destiny 3
Author URI: https://wewantdestiny3.com
Description: Campaign landing theme for the "We Want Destiny 3" petition. Full-screen branded hero with petition call-to-action.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wewantdestiny3
*/

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #05070d;
  color: #f4efe1;
  font-family: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

:root {
  --gold: #e9b44a;
  --gold-bright: #ffd67e;
  --gold-deep: #c98f2a;
  --ink: #f4efe1;
  --bg: #05070d;
  --muted: rgba(244, 239, 225, 0.55);
}

/* ----------------------------------------------------------------- Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 4vh, 3rem) 1.25rem clamp(1.25rem, 3vh, 2rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg) url("assets/bg.jpg") center / cover no-repeat;
}

/* Darkening wash so text + button stay legible over the artwork */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(125% 85% at 50% 28%, rgba(5,7,13,0) 38%, rgba(5,7,13,0.55) 100%),
    linear-gradient(180deg, rgba(5,7,13,0.55) 0%, rgba(5,7,13,0.05) 22%, rgba(5,7,13,0) 55%, rgba(5,7,13,0.65) 100%);
  pointer-events: none;
}

/* Ember particle canvas — sits above the artwork, below the content. */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* ----------------------------------------------------------------- Logo */
/* Registered so the conic-gradient angle can be animated smoothly. */
@property --wwd3-sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.hero__logo {
  position: relative;
  display: inline-block;
  width: min(340px, 60vw);
  margin-bottom: clamp(1rem, 2.5vh, 1.75rem);
  line-height: 0;
}

.hero__logo-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(233, 160, 40, 0.42))
          drop-shadow(0 0 60px rgba(233, 160, 40, 0.20));
  animation: wwd3-logo-pulse 3.6s ease-in-out infinite;
}

/* Bright "comet" of light masked to the emblem outline and swept around it. */
.hero__logo-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;       /* fallback for older browsers */
  mix-blend-mode: plus-lighter; /* additive ember where supported */
  -webkit-mask: url("assets/logo.png") center / contain no-repeat;
          mask: url("assets/logo.png") center / contain no-repeat;
  /* Medium flame tongue: deep ember red -> orange -> hot tip. */
  background: conic-gradient(
    from var(--wwd3-sweep) at 50% 50%,
    rgba(255, 60, 0, 0) 0deg,
    rgba(255, 60, 0, 0) 205deg,
    rgba(150, 18, 0, 0.26) 255deg,
    rgba(220, 45, 0, 0.52) 295deg,
    rgba(255, 95, 5, 0.85) 322deg,
    rgba(255, 150, 25, 0.95) 340deg,
    rgba(255, 210, 120, 0.98) 351deg,
    rgba(255, 240, 205, 1) 357deg,
    rgba(255, 60, 0, 0) 360deg
  );
  animation: wwd3-sweep 4.2s linear infinite; /* fallback when JS is off */
}

/* Wide, soft, dim ember trail. */
.hero__logo-glow--2 {
  background: conic-gradient(
    from var(--wwd3-sweep) at 50% 50%,
    rgba(255, 60, 0, 0) 0deg,
    rgba(255, 60, 0, 0) 165deg,
    rgba(170, 26, 0, 0.20) 225deg,
    rgba(235, 70, 8, 0.46) 300deg,
    rgba(255, 150, 40, 0.78) 344deg,
    rgba(255, 205, 130, 0.88) 356deg,
    rgba(255, 60, 0, 0) 360deg
  );
  opacity: 0.55;
  animation-duration: 6.8s;
  animation-direction: reverse;
}

/* Narrow, hot, fast tongue. */
.hero__logo-glow--3 {
  background: conic-gradient(
    from var(--wwd3-sweep) at 50% 50%,
    rgba(255, 90, 0, 0) 0deg,
    rgba(255, 90, 0, 0) 332deg,
    rgba(255, 170, 45, 0.65) 345deg,
    rgba(255, 235, 150, 1) 353deg,
    #fff7e6 357deg,
    rgba(255, 90, 0, 0) 360deg
  );
  opacity: 0.7;
  animation-duration: 3.1s;
}

/* When JS is active it drives wandering embers + flare for irregular fire. */
.hero__logo.js-fire .hero__logo-glow {
  animation: none;
  filter: brightness(calc(1 + 0.5 * var(--wwd3-flare, 0)));
}
.hero__logo.js-fire .hero__logo-img {
  animation: none;
  filter:
    drop-shadow(0 0 calc(20px + 30px * var(--wwd3-flare, 0)) rgba(255, 95, 25, calc(0.40 + 0.5 * var(--wwd3-flare, 0))))
    drop-shadow(0 0 60px rgba(255, 70, 10, 0.20));
}

@keyframes wwd3-sweep {
  to { --wwd3-sweep: 360deg; }
}
@keyframes wwd3-logo-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 22px rgba(255, 110, 30, 0.34))
            drop-shadow(0 0 55px rgba(255, 80, 10, 0.16));
  }
  50% {
    filter: drop-shadow(0 0 32px rgba(255, 140, 50, 0.5))
            drop-shadow(0 0 82px rgba(255, 90, 20, 0.24));
  }
}

/* ------------------------------------------------------- Logo fire-trace */
.hero__trace,
.hero__embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__trace {
  overflow: visible;
  mix-blend-mode: screen;        /* fallback */
  mix-blend-mode: plus-lighter;  /* additive where supported */
  filter:
    drop-shadow(0 0 4px rgba(255, 170, 70, 0.95))
    drop-shadow(0 0 11px rgba(255, 100, 20, 0.6));
}
.hero__trace-path {
  fill: none;
  stroke: #ffe7c2;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------- Wordmark */
.hero__we-want {
  margin: 0 0 0.45rem;
  font-size: clamp(0.9rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  text-transform: uppercase;
  color: #efe7d4;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 9.5vw, 6rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.11em;
  text-indent: 0.11em;
  text-transform: uppercase;
  color: #fbf6ea;
}
.hero__title span {
  color: var(--gold);
  text-shadow: 0 0 26px rgba(233, 180, 74, 0.55), 0 0 6px rgba(233, 180, 74, 0.5);
}

.hero__tagline {
  margin: clamp(0.9rem, 2.4vh, 1.4rem) 0 clamp(1.4rem, 3.2vh, 2.1rem);
  font-size: clamp(0.66rem, 1.5vw, 0.86rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* -------------------------------------------------------------- Counter */
.hero__counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 clamp(1.2rem, 3vh, 1.9rem);
}
.hero__counter-num {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: clamp(1.55rem, 5.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: #fff3df;
  text-shadow: 0 0 22px rgba(255, 140, 40, 0.45);
}
.hero__counter-value {
  color: #ffd27a;
  font-variant-numeric: tabular-nums;
}
.hero__counter-label {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 225, 0.7);
}
.hero__progress {
  width: min(360px, 76vw);
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 0 0 1px rgba(255, 180, 80, 0.18);
  overflow: hidden;
}
.hero__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff5a00, #ffb300 72%, #ffe6a8);
  box-shadow: 0 0 14px rgba(255, 150, 40, 0.7);
  transition: width 0.35s ease;
}
.hero__counter-goal {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 225, 0.6);
}
.hero__counter-goal span { color: #ffce82; font-weight: 600; }
.hero__counter.is-updating .hero__counter-value { animation: wwd3-bump 0.5s ease; }
@keyframes wwd3-bump {
  0%, 100% { transform: none; }
  30%      { transform: translateY(-2px) scale(1.04); }
}

/* --------------------------------------------------------------- Button */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: clamp(0.85rem, 1.8vh, 1.05rem) clamp(1.6rem, 4vw, 2.4rem);
  font-size: clamp(0.92rem, 1.9vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #2a1c04;
  background: linear-gradient(180deg, #ffdd8c 0%, #ecb84a 52%, #d89a2c 100%);
  border: 1px solid #ffe2a0;
  border-radius: 11px;
  box-shadow:
    0 12px 34px -10px rgba(233, 160, 40, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(120, 70, 0, 0.35);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.hero__cta:hover,
.hero__cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 44px -10px rgba(233, 160, 40, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(120, 70, 0, 0.35);
  outline: none;
}
.hero__cta svg { width: 1.15em; height: 1.15em; flex: none; }

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: clamp(0.7rem, 1.8vh, 1rem) 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hero__note svg { width: 0.9em; height: 0.9em; opacity: 0.8; }

/* --------------------------------------------------------------- Footer */
.hero__footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.hero__movement {
  margin: 0;
  font-size: clamp(0.7rem, 1.6vw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__movement span { color: var(--gold-bright); }
.hero__movement-sub {
  margin: 0;
  font-size: clamp(0.7rem, 1.5vw, 0.82rem);
  color: var(--muted);
}
.hero__scroll {
  margin-top: 0.4rem;
  color: var(--gold);
  opacity: 0.85;
  animation: wwd3-bob 2s ease-in-out infinite;
}
.hero__scroll svg { width: 1.4rem; height: 1.4rem; }

@keyframes wwd3-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll,
  .hero__logo-img { animation: none; }
  .hero__logo-glow { animation: none; opacity: 0; }
  .hero__cta { transition: none; }
  .hero__progress-bar { transition: none; }
  .hero__counter.is-updating .hero__counter-value { animation: none; }
}

/* Short / landscape screens: tighten spacing so it fits one viewport */
@media (max-height: 620px) {
  .hero__logo { width: min(220px, 40vw); margin-bottom: 0.75rem; }
}

/* ================================================== Social battle plan */
.social {
  position: relative;
  padding: clamp(3.5rem, 9vh, 6.5rem) 1.25rem clamp(4rem, 10vh, 7rem);
  background: #07090f url("assets/section-bg.jpg") center top / cover no-repeat;
  color: var(--ink);
  overflow: hidden;
}
.social::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,13,0.78) 0%, rgba(5,7,13,0.34) 32%, rgba(5,7,13,0.58) 100%);
  pointer-events: none;
}
.social__inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.social__eyebrow {
  margin: 0 0 0.6rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  color: var(--gold);
}
.social__title {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fbf6ea;
}
.social__lead {
  max-width: 64ch;
  margin: 0 auto clamp(2rem, 5vh, 3rem);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  color: rgba(244, 239, 225, 0.82);
}
.social__lead strong { color: var(--gold-bright); }

.social__cols {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  text-align: left;
  margin-bottom: clamp(2.2rem, 5vh, 3.4rem);
}
@media (max-width: 720px) { .social__cols { grid-template-columns: 1fr; } }

.social__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.social__steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(244, 239, 225, 0.85);
}
.social__steps strong { color: var(--gold-bright); }
.social__step-n {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2a1c04;
  background: linear-gradient(180deg, #ffd98a, #e9b23f);
  box-shadow: 0 0 14px rgba(233, 160, 40, 0.45);
}

.social__copy {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 180, 80, 0.16);
  border-radius: 14px;
}
.social__copy-label {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(244, 239, 225, 0.6);
}
.social__copy-box { display: flex; gap: 0.5rem; }
.social__copy-text {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Saira", monospace;
  font-size: 0.95rem;
  color: var(--gold-bright);
}
.social__copy-btn {
  flex: none;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: 700 0.85rem/1 "Saira", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a1c04;
  background: linear-gradient(180deg, #ffd98a, #e9b23f);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.social__copy-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.social__copy-btn.is-copied { background: linear-gradient(180deg, #b9f6c4, #6fd98a); }
.social__doc {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.social__doc:hover { color: var(--gold-bright); text-decoration: underline; }
.social__doc svg { width: 1.15em; height: 1.15em; flex: none; }

.social__accounts {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-align: left;
}
.social__group-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fbf6ea;
}
.social__group-title svg { width: 1.15em; height: 1.15em; color: var(--gold); flex: none; }
.social__group-title span {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(244, 239, 225, 0.55);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
}
.social__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.social__chip {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 180, 80, 0.16);
  color: rgba(244, 239, 225, 0.9);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social__chip:hover {
  background: rgba(233, 160, 40, 0.16);
  border-color: rgba(255, 200, 100, 0.5);
  color: #fff;
  transform: translateY(-1px);
}
.social__note {
  margin: clamp(2rem, 5vh, 3rem) auto 0;
  max-width: 56ch;
  font-size: 0.82rem;
  color: rgba(244, 239, 225, 0.5);
}
