:root {
  --bg: #0b0d17;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f5fb;
  --muted: #a3a8c3;
  --accent: #7c8cff;
  --accent2: #ff7ac6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animeret baggrund */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; filter: blur(80px); opacity: .55; }
.blobs span {
  position: absolute; width: 45vmax; height: 45vmax; border-radius: 50%;
  animation: float 22s ease-in-out infinite alternate;
}
.blobs span:nth-child(1) { background: #4b5bff; top: -15%; left: -10%; }
.blobs span:nth-child(2) { background: #ff4fa8; bottom: -20%; right: -10%; animation-delay: -7s; }
.blobs span:nth-child(3) { background: #19c3b0; top: 40%; left: 40%; width: 30vmax; height: 30vmax; animation-delay: -14s; }

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8vw, 6vh) scale(1.15); }
  100% { transform: translate(-6vw, -4vh) scale(.9); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pop {
  0%   { opacity: 0; transform: scale(.6) rotate(-8deg); }
  70%  { transform: scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}

a { color: inherit; }

/* Forside */
header.hero { text-align: center; padding: 14vh 1.5rem 3rem; animation: fadeUp .9s ease both; }
header.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff, var(--accent), var(--accent2), #fff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 300% 0; } }
header.hero p { color: var(--muted); font-size: 1.15rem; margin-top: .75rem; }

.grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 6rem;
}

.app-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; animation: pop .8s cubic-bezier(.2, .9, .3, 1.3) both;
}
.app-tile:nth-child(2) { animation-delay: .12s; }
.app-tile:nth-child(3) { animation-delay: .24s; }
.app-tile:nth-child(4) { animation-delay: .36s; }

.app-tile img {
  width: 150px; height: 150px; border-radius: 34px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .45);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.4), box-shadow .35s;
}
.app-tile:hover img, .app-tile:focus-visible img {
  transform: translateY(-10px) scale(1.07) rotate(-3deg);
  box-shadow: 0 25px 60px rgba(124, 140, 255, .45);
}
.app-tile h2 { font-size: 1.1rem; margin-top: 1.1rem; }
.app-tile span { color: var(--muted); font-size: .9rem; }

footer { text-align: center; color: var(--muted); padding: 2rem 1rem 3rem; font-size: .9rem; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* App-side */
.wrap { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.back {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
  color: var(--muted); padding: .5rem 1rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  transition: color .2s, transform .2s;
}
.back:hover { color: var(--text); transform: translateX(-4px); }

.app-head {
  display: flex; gap: 2rem; align-items: center; flex-wrap: wrap;
  margin: 3rem 0 2.5rem; animation: fadeUp .7s ease both;
}
.app-head img {
  width: 140px; height: 140px; border-radius: 32px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .5);
  animation: pop .8s cubic-bezier(.2, .9, .3, 1.3) both;
}
.app-head h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; }
.app-head .sub { color: var(--muted); font-size: 1.15rem; margin: .3rem 0 1rem; }
.tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.tags span {
  font-size: .8rem; padding: .25rem .7rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
}

.store-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; color: #000; text-decoration: none; font-weight: 600;
  padding: .75rem 1.4rem; border-radius: 14px;
  transition: transform .25s, box-shadow .25s;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(255, 255, 255, .25); }
.store-btn svg { width: 22px; height: 22px; }

.shots {
  display: flex; gap: 1.2rem; overflow-x: auto; padding: 1rem .2rem 1.5rem;
  scroll-snap-type: x mandatory; animation: fadeUp .8s .15s ease both;
}
.shots img {
  height: 520px; max-height: 70vh; border-radius: 22px; flex: none;
  scroll-snap-align: start; border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  transition: transform .3s;
}
.shots img:hover { transform: scale(1.03); }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.desc {
  margin-top: 2rem; padding: 2rem; border-radius: 24px;
  background: var(--card); border: 1px solid var(--border);
  backdrop-filter: blur(10px); animation: fadeUp .8s .3s ease both;
}
.desc h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.desc h3 { font-size: 1rem; margin: 1.5rem 0 .5rem; color: var(--accent); letter-spacing: .04em; }
.desc p { color: #d6d9ea; margin-bottom: .8rem; }
.desc ul { list-style: none; display: grid; gap: .4rem; }
.desc li { padding-left: 1.4rem; position: relative; color: #d6d9ea; }
.desc li::before { content: "✓"; position: absolute; left: 0; color: var(--accent2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
