/* Shared theme tokens for the lighter mode */
:root {
  --bg-top: #eef7ff;
  --bg-mid: #d9ebf7;
  --bg-bottom: #b7d4e6;
  --ink-strong: #183a5e;
  --ink-soft: #587694;
  --accent: #84a8c5;
  --accent-deep: #456b8f;
  --accent-bright: #f1d56b;
  --surface: rgba(255, 255, 255, 0.34);
  --surface-strong: rgba(255, 255, 255, 0.44);
  --surface-border: rgba(69, 107, 143, 0.28);
  --shadow: 0 28px 60px rgba(18, 42, 66, 0.12);
  --nav-border: rgba(69, 107, 143, 0.22);
  --menu-overlay: rgba(10, 22, 36, 0.2);
  --button-text: #ffffff;
}

/* Dark mode is the default visual direction requested by the user */
body.theme-dark {
  --bg-top: #222428;
  --bg-mid: #31343a;
  --bg-bottom: #474b52;
  --ink-strong: #f5efd4;
  --ink-soft: #d5cfb5;
  --accent: #d9bb58;
  --accent-deep: #f4dc88;
  --accent-bright: #fff2b8;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --surface-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
  --nav-border: rgba(255, 255, 255, 0.1);
  --menu-overlay: rgba(0, 0, 0, 0.42);
  --button-text: #201c12;
}

/* Reset all elements to a predictable baseline */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 139, 193, 0.92) rgba(224, 237, 249, 0.95);
}

html:has(body.theme-dark),
body.theme-dark,
body.theme-dark * {
  scrollbar-color: rgba(223, 202, 124, 0.82) rgba(48, 50, 57, 0.82);
}

/* Custom scrollbar styling keeps the interface more polished */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(223, 202, 124, 0.82) rgba(48, 50, 57, 0.82);
}

body:not(.theme-dark) * {
  scrollbar-color: rgba(86, 139, 193, 0.92) rgba(224, 237, 249, 0.95);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: rgba(48, 50, 57, 0.82);
  border-radius: 999px;
}

body:not(.theme-dark) *::-webkit-scrollbar-track {
  background: rgba(224, 237, 249, 0.95);
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(224, 237, 249, 0.95);
  border-radius: 999px;
}

body.theme-dark::-webkit-scrollbar-track,
body.theme-dark *::-webkit-scrollbar-track,
html:has(body.theme-dark)::-webkit-scrollbar-track {
  background: rgba(48, 50, 57, 0.82);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(245, 225, 146, 0.96), rgba(201, 170, 72, 0.96));
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

body:not(.theme-dark) *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(118, 171, 223, 0.98), rgba(74, 127, 180, 0.98));
  border: 3px solid transparent;
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(118, 171, 223, 0.98), rgba(74, 127, 180, 0.98));
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

body.theme-dark::-webkit-scrollbar-thumb,
body.theme-dark *::-webkit-scrollbar-thumb,
html:has(body.theme-dark)::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(245, 225, 146, 0.96), rgba(201, 170, 72, 0.96));
  border: 3px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 240, 182, 1), rgba(233, 201, 98, 0.98));
  border: 3px solid transparent;
  background-clip: padding-box;
}

body:not(.theme-dark) *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(137, 188, 239, 1), rgba(84, 140, 197, 1));
  border: 3px solid transparent;
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(137, 188, 239, 1), rgba(84, 140, 197, 1));
  border: 3px solid transparent;
  background-clip: padding-box;
}

body.theme-dark::-webkit-scrollbar-thumb:hover,
body.theme-dark *::-webkit-scrollbar-thumb:hover,
html:has(body.theme-dark)::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 240, 182, 1), rgba(233, 201, 98, 0.98));
  border: 3px solid transparent;
  background-clip: padding-box;
}

/* Shared body styling across the entire site */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 46%, var(--bg-bottom) 100%);
  background-size: 100% 200%;
  animation: gradientMove 18s ease-in-out infinite alternate;
  color: var(--ink-strong);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.45s ease, color 0.35s ease;
}

/* Shared reveal animation makes pages feel like they form gently on load and on scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 42px, 0) scale(0.985);
  transition:
    opacity 0.72s ease,
    transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal-on-scroll[data-reveal-direction="left"] {
  transform: translate3d(-38px, 22px, 0) scale(0.985);
}

.reveal-on-scroll[data-reveal-direction="right"] {
  transform: translate3d(38px, 22px, 0) scale(0.985);
}

.reveal-on-scroll.is-visible[data-reveal-direction="left"],
.reveal-on-scroll.is-visible[data-reveal-direction="right"] {
  transform: translate3d(0, 0, 0) scale(1);
}

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

button,
input {
  font: inherit;
}

/* Keep the background alive with a very slow movement */
@keyframes gradientMove {
  0% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Shared top navigation layout */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 24px 60px;
  border-bottom: 1px solid var(--nav-border);
  position: relative;
  z-index: 90;
}

