/* ============================================================
   GameItemShop — Design tokens
   Palette: deep server-room navy + violet CTA + online-green
   accents (money/success) + gold (rare-item / featured).
   Type: Sora (display) / Inter (body) / JetBrains Mono (data)
   ============================================================ */

:root {
  --bg: #0A0E17;
  --bg-alt: #0D1220;
  --surface: #131926;
  --surface-2: #1A2233;
  --border: #232B3D;
  --text: #F5F7FA;
  --text-muted: #8A93A6;

  --violet: #7C5CFF;
  --violet-dim: #5B3FD9;
  --green: #2ED573;
  --gold: #FFB020;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
  --max: 1180px;
}

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

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

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--violet);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: #8b6dff; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--violet); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-mark {
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}
.brand-game { color: var(--violet); }
.brand-item { color: var(--gold); }
.brand-shop { color: var(--green); }
.main-nav {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
}
.lang-current:hover { border-color: var(--violet); color: var(--text); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 6px;
  display: none;
  z-index: 50;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu li {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-muted);
}
.lang-menu li:hover { background: var(--surface-2); color: var(--text); }
.lang-menu li[aria-selected="true"] { color: var(--violet); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

/* ---------- Hero ---------- */
.hero { padding-top: 72px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}
.eyebrow.center, .section-title.center, .section-lead.center { text-align: center; }

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  color: #fff;
}
.hero-lead { font-size: 1.08rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--green); flex-shrink: 0; }

/* Shop preview mock */
.shop-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shop-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.shop-window-bar .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--border);
}
.shop-url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.shop-window-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.shop-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.shop-item-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
  background: var(--surface-2);
  flex-shrink: 0;
}
.glow-purple { box-shadow: 0 0 18px rgba(124,92,255,0.45); }
.glow-gold { box-shadow: 0 0 18px rgba(255,176,32,0.4); }
.glow-green { box-shadow: 0 0 18px rgba(46,213,115,0.4); }
.shop-item-name { margin: 0; font-weight: 600; font-size: 0.92rem; color: var(--text); }
.shop-item-tag { margin: 0; font-size: 0.78rem; color: var(--text-muted); }
.shop-item-price {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--green);
}
.shop-buy-btn {
  margin-top: 4px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}
.shop-buy-note {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Ticker (signature element) */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
  animation: ticker-scroll 75s linear infinite;
  padding-left: 100%;
}
.ticker-track span { color: var(--text-muted); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- Strip ---------- */
.strip { padding: 22px 0; border-bottom: 1px solid var(--border); }
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.strip p { margin: 0; font-size: 0.9rem; }
.strip-link { color: var(--violet); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.strip-link:hover { color: #9c85ff; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 720px; margin-left: auto; margin-right: auto; color: #fff; }
.section-lead { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  font-family: var(--font-mono);
  color: var(--violet);
  font-size: 0.85rem;
  font-weight: 600;
}
.step h3 { margin-top: 14px; color: #fff; font-size: 1.15rem; }
.step p { margin-bottom: 0; font-size: 0.94rem; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-icon { font-size: 1.6rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; margin-bottom: 0; }

/* Payments */
.payments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.payment-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}
.payment-card.featured { border-color: var(--green); }
.payment-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #062314;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.payment-logo { display: flex; justify-content: center; color: var(--violet); margin-bottom: 14px; }
.payment-card h3 { color: #fff; font-size: 1.1rem; }
.payment-card p { font-size: 0.92rem; margin-bottom: 0; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.price-card.highlighted {
  border-color: var(--violet);
  background: linear-gradient(180deg, rgba(124,92,255,0.08), var(--surface) 40%);
}
.price-badge {
  position: absolute;
  top: -12px; left: 26px;
  background: var(--violet);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.price-tag { margin: 6px 0 0; }
.price-amount { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: #fff; }
.price-period { font-size: 0.9rem; color: var(--text-muted); }
.price-note { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.price-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  flex-grow: 1;
}
.price-features li { padding-left: 20px; position: relative; }
.price-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.price-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  margin-top: 32px;
  color: var(--text-muted);
}

/* FAQ */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--violet);
  font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 16px; margin: 0; font-size: 0.92rem; }

/* Contact form */
.contact-form { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; color: var(--text-muted); }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--violet);
  outline: none;
}
.form-error {
  font-size: 0.78rem;
  color: #ff6b6b;
  min-height: 1em;
}
.form-status {
  font-size: 0.9rem;
  color: var(--green);
  min-height: 1.2em;
}

/* CTA final */
.cta-final {
  padding: 90px 0;
  text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(124,92,255,0.18), transparent 70%), var(--bg);
  border-top: 1px solid var(--border);
}
.cta-final h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: #fff; max-width: 640px; margin: 0 auto 12px; }
.cta-final p { max-width: 480px; margin: 0 auto 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 32px;
}
.footer-brand p { font-size: 0.88rem; max-width: 32ch; margin-top: 12px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.85rem; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom p { margin: 0; font-size: 0.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .steps, .features-grid, .payments-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-panel { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px 24px;
  }
  .site-header.open .main-nav { flex-direction: column; gap: 14px; }
  .site-header.open .header-actions { flex-direction: column; gap: 10px; }
  .steps, .features-grid, .payments-grid, .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
