/* Landing page — pond glass aesthetic aligned with game chrome */

body.site-page--landing > main {
  width: 100%;
}

.landing {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* —— Hero —— */

.landing-hero {
  position: relative;
  margin: 8px 0 40px;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 4vw, 40px) clamp(28px, 5vw, 44px);
  border-radius: 22px;
  overflow: hidden;
  background: oklch(20% 0.022 260 / 88%);
  box-shadow:
    inset 0 0 0 1px oklch(100% 0 0 / 9%),
    0 28px 56px oklch(6% 0.02 260 / 42%);
}

.landing-hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
}

.landing-hero__orb--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -28%;
  right: -12%;
  background: radial-gradient(circle, oklch(52% 0.12 250 / 70%), transparent 68%);
}

.landing-hero__orb--2 {
  width: min(360px, 60vw);
  height: min(360px, 60vw);
  bottom: -32%;
  left: -10%;
  background: radial-gradient(circle, oklch(58% 0.14 82 / 55%), transparent 70%);
}

.landing-hero__hex {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath fill='none' stroke='white' stroke-width='1' d='M28 1 L54 16 L54 48 L28 63 L2 48 L2 16 Z'/%3E%3C/svg%3E");
  background-size: 56px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.landing-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.landing-hero__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(78% 0.1 82);
}

.landing-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5.5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.landing-hero__title-accent {
  background: linear-gradient(
    120deg,
    oklch(88% 0.08 82),
    oklch(78% 0.14 250)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero__lead {
  margin: 0 auto 28px;
  max-width: 34em;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.6;
  color: var(--muted);
}

.landing-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 32px;
}

.landing-hero__cta .landing-btn--hero {
  min-height: 56px;
  padding: 14px 34px;
  border-width: 2px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.landing-hero__modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 14px;
  background: oklch(100% 0 0 / 4%);
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 8%);
  text-align: center;
}

.landing-mode__icon {
  font-size: 18px;
  line-height: 1;
  color: oklch(72% 0.12 250);
  opacity: 0.9;
}

.landing-mode__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.landing-mode__desc {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

/* —— Buttons —— */

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid var(--glass-line);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.landing-btn:focus-visible {
  outline: 2px solid oklch(68% 0.12 250);
  outline-offset: 2px;
}

.landing-btn--primary {
  border-color: oklch(72% 0.14 82);
  background: oklch(34% 0.09 82);
  color: oklch(96% 0.04 82);
  box-shadow: 0 0 20px oklch(72% 0.16 82 / 30%);
}

.landing-btn--primary:hover {
  border-color: oklch(78% 0.16 82);
  background: oklch(38% 0.11 82);
  color: oklch(99% 0.03 82);
  box-shadow: 0 0 24px oklch(72% 0.18 82 / 42%);
  transform: translateY(-1px);
}

.landing-btn--secondary {
  background: oklch(26% 0.025 260 / 90%);
  color: var(--text);
}

.landing-btn--secondary:hover {
  background: oklch(32% 0.03 260);
  border-color: oklch(58% 0.06 260 / 45%);
  color: oklch(98% 0.02 260);
  transform: translateY(-1px);
}

/* Revival lotus pink — matches in-game revival highlights */
.landing-btn--revival {
  border-color: oklch(82% 0.18 350);
  background: oklch(30% 0.1 350);
  color: oklch(96% 0.05 350);
  box-shadow:
    0 0 22px oklch(72% 0.22 350 / 38%),
    inset 0 0 0 1px oklch(88% 0.14 350 / 25%);
}

.landing-btn--revival:hover {
  border-color: oklch(88% 0.2 350);
  background: oklch(34% 0.12 350);
  color: oklch(99% 0.04 350);
  box-shadow:
    0 0 30px oklch(74% 0.26 350 / 50%),
    inset 0 0 0 1px oklch(90% 0.16 350 / 30%);
  transform: translateY(-1px);
}

.landing-btn--block {
  width: 100%;
}

/* Silvery blue — How to Play CTA */
.landing-btn--guide {
  border-color: oklch(80% 0.1 250);
  background: oklch(28% 0.055 250);
  color: oklch(96% 0.04 250);
  box-shadow:
    0 0 28px oklch(72% 0.14 250 / 48%),
    0 0 52px oklch(68% 0.09 250 / 24%),
    inset 0 0 0 1px oklch(90% 0.08 250 / 32%);
}

.landing-btn--guide:hover {
  border-color: oklch(86% 0.12 250);
  background: oklch(32% 0.07 250);
  color: oklch(99% 0.03 250);
  box-shadow:
    0 0 36px oklch(76% 0.16 250 / 58%),
    0 0 64px oklch(70% 0.11 250 / 30%),
    inset 0 0 0 1px oklch(92% 0.1 250 / 38%);
  transform: translateY(-1px);
}

.landing-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: oklch(78% 0.1 250);
  text-decoration: none;
  transition: color 0.15s ease;
}