/* Group the menu trigger, home mark, and tiny notification shortcut */
.brand-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

/* Three-line button used to open the side drawer */
.menu-toggle {
  width: 46px;
  height: 46px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.menu-toggle:hover,
.home-mark:hover,
.notification-link:hover {
  transform: translateY(-1px);
}

/* Visible bars inside the menu trigger */
.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-deep);
}

/* Home shortcut button */
.home-mark,
.notification-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  color: var(--accent-deep);
  font-weight: 700;
  transition: transform 0.25s ease, color 0.25s ease;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Small notification shortcut that stays visible without dominating the header */
.notification-link {
  position: relative;
  width: 42px;
  height: 42px;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 14px rgba(241, 213, 107, 0.55);
}

.active-notification {
  color: var(--accent-bright);
}

/* Center navigation links */
.navbar nav {
  justify-self: center;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.navbar li a {
  position: relative;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar li a:hover,
.navbar li a.active {
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.navbar li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-deep), transparent);
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar li a:hover::after,
.navbar li a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Header authentication links */
.auth {
  justify-self: end;
  display: flex;
  gap: 12px;
  position: relative;
  align-items: center;
  z-index: 110;
}

.auth a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.auth.is-logged-in {
  transform: translateX(-10px);
}

.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-strong);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.account-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
}

.account-toggle:hover {
  transform: translateY(-1px);
}

.avatar-frame {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--button-text);
  font-weight: 700;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-popover {
  position: fixed;
  top: 84px;
  right: 34px;
  width: min(360px, 92vw);
  padding: 18px;
  border-radius: 24px;
  background: rgba(24, 26, 31, 0.94);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  display: none;
  gap: 16px;
  z-index: 220;
}

body:not(.theme-dark) .account-popover {
  background: rgba(246, 250, 255, 0.95);
}

.account-popover.is-open {
  display: grid;
}

.account-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.account-summary .avatar-frame {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
}

.account-summary strong {
  display: block;
  margin-bottom: 4px;
}

.account-summary span,
.mini-panel-card p,
.mini-panel-card li,
.account-meta-line {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.94rem;
}

.mini-panel-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.mini-panel-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-strong);
}

.mini-panel-card ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.mini-panel-link {
  justify-self: start;
  font-weight: 700;
  color: var(--accent-deep);
}

.login {
  background: rgba(255, 255, 255, 0.16);
  color: var(--ink-strong);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.signup,
.form-submit,
.empty-state-action {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--button-text);
  border: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.active-auth {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.auth a:hover,
.logout-button:hover,
.form-submit:hover,
.empty-state-action:hover {
  transform: translateY(-1px);
}

/* Shared tiny label style */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-deep);
}

/* Home hero section */
.hero {
  position: relative;
  text-align: center;
  min-height: calc(100vh - 123px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 72px;
}

.hero h1,
.page-hero h1,
.section-title,
.empty-state-card h2,
.form-card h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3.8rem, 8vw, 5.8rem);
  line-height: 0.98;
  max-width: 860px;
  margin: 18px auto 24px;
}

.hero p,
.page-hero p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.hero p {
  font-size: clamp(1.08rem, 2vw, 1.4rem);
  max-width: 680px;
  margin: 0 auto 34px;
}

.hero-event-pill,
.hero-offer-card,
.hero-title,
.hero-lead,
.hero-showcase,
.hero-offers {
  position: relative;
  z-index: 1;
}

.hero-event-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  color: var(--accent-deep);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.hero-pill-divider {
  opacity: 0.75;
}

.hero-title {
  max-width: 980px;
  margin: 12px auto 14px;
  min-height: 2.2em;
  color: var(--ink-strong);
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 22px;
}

.hero-typed-line {
  color: var(--ink-strong);
  display: inline;
}

.hero-typed-line::after {
  content: "";
  width: 0.08em;
  height: 0.96em;
  margin-left: 0.08em;
  display: inline-block;
  vertical-align: -0.08em;
  background: var(--accent-deep);
  border-radius: 999px;
  opacity: 1;
}

.hero-typed-line.caret-hidden::after {
  opacity: 0;
}

.hero-showcase {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.24fr 0.96fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 30px;
}

.hero-video-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.hero-video-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 18, 0.08), rgba(7, 12, 18, 0.72));
  pointer-events: none;
}

.hero-video-card-featured {
  min-height: 460px;
}

.hero-showcase-side {
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
}

.hero-video-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-video-card-secondary {
  min-height: 150px;
}

.hero-video-copy {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  display: grid;
  gap: 6px;
  text-align: left;
}

.hero-video-copy strong {
  display: block;
  margin-bottom: 0;
  color: #ffffff;
  font-size: 0.98rem;
}

.hero-video-copy span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  font-size: 0.88rem;
}

.hero-video-copy span:empty {
  display: none;
}

.hero-video-copy-compact {
  right: 12px;
  bottom: 12px;
  left: 12px;
  gap: 0;
}

