:root {
  --bg: #09140d;
  --bg-deep: #041008;
  --panel: rgba(10, 24, 15, 0.86);
  --panel-border: rgba(195, 225, 170, 0.18);
  --text: #edf6e8;
  --muted: #b5c7b0;
  --gold: #d7be67;
  --gold-soft: #f1d98b;
  --moss: #87aa72;
  --moss-dark: #38563c;
  --leaf: #4f7d45;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(94, 128, 74, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(7, 23, 14, 0.88), rgba(4, 16, 8, 0.98)),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5)),
    url("./assets/swordwood-logo-watermark.png") center 10% / min(70vw, 920px) no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

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

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}

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

.brand-name {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.95rem;
}

.beta-pill {
  padding: 10px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(18, 35, 22, 0.7);
  font-size: 0.92rem;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  font-size: 0.8rem;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
}

.lede {
  margin: 0 0 14px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.primary-button {
  color: #1d1d15;
  background: linear-gradient(180deg, #edd98d, #cfb258);
  box-shadow: 0 16px 34px rgba(207, 178, 88, 0.22);
}

.secondary-button {
  color: var(--text);
  border: 1px solid rgba(236, 246, 232, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.access-note {
  margin: 14px 0 0;
  color: #8ba38d;
  font-size: 0.95rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.animation-frame {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  border: 1px solid rgba(154, 192, 136, 0.14);
  background:
    radial-gradient(circle at top, rgba(168, 202, 120, 0.15), transparent 30%),
    linear-gradient(180deg, rgba(18, 40, 25, 0.95), rgba(7, 18, 10, 0.98));
  overflow: hidden;
}

.forest {
  position: absolute;
  inset: auto 0 0;
  height: 56%;
  background-repeat: repeat-x;
}

.forest-back {
  background-image:
    linear-gradient(90deg, transparent 0 7%, rgba(46, 76, 49, 0.92) 7% 10%, transparent 10% 18%, rgba(46, 76, 49, 0.92) 18% 21%, transparent 21% 29%, rgba(46, 76, 49, 0.92) 29% 32%, transparent 32% 40%, rgba(46, 76, 49, 0.92) 40% 43%, transparent 43% 51%, rgba(46, 76, 49, 0.92) 51% 54%, transparent 54% 62%, rgba(46, 76, 49, 0.92) 62% 65%, transparent 65% 73%, rgba(46, 76, 49, 0.92) 73% 76%, transparent 76% 84%, rgba(46, 76, 49, 0.92) 84% 87%, transparent 87% 100%);
  opacity: 0.45;
}

.forest-front {
  height: 40%;
  background-image:
    linear-gradient(90deg, transparent 0 5%, rgba(75, 120, 67, 0.98) 5% 12%, transparent 12% 18%, rgba(75, 120, 67, 0.98) 18% 25%, transparent 25% 31%, rgba(75, 120, 67, 0.98) 31% 38%, transparent 38% 44%, rgba(75, 120, 67, 0.98) 44% 51%, transparent 51% 57%, rgba(75, 120, 67, 0.98) 57% 64%, transparent 64% 70%, rgba(75, 120, 67, 0.98) 70% 77%, transparent 77% 83%, rgba(75, 120, 67, 0.98) 83% 90%, transparent 90% 100%);
  opacity: 0.68;
}

.bush {
  position: absolute;
  bottom: 56px;
  width: 88px;
  height: 88px;
  border-radius: 30px;
  background: linear-gradient(180deg, #5f8f51, #305233);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
  animation: sway 1.8s ease-in-out infinite alternate;
}

.bush::before,
.bush::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 26px;
}

.bush::before {
  width: 60px;
  height: 60px;
  left: -18px;
  top: 18px;
}

.bush::after {
  width: 64px;
  height: 64px;
  right: -12px;
  top: 12px;
}

.bush-a { left: 60%; animation-delay: 0.1s; }
.bush-b { left: 76%; bottom: 44px; animation-delay: 0.5s; }
.bush-c { left: 48%; bottom: 42px; animation-delay: 0.9s; }

.warrior {
  position: absolute;
  left: 18%;
  bottom: 78px;
  width: 112px;
  height: 146px;
  transform-origin: bottom center;
  animation: warrior-bob 1s steps(2) infinite;
}

.warrior-head,
.warrior-body,
.warrior-arm,
.warrior-sword,
.warrior-leg {
  position: absolute;
  image-rendering: pixelated;
}

.warrior-head {
  left: 38px;
  top: 6px;
  width: 28px;
  height: 28px;
  background: #e3c29a;
  box-shadow:
    0 0 0 6px #2b2117,
    0 0 0 10px #c6a75e;
}

.warrior-body {
  left: 34px;
  top: 46px;
  width: 36px;
  height: 46px;
  background: #c9a43b;
  box-shadow:
    -8px 0 0 0 #6c3b1d,
    8px 0 0 0 #6c3b1d,
    0 10px 0 0 #374d83;
}

.warrior-arm {
  left: 70px;
  top: 54px;
  width: 14px;
  height: 42px;
  background: #e3c29a;
  transform-origin: top center;
  animation: swing-arm 1s ease-in-out infinite;
}

.warrior-sword {
  left: 74px;
  top: 34px;
  width: 12px;
  height: 70px;
  background: linear-gradient(180deg, #f1f2f3, #98a1aa);
  box-shadow: 0 0 0 4px #715324;
  transform-origin: bottom center;
  animation: swing-sword 1s ease-in-out infinite;
}

.warrior-leg {
  top: 100px;
  width: 14px;
  height: 42px;
  background: #2d3b58;
}

.warrior-leg-left {
  left: 38px;
  animation: step-left 1s ease-in-out infinite;
}

.warrior-leg-right {
  left: 58px;
  animation: step-right 1s ease-in-out infinite;
}

.slash {
  position: absolute;
  left: 57%;
  top: 132px;
  width: 120px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(243, 223, 147, 0.95), rgba(255, 255, 255, 0));
  opacity: 0;
  transform: rotate(-24deg);
  animation: slash 1s linear infinite;
}

.slash-two {
  animation-delay: 0.5s;
  top: 150px;
}

.visual-caption {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.info-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 22, 13, 0.82);
  box-shadow: var(--shadow);
}

.info-card h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  margin-top: 22px;
  color: #7f9580;
  font-size: 0.9rem;
  text-align: center;
}

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

@keyframes swing-arm {
  0%, 100% { transform: rotate(18deg); }
  50% { transform: rotate(-46deg); }
}

@keyframes swing-sword {
  0%, 100% { transform: rotate(18deg); }
  50% { transform: rotate(-54deg) translateX(6px); }
}

@keyframes step-left {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(-14deg); }
}

@keyframes step-right {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(12deg); }
}

@keyframes slash {
  0%, 35% { opacity: 0; transform: rotate(-24deg) translateX(0); }
  45%, 62% { opacity: 1; transform: rotate(-24deg) translateX(14px); }
  100% { opacity: 0; transform: rotate(-24deg) translateX(28px); }
}

@keyframes sway {
  from { transform: rotate(-2deg) translateY(0); }
  to { transform: rotate(2deg) translateY(-2px); }
}

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

  .hero-visual {
    order: -1;
  }
}

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

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card {
    padding: 20px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .animation-frame {
    min-height: 300px;
  }
}
