:root {
  --bg: #160b12;
  --bg-2: #24131b;
  --ink: #fff7ed;
  --muted: #cdbfb3;
  --line: rgba(255, 247, 237, 0.16);
  --gold: #d2a542;
  --gold-soft: #f1d99a;
  --rose: #c77d87;
  --emerald: #4d8a77;
  --panel: rgba(255, 247, 237, 0.08);
  --panel-strong: rgba(255, 247, 237, 0.13);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --x: 50%;
  --y: 50%;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(199, 125, 135, 0.14), transparent 28%),
    linear-gradient(230deg, rgba(77, 138, 119, 0.16), transparent 34%),
    linear-gradient(180deg, var(--bg), #0f080d);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 247, 237, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 237, 0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at var(--x) var(--y), rgba(241, 217, 154, 0.17), transparent 28%);
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 0;
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-mark {
  gap: 10px;
  padding: 6px 0;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 10px 24px rgba(210, 165, 66, 0.22));
}

.brand-mark span {
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 700;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(22px, 5vw, 80px);
  align-items: start;
  min-height: calc(100svh - 92px);
  padding: clamp(34px, 7vw, 86px) 0 clamp(42px, 7vw, 92px);
  overflow: hidden;
}

.mandala-field {
  position: absolute;
  inset: 2% auto auto 38%;
  width: min(760px, 56vw);
  aspect-ratio: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.44;
  contain: paint;
  transform: translate3d(calc((var(--x) - 50%) / 42), calc((var(--y) - 50%) / 42), 0);
}

.mandala {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(85%) sepia(28%) saturate(890%) hue-rotate(357deg) brightness(95%) contrast(92%);
}

.mandala-back {
  animation: slow-rotate 42s linear infinite;
  opacity: 0.32;
}

.mandala-front {
  inset: 16%;
  width: 68%;
  height: 68%;
  animation: slow-rotate-reverse 58s linear infinite;
  opacity: 0.38;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: clamp(34px, 12vh, 116px);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 12vw, 156px);
  font-weight: 400;
  line-height: 0.88;
}

.hero-subtitle {
  margin: 24px 0 0;
  color: var(--gold-soft);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
}

.hero-text {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.trainer-action-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  filter: drop-shadow(0 16px 34px rgba(210, 165, 66, 0.32));
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid rgba(210, 165, 66, 0.55);
  color: #140b10;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  font-weight: 850;
  box-shadow: 0 18px 50px rgba(210, 165, 66, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 64px rgba(210, 165, 66, 0.24);
}

.link-panel {
  position: relative;
  z-index: 3;
  margin-top: clamp(28px, 9vh, 86px);
  border: 1px solid rgba(255, 247, 237, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.14), rgba(255, 247, 237, 0.06)),
    rgba(22, 11, 18, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(26px);
}

.link-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(255, 247, 237, 0.18), transparent);
  transform: translateX(-120%);
  animation: panel-sheen 7s ease-in-out infinite;
}

.panel-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.link-card-social,
.link-card-messenger {
  min-height: 72px;
  border-color: rgba(255, 247, 237, 0.12);
  background: rgba(255, 247, 237, 0.055);
}

.link-card-social .link-copy p,
.link-card-messenger .link-copy p {
  display: none;
}

.link-card-social .link-badge,
.link-card-messenger .link-badge {
  min-width: 0;
  min-height: 36px;
  color: rgba(255, 247, 237, 0.86);
  background: rgba(255, 247, 237, 0.1);
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 217, 154, 0.52);
  background: var(--panel-strong);
}

.link-copy {
  min-width: 0;
}

.link-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.link-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.link-badge {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #170d11;
  background: var(--gold-soft);
  font-size: 13px;
  font-weight: 900;
}

.link-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.message-group {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.message-title {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 15px;
  font-weight: 800;
}

.message-links {
  display: grid;
  gap: 10px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  padding: 24px 0 8px;
  color: rgba(255, 247, 237, 0.42);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes slow-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slow-rotate-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes panel-sheen {
  0%,
  42% {
    transform: translateX(-120%);
  }
  62%,
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 44px;
  }

  .mandala-field {
    inset: 2% auto auto 50%;
    width: min(82vw, 520px);
    opacity: 0.28;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px;
  }

  .topbar {
    position: relative;
    backdrop-filter: none;
  }

  body::before {
    background-image: none;
  }

  .brand-mark span {
    display: none;
  }

  .hero-subtitle,
  .primary-action {
    width: 100%;
  }

  .trainer-action-logo {
    margin: 0 auto 2px;
  }

  .mandala-field {
    width: min(calc(100vw - 44px), 390px);
    opacity: 0.22;
  }

  .hero-actions {
    gap: 10px;
  }

  .link-card {
    grid-template-columns: 1fr;
  }

  .link-badge {
    width: 100%;
  }

  .panel-head {
    align-items: flex-start;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