.hero-video-copy-compact strong {
  margin-bottom: 0;
  line-height: 1.18;
}

.hero-offers {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.hero-offers-compact {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.hero-offer-card {
  padding: 20px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.hero-offer-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.hero-offer-card span {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.92rem;
}

.cta-discovery {
  margin-top: 2px;
  margin-bottom: 32px;
}

.overview-card,
.closing-copy,
.closing-visual {
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

/* Narrow discovery zone keeps the CTA hidden until the cursor gets close */
.cta-discovery {
  width: min(280px, 60vw);
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

/* Hidden CTA used only on the homepage */
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6px 2px;
  font-size: clamp(2.4rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--accent-deep);
  opacity: 0;
  transform: translateY(10px) scale(1);
  transition: opacity 0.45s ease, transform 0.45s ease, color 0.35s ease;
  pointer-events: none;
  text-decoration: none;
}

.cta-discovery:hover .cta-link,
.cta-discovery:focus-within .cta-link,
.cta-link:hover {
  opacity: 1;
  transform: translateY(0) scale(1.05);
  pointer-events: auto;
}

.cta-discovery-visible {
  width: auto;
  min-height: auto;
  margin-top: 6px;
  margin-bottom: 18px;
}

.cta-link-button {
  position: relative;
  padding: 15px 20px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(84, 87, 94, 0.96), rgba(62, 65, 72, 0.96));
  color: #f3dd8b !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  background-image: none !important;
  -webkit-text-fill-color: #f3dd8b !important;
  text-shadow: none;
  animation: none;
  overflow: hidden;
}

.cta-link-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 54%, transparent 100%);
  pointer-events: none;
}

.cta-link-button span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  text-shadow: none !important;
}

body:not(.theme-dark) .cta-link-button {
  background: linear-gradient(180deg, rgba(74, 130, 182, 0.98), rgba(50, 101, 149, 0.98));
  color: #f5fbff !important;
  -webkit-text-fill-color: #f5fbff !important;
  border-color: rgba(41, 88, 132, 0.28);
  box-shadow:
    0 18px 34px rgba(34, 76, 118, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

body:not(.theme-dark) .cta-link-button::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 58%, transparent 100%);
}

body:not(.theme-dark) .cta-link-button,
body:not(.theme-dark) .cta-link-button:link,
body:not(.theme-dark) .cta-link-button:visited,
body:not(.theme-dark) .cta-link-button span {
  color: #f5fbff !important;
  -webkit-text-fill-color: #f5fbff !important;
}

