:root {
  --bg: #f5ede3;
  --bg-strong: #efe0cf;
  --paper: rgba(255, 249, 241, 0.78);
  --paper-solid: #fff8f1;
  --ink: #2c221d;
  --muted: #6a5a4f;
  --line: rgba(104, 69, 44, 0.14);
  --accent: #a24d31;
  --accent-deep: #6d2f1f;
  --accent-soft: #d9b57a;
  --sage: #66715d;
  --shadow: 0 24px 80px rgba(61, 33, 16, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at left top, rgba(217, 181, 122, 0.22), transparent 28%),
    radial-gradient(circle at 90% 14%, rgba(162, 77, 49, 0.13), transparent 20%),
    linear-gradient(180deg, #f8f2e9 0%, #f0e3d4 100%);
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(22px);
  z-index: -2;
}

body::before {
  width: 320px;
  height: 320px;
  top: 8%;
  right: -100px;
  background: rgba(217, 181, 122, 0.18);
}

body::after {
  width: 240px;
  height: 240px;
  bottom: 10%;
  left: -70px;
  background: rgba(162, 77, 49, 0.14);
}

a {
  color: inherit;
}

.page-shell {
  position: fixed;
  inset: 16px;
  border: 1px solid rgba(109, 47, 31, 0.08);
  pointer-events: none;
  z-index: -1;
}

.site-header,
.hero,
.page-hero,
.section,
.cta-card {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent-deep), var(--accent));
  color: #fff9f2;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy small {
  color: var(--muted);
}

.main-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.main-nav a.is-active,
.main-nav a:hover {
  color: var(--ink);
  border-bottom-color: rgba(109, 47, 31, 0.24);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff9f2;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
}

.button-outline,
.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(109, 47, 31, 0.18);
}

.button-outline:hover,
.button-ghost:hover {
  background: rgba(255, 249, 241, 0.7);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding: 58px 0 18px;
}

.hero-home {
  min-height: calc(100vh - 110px);
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: end;
  padding: 56px 0 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 600;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.4rem);
}

h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

h3 {
  margin: 0;
  font-size: 1.15rem;
}

p,
li,
small,
span {
  line-height: 1.6;
}

.hero-text,
.section-copy,
.hero-side-note p,
.profile-summary {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-actions,
.member-actions,
.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.metric-strip,
.feature-grid,
.preview-grid,
.pricing-board,
.market-grid,
.octa-grid,
.directory-grid,
.ranking-strip,
.dashboard-grid,
.dual-grid {
  display: grid;
  gap: 18px;
}

.metric-strip {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
}

.glass-card,
.feature-card,
.preview-card,
.plan-card,
.market-card,
.octa-card,
.toolbar-card,
.ranking-card,
.member-card,
.feed-card,
.leader-card,
.dashboard-highlight,
.stat-tile,
.cta-card,
.profile-main,
.profile-side {
  background: var(--paper);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.metric-strip article,
.feature-card,
.preview-card,
.plan-card,
.market-card,
.octa-card,
.ranking-card,
.member-card,
.feed-card,
.leader-card,
.dashboard-highlight,
.stat-tile,
.cta-card,
.profile-main,
.profile-side,
.toolbar-card {
  padding: 24px;
}

.metric-strip article strong {
  display: block;
  font-size: 1.4rem;
}

.cover-image,
.card-image {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

.cover-image {
  height: 220px;
}

.profile-cover {
  height: 280px;
  margin-bottom: 22px;
}

.card-image {
  height: 180px;
}

.card-image-small {
  height: 120px;
}

.hero-stage {
  position: relative;
  min-height: 600px;
}

.stage-card {
  position: absolute;
  padding: 26px;
}

.primary-stage {
  inset: 0 70px 130px 0;
}

.side-stage {
  right: 0;
  top: 48px;
  width: 58%;
}

.side-stage.lower {
  top: auto;
  bottom: 26px;
}

.stage-head,
.market-head,
.price-line,
.section-intro,
.profile-top,
.member-head,
.social-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.mini-title,
.tag,
.feed-label,
.chip,
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-title,
.tag,
.feed-label,
.chip {
  background: rgba(162, 77, 49, 0.08);
  color: var(--accent-deep);
}

.badge {
  background: rgba(102, 113, 93, 0.1);
  color: var(--sage);
}

.badge-gold {
  background: rgba(217, 181, 122, 0.22);
  color: #7c5720;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.meter-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(109, 47, 31, 0.1);
  overflow: hidden;
  margin: 14px 0 18px;
}

.meter-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: inherit;
}

.price-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.crossed,
.price-original {
  text-decoration: line-through;
  color: var(--muted);
}

.section {
  padding: 72px 0 0;
}

.section-intro {
  align-items: end;
  margin-bottom: 24px;
}

.section-copy {
  max-width: 360px;
}

.feature-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

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

.card-index {
  font-family: "Cormorant Garamond", serif;
  color: var(--accent);
  font-size: 2rem;
}

.pricing-board,
.market-grid,
.ranking-strip,
.dashboard-grid {
  grid-template-columns: repeat(3, 1fr);
}

.plan-card.featured,
.member-card.premium,
.market-card.spotlight,
.ranking-card.champion {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.9), rgba(240, 223, 198, 0.85));
}

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

.preview-card {
  text-decoration: none;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.preview-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
}

.octa-grid {
  grid-template-columns: repeat(4, 1fr);
}

