/* Nod Games — arcade neon theme */
:root {
  --bg: #0b0b1a;
  --bg-2: #13132b;
  --card: #1a1a38;
  --line: #2a2a55;
  --text: #e8e8f5;
  --muted: #9a9ac0;
  --pink: #ff2e88;
  --cyan: #22e6ff;
  --yellow: #ffd23f;
  --grad: linear-gradient(135deg, var(--pink), #8a2eff 55%, var(--cyan));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(138,46,255,.25), transparent 60%),
    radial-gradient(800px 400px at -10% 20%, rgba(255,46,136,.15), transparent 60%),
    var(--bg);
  line-height: 1.65;
}
h1, h2, h3, .logo, .btn, .tag { font-family: "Russo One", "Inter", sans-serif; font-weight: 400; letter-spacing: .5px; }
a { color: var(--cyan); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 800px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,11,26,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 22px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; font-size: 18px; color: #fff;
  box-shadow: 0 0 18px rgba(255,46,136,.5);
}
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; font-weight: 600; }
nav a:hover, nav a.active { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px; text-decoration: none; font-size: 16px;
  color: #fff; background: var(--grad);
  box-shadow: 0 8px 30px rgba(255,46,136,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(34,230,255,.35); }
.btn.ghost { background: transparent; border: 2px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--cyan); }
.play-badge small { display: block; font-family: "Inter", sans-serif; font-size: 11px; opacity: .85; line-height: 1; }
.play-badge span { line-height: 1.1; }

/* Hero */
.hero { padding: 80px 0 70px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.tag {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px;
  color: var(--yellow); border: 1px solid rgba(255,210,63,.4); background: rgba(255,210,63,.08);
}
.hero h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.02; margin: 18px 0 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Starfield */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.stars {
  position: absolute; inset: 0; opacity: .7; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 80px 120px, #cfe9ff, transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, #fff, transparent),
    radial-gradient(1px 1px at 220px 170px, #ffd6ec, transparent),
    radial-gradient(1px 1px at 120px 200px, #fff, transparent);
  background-size: 260px 240px;
  animation: drift 60s linear infinite;
}
@keyframes drift { from { background-position: 0 0; } to { background-position: -260px 480px; } }
@media (prefers-reduced-motion: reduce) { .stars { animation: none; } }

/* Phone mockup */
.phone {
  justify-self: center;
  width: 270px; aspect-ratio: 9 / 19; border-radius: 38px; padding: 12px;
  background: #05050d; border: 2px solid var(--line);
  box-shadow: 0 0 0 6px #111127, 0 30px 80px rgba(138,46,255,.45);
  transform: rotate(4deg);
}
.screen {
  width: 100%; height: 100%; border-radius: 28px; overflow: hidden; position: relative;
  background:
    radial-gradient(circle at 50% 30%, rgba(34,230,255,.35), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(255,46,136,.45), transparent 50%),
    linear-gradient(180deg, #1b0f3d, #0a0a1e);
  display: grid; place-items: center; text-align: center;
}
.screen .title { font-family: "Russo One", sans-serif; font-size: 30px; line-height: 1; text-shadow: 0 0 20px var(--pink); }
.app-icon { width: 110px; height: 110px; border-radius: 26px; margin-bottom: 18px; box-shadow: 0 0 30px rgba(34,230,255,.5); }
.screen .tap { margin-top: 18px; font-size: 12px; letter-spacing: 3px; color: var(--yellow); }

/* Sections */
section { padding: 70px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 8px; }
.section-head p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--pink); }
.card .icon { font-size: 34px; }
.card h3 { margin: 12px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.shots {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x mandatory; scrollbar-color: var(--pink) var(--bg-2);
}
.shots img {
  height: 420px; width: auto; flex: 0 0 auto; border-radius: 18px;
  border: 1px solid var(--line); scroll-snap-align: start; background: var(--card);
}

.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-align: center; }
.stat b { display: block; font-family: "Russo One", sans-serif; font-size: 30px; color: var(--yellow); }
.stat span { color: var(--muted); font-size: 13px; }

.banner {
  text-align: center; padding: 60px 30px; border-radius: 26px;
  background: var(--grad); box-shadow: 0 20px 60px rgba(138,46,255,.35);
}
.banner h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; }
.banner p { margin: 0 0 24px; font-size: 18px; }
.banner .btn { background: #0b0b1a; box-shadow: none; }

/* Legal pages */
.legal { padding: 60px 0 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 6px; }
.legal h2 { font-size: 21px; margin-top: 36px; color: var(--cyan); }
.legal p, .legal li { color: #cfcfe6; }
.muted { color: var(--muted); font-size: 14px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
footer a { color: var(--muted); margin-left: 16px; text-decoration: none; }
footer a:hover { color: #fff; }

@media (max-width: 800px) {
  .hero { padding-top: 50px; }
  .hero .wrap, .studio { grid-template-columns: 1fr; }
  .phone { width: 230px; transform: none; }
  .shots img { height: 320px; }
  nav a { margin-left: 14px; }
  footer a { margin: 0 14px 0 0; }
}