body:not(.theme-dark) a.cta-link.cta-link-button {
  background: linear-gradient(180deg, #5d97cc, #3e79b1) !important;
  background-image: linear-gradient(180deg, #5d97cc, #3e79b1) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #f5fbff !important;
  color: #f5fbff !important;
  border: 1px solid rgba(47, 96, 145, 0.32) !important;
  box-shadow:
    0 18px 34px rgba(34, 76, 118, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.16) !important;
  animation: none !important;
  text-shadow: none !important;
}

body:not(.theme-dark) a.cta-link.cta-link-button span {
  color: #f5fbff !important;
  -webkit-text-fill-color: #f5fbff !important;
}

body.theme-dark .cta-link-button {
  background: linear-gradient(180deg, rgba(84, 87, 94, 0.96), rgba(62, 65, 72, 0.96));
  color: #f3dd8b !important;
  -webkit-text-fill-color: #f3dd8b !important;
}

.cta-link-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(243, 221, 139, 0.08),
    0 0 18px rgba(243, 221, 139, 0.12);
  border-color: rgba(243, 221, 139, 0.18);
}

body:not(.theme-dark) .cta-link-button:hover {
  box-shadow:
    0 24px 42px rgba(34, 76, 118, 0.26),
    0 0 0 1px rgba(69, 107, 143, 0.16),
    0 0 18px rgba(116, 176, 228, 0.18);
  border-color: rgba(69, 107, 143, 0.34);
}

/* Apply gradient text only when background clipping behaves correctly */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cta-link {
    background-size: 200% 200%;
    animation: gradientShift 10s ease-in-out infinite alternate;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* The hidden CTA uses blue in light mode and warm yellow in dark mode */
  body:not(.theme-dark) .cta-link {
    background-image: linear-gradient(135deg, #2ec2f3, #048fcb, #9fc9ff);
  }

  body.theme-dark .cta-link {
    background-image: linear-gradient(135deg, #f1d15c, #f6e08f, #fff4c7);
  }

  .cta-link-button {
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: inherit !important;
  }
}

/* Animated text gradient motion for the hidden CTA */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Generic inner-page layout */
.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 90px;
  display: grid;
  gap: 28px;
}

/* Home content lives below the hero so the page can scroll into the gallery */
.home-content {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 180px;
  display: grid;
  gap: 42px;
}

.showcase-intro {
  max-width: 720px;
  padding-top: 28px;
}

.showcase-intro h2 {
  margin: 14px 0 16px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
}

.showcase-intro p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.home-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.overview-card h3,
.closing-copy h2 {
  margin-bottom: 12px;
  font-family: "Playfair Display", serif;
  letter-spacing: -0.03em;
}

.overview-card p,
.closing-copy p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.narrow-shell {
  max-width: 720px;
}

.page-hero {
  text-align: center;
  padding: 110px 20px 40px;
}

body.about-page .page-hero {
  padding-top: 56px;
}

body.challenge-page .page-hero {
  padding-top: 56px;
}

body.rewards-page .page-hero {
  padding-top: 56px;
}

body.rewards-page .page-hero h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  max-width: 980px;
}

body.community-page .page-hero {
  padding-top: 56px;
}

body.support-page .page-hero {
  padding-top: 56px;
}

body.notifications-page .page-hero {
  padding-top: 42px;
}

body.notifications-page .page-hero p {
  max-width: 640px;
}

body.notifications-page .page-shell {
  margin-bottom: 180px;
}

body.notifications-page .footer {
  margin-top: auto;
  padding-top: 72px;
}

.compact-hero {
  padding-top: 78px;
  padding-bottom: 10px;
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1;
  margin: 16px auto 18px;
}

.compact-hero .eyebrow {
  opacity: 0.72;
  font-size: 0.68rem;
}

.compact-hero h1 {
  margin-top: 10px;
}

.compact-hero p {
  max-width: 520px;
}

/* Shared glass cards for feature content */
.glass-card,
.feature-grid article,
.timeline-card,
.support-grid article,
.form-card,
.notification-card,
.empty-state-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.glass-card,
.form-card,
.notification-card,
.empty-state-card {
  padding: 34px;
}

.section-block {
  display: grid;
  gap: 22px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-copy {
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 780px;
}

/* Shared section grids for the inside pages */
.feature-grid,
.timeline-grid,
.support-grid {
  display: grid;
  gap: 22px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Organized project wall used on the homepage */
.project-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Animated horizontal showcase inspired by a living gallery wall */
.project-marquee {
  display: grid;
  gap: 24px;
  overflow: hidden;
}

.marquee-row {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: stretch;
  gap: 22px;
  will-change: transform;
}

.marquee-row-forward .marquee-track {
  animation: marqueeForward 42s linear infinite;
}

.marquee-row-reverse .marquee-track {
  animation: marqueeReverse 46s linear infinite;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-card {
  width: min(390px, 82vw);
  flex: 0 0 auto;
}

.marquee-card .project-shot {
  min-height: 208px;
}

/* The lower section gives the homepage a fuller and more intentional ending */
.home-expansion {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.expansion-card {
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.expansion-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.expansion-card p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.home-closing {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
}

.closing-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.closing-visual {
  min-height: 320px;
  background-image:
    linear-gradient(135deg, rgba(9, 18, 28, 0.12), rgba(9, 18, 28, 0.4)),
    url("imagens/night.jpg");
  background-size: cover;
  background-position: center;
}

.is-hidden-by-auth {
  display: none !important;
}

.project-card {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.18);
}

.project-shot {
  min-height: 220px;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: var(--shot-position, center);
  position: relative;
}

.project-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.28));
}

.project-meta {
  padding: 14px 16px 16px;
  background: rgba(8, 10, 15, 0.18);
  min-height: 92px;
}

body:not(.theme-dark) .project-meta {
  background: rgba(255, 255, 255, 0.54);
}

.project-meta strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-strong);
}