.hero-side-note {
  padding: 22px;
  background: rgba(255, 249, 241, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.toolbar-card {
  display: grid;
  gap: 14px;
}

.map-inline-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  margin-bottom: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip.active {
  background: var(--accent);
  color: #fff9f2;
}

.chip.subtle {
  background: rgba(102, 113, 93, 0.08);
  color: var(--sage);
}

.ranking-card {
  position: relative;
}

.ranking-place {
  position: absolute;
  right: 18px;
  top: 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  color: rgba(109, 47, 31, 0.18);
}

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

.member-head {
  align-items: center;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff9f2;
  background: linear-gradient(145deg, #7e4731, #b06f54);
}

.avatar.alt {
  background: linear-gradient(145deg, #8e5d3e, #d19357);
}

.avatar.cool {
  background: linear-gradient(145deg, #4e5a58, #7f8a74);
}

.avatar.warm {
  background: linear-gradient(145deg, #975347, #d1a16b);
}

.avatar.soft {
  background: linear-gradient(145deg, #6c5044, #b48571);
}

.avatar.gold {
  background: linear-gradient(145deg, #94703d, #d4ab66);
}

.avatar.large {
  width: 88px;
  height: 88px;
  font-size: 1.4rem;
  border-radius: 26px;
}

.member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.profile-role {
  color: var(--muted);
  margin: 10px 0 0;
}

.metric-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.metric-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.metric-list strong,
.stat-tile strong {
  font-size: 1.5rem;
}

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

.stack-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.stack-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.stack-item span,
.feed-card p,
.leader-card p,
.feature-card p,
.preview-card p,
.plan-card li,
.market-card p,
.octa-card p,
.ranking-card p,
.member-card p {
  color: var(--muted);
}

.market-grid.wide {
  grid-template-columns: repeat(3, 1fr);
}

.wallet-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
}

.wallet-card strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.community-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.community-feed,
.community-side {
  display: grid;
  gap: 16px;
}

.social-app-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.35fr 0.75fr;
  gap: 18px;
  align-items: start;
}

.social-rail,
.social-feed-column,
.social-feed-list {
  display: grid;
  gap: 16px;
}

.composer-card,
.feed-tabs,
.thread-post,
.feed-loader {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.composer-card,
.thread-post,
.feed-loader {
  padding: 20px;
}

.composer-box {
  min-height: 96px;
  margin: 16px 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(109, 47, 31, 0.2);
  color: var(--muted);
  background: rgba(255, 249, 241, 0.66);
}

.composer-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.feed-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
}

.feed-tab {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
}

.feed-tab.is-active {
  background: rgba(162, 77, 49, 0.08);
  color: var(--accent-deep);
}

.thread-post {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
}

.thread-avatar {
  display: flex;
  justify-content: center;
}

.thread-body {
  display: grid;
  gap: 10px;
}

.thread-head {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.thread-head span,
.thread-head small,
.thread-copy,
.thread-actions {
  color: var(--muted);
}

.thread-copy {
  margin: 0;
  font-size: 1rem;
}

.thread-media {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(109, 47, 31, 0.12);
}

.thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
}

.trend-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.trend-list a {
  text-decoration: none;
  color: var(--accent-deep);
  font-weight: 700;
}

.feed-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.loader-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulseDot 1s ease-in-out infinite;
}

.social-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-grid {
  grid-template-columns: 2fr repeat(4, 1fr);
}

.dashboard-grid.admin {
  grid-template-columns: 2fr repeat(4, 1fr);
}

.dashboard-highlight {
  min-height: 220px;
}

.streak-card {
  position: relative;
  overflow: hidden;
}

.streak-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(217, 181, 122, 0.28), transparent 65%);
  pointer-events: none;
}

.streak-visual {
  display: inline-grid;
  gap: 4px;
  place-items: center;
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 248, 240, 0.78);
  border: 1px solid rgba(217, 181, 122, 0.28);
}

.streak-number {
  font-size: 2.6rem;
  line-height: 1;
}

.streak-fire {
  width: 22px;
  height: 32px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, #ffd78a 0%, #ff9447 50%, #c84f1d 100%);
  box-shadow: 0 0 24px rgba(255, 148, 71, 0.45);
  animation: flicker 1.1s ease-in-out infinite;
  transform-origin: center bottom;
}

.streak-card.is-live .streak-number,
.streak-card.is-live .badge-gold {
  animation: pulseGlow 1.6s ease-in-out infinite;
}

.event-card .button {
  margin-top: auto;
}

.location-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 18px;
}

.map-card {
  min-height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.location-list {
  min-height: 540px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #fff8f1;
  color: var(--ink);
}

.map-popup strong {
  display: block;
  margin-bottom: 4px;
}

@keyframes flicker {
  0%, 100% {
    transform: scale(1) rotate(-2deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.08) rotate(2deg);
    opacity: 0.9;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(217, 181, 122, 0));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 16px rgba(217, 181, 122, 0.38));
  }
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.stat-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 72px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero,
  .page-hero,
  .section-intro,
  .community-layout,
  .social-app-layout,
  .profile-hero,
  .location-grid,
  .map-inline-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-stage {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .stage-card,
  .primary-stage,
  .side-stage,
  .side-stage.lower {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .feature-grid.four,
  .preview-grid,
  .directory-grid,
  .octa-grid,
  .dashboard-grid,
  .dashboard-grid.admin {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-board,
  .market-grid,
  .ranking-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav,
  .metric-strip,
  .feature-grid.four,
  .feature-grid.three,
  .preview-grid,
  .pricing-board,
  .market-grid,
  .ranking-strip,
  .directory-grid,
  .octa-grid,
  .dashboard-grid,
  .dashboard-grid.admin,
  .dual-grid,
  .community-layout,
  .social-app-layout,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .thread-post {
    grid-template-columns: 1fr;
  }

  .cover-image {
    height: 180px;
  }

  .profile-cover {
    height: 220px;
  }

  .card-image {
    height: 160px;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .page-shell {
    inset: 10px;
  }
}
