/* moaswift.no: northern night, a neon sun, one calm page. Dark only, mobile first, no JavaScript needed. */
:root {
  color-scheme: dark;
  --bg: #07060d;
  --panel: #0d0b1a;
  --line: #272043;
  --text: #e9eef5;
  --muted: #aab3c8;
  --dim: #8d97ae;
  --cyan: #2de2e6;
  --magenta: #ff2e93;
  --orange: #ff7a3d;
  --display: 'Pirata One', 'Abril Fatface', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --top: 64px;
  --pad: clamp(16px, 5vw, 80px);
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img, svg { max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 12px 18px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); padding-top: env(safe-area-inset-top); background: rgba(7, 6, 13, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(233, 238, 245, 0.08); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-left)); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--text); font: 400 28px/1 var(--display); letter-spacing: 0.02em; }
.nav-desk { display: none; align-items: center; gap: 34px; font: 400 14px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.nav-desk a { color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
.nav-cta { padding: 0 20px; border-radius: 999px; background: linear-gradient(90deg, var(--magenta), var(--orange)); color: #14040c !important; font-weight: 700; }
.nav-mob { position: relative; }
.nav-mob summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(233, 238, 245, 0.3); cursor: pointer; }
.nav-mob summary::-webkit-details-marker { display: none; }
.nav-mob nav { position: absolute; right: 0; top: 56px; width: min(280px, calc(100vw - 32px)); display: flex; flex-direction: column; padding: 10px; border-radius: 16px; background: #0f0c1f; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.nav-mob nav a { display: flex; align-items: center; min-height: 52px; padding: 0 14px; color: var(--text); font: 400 15px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.nav-mob nav .nav-cta { margin-top: 6px; justify-content: center; border-radius: 12px; }
@media (min-width: 860px) {
  .nav-desk { display: flex; }
  .nav-mob { display: none; }
  :root { --top: 76px; }
}

/* ---- hero: northern night, neon sun, mountains ---- */
.hero { --horizon: clamp(120px, 20vw, 270px); position: relative; margin-top: calc(var(--top) * -1); min-height: min(100svh, 780px); padding-top: var(--top); overflow: hidden; background: linear-gradient(180deg, #05040a 0%, #0b0920 42%, #1b0f35 68%, #3c1252 100%); }
@media (max-width: 859px) { .hero { min-height: 730px; } }
.scene { position: absolute; inset: 0; }
.scene > * { position: absolute; }
.aurora { border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.a1 { left: -8%; top: 8%; width: 58%; height: 26%; background: radial-gradient(ellipse at center, rgba(92, 255, 177, 0.38), transparent 68%); transform: rotate(-8deg); }
.a2 { left: 28%; top: 5%; width: 54%; height: 24%; background: radial-gradient(ellipse at center, rgba(45, 226, 230, 0.34), transparent 68%); transform: rotate(5deg); }
.a3 { left: 56%; top: 12%; width: 50%; height: 24%; background: radial-gradient(ellipse at center, rgba(255, 46, 147, 0.3), transparent 68%); transform: rotate(-4deg); }
@media (prefers-reduced-motion: no-preference) {
  .a1 { animation: drift 26s ease-in-out infinite alternate; }
  .a2 { animation: drift 32s ease-in-out infinite alternate-reverse; }
  .a3 { animation: drift 38s ease-in-out infinite alternate; }
}
@keyframes drift { from { translate: -3% 0; } to { translate: 4% 6%; } }
.stars { left: 0; top: 0; width: 100%; height: 70%; }
.sun { left: 50%; bottom: var(--horizon); width: clamp(220px, 34vw, 420px); aspect-ratio: 420 / 320; translate: -50% 0; }
.range { left: 0; bottom: calc(var(--horizon) - 1px); width: 100%; height: clamp(110px, 17vw, 240px); }
.grid { left: 0; bottom: 0; width: 100%; height: var(--horizon); }
.fjord { left: 0; bottom: calc(var(--horizon) - 30px); width: 100%; height: clamp(130px, 21vw, 300px); }

.hero-in { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) 20px 0; text-align: center; }
.wordmark { display: flex; justify-content: center; filter: drop-shadow(0 0 10px rgba(45, 226, 230, 0.55)) drop-shadow(0 0 26px rgba(255, 46, 147, 0.35)); }
.wordmark svg { width: min(680px, 90vw); height: auto; }
.tag { max-width: 620px; margin: clamp(10px, 2vw, 24px) auto 0; font-size: clamp(18px, 2.4vw, 24px); font-weight: 500; line-height: 1.4; color: #f1f4fa; text-shadow: 0 1px 2px #07060d, 0 0 14px rgba(7, 6, 13, 0.95), 0 0 30px rgba(7, 6, 13, 0.85); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(22px, 3.6vw, 40px); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 12px; font: 700 18px/1 var(--body); letter-spacing: 0.02em; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-hot { background: linear-gradient(90deg, var(--magenta), var(--orange)); color: #14040c; box-shadow: 0 0 30px rgba(255, 46, 147, 0.45); }
.btn-ghost { border: 2px solid var(--cyan); background: rgba(7, 6, 13, 0.55); color: var(--cyan); }
.btn-frost { background: #eef3fa; color: #0b0818; }
.btn-cyan { border: 0; background: var(--cyan); color: var(--bg); cursor: pointer; }
@media (max-width: 559px) { .cta { flex-direction: column; } .cta .btn { width: 100%; } }

/* ---- sections ---- */
.block { padding: clamp(44px, 7vw, 84px) 0 0; scroll-margin-top: var(--top); }
.block:last-of-type { padding-bottom: 8px; }
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.head h2, .feature h2, .player h2 { font: 400 clamp(44px, 6vw, 62px)/1 var(--display); color: #eef3fa; }
.note { font: 400 13px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.eyebrow { font: 400 13px/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }
.group { margin: 28px 0 0; font: 400 13px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }

/* MOA Records feature */
.feature { display: grid; gap: 28px; padding: clamp(24px, 4.4vw, 56px) clamp(20px, 4.6vw, 64px); border-radius: clamp(20px, 2.4vw, 26px); background: linear-gradient(135deg, #130d29, #0b0818); border: 1px solid rgba(233, 238, 245, 0.14); box-shadow: 0 0 60px rgba(255, 46, 147, 0.12); }
.feature-text { max-width: 560px; }
.feature h2 { margin-top: 12px; font-size: clamp(42px, 5.4vw, 64px); }
.feature p { margin-top: 16px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: #b4bdd0; }
.feature .eyebrow { margin-top: 0; color: var(--orange); }
.feature p:last-child { margin-top: 24px; }
.sleeves { position: relative; height: 170px; }
.sl { position: absolute; border-radius: 8px; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55); }
.s1 { left: 2%; top: 22px; width: 112px; height: 112px; transform: rotate(-7deg); }
.s2 { left: 26%; top: 0; width: 128px; height: 128px; transform: rotate(3deg); }
.s3 { left: 54%; top: 26px; width: 112px; height: 112px; transform: rotate(8deg); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .sleeves { height: 300px; }
  .s1 { left: 0; top: 40px; width: 210px; height: 210px; }
  .s2 { left: 130px; top: 0; width: 232px; height: 232px; }
  .s3 { left: 300px; top: 56px; width: 200px; height: 200px; }
}

/* games */
.tiles { display: grid; gap: 12px; margin-top: 20px; }
.tile { display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: border-color 0.15s ease, transform 0.15s ease; }
.tile:hover { border-color: rgba(45, 226, 230, 0.55); transform: translateY(-2px); }
.ico { flex: none; width: 56px; height: 56px; }
.t-body { display: flex; flex-direction: column; min-width: 0; }
.t-name { font: 400 26px/1.1 var(--display); }
.t-line { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.go { display: none; margin-top: 16px; font: 400 14px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.go::after { content: ' →'; }
.tile::after { content: ''; flex: none; width: 10px; height: 10px; margin-left: auto; border-right: 3px solid var(--cyan); border-top: 3px solid var(--cyan); transform: rotate(45deg); }
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
  .tile { flex-direction: column; align-items: flex-start; gap: 0; padding: 26px; border-radius: 20px; }
  .tile::after { display: none; }
  .ico { width: 64px; height: 64px; }
  .t-body { margin-top: 18px; }
  .t-name { font-size: 32px; }
  .t-line { margin-top: 8px; font-size: 16px; line-height: 1.45; }
  .go { display: block; }
}

/* studio */
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.mini { display: flex; flex-direction: column; align-items: flex-start; min-height: 120px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: border-color 0.15s ease, transform 0.15s ease; }
.mini:hover { border-color: rgba(45, 226, 230, 0.55); transform: translateY(-2px); }
.mini img { width: 40px; height: 40px; border-radius: 10px; }
.m-name { margin-top: 10px; font: 400 24px/1.1 var(--display); }
.m-line { margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (min-width: 640px) {
  .minis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
  .mini { padding: 20px; }
  .mini img { width: 44px; height: 44px; }
  .m-name { margin-top: 14px; font-size: 26px; }
  .m-line { font-size: 14px; }
}

/* music */
.player { display: flex; flex-direction: column; gap: 18px; padding: 24px 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.player h2 { font-size: clamp(38px, 5vw, 52px); }
.player p { margin-top: 6px; color: var(--muted); }
.p-actions { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 8px; }
.mix-link { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--muted); text-decoration: underline; }
.player iframe { width: 100%; height: 120px; border: 0; border-radius: 12px; }
.player.playing { padding: 12px; }
@media (min-width: 700px) {
  .player { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 44px; }
  .p-actions { flex-direction: row; align-items: center; gap: 22px; }
  .player.playing { display: block; padding: 16px; }
}

/* footer */
.foot { margin-top: 56px; padding: 28px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid #1d1733; font: 400 13px/1.4 var(--mono); letter-spacing: 0.1em; color: var(--dim); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot svg { order: -1; width: 100%; height: 30px; }
@media (min-width: 640px) { .foot svg { order: 0; width: 220px; height: 36px; } }