.project-meta span {
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient image placeholders can be replaced later with real photos */
.shot-one {
  background-image: linear-gradient(135deg, rgba(244, 220, 136, 0.62), rgba(112, 68, 175, 0.22)), radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 46%), linear-gradient(135deg, #3f444e, #22262d);
}

.shot-two {
  background-image: linear-gradient(135deg, rgba(241, 213, 107, 0.54), rgba(33, 94, 162, 0.22)), linear-gradient(140deg, #454b55, #1f242d);
}

.shot-three {
  background-image: linear-gradient(135deg, rgba(241, 213, 107, 0.5), rgba(16, 27, 40, 0.1)), linear-gradient(120deg, #4e5561, #2b313a);
}

.shot-four {
  background-image: linear-gradient(135deg, rgba(255, 242, 184, 0.52), rgba(44, 61, 94, 0.18)), linear-gradient(125deg, #505865, #232830);
}

.shot-five {
  background-image: linear-gradient(135deg, rgba(241, 213, 107, 0.46), rgba(65, 87, 127, 0.22)), linear-gradient(135deg, #4d545f, #262b33);
}

.shot-six {
  background-image: linear-gradient(135deg, rgba(244, 220, 136, 0.48), rgba(22, 34, 46, 0.14)), linear-gradient(135deg, #535a66, #2b3139);
}

.shot-seven {
  background-image: linear-gradient(135deg, rgba(255, 242, 184, 0.54), rgba(84, 108, 140, 0.14)), linear-gradient(135deg, #4b515d, #252930);
}

.shot-eight {
  background-image: linear-gradient(135deg, rgba(241, 213, 107, 0.5), rgba(97, 52, 170, 0.16)), linear-gradient(135deg, #535b67, #2c3138);
}

.shot-nine {
  background-image: linear-gradient(135deg, rgba(244, 220, 136, 0.56), rgba(22, 36, 58, 0.18)), linear-gradient(135deg, #4d5561, #232830);
}

/* Horizontal drift animations keep the showcase moving like a product feed */
@keyframes marqueeForward {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 11px));
  }
}

@keyframes marqueeReverse {
  0% {
    transform: translateX(calc(-50% - 11px));
  }
  100% {
    transform: translateX(0);
  }
}

.feature-grid article,
.timeline-card,
.support-grid article {
  padding: 28px;
}

.feature-grid h3,
.timeline-card h3,
.support-grid h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.feature-grid p,
.timeline-card p,
.support-grid p,
.quote-card p,
.stat-card p,
.notification-card p,
.empty-state-card p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

/* Editorial split layout used by the content pages */
.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.quote-card,
.stat-card {
  padding: 28px;
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
}

.quote-card strong,
.stat-card strong,
.notification-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-deep);
}

/* About page media layout keeps the page lighter and more visual */
.about-hero-media {
  display: grid;
}

.challenge-hero-media {
  display: grid;
}

.challenge-media-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.challenge-media-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.challenge-media-card-featured {
  min-height: 420px;
}

.challenge-steps {
  display: grid;
  gap: 24px;
}

.challenge-step-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.challenge-step-card-right {
  grid-template-columns: 1fr 1fr;
}

.challenge-step-copy {
  height: 100%;
  align-content: center;
}

.challenge-step-copy .section-title {
  max-width: 560px;
}

.challenge-step-copy .section-copy {
  max-width: 560px;
}

.challenge-step-media {
  min-height: 360px;
}

.challenge-closing-card {
  grid-template-columns: 1.12fr 0.88fr;
  align-items: stretch;
  gap: 24px;
}

.challenge-closing-copy {
  display: grid;
  align-content: center;
  gap: 22px;
}

.challenge-focus-block {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
}

.challenge-focus-block strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-deep);
}

.challenge-focus-block p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.challenge-closing-media {
  min-height: 100%;
}

/* Rewards page uses a more editorial rhythm with media-led sections */
.rewards-shell {
  gap: 32px;
}

.rewards-hero-grid,
.rewards-spotlight-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  align-items: stretch;
}

.rewards-intro-card {
  display: flex;
  flex-direction: column;
  align-content: stretch;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.rewards-intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(243, 221, 139, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 46%);
  opacity: 0.82;
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.45s ease;
}

.rewards-intro-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 221, 139, 0.18);
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.2);
}

.rewards-intro-card:hover::before {
  opacity: 1;
  transform: scale(1.03);
}

.rewards-intro-card > * {
  position: relative;
  z-index: 1;
}

.rewards-intro-card .section-title {
  margin-bottom: 4px;
}

.rewards-intro-card .section-copy {
  max-width: 100%;
}

.rewards-intro-details {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.rewards-intro-line {
  display: grid;
  gap: 6px;
}

.rewards-intro-line strong {
  color: var(--ink-strong);
  font-size: 0.98rem;
}

.rewards-intro-line p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.rewards-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.rewards-badges span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rewards-intro-card:hover .rewards-badges span {
  transform: translateY(-2px);
  border-color: rgba(243, 221, 139, 0.18);
  background: rgba(255, 255, 255, 0.09);
}

.rewards-media-panel {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 420px;
}

.rewards-media-card,
.rewards-video-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.rewards-media-card img,
.rewards-video-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.rewards-media-card:hover img,
.rewards-video-card:hover video {
  transform: scale(1.04);
}

.rewards-media-card-large {
  min-height: 0;
  height: 100%;
}

.rewards-media-card-small {
  min-height: 0;
  height: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.rewards-media-card-large img,
.rewards-media-card-small img {
  object-position: center;
}

.rewards-media-card-large img {
  object-position: center 52%;
}

.rewards-media-card-small img {
  object-position: center 38%;
}

.rewards-ladder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rewards-tier-card {
  padding: 30px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 14px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.rewards-tier-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 213, 107, 0.18);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.16);
}

.rewards-tier-card h3 {
  font-size: 1.42rem;
}

.rewards-tier-card p,
.rewards-tier-card li {
  color: var(--ink-soft);
  line-height: 1.8;
}

.rewards-tier-card strong {
  color: var(--ink-strong);
  font-size: 0.98rem;
}

.rewards-tier-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.rewards-tier-card li {
  position: relative;
  padding-left: 18px;
}

.rewards-tier-card li::before {
  content: "";
  position: absolute;
  top: 0.88em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-deep);
  transform: translateY(-50%);
}

