* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0a0807;
  font-family: 'Manrope', sans-serif;
  color: #f0e9e2;
}
a { color: #ff8a4c; text-decoration: none; }
a:hover { color: #ffa76e; }
::selection { background: rgba(232, 98, 44, 0.4); }

@keyframes chakraRise {
  0% { transform: translateY(0) translateX(0) scale(0.7); opacity: 0; }
  12% { opacity: 0.85; }
  75% { opacity: 0.4; }
  100% { transform: translateY(-680px) translateX(var(--drift, 20px)) scale(1.15); opacity: 0; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 8px 32px -6px rgba(255, 122, 61, 0.55), 0 0 0 1px rgba(255, 173, 122, 0.18) inset; }
  50% { box-shadow: 0 10px 42px -4px rgba(255, 138, 74, 0.7), 0 0 0 1px rgba(255, 190, 140, 0.25) inset; }
}
@keyframes gearSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes swordClashA { 0%, 100% { transform: rotate(0deg) translate(0,0); } 50% { transform: rotate(-18deg) translate(2px,-1px); } }
@keyframes swordClashB { 0%, 100% { transform: rotate(0deg) translate(0,0); } 50% { transform: rotate(18deg) translate(-2px,-1px); } }

.page { position: relative; width: 100%; min-height: 100vh; overflow: hidden; background: #0a0807; }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: url('./assets/bg-clean.png'); background-size: cover; background-position: 50% 30%; z-index: 0; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,7,6,0.5) 0%, rgba(9,7,6,0.35) 30%, rgba(8,6,5,0.6) 55%, rgba(7,5,4,0.88) 78%, #0a0807 100%); z-index: 1; }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 32%, rgba(5,4,3,0.6) 100%); z-index: 1; }

.particles { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; overflow: hidden; z-index: 2; pointer-events: none; }
.particle { position: absolute; bottom: -32px; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,160,0.98) 0%, rgba(255,150,70,0.85) 35%, rgba(255,100,35,0.4) 65%, rgba(255,80,20,0) 78%); filter: blur(0.4px); animation-name: chakraRise; animation-timing-function: ease-in; animation-iteration-count: infinite; }

.nav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(16px, 3vw, 32px) clamp(20px, 5vw, 56px); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; color: #f5efe9; letter-spacing: 0.5px; }
.brand-tag { font-size: 10px; font-weight: 600; color: #e8622c; letter-spacing: 2.5px; text-transform: uppercase; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-select {
  height: 42px; padding: 0 14px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05);
  color: #f0e9e2; font-weight: 600; font-size: 13px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  text-align: center; text-align-last: center;
}
.lang-select:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,138,76,0.4); }
.lang-select option { background: #1a1512; color: #f0e9e2; }

.btn { display: flex; align-items: center; justify-content: center; text-align: center; gap: 10px; font-weight: 600; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, filter 0.2s; }
.btn-ghost { height: 42px; padding: 0 22px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #f0e9e2; font-size: 14px; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,138,76,0.4); color: #f5efe9; }

.hero-content { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(20px, 3.5vh, 32px); padding: clamp(32px, 6vh, 64px) 24px clamp(64px, 10vh, 120px); }

.pill { display: flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 100px; border: 1px solid rgba(255,138,76,0.3); background: rgba(232,98,44,0.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 700; color: #ffa76e; letter-spacing: 1.5px; text-transform: uppercase; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff8a4c; box-shadow: 0 0 8px rgba(255,138,76,0.9); }

h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(34px, 6.5vw, 72px); line-height: 1.08; letter-spacing: -2px; color: #f9f4ef; text-shadow: 0 4px 32px rgba(0,0,0,0.6); max-width: 820px; text-wrap: balance; }
.lede { margin: 0; font-size: clamp(15px, 2vw, 19px); font-weight: 500; color: rgba(245,239,233,0.68); max-width: 560px; line-height: 1.55; text-wrap: pretty; }

.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-primary { height: 58px; padding: 0 36px; border-radius: 16px; background: linear-gradient(135deg, #ff8a4c, #e8622c 55%, #d9491b); color: #20120a; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16.5px; letter-spacing: 0.2px; animation: glowPulse 3.2s ease-in-out infinite; }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); color: #20120a; }
.cta-row .btn-ghost { height: 58px; padding: 0 30px; font-size: 15.5px; }

/* ===== FEATURES ===== */
.features { position: relative; z-index: 3; padding: clamp(56px, 9vh, 110px) clamp(20px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: clamp(36px, 6vh, 56px); background: #0a0807; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.eyebrow { font-size: 12px; font-weight: 700; color: #e8622c; letter-spacing: 3px; text-transform: uppercase; }
h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(26px, 4vw, 42px); letter-spacing: -1px; color: #f9f4ef; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; width: 100%; max-width: 1080px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 30px 28px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.035); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); cursor: default; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.card:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,138,76,0.35); transform: translateY(-3px); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,138,76,0.22), rgba(217,73,27,0.14)); border: 1px solid rgba(255,138,76,0.3); display: flex; align-items: center; justify-content: center; }
.card-body { display: flex; flex-direction: column; gap: 8px; }
.card-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 19px; color: #f5efe9; }
.card-desc { font-size: 14.5px; line-height: 1.6; color: rgba(245,239,233,0.6); text-wrap: pretty; }

.sword { transform-origin: 50% 50%; }
.sword-a { transform-origin: 29.2% 70.8%; }
.sword-b { transform-origin: 70.8% 70.8%; }
#card-play:hover .sword-a { animation: swordClashA 0.5s ease-in-out infinite; }
#card-play:hover .sword-b { animation: swordClashB 0.5s ease-in-out infinite; }

.gear { transform-origin: 50% 50%; }
#card-settings:hover .gear { animation: gearSpin 1s linear infinite; }

.deck-fan { position: relative; width: 32px; height: 24px; }
.deck-card { position: absolute; left: 10px; bottom: 0; width: 11px; height: 16px; border-radius: 2.5px; border: 1.5px solid #ff8a4c; background: rgba(255,138,76,0.18); transform-origin: 50% 100%; transform: translateX(0) translateY(0) rotate(0deg); transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
#card-deck:hover .deck-card { transform: translateX(var(--tx)) translateY(-4px) rotate(var(--rot)); }

/* ===== CTA FINAL ===== */
.cta-final { position: relative; z-index: 3; overflow: hidden; margin: 0 clamp(16px, 4vw, 48px) clamp(48px, 8vh, 88px); border-radius: 24px; border: 1px solid rgba(255,138,76,0.22); background: linear-gradient(160deg, rgba(232,98,44,0.16), rgba(217,73,27,0.06) 60%, rgba(10,8,7,0)); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: clamp(44px, 7vh, 72px) 28px; }
.cta-glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 480px; height: 280px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,122,50,0.22), transparent 70%); pointer-events: none; }
.cta-final h2 { max-width: 560px; text-wrap: balance; }
.cta-final p { margin: 0; font-size: 15.5px; font-weight: 500; color: rgba(245,239,233,0.62); max-width: 440px; line-height: 1.55; }
.cta-final .btn-primary { height: 56px; padding: 0 40px; font-size: 16px; }

/* ===== FOOTER ===== */
.footer { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 24px clamp(28px, 5vh, 44px); border-top: 1px solid rgba(255,255,255,0.06); margin: 0 clamp(20px, 5vw, 56px); }
.footer-logo { height: 30px; width: auto; opacity: 0.6; }
.footer-text { font-size: 11.5px; color: rgba(245,239,233,0.3); text-align: center; line-height: 1.6; max-width: 520px; }
