/* ===========================================================================
   StepX Games — company site (simple, white, app-style)
   =========================================================================== */

:root {
  --bg:        #FFFFFF;
  --card:      #FFFFFF;
  --line:      rgba(17, 24, 39, 0.07);
  --text:      #1A1A1A;
  --muted:     #6B7280;
  --soft:      #9098A8;
  --red:       #FF4560;
  --blue:      #4E8EFF;
  --green:     #00CC50;
  --gold:      #FFB800;
  --radius:    22px;
  --neu:       0 8px 24px -4px rgba(17,24,39,0.10), 0 2px 6px rgba(17,24,39,0.05);
  --neu-lg:    0 18px 40px -6px rgba(17,24,39,0.16), 0 4px 10px rgba(17,24,39,0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 24px; }

.accent-red   { color: var(--red); }
.accent-blue  { color: var(--blue); }
.accent-green { color: var(--green); }

/* floating-squares canvas */
.bg-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* click-to-copy email */
.copy-email { cursor: pointer; }
.copy-toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: #1A1A1A; color: #fff; padding: 12px 20px; border-radius: 14px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.2px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.32);
  opacity: 0; transition: opacity .25s ease, transform .25s ease;
  z-index: 999; pointer-events: none; max-width: 90vw; text-align: center;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Wordmark ────────────────────────────────────────────────────────────── */
.brand { display: flex; align-items: center; font-weight: 900; font-size: 22px; letter-spacing: 0.3px; color: var(--text); }
.brand .x { color: var(--red); }

/* ── Buttons (app neumorphic) ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 50px;
  font-weight: 800; font-size: 16px; letter-spacing: 0.2px;
  cursor: pointer; border: none;
  transition: transform .14s ease, box-shadow .14s ease;
}
.btn-primary {
  color: #fff; background: var(--red);
  box-shadow: 0 9px 22px -2px rgba(255,69,96,0.42), 0 4px 8px rgba(0,0,0,0.09);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -2px rgba(255,69,96,0.50), 0 5px 10px rgba(0,0,0,0.10); }
.btn-ghost { color: var(--text); background: #fff; box-shadow: var(--neu); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--neu-lg); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 10px 20px; font-size: 14px; color: #fff; }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; text-align: center; padding: 84px 0 64px; }
.app-logo {
  width: 132px; height: 132px; margin: 0 auto 28px;
  border-radius: 30px; overflow: hidden; background: #fff;
  box-shadow: 0 22px 50px -8px rgba(17,24,39,0.30), 0 0 0 1px var(--line);
}
.app-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(42px, 8vw, 72px); font-weight: 900; line-height: 1.02; letter-spacing: -1.5px; }
.hero .tag { margin: 18px auto 0; max-width: 540px; font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); }
.hero .sub { margin-top: 22px; font-size: 14px; color: var(--soft); }

/* App Store badge (coming soon) */
.store-row { margin-top: 32px; display: flex; justify-content: center; }
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #1A1A1A; color: #fff;
  padding: 12px 24px; border-radius: 16px;
  box-shadow: 0 10px 26px -4px rgba(0,0,0,0.30);
}
.appstore-badge .store-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; font-weight: 800; font-size: 19px; }
.appstore-badge .store-text small { font-size: 11px; font-weight: 600; letter-spacing: 0.3px; opacity: 0.85; }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: 60px 0; position: relative; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 900; letter-spacing: -0.5px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 800; color: var(--red); margin-bottom: 12px; }

/* ── Three modes (simple rows) ───────────────────────────────────────────── */
.modes-simple { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.mode-row {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff; border-radius: 18px; padding: 22px 24px; box-shadow: var(--neu);
  transition: transform .16s ease, box-shadow .16s ease;
}
.mode-row:hover { transform: translateY(-3px); box-shadow: var(--neu-lg); }
.mode-row .dot { flex: none; width: 16px; height: 16px; border-radius: 6px; margin-top: 5px; }
.mode-row h4 { font-size: 18px; margin-bottom: 4px; }
.mode-row p { color: var(--muted); font-size: 15px; }

/* ── Features (white app cards) ──────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--card); border-radius: 20px; padding: 28px;
  box-shadow: var(--neu); transition: transform .16s ease, box-shadow .16s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--neu-lg); }
.feature .ico { font-size: 30px; margin-bottom: 14px; }
.feature h4 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band {
  text-align: center; background: #fff; border-radius: 28px;
  padding: 54px 28px; box-shadow: var(--neu);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.cta-band p { color: var(--muted); margin: 12px auto 28px; max-width: 460px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); margin-top: 16px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }
.foot-brand { display: flex; align-items: center; font-weight: 900; font-size: 18px; color: var(--text); }
.foot-brand .x { color: var(--red); }

/* ── Legal pages (white app card) ────────────────────────────────────────── */
.legal {
  max-width: 800px; margin: 40px auto; padding: 48px 40px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--neu);
}
.legal h1 { font-size: 38px; font-weight: 900; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: 21px; margin: 32px 0 12px; }
.legal h3 { font-size: 16px; font-weight: 800; margin: 22px 0 8px; color: #1A1A1A; }
.legal p, .legal li { color: #3F444F; margin-bottom: 12px; }
.legal .fill { background: #FFF3BF; padding: 0 4px; border-radius: 3px; font-weight: 600; color: #6B5800; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--blue); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 28px; font-weight: 600; }
.back-link:hover { color: var(--text); }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .legal { padding: 36px 24px; }
}