.rewards-video-card {
  min-height: 420px;
}

.rewards-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 17, 0.08), rgba(10, 12, 17, 0.7));
  pointer-events: none;
}

.rewards-video-overlay {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.rewards-video-overlay strong {
  color: #ffffff;
  font-size: 1.06rem;
}

.rewards-video-overlay span {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.rewards-spotlight-copy {
  align-content: center;
}

.rewards-finale-card {
  grid-template-columns: 1.04fr 0.96fr;
  align-items: stretch;
  gap: 24px;
}

.rewards-finale-copy {
  display: grid;
  align-content: center;
  gap: 22px;
}

.rewards-media-card-finale {
  min-height: 360px;
}

.about-video-card,
.about-image-card,
.about-inline-media {
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.about-video-card {
  min-height: 360px;
}

.about-video-card img,
.about-video-card video,
.about-image-card img,
.about-inline-media img,
.about-inline-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-side-media {
  display: grid;
  gap: 14px;
  align-content: start;
}

.about-split-layout {
  align-items: stretch;
}

.about-vision-card {
  align-content: start;
  align-self: stretch;
  height: 100%;
  gap: 18px;
}

.about-vision-card .section-title {
  max-width: 620px;
}

.about-vision-card .section-copy {
  max-width: 620px;
}

.about-vision-subtitle {
  color: var(--ink-strong);
  font-size: 1.04rem;
  line-height: 1.85;
  max-width: 620px;
  font-weight: 500;
}

.about-side-card {
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.about-image-card {
  min-height: 460px;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-grid-card {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.feature-grid-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.feature-grid-card p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-inline-media {
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin-top: 6px;
}

.about-cta-card {
  justify-items: center;
  text-align: center;
  padding-top: 42px;
  padding-bottom: 42px;
}

.about-cta-card .section-copy {
  max-width: 720px;
}

.about-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 15px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(84, 87, 94, 0.96), rgba(62, 65, 72, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  color: #f3dd8b;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body:not(.theme-dark) .about-cta-button,
body:not(.theme-dark) .about-cta-button:link,
body:not(.theme-dark) .about-cta-button:visited {
  background: linear-gradient(180deg, #5d97cc, #3e79b1);
  border-color: rgba(76, 125, 176, 0.34);
  box-shadow:
    0 18px 34px rgba(86, 139, 193, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.36) inset;
  color: #f5fbff;
}

.about-cta-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(243, 221, 139, 0.12);
  border-color: rgba(243, 221, 139, 0.18);
}

body:not(.theme-dark) .about-cta-button:hover {
  box-shadow:
    0 22px 42px rgba(86, 139, 193, 0.28),
    0 0 20px rgba(100, 160, 220, 0.16);
  border-color: rgba(86, 139, 193, 0.4);
}

/* Community tags */
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.chip-cloud span {
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--surface-border);
  color: var(--accent-deep);
  font-weight: 600;
}

.community-showcase {
  gap: 24px;
}

.community-intro-copy {
  max-width: 100%;
}

.community-intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.community-intro-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--surface-border);
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.community-goal-card {
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: hidden;
}

.community-goal-card strong {
  font-size: 1.12rem;
}

.community-goal-card p {
  max-width: 420px;
  margin-top: 4px;
}

.community-goal-image {
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.community-goal-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  animation: communityGoalFloat 7s ease-in-out infinite;
  transition: transform 0.35s ease;
}

.community-goal-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 17, 0.04), rgba(10, 12, 17, 0.28));
  pointer-events: none;
}

.community-goal-card:hover .community-goal-image img {
  transform: scale(1.04);
}

.community-goal-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-goal-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--surface-border);
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

@keyframes communityGoalFloat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.018);
  }
  100% {
    transform: scale(1);
  }
}

.community-role-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.community-role-button {
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.community-role-button:hover,
.community-role-button.is-active {
  transform: translateY(-1px);
  color: var(--accent-deep);
  border-color: rgba(243, 221, 139, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.community-focus-card {
  position: relative;
}

.community-focus-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.community-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transform: scale(1.02);
}

.community-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  animation: communityDrift 4s ease-in-out infinite;
}

.community-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.community-slide[data-community-panel="dreamers"] img {
  object-position: center 38%;
}

.community-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 17, 0.02), rgba(10, 12, 17, 0.74));
  pointer-events: none;
}

.community-slide-copy {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.community-slide-copy strong {
  color: #ffffff;
  font-size: 1.12rem;
}

.community-slide-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.support-media-grid {
  display: grid;
}

.support-media-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.support-media-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.support-media-card-hero img {
  object-position: center 28%;
}

.support-media-card:hover img {
  transform: scale(1.04);
}

.support-media-card-large {
  min-height: 420px;
}

.support-media-card-hero {
  min-height: 420px;
  max-height: 520px;
}

.support-media-copy {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.support-media-copy strong {
  color: #ffffff;
  font-size: 1.08rem;
}

.support-media-copy span {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.support-media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 17, 0.06), rgba(10, 12, 17, 0.68));
  pointer-events: none;
}

