:root {
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --text: #16172b;
  --muted: #5b5e78;
  --line: #e4e6f0;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --accent: #f59e0b;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.nav nav { display: flex; align-items: center; gap: 22px; font-weight: 600; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  background: var(--brand); color: #fff !important; font-weight: 700;
  box-shadow: 0 6px 18px rgba(79, 70, 229, .28);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(79, 70, 229, .35); }
.btn-ghost { background: #fff; color: var(--brand) !important; box-shadow: inset 0 0 0 2px var(--brand); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--brand), 0 8px 20px rgba(79, 70, 229, .15); }
.btn-small { padding: 8px 18px; box-shadow: none; }
.btn-big { padding: 16px 30px; font-size: 1.1rem; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(6, 182, 212, .14), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(79, 70, 229, .12), transparent 60%),
    var(--bg-soft);
  padding: 80px 0 90px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 20px; letter-spacing: -.02em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero art */
.hero-art { position: relative; height: 380px; }
.device { position: absolute; background: #1d1e33; border-radius: 34px; padding: 12px; box-shadow: 0 30px 60px rgba(22, 23, 43, .25); }
.device .screen { width: 100%; height: 100%; border-radius: 24px; background: #fff; overflow: hidden; }
.phone { width: 190px; height: 370px; right: 30px; top: 0; z-index: 2; }
.phone .screen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px 16px; align-content: start; }
.tile { aspect-ratio: 1; border-radius: 16px; }
.t1 { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.t2 { background: linear-gradient(135deg, #06b6d4, #67e8f9); }
.t3 { background: linear-gradient(135deg, #f59e0b, #fcd34d); }
.t4 { background: linear-gradient(135deg, #ec4899, #f9a8d4); }
.t5 { background: linear-gradient(135deg, #10b981, #6ee7b7); }
.t6 { background: linear-gradient(135deg, #8b5cf6, #c4b5fd); }
.pad { width: 300px; height: 220px; left: 0; bottom: 0; border-radius: 26px; }
.pad .screen { border-radius: 16px; }
.device .screen.game { position: relative; background: linear-gradient(160deg, #312e81, #0e7490); }
.ball { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); left: 20%; top: 20%; animation: bounce 3s linear infinite alternate; }
.paddle { position: absolute; width: 70px; height: 10px; border-radius: 6px; background: #fff; bottom: 16px; left: 40%; animation: slide 3s ease-in-out infinite alternate; }
@keyframes bounce { 0% { left: 8%; top: 15%; } 50% { left: 55%; top: 75%; } 100% { left: 88%; top: 20%; } }
@keyframes slide { from { left: 10%; } to { left: 65%; } }
@media (prefers-reduced-motion: reduce) { .ball, .paddle { animation: none; } }

/* Sections */
.section { padding: 90px 0; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0 0 10px; text-align: center; letter-spacing: -.01em; }
.section-lead { text-align: center; color: var(--muted); font-size: 1.15rem; margin: 0 auto 48px; max-width: 36em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .2s, box-shadow .2s;
  scroll-margin-top: 90px;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22, 23, 43, .08); }
.card h3 { margin: 18px 0 8px; font-size: 1.3rem; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.icon svg { width: 30px; height: 30px; fill: #fff; }
.icon.android { background: #3ddc84; }
.icon.ios { background: #16172b; }
.icon.web { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.soon { text-align: center; margin: 40px 0 0; color: var(--muted); font-weight: 600; }

.contact { background: var(--bg-soft); }
.contact-inner { text-align: center; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .95rem; text-align: center; }
.footer p { margin: 0; }

/* Tablet & phone */
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-art { height: 320px; max-width: 420px; width: 100%; margin: 0 auto; }
  .phone { width: 160px; height: 310px; right: 10px; }
  .pad { width: 250px; height: 180px; }
  .cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .nav nav a:not(.btn) { display: none; }
  .hero-art { height: 280px; }
  .phone { width: 135px; height: 265px; }
  .pad { width: 210px; height: 150px; }
  .btn-big { font-size: 1rem; padding: 14px 22px; }
}