.landing-link:hover {
  color: oklch(88% 0.12 250);
}

/* —— Section blocks —— */

.landing-block {
  margin-bottom: 36px;
}

.landing-block__head {
  margin-bottom: 18px;
  text-align: center;
}

.landing-block__title {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.landing-block__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* —— Virtue cards —— */

.virtue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.virtue-card {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 7%);
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.virtue-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--virtue-accent, var(--muted));
  opacity: 0.9;
}

.virtue-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px oklch(100% 0 0 / 10%),
    0 12px 28px oklch(6% 0.02 260 / 35%);
}

.virtue-card[data-virtue="wisdom"] {
  --virtue-accent: oklch(62% 0.14 250);
}

.virtue-card[data-virtue="vigor"] {
  --virtue-accent: oklch(72% 0.18 38);
}

.virtue-card[data-virtue="presence"] {
  --virtue-accent: oklch(78% 0.04 260);
}

.virtue-card[data-virtue="courage"] {
  --virtue-accent: oklch(76% 0.13 82);
}

.virtue-card[data-virtue="prosperity"] {
  --virtue-accent: oklch(72% 0.14 145);
}

.virtue-card__name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--virtue-accent, var(--text));
  letter-spacing: 0.02em;
}

.virtue-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* —— Pond preview + How to Play —— */

.landing-preview {
  margin-bottom: 36px;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 20px;
  background: oklch(19% 0.024 260 / 92%);
  box-shadow:
    inset 0 0 0 1px oklch(100% 0 0 / 8%),
    0 20px 48px oklch(6% 0.02 260 / 38%);
}

.landing-preview__layout {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 720px) {
  .landing-preview__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
  }
}

.landing-preview__board {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-preview-demo {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 1.05;
}

.landing-preview-demo__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.landing-preview-demo .tile text {
  display: none;
}

.landing-preview-demo__path {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.landing-preview-demo__path.is-visible {
  opacity: 1;
}

.landing-preview-demo .tile.is-preview-target polygon {
  fill: oklch(72% 0.12 250 / 0.35);
  stroke: oklch(78% 0.14 250);
  filter: drop-shadow(0 0 10px oklch(72% 0.14 250 / 45%));
}

.landing-preview-demo .game-piece.is-preview-moving {
  filter: drop-shadow(0 0 12px oklch(76% 0.13 82 / 55%));
}

.landing-preview__content {
  text-align: center;
}

@media (min-width: 720px) {
  .landing-preview__content {
    text-align: left;
  }
}

.landing-preview__title {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.landing-preview__lead {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.landing-preview__content .landing-btn--hero {
  width: 100%;
  max-width: 280px;
}

@media (min-width: 720px) {
  .landing-preview__content .landing-btn--hero {
    width: auto;
    min-width: 220px;
  }
}

/* —— Bottom columns —— */

.landing-columns {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .landing-columns {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}

.landing-card {
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 7%);
}

.landing-card--cta {
  background: linear-gradient(
    165deg,
    oklch(24% 0.03 260) 0%,
    oklch(20% 0.04 82 / 40%) 100%
  );
  box-shadow:
    inset 0 0 0 1px oklch(72% 0.14 82 / 22%),
    0 16px 40px oklch(6% 0.02 260 / 30%);
}

.landing-card__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-card__body {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.landing-card__body strong {
  font-weight: 600;
  color: oklch(94% 0.03 82);
}

.landing-card__meta {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

.landing-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

/* —— Responsive —— */

@media (max-width: 640px) {
  .landing {
    padding: 0 14px 36px;
  }

  .landing-hero {
    margin-bottom: 28px;
    border-radius: 18px;
  }

  .landing-hero__modes {
    grid-template-columns: 1fr;
  }

  .landing-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-hero__cta .landing-btn--hero {
    width: 100%;
    min-height: 52px;
    padding: 13px 24px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .landing-btn:hover,
  .virtue-card:hover {
    transform: none;
  }

  .landing-preview-demo .game-piece {
    transition: none !important;
  }
}