.support-result-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.support-system-card {
  gap: 16px;
}

.support-system-card .section-title {
  max-width: 860px;
}

.support-system-card .section-copy {
  max-width: 100%;
}

.support-system-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.support-system-points span,
.support-result-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--surface-border);
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.support-outcome-card {
  justify-content: center;
}

.support-result-card {
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.06));
}

.support-result-card strong {
  font-size: 1.1rem;
}

.support-result-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.faq-section .faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-answer-label {
  display: inline-block;
  margin-right: 6px;
  color: var(--accent-deep);
  font-weight: 700;
}

@keyframes communityDrift {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.018);
  }
  100% {
    transform: scale(1);
  }
}

/* Drawer overlay shown when the side panel opens */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--menu-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 180;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Sliding drawer used for navigation and settings */
.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, 88vw);
  height: 100vh;
  padding: 28px 24px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 22px;
  background: rgba(255, 255, 255, 0.12);
  border-right: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform: translateX(-105%);
  transition: transform 0.35s ease;
  z-index: 190;
  overflow-y: auto;
}

body.theme-dark .side-panel {
  background: rgba(25, 25, 28, 0.82);
}

.side-panel.is-open {
  transform: translateX(0);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title,
.panel-label {
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.panel-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--accent-deep);
  cursor: pointer;
}

.panel-links,
.panel-settings {
  display: grid;
  gap: 14px;
}

.panel-account-link {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.panel-account-link strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-strong);
}

.panel-account-link span {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

.panel-links a,
.settings-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: transform 0.25s ease;
}

.panel-links a:hover,
.settings-card:hover {
  transform: translateX(4px);
}

.panel-links a strong,
.settings-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-strong);
}

.panel-links a span,
.settings-card span,
.theme-state {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Theme switch row with custom rectangular switch styling */
.theme-switch {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.switch-label {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.theme-switch-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.theme-toggle-track {
  width: 72px;
  height: 38px;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--surface-border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.theme-toggle-thumb {
  width: 28px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  transform: translateX(0);
  transition: transform 0.25s ease;
}

/* When the checkbox is checked, the switch moves to the light side */
.theme-toggle-input:checked + .theme-toggle-track .theme-toggle-thumb {
  transform: translateX(33px);
}

.theme-state {
  margin-top: 12px;
}

/* Authentication form layout */
.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form label span,
.checkbox-row span {
  color: var(--ink-strong);
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-strong);
  outline: none;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.form-submit,
.empty-state-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 18px;
  font-weight: 700;
  cursor: pointer;
}

.empty-state-card {
  text-align: center;
  gap: 18px;
}

.empty-state-card h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 12px;
}

.empty-state-action {
  margin: 16px auto 0;
}

.notification-card {
  max-width: 540px;
  margin: 0 auto;
}

body.notifications-page .notification-card {
  margin-top: 12px;
}

body.notifications-page .notification-card strong {
  margin-bottom: 14px;
}

.account-shell {
  max-width: 860px;
}

.account-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.account-photo-card,
.account-details-card {
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.account-photo-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--button-text);
  font-size: 3rem;
  font-weight: 700;
}

.account-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-photo-card p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 14px;
}

.account-file-input {
  display: none;
}

.account-file-label {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-strong);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.account-file-label:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.account-file-help {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.account-file-name {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-deep);
  font-size: 0.92rem;
  text-align: center;
}

/* Floating Turing assistant button and compact chat panel */
.assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--button-text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  z-index: 30;
}

.assistant-launcher:hover {
  transform: translateY(-2px);
}

.assistant-launcher span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.assistant-launcher img,
.assistant-avatar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.assistant-launcher img {
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

.assistant-launcher svg,
.assistant-avatar svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assistant-shell {
  position: fixed;
  right: 24px;
  bottom: 94px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 130px));
  display: none;
  grid-template-rows: auto 1fr auto;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(22, 25, 31, 0.96);
  border: 1px solid var(--surface-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(24px);
  z-index: 31;
}

body:not(.theme-dark) .assistant-shell {
  background: rgba(247, 250, 255, 0.96);
}

.assistant-shell.is-open {
  display: grid;
}

.assistant-head {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--surface-border);
}

.assistant-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(243, 213, 107, 0.98), rgba(228, 193, 82, 0.96));
  color: var(--button-text);
  overflow: hidden;
}

body:not(.theme-dark) .assistant-avatar {
  background: linear-gradient(135deg, rgba(196, 226, 247, 0.98), rgba(227, 240, 252, 0.96));
}

.assistant-title strong {
  display: block;
  color: var(--accent-deep);
}

.assistant-title span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.assistant-close {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-strong);
  cursor: pointer;
}

.assistant-messages {
  padding: 18px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.assistant-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.6;
  font-size: 0.94rem;
}

