/* ===== WordForge page — W2 "Erdei immerzió" ===== */
body.wf {
  background: var(--wf-bg); color: var(--wf-ink);
  font-family: "Nunito", sans-serif;
  --pill-border: #E0DED6; --pill-fg: #5F6D5C;
  --pill-active-bg: #1F4B2A; --pill-active-fg: #fff;
  --ft-border: var(--wf-border); --ft-fg: var(--wf-ink-sec);
  overflow-x: hidden;
}

/* ---- Forest world: hero + minigame share one immersive background ---- */
.wf-forest {
  position: relative; color: #fff;
  background: linear-gradient(178deg, rgba(15, 34, 19, 0.92) 0%, rgba(22, 58, 31, 0.92) 36%, rgba(31, 75, 42, 0.92) 66%, rgba(35, 88, 49, 0.92) 100%);
  overflow: hidden;
  /* dark language pill within the forest header */
  --pill-border: rgba(255, 255, 255, 0.28);
  --pill-fg: rgba(255, 255, 255, 0.8);
  --pill-active-bg: rgba(255, 255, 255, 0.92);
  --pill-active-fg: #1F4B2A;
}
.wf-forest .rays {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: conic-gradient(from 200deg at 75% -8%, transparent 0deg, rgba(226, 170, 46, 0.10) 8deg, transparent 16deg, rgba(226, 170, 46, 0.07) 24deg, transparent 32deg, rgba(255, 255, 255, 0.05) 40deg, transparent 48deg);
}
.wf-forest .forest-glow {
  position: absolute; width: 820px; height: 820px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(226, 170, 46, 0.18), transparent 60%);
  top: -360px; right: -200px;
}
.wf-forest > .container { position: relative; z-index: 2; }

