/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #1a2535;
  --surface:   #243040;
  --surface-2: #2e3d52;
  --orange:    #e8743b;
  --yellow:    #f5c318;
  --text:      #f0e8d8;
  --muted:     #7a8fa8;
  --green:     #4caf7d;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

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

/* ─── Header ─────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 3px solid var(--orange);
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--text);
  letter-spacing: 0.04em;
}
.brand-accent { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.1s;
}
.nav-links a:hover { color: var(--orange); }

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  padding: 14px 22px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover  { transform: translate(2px,2px); box-shadow: 2px 2px 0 rgba(0,0,0,0.5); }
.btn-coming {
  background: var(--surface-2);
  color: var(--muted);
  cursor: default;
}
.btn-coming:hover { transform: none; box-shadow: 4px 4px 0 rgba(0,0,0,0.3); }

/* ─── Hero ───────────────────────────────────────── */
.hero { padding: 80px 0 72px; }
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 24px; }

.badge {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  padding: 6px 10px;
  background: var(--yellow);
  color: #1a2535;
  letter-spacing: 0.05em;
  width: fit-content;
}

.hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  line-height: 1.75;
  letter-spacing: 0.04em;
}
.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 440px;
}
.store-note {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.hero-visual {
  display: flex;
  justify-content: flex-end;
  transform: translateX(-352px);  /* 11 клеток × 32px */
}
.hero-card {
  background: var(--surface);
  border: 3px solid var(--orange);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Section ────────────────────────────────────── */
.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  color: var(--text);
  line-height: 1.8;
}

/* ─── Features ───────────────────────────────────── */
.features { padding: 72px 0; border-top: 3px solid var(--surface-2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 3px solid var(--surface-2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.feature-card:hover {
  border-color: var(--orange);
  box-shadow: 6px 6px 0 rgba(232,116,59,0.25);
  transform: translate(-3px,-3px);
}
.feature-icon { font-size: 1.8rem; line-height: 1; }
.feature-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
}
.feature-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }

/* ─── How it works ───────────────────────────────── */
.how-it-works { padding: 72px 0; border-top: 3px solid var(--surface-2); }
.steps { list-style: none; display: flex; flex-direction: column; }
.steps li {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 2px solid var(--surface-2);
}
.steps li:first-child { border-top: 2px solid var(--surface-2); }
.step-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.4rem;
  color: var(--orange);
  opacity: 0.3;
  min-width: 72px;
  line-height: 1;
  padding-top: 4px;
}
.step-content h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
  margin-bottom: 10px;
}
.step-content p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; max-width: 560px; }

/* ─── Footer ─────────────────────────────────────── */
footer { border-top: 3px solid var(--orange); padding: 40px 0; }
footer .container { display: flex; flex-direction: column; gap: 14px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.1s;
}
.footer-links a:hover { color: var(--orange); }
.footer-copy {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 2;
}
.footer-email { font-size: 0.875rem; color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Legal ──────────────────────────────────────── */
.legal-hero { padding: 60px 0 40px; border-bottom: 3px solid var(--surface-2); }
.legal-hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  line-height: 1.75;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.legal-hero p { font-size: 0.875rem; color: var(--muted); }
.legal-body { padding: 48px 0; max-width: 720px; }
.legal-body h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--orange);
  letter-spacing: 0.06em;
  margin: 36px 0 14px;
  line-height: 1.8;
}
.legal-body p { font-size: 0.9rem; color: var(--muted); line-height: 1.85; margin-bottom: 14px; }
.legal-body ul { padding-left: 20px; margin-bottom: 14px; }
.legal-body li { font-size: 0.9rem; color: var(--muted); line-height: 1.85; margin-bottom: 6px; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.nav-back {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.1s;
}
.nav-back:hover { color: var(--orange); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-content: flex-start; }
  .hero-card { max-width: 100%; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0; }
  .features, .how-it-works { padding: 56px 0; }
  .step-num { font-size: 1rem; min-width: 48px; }
}

/* ─── Sprite Animation ───────────────────────────── */
.cat-sprite {
  width: 128px;
  height: 128px;
  background-image: url('images/cat_idle.png');
  background-repeat: no-repeat;
  background-size: 1920px 128px;  /* 15 кадров × 128px */
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: cat-eat 2.4s steps(15) infinite;
  margin: 32px auto;
}

@keyframes cat-eat {
  from { background-position: 0 0; }
  to   { background-position: -1920px 0; }
}