.assistant-bubble.assistant {
  justify-self: start;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-strong);
}

.assistant-bubble.user {
  justify-self: end;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--button-text);
}

.assistant-bubble a {
  color: var(--accent-bright);
  text-decoration: underline;
}

body:not(.theme-dark) .assistant-bubble a {
  color: var(--accent-deep);
  text-decoration-color: rgba(69, 107, 143, 0.45);
}

.assistant-form {
  padding: 14px 16px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid var(--surface-border);
}

.assistant-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-strong);
}

.assistant-form button {
  padding: 0 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--button-text);
  font-weight: 700;
  cursor: pointer;
}

.account-meta {
  display: grid;
  gap: 16px;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-item {
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.faq-item h3 {
  margin-bottom: 10px;
  color: var(--ink-strong);
}

.faq-item p,
.ticket-copy {
  color: var(--ink-soft);
  line-height: 1.8;
}

.ticket-copy {
  margin-top: 8px;
}

.ticket-link {
  font-size: 1.08rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.25s ease, opacity 0.25s ease, text-shadow 0.25s ease;
}

body:not(.theme-dark) .ticket-link {
  background: linear-gradient(135deg, #4b7eb4, #79aee3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ticket-link:hover {
  filter: brightness(1.08);
  text-shadow: 0 0 14px rgba(243, 221, 139, 0.18);
}

body:not(.theme-dark) .ticket-link:hover {
  text-shadow: 0 0 14px rgba(86, 139, 193, 0.18);
}

/* Footer sticks to the bottom when pages have little content */
.footer {
  margin-top: 0;
  padding: 28px 20px 36px;
  text-align: center;
  color: var(--ink-soft);
}

/* Particle canvas remains behind every page */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Keep normal sections above the particles without breaking fixed layers */
body > *:not(#particles):not(.menu-overlay):not(.side-panel):not(.navbar):not(.assistant-launcher):not(.assistant-shell) {
  position: relative;
  z-index: 1;
}

/* Tablet layout adjustments */
@media (max-width: 960px) {
  .navbar {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 24px;
  }

  .brand-controls,
  .navbar nav,
  .auth {
    justify-self: center;
  }

  .hero {
    min-height: calc(100vh - 190px);
    padding: 36px 20px 64px;
  }

  .page-hero {
    padding: 86px 20px 24px;
  }

  body.about-page .page-hero {
    padding-top: 44px;
  }

  body.challenge-page .page-hero {
    padding-top: 44px;
  }

  body.rewards-page .page-hero {
    padding-top: 44px;
  }

  body.community-page .page-hero {
    padding-top: 44px;
  }

  body.support-page .page-hero {
    padding-top: 44px;
  }

  body.notifications-page .page-hero {
    padding-top: 30px;
  }

  .split-layout,
  .feature-grid,
  .timeline-grid,
  .support-grid,
  .support-media-grid,
  .hero-showcase,
  .hero-offers,
  .about-gallery-grid,
  .rewards-hero-grid,
  .rewards-spotlight-grid,
  .rewards-finale-card,
  .challenge-step-card,
  .challenge-closing-card,
  .home-overview,
  .home-closing {
    grid-template-columns: 1fr;
  }

  .hero-showcase-side,
  .hero-video-stack,
  .hero-offers-compact,
  .rewards-ladder {
    grid-template-columns: 1fr;
  }

  .rewards-media-panel {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .rewards-media-card-large,
  .rewards-media-card-small {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
  }

  .rewards-media-card-small {
    min-height: 300px;
  }

  .community-focus-media {
    min-height: 420px;
  }

  .faq-section .faq-list {
    grid-template-columns: 1fr;
  }

  .project-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-expansion {
    grid-template-columns: 1fr;
  }

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

/* Phone layout adjustments */
@media (max-width: 640px) {
  .navbar ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .auth {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-event-pill {
    width: 100%;
  }

  .hero-event-pill {
    justify-content: center;
  }

  .hero-showcase {
    gap: 14px;
  }

  .hero-video-card-featured {
    min-height: 300px;
  }

  .hero-video-card-secondary {
    min-height: 180px;
  }

  .hero {
    min-height: calc(100vh - 220px);
    padding: 28px 20px 48px;
  }

  .navbar li a {
    font-size: 0.96rem;
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .home-content {
    width: min(100% - 24px, 1240px);
  }

  .project-wall {
    grid-template-columns: 1fr;
  }

  .marquee-card {
    width: min(280px, 78vw);
  }

  .marquee-card .project-shot {
    min-height: 190px;
  }

  .glass-card,
  .feature-grid article,
  .timeline-card,
  .support-grid article,
  .form-card,
  .notification-card,
  .empty-state-card,
  .quote-card,
  .stat-card {
    padding: 22px 20px;
  }

  .theme-switch {
    flex-wrap: wrap;
    justify-content: center;
  }

  .assistant-shell {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
  }

  .assistant-launcher {
    right: 12px;
    bottom: 14px;
  }
}