/* Header on forest */
.wf-forest .brand { color: #fff; font-weight: 900; }
.wf .brand-mark { background: linear-gradient(135deg, #55B63B, #247A34); border-radius: 10px; }
.wf-forest .site-nav { color: rgba(255, 255, 255, 0.85); }
.wf-forest .back-link { font-size: 13.5px; font-weight: 800; text-decoration: none; color: rgba(255, 255, 255, 0.72); }
.wf-forest .back-link:hover { color: #fff; }

/* Hero — centered immersion */
.wf-hero { position: relative; text-align: center; padding: 60px 0 0; }
.wf-hero .kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #F2C14E; }
.wf-hero h1 { font-size: clamp(44px, 6vw, 78px); font-weight: 900; line-height: 1.04; letter-spacing: -1px; margin: 20px auto 0; max-width: 840px; }
.wf-hero h1 .gold { color: #F2C14E; }
.wf-hero .lede { font-size: 19px; font-weight: 600; color: rgba(255, 255, 255, 0.82); max-width: 540px; line-height: 1.6; margin: 24px auto 0; }
.wf-hero .store-row { justify-content: center; margin-top: 32px; }
.wf-hero .fineprint { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.6); margin-top: 18px; }
.wf-hero-phone { display: grid; place-items: center; margin-top: 54px; position: relative; }
.wf-hero-phone .phone { position: relative; z-index: 2; }

/* Store buttons: gold + light on forest, dark-green default elsewhere */
.wf .store-btn { background: #1F4B2A; color: #fff; }
.wf-hero .store-btn.gold { background: linear-gradient(180deg, #F2C14E, #E2AA2E); color: #4A3500; }
.wf-hero .store-btn.light { background: #fff; color: #1F4B2A; }

/* Platform join cards (beta page) */
.beta-platforms {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  max-width: 580px; margin: 36px auto 0;
}
.platform-card {
  flex: 1; min-width: 210px; max-width: 250px;
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05) 55%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px; padding: 30px 24px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: #fff;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), border-color 0.25s, box-shadow 0.25s;
  cursor: pointer; backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(8, 22, 12, 0.25);
}
.platform-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(255,255,255,0.5), transparent 92%);
}
.platform-card::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  top: -120px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(242, 193, 78, 0.13), transparent 65%);
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.platform-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 193, 78, 0.55);
  box-shadow: 0 22px 44px rgba(8, 22, 12, 0.4);
}
.platform-card:hover::after { opacity: 1; }
.platform-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 10px; position: relative; z-index: 1;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.platform-card:hover .platform-icon { transform: translateY(-3px) rotate(-3deg); }
.platform-card.ios .platform-icon {
  background: linear-gradient(180deg, #FDFCF7, #EFEDE2); color: #3E5A38;
  box-shadow: 0 4px 0 #CDC9B8, 0 10px 18px rgba(8, 22, 12, 0.3);
}
.platform-card.android .platform-icon {
  background: linear-gradient(180deg, #55B63B, #3D8A28); color: #fff;
  box-shadow: 0 4px 0 #1F4B2A, 0 10px 18px rgba(8, 22, 12, 0.3);
}
.platform-name {
  font-size: 23px; font-weight: 900; letter-spacing: -0.3px; position: relative; z-index: 1;
}
.platform-label {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.62); position: relative; z-index: 1;
}
.platform-cta {
  margin-top: 16px; position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px; border-radius: 999px;
  background: linear-gradient(180deg, #F2C14E, #E2AA2E); color: #4A3500;
  font-size: 14px; font-weight: 900; letter-spacing: 0.01em;
  box-shadow: 0 3px 0 #B8860B;
  transition: transform 0.15s, box-shadow 0.15s;
}
.platform-card:hover .platform-cta {
  transform: translateY(-2px); box-shadow: 0 5px 0 #B8860B;
}
.beta-note {
  text-align: center; font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.5); max-width: 440px;
  margin: 18px auto 0;
}

/* Coming-soon (not yet published) store buttons */
.store-btn.soon { cursor: default; box-shadow: none; }
.store-btn.soon:hover { transform: none; box-shadow: none; }
.store-btn.soon .sub { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.wf-hero .store-btn.soon { background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); }
.wf-cta .store-btn.soon { background: #ECEAE1; color: #9A9684; border: 1px solid #E1DDCF; }

/* Floating decorative letter tiles */
.wf-tile { display: grid; place-items: center; border-radius: 14px; font-family: "Nunito", sans-serif; font-weight: 900; }
.wf-tile.stone { background: linear-gradient(180deg, #FDFCF7, #EFEDE2); color: #3E5A38; box-shadow: 0 5px 0 #CDC9B8, 0 14px 24px rgba(8, 22, 12, 0.34); }
.wf-tile.gold { background: linear-gradient(180deg, #F2C14E, #E2AA2E); color: #4A3500; box-shadow: 0 5px 0 #B8860B, 0 14px 24px rgba(8, 22, 12, 0.34); }
.wf-tile.green { background: linear-gradient(180deg, #55B63B, #3D8A28); color: #fff; box-shadow: 0 5px 0 #1F4B2A, 0 14px 24px rgba(8, 22, 12, 0.34); }
.wf-float { position: absolute; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .wf-float { animation: wf-bob 6s ease-in-out infinite; }
  .wf-float:nth-of-type(2) { animation-duration: 7.5s; animation-delay: -1.2s; }
  .wf-float:nth-of-type(3) { animation-duration: 8s; animation-delay: -2.4s; }
  .wf-float:nth-of-type(4) { animation-duration: 6.8s; animation-delay: -0.6s; }
}
@keyframes wf-bob { 0%, 100% { transform: translateY(0) var(--rot, rotate(0deg)); } 50% { transform: translateY(-14px) var(--rot, rotate(0deg)); } }

/* ===== Mini game (flows on the forest) ===== */
.wg-band { padding: 30px 0 78px; position: relative; overflow: hidden; }
.wf-forest .wg-band { background: transparent; }
.wg-band::before {
  content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 170, 46, 0.12), transparent 60%);
  bottom: -260px; left: -160px; pointer-events: none;
}
.wg-band h2 { font-size: 36px; font-weight: 900; margin: 0; text-align: center; position: relative; }
.wg-band .wg-sub { text-align: center; font-size: 16.5px; font-weight: 600; opacity: 0.85; margin: 12px auto 0; max-width: 480px; position: relative; }
.wg-board {
  max-width: 620px; margin: 40px auto 0; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 24px; padding: 32px 34px 30px;
  position: relative; backdrop-filter: blur(6px);
}
.wg-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 800; opacity: 0.9; }
.wg-meta .wg-score-val { font-size: 26px; color: var(--wf-gold-light); }

.wg-answer { display: flex; gap: 10px; justify-content: center; margin: 22px 0 26px; min-height: 58px; }
.wg-slot {
  width: 54px; height: 58px; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}
.wg-slot.filled {
  border: 0; cursor: pointer; font: 900 26px "Nunito", sans-serif; color: #4A3500;
  background: linear-gradient(180deg, #F2C14E, #E2AA2E);
  box-shadow: 0 4px 0 #B8860B, 0 9px 16px rgba(10, 25, 14, 0.3);
  padding: 0; transition: transform 0.15s;
}
.wg-slot.filled:hover { transform: translateY(-3px); }
@keyframes wg-shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes wg-win { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.wg-answer.shake { animation: wg-shake 0.45s ease; }
.wg-answer.win { animation: wg-win 0.45s ease; }

.wg-rack { display: flex; gap: 12px; justify-content: center; }
.wg-tile {
  width: 60px; height: 64px; border-radius: 13px; border: 0; cursor: pointer;
  font: 900 28px "Nunito", sans-serif; color: #3E5A38;
  background: linear-gradient(180deg, #FDFCF7, #EFEDE2);
  box-shadow: 0 5px 0 #CDC9B8, 0 12px 20px rgba(10, 25, 14, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.wg-tile:hover:not(:disabled) { transform: translateY(-4px); box-shadow: 0 9px 0 #CDC9B8, 0 16px 24px rgba(10, 25, 14, 0.3); }
.wg-tile.used { opacity: 0.25; box-shadow: none; transform: translateY(3px); cursor: default; }

.wg-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.wg-btn {
  border: 0; border-radius: 999px; padding: 13px 30px; cursor: pointer;
  font: 900 15px "Nunito", sans-serif; transition: transform 0.15s, opacity 0.15s;
}
.wg-btn:hover:not(:disabled) { transform: translateY(-2px); }
.wg-btn-primary { background: linear-gradient(180deg, #F2C14E, #E2AA2E); color: #4A3500; box-shadow: 0 4px 0 #B8860B; }
.wg-btn-primary:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.wg-btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }

.wg-found { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 24px; min-height: 30px; }
.wg-chip {
  font-size: 13px; font-weight: 900; padding: 6px 13px; border-radius: 999px;
  background: rgba(226, 170, 46, 0.18); color: #F2C14E; border: 1px solid rgba(226, 170, 46, 0.35);
}
.wg-hint { text-align: center; font-size: 13px; font-weight: 700; opacity: 0.6; margin-top: 18px; }

/* Fade out of the forest into the light content below */
.forest-fade { position: relative; z-index: 1; height: 150px; background: linear-gradient(180deg, transparent, #F8F6EF); }

/* ===== Features ===== */
.wf-features { padding: 64px 0 84px; background: var(--wf-bg); }
.wf-features h2 { text-align: center; font-size: 34px; font-weight: 900; color: var(--wf-dark); margin: 0 0 36px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-card {
  background: var(--wf-surface); border: 1.5px solid var(--wf-border); border-radius: 20px;
  padding: 26px 24px; box-shadow: 0 8px 24px rgba(31, 75, 42, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(31, 75, 42, 0.13); }
.feat-card h3 { font-size: 19px; font-weight: 900; color: var(--wf-dark); margin: 16px 0 6px; }
.feat-card p { font-size: 14.5px; font-weight: 600; color: var(--wf-ink-sec); line-height: 1.55; margin: 0; }
.feat-tile {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font: 900 22px "Nunito", sans-serif;
}
.feat-tile.stone { background: linear-gradient(180deg, #FDFCF7, #EFEDE2); color: #3E5A38; box-shadow: 0 3px 0 #CDC9B8; }
.feat-tile.gold { background: linear-gradient(180deg, #F2C14E, #E2AA2E); color: #4A3500; box-shadow: 0 3px 0 #B8860B; }
.feat-tile.green { background: linear-gradient(180deg, #55B63B, #3D8A28); color: #fff; box-shadow: 0 3px 0 #1F4B2A; }

/* ===== Download CTA ===== */
.wf-cta { text-align: center; padding: 80px 0 90px; background: linear-gradient(180deg, #FFFFFF, #FBFAF4); border-top: 1px solid var(--wf-border); }
.wf-cta h2 { font-size: 38px; font-weight: 900; color: var(--wf-dark); margin: 0; }
.wf-cta p { font-size: 17px; font-weight: 600; color: var(--wf-ink-sec); margin: 14px auto 0; max-width: 440px; }
.wf-cta .store-row { justify-content: center; margin-top: 28px; }

/* ===== Beta tester page (/wordforge/test) ===== */
.beta-card {
  max-width: 560px; margin: 48px auto 0; text-align: center;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px; padding: 36px 36px 32px; backdrop-filter: blur(6px);
  position: relative;
}
.beta-card h2 { font-size: 26px; font-weight: 900; margin: 0; }
.beta-card .nl-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.beta-card input {
  width: 290px; max-width: 100%; padding: 15px 18px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.07);
  color: #fff; font: 700 15px "Nunito", sans-serif; outline: none; transition: border-color 0.2s;
}
.beta-card input::placeholder { color: rgba(255, 255, 255, 0.45); }
.beta-card input:focus { border-color: rgba(242, 193, 78, 0.7); }
.beta-card .nl-form button {
  border: 0; cursor: pointer; padding: 15px 28px; border-radius: 999px;
  font: 900 15px "Nunito", sans-serif; color: #4A3500;
  background: linear-gradient(180deg, #F2C14E, #E2AA2E); box-shadow: 0 4px 0 #B8860B;
  transition: transform 0.15s;
}
.beta-card .nl-form button:hover { transform: translateY(-2px); }
.beta-card .beta-note { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.55); margin: 14px 0 0; }
.beta-card .nl-success { display: none; font-size: 17px; font-weight: 900; color: #F2C14E; margin: 22px 0 0; }
.beta-card.subscribed .nl-form, .beta-card.subscribed .beta-note { display: none; }
.beta-card.subscribed .nl-success { display: block; }

.beta-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 900px; margin: 64px auto 0; text-align: center; }
.beta-step h3 { font-size: 18px; font-weight: 900; margin: 16px 0 6px; }
.beta-step p { font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, 0.7); line-height: 1.55; margin: 0; }
.beta-step .wf-tile { width: 46px; height: 46px; font-size: 23px; margin: 0 auto; }

@media (max-width: 900px) {
  .beta-steps { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .wf-float { display: none; }
}

@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr; }
}
